:root {
  --brown: #174b38;
  --brown-dark: #123a2d;
  --cream: #eaf0e8;
  --paper: #fbfaf6;
  --ink: #18231d;
  --muted: #64736a;
  --line: #dce4da;
  --green: #24764f;
  --shadow: 0 16px 40px rgba(20, 52, 37, .11);
  --accent: #c4a66a;
}

html { scroll-padding-top: 84px; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(196, 166, 106, .7);
  outline-offset: 3px;
}

.site-header { box-shadow: 0 4px 18px rgba(20, 52, 37, .04); }
.brand-mark { background: var(--brown); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--brown); }
.bag-button, .primary-btn, .filter-chip.active, .magazine-cta, .size-option.active { background: var(--brown); }
.bag-button:hover, .primary-btn:hover, .magazine-cta:hover { background: #216548; }
.hero { border-radius: 4px; box-shadow: 0 20px 50px rgba(17, 48, 35, .13); }
.hero h1 em, .about h2 em { color: #d1b87e; }
.hero-copy .eyebrow { color: #d1b87e; }
.section-head .eyebrow, .about .eyebrow { color: #66816f; }
.filter-chip { transition: background .2s ease, color .2s ease, border-color .2s ease; }
.filter-chip:hover { border-color: #91a994; color: var(--brown); }
.magazine-grid { align-items: start; gap: 40px 24px; }
.magazine-card { min-width: 0; }
.magazine-image { overflow: hidden; background: #e7ebe4; }
.magazine-photo { background: #e7ebe4; }
.magazine-number, .magazine-chip { color: var(--brown); }
.magazine-info { border-top-color: var(--brown); border-radius: 0 0 5px 5px; }
.magazine-info h3 { overflow-wrap: anywhere; }
.magazine-meta strong, .product-price, .total-row strong { color: var(--brown); }
.magazine-cta { white-space: nowrap; }
.about { border-radius: 5px; }
.mobile-nav { box-shadow: 0 -8px 24px rgba(20, 52, 37, .06); }
.mobile-nav a, .mobile-nav button { color: #738077; }
.mobile-nav a:focus-visible, .mobile-nav button:focus-visible { color: var(--brown); }
.mobile-nav a span, .mobile-nav button span { line-height: 1.1; }
.round-close { background: #eaf0e8; color: var(--brown); }
.whatsapp-btn { background: #218454; }
.whatsapp-btn:hover { background: #176b43; }
.swatch.active { outline-color: var(--brown); }

/* Admin dashboard */
.admin-page {
  background: #f4f6f1;
  color: #1b2920;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}
.login-page {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(196,166,106,.16), transparent 34%),
    linear-gradient(135deg, #e8efe7, #f8f7f1 62%, #e9efe7);
}
.login-card {
  border: 1px solid #e0e7de;
  border-top: 4px solid #174b38;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(21, 58, 41, .12);
}
.admin-logo, .admin-brand span { background: #174b38; }
.login-card p, .head p, .sect-head p, .editor-head p { color: #66816f; }
.login-card h1, .head h1, .sect-head h2, .editor-head h2,
.product-card h3, .order-card h3, .row-head h3 { font-family: Georgia, "Times New Roman", serif; }
.login-card input, .settings input, .editor input, .editor textarea {
  border-color: #d8e1d6;
  border-radius: 5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-card input:focus, .settings input:focus, .editor input:focus, .editor textarea:focus {
  border-color: #4b8264;
  box-shadow: 0 0 0 3px rgba(36, 118, 79, .1);
  outline: 0;
}
.login-card button, .primary { background: #174b38; border-radius: 5px; transition: background .2s ease; }
.login-card button:hover, .primary:hover { background: #216548; }
.admin-top {
  border-bottom-color: #e3e9e1;
  box-shadow: 0 3px 14px rgba(20, 52, 37, .04);
}
.admin-top div { align-items: center; }
.admin-top div a, .admin-top button { color: #42634e; }
.admin-top button { padding: 10px 12px; border-radius: 5px; }
.admin-top button:hover { background: #eef3ec; }
.admin-main { padding-top: 48px; }
.head { margin-bottom: 30px; }
.head h1 { color: #183f2e; letter-spacing: -.8px; }
.stat, .product-card, .order-card, .settings {
  border: 1px solid #e0e7de;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(20, 52, 37, .035);
}
.stat { padding: 21px; }
.stat small { color: #78857b; text-transform: uppercase; letter-spacing: 1px; }
.stat strong { color: #174b38; }
.sect-head { border-bottom: 1px solid #e1e8df; padding-bottom: 12px; }
.sect-head input { border: 1px solid #d8e1d6; border-radius: 5px; padding: 11px 13px; }
.product-card { padding: 13px; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover, .order-card:hover { box-shadow: 0 9px 24px rgba(20, 52, 37, .08); }
.product-card img { border-radius: 5px; background: #eef2ec; }
.product-card p, .order-card p { color: #718076; }
.actions button, .secondary {
  border-color: #dce5da;
  border-radius: 5px;
  color: #365a43;
  transition: background .2s ease, border-color .2s ease;
}
.actions button:hover, .secondary:hover { background: #edf3eb; border-color: #bfd0bf; }
.actions .danger { color: #a64242 !important; }
.order-card { margin-bottom: 12px; padding: 18px; }
.status { border: 1px solid #dce5da; border-radius: 5px; padding: 9px 11px; color: #365a43; background: #fff; }
.order-items { border-color: #e8ede6; color: #65756a; }
.settings { padding: 20px; }
.settings label { color: #3a4c3f; }
.editor {
  border-radius: 10px;
  background: #fbfcf9;
  box-shadow: 0 25px 80px rgba(14, 43, 29, .25);
}
.editor-head { border-bottom-color: #e0e7de; }
.editor-head button { background: #eaf0e8; color: #174b38; }
.upload { border-color: #cfdbcd; border-radius: 6px; background: #f8faf6; }
.upload img { border-radius: 4px; }
.colour-row, .size-row { border-color: #e0e7de; border-radius: 5px; }
.form-actions { border-top-color: #e0e7de; }
.admin-bottom {
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 22px rgba(20, 52, 37, .06);
}
.admin-bottom button { color: #526b59; }
.admin-bottom button:hover { color: #174b38; }

@media (min-width: 681px) and (max-width: 950px) {
  .hero { min-height: 0; }
  .hero-copy { padding: 52px 38px; }
  .hero-visual { min-height: 470px; }
  .magazine-grid { gap: 34px 20px; }
  .magazine-image { height: 390px; }
  .magazine-info { margin: -72px 14px 0; padding: 21px 18px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .hero { border-radius: 7px; }
  .hero-copy { padding: 38px 23px 32px; }
  .hero h1 { font-size: clamp(43px, 11vw, 53px); letter-spacing: -1.6px; line-height: .98; }
  .hero-copy>p:not(.eyebrow) { margin: 19px 0 23px; line-height: 1.7; }
  .hero-visual { min-height: 380px; }
  .hero-caption { left: 18px; bottom: 19px; }
  .hero-caption b { font-size: 25px; }
  .hero-dots { right: 18px; bottom: 22px; }
  .section { padding: 58px 0; }
  .section-head h2 { font-size: 37px; }
  .filter-row { margin-bottom: 22px; }
  .category-scroller { padding: 2px 0 7px; margin-right: -14px; }
  .filter-chip { padding: 10px 14px; }
  .search-box { min-height: 44px; }
  .magazine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 11px; }
  .magazine-image { height: auto; aspect-ratio: .78; }
  .magazine-number, .magazine-chip { top: 8px; padding: 6px 7px; font-size: 8px; letter-spacing: .6px; }
  .magazine-number { left: 8px; }
  .magazine-chip { right: 8px; }
  .magazine-info { margin: -38px 7px 0; padding: 14px 11px 12px; border-top-width: 2px; }
  .magazine-info h3 { font-size: clamp(20px, 6vw, 27px); line-height: 1; }
  .magazine-info p { margin: 7px 0 11px; min-height: 0; font-size: 10px; line-height: 1.5; }
  .magazine-meta { align-items: center; gap: 6px; }
  .magazine-meta small { font-size: 7px; letter-spacing: .8px; }
  .magazine-meta strong { font-size: 12px; }
  .magazine-cta { padding: 9px 8px; font-size: 9px; }
  .about { padding: 37px 23px; gap: 16px; }
  .about h2 { font-size: 39px; }
  .about>p { margin: 0; font-size: 13px; line-height: 1.8; }
  .footer-inner { padding-bottom: 18px; }
  .footer-inner p { margin-bottom: 0; }
  .product-sheet { border-radius: 17px 17px 0 0; }
  .product-sheet-image { height: min(38vh, 300px); }
  .product-sheet-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .product-sheet h2 { font-size: 36px; }
  .cart-drawer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
  .magazine-grid { gap: 11px 8px; }
  .magazine-info { margin-right: 4px; margin-left: 4px; padding-right: 9px; padding-left: 9px; }
  .magazine-info h3 { font-size: 19px; }
  .magazine-meta { align-items: flex-start; flex-direction: column; }
  .magazine-cta { width: 100%; text-align: center; }
}

@media (max-width: 720px) {
  .admin-main { padding-top: 30px; }
  .stats { gap: 10px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 25px; }
  .sect-head { padding-bottom: 13px; }
  .product-card { gap: 10px; }
  .product-card h3 { font-size: 19px; }
  .product-card p { line-height: 1.5; }
  .actions button { min-height: 40px; padding: 9px 13px; }
  .editor {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    max-height: 94vh;
    padding: 20px 17px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .editor-grid { gap: 18px; }
  .colour-row { grid-template-columns: 26px minmax(0, 1fr) 48px 26px; gap: 6px; }
  .colour-row>div { grid-column: 2 / -1; }
  .size-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 26px; gap: 6px; }
  .colour-row input, .size-row input { min-width: 0; padding: 10px 8px; font-size: 12px; }
  .colour-row .c-file { padding: 8px 0; }
  .admin-bottom { min-height: 58px; }
  .order-head { display: flex; align-items: center; }
}

@media (max-width: 420px) {
  .admin-top { height: 62px; }
  .admin-brand { gap: 8px; font-size: 13px; }
  .admin-brand span { width: 32px; height: 32px; }
  .admin-top button { padding: 9px; font-size: 11px; }
  .head h1 { font-size: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat small { font-size: 9px; }
  .product-card { grid-template-columns: 54px minmax(0, 1fr); }
  .product-card img { width: 54px; height: 54px; }
  .product-card .actions { grid-column: 1 / -1; }
  .actions button { flex: 1; }
  .order-head { display: block; }
  .status { margin-top: 8px; }
  .size-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 26px; }
  .size-row .s-stock { grid-column: 1 / 3; grid-row: 2; }
  .size-row .remove { grid-column: 3; grid-row: 1 / 3; }
  .form-actions { position: sticky; bottom: -1px; background: #fbfcf9; padding-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* AMEERAH COLLECTIONS visual identity */
:root {
  --brown: #251920;
  --brown-dark: #21171e;
  --cream: #f1eadb;
  --paper: #fbf8f0;
  --ink: #261d21;
  --muted: #786e6c;
  --line: #e7decd;
  --green: #365c45;
  --accent: #c49a45;
  --shadow: 0 18px 46px rgba(48, 32, 34, .1);
}

body { background: var(--paper); }
.site-header { background: rgba(251, 248, 240, .96); border-bottom-color: #eee5d6; }
.brand-mark {
  background: var(--brown);
  color: #e8c77f;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(232, 199, 127, .5);
}
.brand b { letter-spacing: 3px; }
.brand small { font-size: 7px; letter-spacing: 1.4px; }
.desktop-nav a:hover { color: #a77926; }
.bag-button { background: var(--brown); border-radius: 3px; }
.bag-button span { background: #e8c77f; color: var(--brown); }

.hero {
  position: relative;
  margin-top: 30px;
  min-height: 620px;
  grid-template-columns: .88fr 1.12fr;
  background: #261a22;
  border-radius: 3px;
  box-shadow: 0 24px 56px rgba(45, 28, 35, .16);
}
.hero:before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 18px auto 18px 18px;
  width: 1px;
  background: linear-gradient(transparent, rgba(222, 187, 113, .8), transparent);
}
.hero-copy { position: relative; z-index: 3; padding: 74px 30px 72px 78px; }
.hero-copy .eyebrow { color: #e4bd6b; letter-spacing: 2px; }
.hero h1 { font-size: clamp(55px, 6.2vw, 86px); letter-spacing: -2px; line-height: .91; }
.hero h1 em, .about h2 em { color: #e2bd71; }
.hero-copy>p:not(.eyebrow) { color: #e4d9dc; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 40px;
  color: #c9b8bb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.hero-note span { color: #e2bd71; font-size: 18px; }
.hero-visual { min-height: 620px; }
.hero-slide img { filter: saturate(.9); }
.hero-slide:after { background: linear-gradient(90deg, rgba(38, 26, 34, .28), transparent 36%, rgba(27, 19, 22, .1)); }
.hero-caption b { font-size: 32px; }
.hero-caption small { color: #f4e9dd; }
.hero-badge { background: #e7c77f; color: #35242a; }
.slide-arrow { color: var(--brown); }
.primary-btn, .magazine-cta {
  background: #d7af5f;
  color: #261b20;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.primary-btn:hover, .magazine-cta:hover { background: #e6c778; color: #261b20; transform: translateY(-1px); }
.text-btn { color: #f0e6dc; }
.section { padding-top: 104px; padding-bottom: 104px; }
.eyebrow { color: #a77926; }
.section-head .eyebrow, .about .eyebrow { color: #a77926; }
.section-head h2 { font-size: 52px; }
.filter-chip { border-radius: 2px; background: transparent; }
.filter-chip.active, .size-option.active { background: var(--brown); border-color: var(--brown); }
.filter-chip:hover { border-color: #c6a45c; color: var(--brown); }
.search-box { border-radius: 2px; }
.magazine-grid { gap: 52px 28px; }
.magazine-image { background: #e9dfd0; }
.magazine-photo { background: #e9dfd0; }
.magazine-photo img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.magazine-card:hover .magazine-photo img { transform: scale(1.04); }
.magazine-number, .magazine-chip { color: #38262b; border-radius: 1px; }
.magazine-info {
  border-top: 2px solid #c49a45;
  border-radius: 0;
  box-shadow: 0 16px 38px rgba(43, 28, 29, .1);
}
.magazine-info h3 { font-size: 35px; }
.magazine-meta strong, .product-price, .total-row strong { color: #92702e; }
.magazine-cta { font-size: 10px; }
.about { background: #f1eadb; border-radius: 2px; }
.about h2 { font-size: 54px; }
.site-footer { background: #251920; border: 0; color: #f7f0e7; padding: 30px 0; }
.site-footer .brand-mark { background: #e1bd71; color: #251920; }
.site-footer .brand small, .footer-inner p { color: #cabbba; }
.mobile-nav { background: rgba(251, 248, 240, .97); }
.mobile-nav a, .mobile-nav button { color: #77696b; }
.mobile-nav a:focus-visible, .mobile-nav button:focus-visible { color: #a77926; }
.round-close { background: #f1eadb; color: #38262b; }
.whatsapp-btn { background: #365c45; }
.whatsapp-btn:hover { background: #294b37; }
.swatch.active { outline-color: #ae842f; }
.size-option { border-radius: 2px; }
.quantity-control { border-radius: 2px; }
.quantity-control button { background: #f1eadb; }

.admin-page { background: #f7f3eb; color: #2a2024; }
.login-page {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(204, 166, 83, .2), transparent 30%),
    radial-gradient(ellipse at 10% 90%, rgba(98, 53, 65, .12), transparent 34%),
    #f7f3eb;
}
.login-card {
  border: 1px solid #e9dfce;
  border-top: 4px solid #bd9140;
  border-radius: 3px;
  box-shadow: 0 28px 75px rgba(48, 33, 36, .12);
}
.admin-logo, .admin-brand span { background: #251920; color: #e2bd71; border-radius: 2px; }
.login-card p, .head p, .sect-head p, .editor-head p { color: #a77926; }
.login-card h1, .head h1, .sect-head h2, .editor-head h2,
.product-card h3, .order-card h3, .row-head h3 { color: #33242a; }
.login-card input, .settings input, .editor input, .editor textarea { border-color: #e4dac9; border-radius: 2px; }
.login-card input:focus, .settings input:focus, .editor input:focus, .editor textarea:focus {
  border-color: #bd9140;
  box-shadow: 0 0 0 3px rgba(189, 145, 64, .12);
}
.login-card button, .primary { background: #251920; border-radius: 2px; }
.login-card button:hover, .primary:hover { background: #4b313c; }
.admin-top { background: #fffdf8; border-bottom-color: #e9dfce; }
.admin-top div a, .admin-top button { color: #7c5b24; }
.admin-top button:hover { background: #f4ecdd; }
.head h1 { color: #2b1d24; }
.stat, .product-card, .order-card, .settings {
  border: 1px solid #e9dfce;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(47, 31, 34, .035);
}
.stat { border-top: 2px solid #c49a45; }
.stat small { color: #857a75; }
.stat strong { color: #9a732e; }
.sect-head { border-bottom-color: #e9dfce; }
.sect-head input { border-color: #e4dac9; border-radius: 2px; }
.product-card img { border-radius: 2px; background: #f1eadb; }
.product-card p, .order-card p { color: #817572; }
.actions button, .secondary { border-color: #e2d7c6; border-radius: 2px; color: #624d37; }
.actions button:hover, .secondary:hover { background: #f5eddf; border-color: #cfb77f; }
.order-card { padding: 18px; }
.status { border-color: #e2d7c6; border-radius: 2px; color: #624d37; }
.order-items { border-color: #eee6d9; color: #756963; }
.settings label { color: #53454a; }
.editor { border-radius: 3px; background: #fffdf8; }
.editor-head { border-bottom-color: #e9dfce; }
.editor-head button { background: #f1eadb; color: #38262b; }
.upload { border-color: #d9c9a8; border-radius: 2px; background: #faf7f0; }
.upload img { border-radius: 2px; }
.colour-row, .size-row { border-color: #e9dfce; border-radius: 2px; }
.form-actions { border-top-color: #e9dfce; }
.admin-bottom { background: #fffdf8; border-top-color: #e9dfce; }
.admin-bottom button, .admin-bottom button:hover { color: #72572a; }
.settings-hint { display: block; margin-top: 6px; color: #817572; font-size: 10px; font-weight: 400; line-height: 1.5; }

@media (min-width: 681px) and (max-width: 950px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 54px 28px 50px 48px; }
  .hero h1 { font-size: clamp(52px, 7vw, 68px); }
}
@media (max-width: 680px) {
  .brand { gap: 8px; }
  .brand b { font-size: 14px; letter-spacing: 2px; }
  .brand small { font-size: 6px; letter-spacing: .9px; }
  .hero { margin-top: 12px; }
  .hero:before { inset: 10px auto 10px 10px; }
  .hero-copy { padding: 38px 22px 30px 28px; }
  .hero h1 { font-size: clamp(44px, 11vw, 55px); }
  .hero-note { margin-top: 24px; }
  .hero-visual { min-height: 390px; }
  .section-head h2 { font-size: 40px; }
  .magazine-info { border-top-width: 2px; }
  .about h2 { font-size: 41px; }
  .site-footer .brand small { font-size: 6px; }
}
@media (max-width: 720px) {
  .admin-brand b { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.admin-main { width: min(1240px, calc(100% - 48px)); padding-top: 44px; }
.head { align-items: center; }
.head-actions { display: flex; gap: 10px; }
.head-actions .secondary { background: #fffdf8; }
.head h1 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -1.2px; }
.dashboard-intro { display: block; margin-top: 9px; color: #817572; font-size: 13px; }
.admin-main section { margin-top: 42px; scroll-margin-top: 92px; }
.sect-head { margin-bottom: 18px; }
.sect-head h2 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.primary { min-height: 43px; padding: 12px 18px; }
.admin-top { backdrop-filter: blur(12px); }
.stat, .product-card, .order-card, .settings, .homepage-panel {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(47, 31, 34, .045);
}
.stat { padding: 22px; }
.stat strong { font-size: 31px; }
.product-card { grid-template-columns: 82px minmax(0, 1fr) auto; padding: 14px; }
.product-card img { width: 82px; height: 82px; }
.product-card h3, .order-card h3 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: 16px; font-weight: 700; }
.product-card p, .order-card p { line-height: 1.65; }
.actions button, .secondary, .status { min-height: 39px; }
.actions button { padding: 9px 14px; }
.danger { color: #a64242 !important; }
.settings { max-width: 760px; padding: 25px; }
.settings input { border-radius: 5px; }
.admin-bottom { grid-template-columns: repeat(5, 1fr); }
.admin-bottom button { min-height: 40px; }
.homepage-panel { margin: 0 0 16px; padding: 22px; background: #fffdf8; border: 1px solid #e9dfce; }
.homepage-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.homepage-title h3 { margin: 0; color: #33242a; font-size: 16px; }
.homepage-title p { margin: 7px 0 0; color: #817572; font-size: 12px; line-height: 1.6; }
.homepage-slides { display: grid; gap: 12px; }
.homepage-slide-card { display: grid; grid-template-columns: 152px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 13px; border: 1px solid #eee6d9; border-radius: 6px; background: #fff; }
.homepage-preview { width: 100%; height: 120px; display: block; object-fit: cover; border-radius: 4px; background: #f1eadb; }
.homepage-slide-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.homepage-slide-fields label { margin: 0; color: #53454a; font-size: 11px; }
.homepage-slide-fields input { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 10px; border: 1px solid #e4dac9; border-radius: 4px; }
.homepage-slide-fields label:nth-child(3), .homepage-slide-fields .slide-url { grid-column: 1 / -1; }
.homepage-slide-fields .slide-url { margin-top: -5px; }
.remove-slide { align-self: start; padding: 8px 10px; border: 1px solid #eedada; border-radius: 4px; background: #fff8f7; color: #a64242; font-size: 11px; font-weight: 700; }
.homepage-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.homepage-photo-card { min-width: 0; overflow: hidden; border: 1px solid #eee6d9; border-radius: 6px; background: #fff; }
.homepage-photo-card .homepage-preview { height: 145px; border-radius: 0; }
.homepage-photo-fields { display: grid; gap: 8px; padding: 12px; }
.homepage-photo-fields strong { color: #53454a; font-size: 11px; }
.homepage-photo-fields input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #e4dac9; border-radius: 4px; font-size: 11px; }
.homepage-file-picker { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin: 0 !important; padding: 9px 12px; border: 1px solid #d8c7a6; border-radius: 4px; background: #f7f1e5; color: #624d37 !important; cursor: pointer; font-size: 11px !important; font-weight: 700; }
.homepage-file-picker:hover { background: #f1e7d5; }
.homepage-file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.selected-file { min-width: 0; overflow: hidden; color: #817572; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.clear-homepage-image { justify-self: start; padding: 6px 0; border: 0; background: transparent; color: #a64242; font-size: 10px; font-weight: 700; }
.save-message { min-height: 20px; margin-top: 9px; color: #456b4b; font-size: 12px; font-weight: 700; }

@media (max-width: 720px) {
  .admin-main { width: calc(100% - 28px); padding-top: 30px; }
  .admin-main section { margin-top: 32px; }
  .head { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
  .head-actions { flex-wrap: wrap; }
  .head h1 { font-size: 31px; }
  .dashboard-intro { max-width: 340px; line-height: 1.6; }
  .sect-head h2 { font-size: 23px; }
  .homepage-panel { padding: 15px; }
  .homepage-title { align-items: flex-start; }
  .homepage-slide-card { grid-template-columns: 94px minmax(0, 1fr); gap: 11px; }
  .homepage-slide-card .homepage-preview { height: 95px; }
  .homepage-slide-fields { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; }
  .homepage-slide-fields label:nth-child(3), .homepage-slide-fields .slide-url { grid-column: auto; }
  .remove-slide { grid-column: 2; grid-row: 1; justify-self: end; }
  .homepage-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .homepage-photo-card .homepage-preview { height: 112px; }
  .homepage-photo-fields { padding: 9px; }
  .admin-bottom { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .admin-bottom button { padding: 6px 1px; font-size: 9px; }
}
@media (max-width: 420px) {
  .admin-top { padding: 0 10px; }
  .admin-brand { min-width: 0; }
  .admin-brand b { font-size: 10px; letter-spacing: .3px; }
  .admin-top div { gap: 4px; }
  .homepage-title { flex-direction: column; }
  .homepage-image-grid { grid-template-columns: 1fr; }
  .homepage-photo-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .homepage-photo-card .homepage-preview { height: 100%; min-height: 110px; }
  .homepage-photo-fields { align-content: center; }
}
