:root{
  --bg:#f6f4ef;
  --surface:#ffffff;
  --surface-soft:#fbfaf7;
  --text:#171717;
  --muted:#6c6c6c;
  --line:#e8e2d8;
  --brand:#be9340;
  --brand-dark:#9e782f;
  --dark:#111111;
  --success-bg:#e9f7ed;
  --success-line:#a6d7b1;
  --notice-bg:#fff7dd;
  --notice-line:#ebd180;
  --radius:18px;
  --shadow:0 10px 30px rgba(17,17,17,.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1180px;margin:auto;padding:0 20px}
main{min-height:50vh}
.section{padding:40px 0}
.section-tight{padding-top:10px}
.section h2{font-size:2rem;margin:0}
h1,h2,h3,h4,p{margin-top:0}
.eyebrow{font-size:.76rem;letter-spacing:.16em;font-weight:800;color:var(--brand-dark);margin-bottom:8px}
.muted{color:var(--muted)}
.price{font-size:1.15rem;font-weight:900}
.placeholder{width:100%;aspect-ratio:1/1;background:linear-gradient(135deg,#f0ede6,#e4ddd2);border-radius:16px}

.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.06)}
.header-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;min-height:92px}
.brand-image{display:flex;align-items:center}
.brand-logo{height:58px;width:auto;object-fit:contain}
.header-search{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:999px;min-width:0}
.header-search svg,.header-action svg,.mobile-nav-item svg,.wa::before{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.header-search input{border:0;background:transparent;outline:0;width:100%;font-size:15px;color:var(--text)}
.header-search button{border:0;background:var(--brand);color:#fff;padding:10px 16px;border-radius:999px;font-weight:700;cursor:pointer}
.header-actions{display:flex;align-items:center;gap:10px}
.header-link{font-size:14px;color:#353535;padding:10px 4px}
.header-action{position:relative;display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:14px;font-weight:700}
.header-badge,.cart-badge{position:absolute;display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--dark);color:#fff;font-size:.65rem;font-weight:800}
.header-badge{top:-5px;right:-3px;border:2px solid #fff}
.header-subnav{display:flex;align-items:center;gap:22px;min-height:46px;font-size:14px;color:#4c4c4c;overflow:auto;white-space:nowrap;padding-bottom:12px}
.header-subnav::-webkit-scrollbar{display:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:#111;padding:14px 18px;border:0;border-radius:12px;font-weight:800;cursor:pointer}
.btn:hover{background:var(--brand-dark);color:#fff}
.btn.dark{background:#111;color:#fff}
.btn-outline{background:transparent;color:var(--text);border:1px solid var(--line)}
.btn-outline:hover{background:#111;color:#fff;border-color:#111}

.home-intro-card,.bank-strip,.cat,.card,.panel,.product-card-home,.category-card,.value-card,.account-tile,.order-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.home-intro-section{padding-top:26px}
.home-intro-card{display:grid;grid-template-columns:1.3fr auto;gap:20px;align-items:end;padding:28px}
.home-intro-card h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1.06;max-width:700px;margin-bottom:12px}
.home-intro-card p{max-width:700px;color:var(--muted);font-size:1rem;margin-bottom:0}
.home-intro-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.home-quick-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.home-quick-links a{padding:10px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;color:#333}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.section-link{font-weight:800;color:var(--brand-dark)}
.category-showcase{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{padding:18px;display:flex;flex-direction:column;gap:8px;min-height:145px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.category-card:hover,.product-card-home:hover,.value-card:hover,.card:hover{transform:translateY(-2px);border-color:#d4b06a;box-shadow:0 16px 30px rgba(17,17,17,.08)}
.category-card-icon{width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#f6efe2;color:var(--brand-dark);font-weight:900;font-size:1.1rem}
.category-card strong{font-size:1.02rem}
.category-card span:last-child{font-size:14px;color:var(--muted)}
.product-grid-home,.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card-home{overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.product-card-home img,.card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#eee}
.product-card-body{padding:16px}
.product-meta{font-size:.78rem;color:var(--brand-dark);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.product-card-home h3,.card h3{font-size:1rem;line-height:1.35;margin:8px 0 14px}
.product-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-card-link{font-size:14px;font-weight:800;color:var(--brand-dark)}
.bank-strip{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;padding:24px;background:linear-gradient(180deg,#fff,#fcfaf6)}
.bank-strip h3{font-size:1.45rem;margin-bottom:10px}
.bank-strip p{color:var(--muted);margin-bottom:0}
.bank-strip-details{display:grid;gap:10px;align-content:center}
.bank-strip-details span{padding:12px 14px;background:#faf7f1;border:1px solid var(--line);border-radius:12px}
.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.value-card{padding:20px}
.value-card h3{margin-bottom:8px}
.value-card p{margin:0;color:var(--muted)}

.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cat,.card,.panel{padding:18px}
.cat{font-weight:800;min-height:90px;display:flex;align-items:end}
.form{display:grid;gap:13px}
.form input,.form textarea,.form select{width:100%;padding:13px 14px;border:1px solid #d4d0c9;border-radius:12px;background:#fff;outline:0}
.form input:focus,.form textarea:focus,.form select:focus,.header-search:focus-within{border-color:#c8a65a;box-shadow:0 0 0 4px rgba(190,147,64,.14)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.notice{background:var(--notice-bg);border:1px solid var(--notice-line);padding:16px;border-radius:12px}
.success{background:var(--success-bg);border:1px solid var(--success-line);padding:16px;border-radius:12px}
.table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.table th,.table td{padding:12px;border-bottom:1px solid #eee;text-align:left}
.table th{background:#faf8f4}
.table-wrap{overflow-x:auto}
.adminbar{background:#222;color:#fff;padding:12px}
button:disabled{opacity:.55;cursor:not-allowed}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.thumb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.thumb img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}.thumb span{display:block;margin-top:6px;font-size:13px}

.site-footer{margin-top:40px;background:#fff;border-top:1px solid var(--line)}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;padding:34px 20px}
.footer-top h4{margin:0 0 14px;font-size:1rem}
.footer-top a,.footer-top span{display:block;color:#4b4b4b;margin-bottom:10px;font-size:14px}
.footer-brand-logo{height:72px}
.footer-brand-block p{color:var(--muted);max-width:320px;margin:8px 0 14px}
.footer-wa{display:inline-flex !important;align-items:center;justify-content:center;padding:12px 16px;border-radius:12px;background:#111;color:#fff !important;font-weight:700;width:auto}
.footer-bottom{padding:0 20px 28px;color:#7b7b7b;font-size:13px}
.wa{position:fixed;right:18px;bottom:18px;background:#1f9d55;color:#fff;padding:12px 16px;border-radius:999px;font-weight:700;box-shadow:0 12px 25px rgba(31,157,85,.25);z-index:40}

.mobile-bottom-nav{display:none}
.auth-wrap{max-width:520px}.auth-card{padding:28px}
.account-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0 34px}
.account-tile{display:flex;flex-direction:column;gap:6px;padding:20px}
.account-tile strong{font-size:1.25rem}.account-tile span{color:#6e6a62;font-size:.9rem}
.order-list{display:grid;gap:12px}.order-card{display:flex;justify-content:space-between;gap:20px;padding:18px}
.order-card>div{display:flex;flex-direction:column;gap:4px}.order-card>div:last-child{text-align:right}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:#f3efe5;font-size:.8rem}
.order-line{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eee}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.category-tile{border:1px solid var(--line);border-radius:18px;padding:20px;background:#fff;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:9px;min-height:145px;box-shadow:var(--shadow)}
.category-icon{font-size:1.6rem}.mobile-search-form{display:flex;gap:10px;margin:18px 0 25px}.mobile-search-form input{flex:1;padding:14px 16px;border:1px solid #d9d4ca;border-radius:12px;font-size:1rem;background:#fff}.desktop-account-link{margin-left:12px}
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.card-body{padding:12px 0 0}

.dashboard-card{display:flex;flex-direction:column;min-height:170px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.08);border-color:var(--brand)}
.dashboard-card h2{margin:0 0 6px}.dashboard-card p{margin:0 0 8px}.dashboard-card .card-link{margin-top:auto;font-size:.86rem;font-weight:800;color:var(--brand-dark)}
.admin-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-actions form{display:flex;align-items:center;gap:6px;margin:0}.admin-actions select,.admin-actions button{padding:8px 9px}.admin-edit-btn{padding:9px 12px}

@media(max-width:1000px){
  .header-row{grid-template-columns:1fr auto;grid-template-areas:'logo actions' 'search search';gap:14px;padding:12px 0}
  .brand-image{grid-area:logo}
  .header-search{grid-area:search}
  .header-actions{grid-area:actions;justify-self:end}
  .category-showcase,.product-grid-home,.grid,.products,.value-grid,.cats,.footer-top{grid-template-columns:repeat(2,1fr)}
  .bank-strip,.home-intro-card{grid-template-columns:1fr}
  .home-intro-actions{justify-content:flex-start}
}

@media(max-width:700px){
  body{padding-bottom:82px}
  .brand-logo{height:50px}
  .header-row{min-height:auto}
  .header-actions{gap:8px}
  .header-link.hide-mobile,.header-action.hide-mobile{display:none}
  .header-action span{display:none}
  .header-action{padding:10px 12px}
  .header-subnav{display:none}
  .home-intro-card{padding:22px}
  .home-intro-card h1{font-size:2rem}
  .home-intro-actions{width:100%}
  .btn{width:100%;text-align:center}
  .home-quick-links{display:grid;grid-template-columns:1fr 1fr}
  .section{padding:32px 0}
  .section-head{align-items:flex-start;flex-direction:column}
  .category-showcase,.product-grid-home,.grid,.products,.value-grid,.cats,.category-grid,.footer-top,.thumb-grid,.account-grid{grid-template-columns:1fr 1fr;gap:12px}
  .account-grid .account-tile:first-child{grid-column:1/-1}
  .bank-strip-details{grid-template-columns:1fr}
  .two,.page-head,.account-head,.footer-grid{grid-template-columns:1fr;flex-direction:column;align-items:stretch}
  .table{display:block;overflow-x:auto;white-space:nowrap}
  .thumb-grid{grid-template-columns:repeat(2,1fr)}
  .mobile-search-form{position:sticky;top:0;z-index:40;background:var(--bg);padding:10px 0}
  .product-sticky-cart{position:sticky;bottom:78px;z-index:50;background:#fff;padding:10px 0;border-top:1px solid #eee}
  .wa{display:none}

  .mobile-bottom-nav{
    display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:9999;
    background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-top:1px solid rgba(0,0,0,.08);padding:7px 6px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(0,0,0,.08)
  }
  .mobile-nav-item{position:relative;display:flex;min-height:54px;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-decoration:none;color:#706d67;font-size:.68rem;font-weight:600;border-radius:12px}
  .mobile-nav-item svg{width:22px;height:22px}
  .mobile-nav-item:nth-child(2) svg{fill:currentColor;stroke:none}
  .mobile-nav-item.active{color:var(--brand-dark);background:#faf7ef}
  .nav-icon-wrap{position:relative;line-height:0}.cart-badge{right:-10px;top:-7px;border:2px solid #fff}
  .order-card{padding:15px}.order-card>div:first-child{max-width:58%}
  .card .card-body{padding:12px 0 0}.card h3{font-size:.92rem;line-height:1.25;margin:5px 0 8px}.card .price{font-size:.95rem}
  .auth-card{padding:20px 16px}.form input,.form textarea,.form select{font-size:16px}
}

@media(max-width:480px){
  .category-showcase,.product-grid-home,.grid,.products,.value-grid,.cats,.category-grid,.footer-top,.home-quick-links{grid-template-columns:1fr}
  .header-search button{padding:10px 12px}
  .home-intro-actions{display:grid;grid-template-columns:1fr}
}

/* Phase 5.2.4 — live homepage polish */
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:#f8f7f4}
.site-header{background:rgba(255,255,255,.96);box-shadow:0 1px 0 rgba(0,0,0,.04)}
.header-row{min-height:82px;gap:20px}
.brand-logo{height:54px}
.header-search{background:#f7f6f2;border-color:#e7e2d8;box-shadow:none}
.header-search button{background:#111;color:#fff;padding:9px 15px}
.header-search button:hover{background:#b98e39}
.header-link{font-weight:650}
.header-action{box-shadow:none}

.home-shop-section{padding:32px 0 8px}
.home-category-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.home-category-head h1{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.04;margin:0;letter-spacing:-.03em}
.home-category-scroll{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.home-category-scroll::-webkit-scrollbar{display:none}
.home-category-chip{display:flex;align-items:center;gap:11px;min-width:max-content;padding:10px 15px 10px 10px;border-radius:999px;background:#fff;border:1px solid #e7e1d7;box-shadow:0 6px 16px rgba(17,17,17,.03);font-size:.9rem;font-weight:750;color:#292929;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.home-category-chip:hover{transform:translateY(-1px);border-color:#d0ad67;box-shadow:0 10px 20px rgba(17,17,17,.05)}
.home-category-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f4ecdd;color:#9d752c;font-size:.8rem;font-weight:900}
.home-products-section{padding:36px 0 14px}
.home-products-secondary{padding-top:28px}
.compact-head{margin-bottom:16px}
.compact-head h2{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.02em}
.product-grid-home{gap:14px}
.product-card-home{border-radius:16px;box-shadow:none;border-color:#e8e3da;background:#fff}
.product-image-wrap{position:relative;background:#f4f3ef;overflow:hidden}
.product-image-wrap img,.product-image-wrap .placeholder{aspect-ratio:1/1;width:100%;object-fit:cover;border-radius:0;transition:transform .25s ease}
.product-card-home:hover .product-image-wrap img{transform:scale(1.02)}
.featured-tag{position:absolute;top:10px;left:10px;padding:5px 8px;border-radius:999px;background:rgba(17,17,17,.86);color:#fff;font-size:.65rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.product-card-body{padding:14px}
.product-card-home h3{min-height:2.7em;margin:7px 0 12px;font-size:.96rem;font-weight:700}
.product-meta{font-size:.7rem;color:#887039;letter-spacing:.09em}
.product-card-bottom{padding-top:1px}
.product-card-bottom .price{font-size:1.02rem}
.product-card-arrow{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f5efe2;color:#9a742d;font-weight:900;transition:background .15s ease,color .15s ease}
.product-card-home:hover .product-card-arrow{background:#111;color:#fff}
.empty-home-state{text-align:center;padding:34px}
.home-info-section{padding:34px 0 44px}
.home-payment-card{display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:center;background:#111;color:#fff;border-radius:18px;padding:24px 26px;box-shadow:none}
.home-payment-copy{display:flex;align-items:flex-start;gap:16px}
.home-payment-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#c69a42;color:#111;font-size:1.2rem;font-weight:900}
.home-payment-card .eyebrow{color:#d6b166}
.home-payment-card h3{font-size:1.35rem;margin-bottom:6px}
.home-payment-card p{margin:0;color:#c8c8c8;max-width:620px}
.home-payment-bank{display:grid;gap:3px;padding-left:24px;border-left:1px solid #343434}
.home-payment-bank span{color:#bdbdbd;font-size:.88rem}
.home-payment-bank strong{font-size:.98rem}
.home-payment-bank b{font-size:1.35rem;color:#d6b166;letter-spacing:.04em}
.home-service-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:14px;background:#e4dfd7;border:1px solid #e4dfd7;border-radius:16px;overflow:hidden}
.home-service-item{display:flex;flex-direction:column;gap:4px;background:#fff;padding:18px}
.home-service-item strong{font-size:.95rem}
.home-service-item span{color:#747474;font-size:.86rem}

.site-footer{margin-top:12px}
.footer-top{padding-top:30px;padding-bottom:24px}
.footer-brand-logo{height:62px}
.footer-brand-block p{font-size:.9rem}
.footer-bottom{border-top:1px solid #eee7dc;padding-top:18px}

@media(max-width:1000px){
  .home-payment-card{grid-template-columns:1fr}
  .home-payment-bank{padding-left:0;padding-top:16px;border-left:0;border-top:1px solid #343434}
}

@media(max-width:700px){
  .site-header{position:sticky}
  .header-row{min-height:auto;padding-top:10px;padding-bottom:10px}
  .brand-logo{height:44px}
  .header-actions .header-link{display:none}
  .header-search{padding:8px 9px}
  .header-search input{font-size:16px}
  .home-shop-section{padding-top:22px}
  .home-category-head{align-items:flex-start;margin-bottom:14px}
  .home-category-head h1{font-size:1.75rem}
  .home-category-head .section-link{font-size:.82rem;white-space:nowrap;padding-top:23px}
  .home-category-chip{padding:8px 13px 8px 8px;font-size:.82rem}
  .home-category-mark{width:30px;height:30px}
  .home-products-section{padding-top:24px}
  .section-head.compact-head{flex-direction:row;align-items:flex-end}
  .compact-head .section-link{font-size:.82rem;white-space:nowrap}
  .product-grid-home{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-card-body{padding:11px}
  .product-card-home h3{font-size:.84rem;min-height:2.55em;margin:5px 0 10px}
  .product-card-bottom .price{font-size:.9rem}
  .product-meta{font-size:.62rem}
  .product-card-arrow{width:26px;height:26px;font-size:.8rem}
  .featured-tag{top:7px;left:7px;font-size:.58rem;padding:4px 7px}
  .home-payment-card{padding:20px;border-radius:16px}
  .home-payment-copy{gap:12px}
  .home-payment-icon{width:40px;height:40px;flex-basis:40px}
  .home-payment-card h3{font-size:1.12rem}
  .home-payment-card p{font-size:.86rem}
  .home-service-row{grid-template-columns:1fr}
  .home-service-item{padding:15px 16px}
  .footer-top{grid-template-columns:1fr 1fr;gap:22px}
  .footer-brand-block{grid-column:1/-1}
}

@media(max-width:480px){
  .home-category-head h1{font-size:1.55rem}
  .footer-top{grid-template-columns:1fr}
  .footer-brand-block{grid-column:auto}
}

.source-toggle-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--line,#e8e2d8);border-radius:14px;background:#fff}.source-toggle-card>div{display:grid;gap:3px}.source-toggle-card.is-on{border-color:#c7a24b;background:#fffbf1}.switch-row{display:flex!important;align-items:center;gap:9px;white-space:nowrap;font-weight:800;cursor:pointer}.switch-row input{position:absolute;opacity:0;pointer-events:none}.switch-ui{width:46px;height:26px;border-radius:999px;background:#d5d1c9;position:relative;transition:.18s ease;flex:none}.switch-ui:after{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.18s ease}.switch-row input:checked+.switch-ui{background:#c7a24b}.switch-row input:checked+.switch-ui:after{transform:translateX(20px)}.source-discovery-toggle{margin-top:4px}.source-form-version{display:inline-flex;margin-top:7px;padding:5px 9px;border-radius:999px;background:#f3efe5;color:#765b1d;font-size:11px;font-weight:800;letter-spacing:.06em}@media(max-width:700px){.source-toggle-card{align-items:flex-start;flex-direction:column}.switch-row{width:100%;justify-content:space-between}}

/* Phase 5.2.15 — checkout fee clarity + comprehensive mobile responsiveness */
html,body{max-width:100%;overflow-x:hidden}
body{overflow-wrap:anywhere}
main,.wrap,.section,.panel,.card,.cat,.product-card-home,.category-card,.value-card,.account-tile,.order-card,
.two>* ,.grid>* ,.products>* ,.product-grid-home>* ,.category-showcase>* ,.value-grid>* ,.cats>* ,.footer-top>*{min-width:0}

/* Long supplier/customer text should wrap rather than enlarge the viewport. */
p,li,dd,dt,span,strong,a,label,td,th,.muted,.notice,.success,.product-description,.product-detail-content,
.order-line,.order-card,.panel,.card-body,.product-card-body{overflow-wrap:anywhere;word-break:break-word}
pre,code{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
iframe,video,canvas,svg{max-width:100%}
input,textarea,select,button{max-width:100%}
textarea{resize:vertical}

/* Product detail */
.product-detail-layout{align-items:start}
.product-media,.product-detail-content{min-width:0;max-width:100%}
.product-main-image{width:100%;height:auto;max-height:720px;object-fit:contain;border-radius:12px;background:#fff}
.product-thumb-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;max-width:100%}
.product-thumb-button{width:72px;height:72px;flex:0 0 72px;border:1px solid #ddd;padding:0;background:#fff;border-radius:10px;overflow:hidden;cursor:pointer}
.product-thumb-button img{width:100%;height:100%;object-fit:cover}
.product-detail-content h1{font-size:clamp(1.65rem,4vw,2.5rem);line-height:1.1;overflow-wrap:anywhere}
.product-description{margin:16px 0;white-space:normal;line-height:1.7;max-width:100%}
.product-description img{max-width:100%;height:auto}
.product-description table{max-width:100%}

/* Checkout */
.checkout-delivery-options{display:grid;gap:10px;margin-top:10px;min-width:0}
.delivery-option-card{display:block;cursor:pointer;padding:14px;min-width:0}
.delivery-option-row{display:flex;gap:10px;align-items:flex-start;min-width:0}
.delivery-option-row>span{min-width:0;flex:1}
.delivery-radio{margin-top:4px;flex:0 0 auto}
#checkoutForm,.delivery-options,#addressBlock,#otherAddressWrap{min-width:0;max-width:100%}

/* Tables stay contained. Public/customer tables may scroll inside their wrapper, never the page. */
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{max-width:100%}

@media(max-width:700px){
  .wrap{width:100%;padding-left:14px;padding-right:14px}
  .section{padding:26px 0}
  .two{gap:18px}
  .product-detail-layout{display:grid;grid-template-columns:minmax(0,1fr)}
  .product-detail-content{width:100%;overflow:hidden}
  .product-main-image{max-height:none;aspect-ratio:1/1;object-fit:contain}
  .product-description{font-size:.95rem;line-height:1.65;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
  .product-thumb-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .product-thumb-button{width:62px;height:62px;flex-basis:62px}
  .delivery-option-card{padding:13px}
  .delivery-option-row{gap:9px}
  .delivery-option-row strong{display:block;line-height:1.35}
  .order-card{flex-direction:column;align-items:flex-start}
  .order-card>div:first-child,.order-card>div:last-child{max-width:100%;width:100%;text-align:left}
  .order-line{align-items:flex-start;flex-wrap:wrap}
  .page-head,.account-head{gap:12px}
  .panel{max-width:100%;overflow-wrap:anywhere}
  .form{min-width:0}
  .form label{min-width:0}
  .form input,.form textarea,.form select{min-width:0}
  .mobile-search-form{min-width:0}
  .mobile-search-form input{min-width:0}
  .header-row,.header-search,.header-actions{min-width:0}
  .header-search input{min-width:0}
}

@media(max-width:480px){
  .wrap{padding-left:12px;padding-right:12px}
  .section h2{font-size:1.55rem}
  .product-detail-content h1{font-size:1.55rem}
  .delivery-option-card{padding:12px}
  .delivery-option-row{font-size:.94rem}
}


/* Phase 5.2.15.1 — cart mobile wrapping/card layout */
.cart-table-wrap{max-width:100%;min-width:0}
.cart-table{width:100%;table-layout:fixed}
.cart-table th,.cart-table td{white-space:normal;min-width:0;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
.cart-table th:nth-child(1),.cart-table td:nth-child(1){width:38%}
.cart-table th:nth-child(2),.cart-table td:nth-child(2){width:22%}
.cart-table th:nth-child(3),.cart-table td:nth-child(3){width:11%}
.cart-table th:nth-child(4),.cart-table td:nth-child(4){width:17%}
.cart-table th:nth-child(5),.cart-table td:nth-child(5){width:12%}
.cart-product-name{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.45;font-weight:700}
.cart-variant{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.cart-qty-input{width:75px;padding:8px;max-width:100%}

@media(max-width:700px){
  /* Generic tables may remain horizontally scrollable; the public cart should not. */
  .cart-table-wrap{overflow:visible}
  .cart-table{display:block;overflow:visible;white-space:normal;border:0;background:transparent}
  .cart-table thead{display:none}
  .cart-table tbody{display:grid;gap:12px}
  .cart-table .cart-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 14px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;max-width:100%;min-width:0}
  .cart-table .cart-item-row td{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;padding:0;border:0;width:auto!important;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .cart-table .cart-item-row td::before{content:attr(data-label);font-size:.78rem;font-weight:800;color:#6f6a62;line-height:1.45}
  .cart-table .cart-product-cell{grid-column:1/-1}
  .cart-table .cart-options-cell{grid-column:1/-1}
  .cart-table .cart-qty-cell{grid-column:1/2;align-items:center}
  .cart-table .cart-total-cell{grid-column:1/-1;font-weight:800}
  .cart-table .cart-remove-cell{grid-column:2/3;grid-row:3;padding:0!important;display:flex!important;align-items:center;justify-content:flex-end}
  .cart-table .cart-remove-cell::before{display:none}
  .cart-table .cart-remove-cell a{white-space:normal}
  .cart-table .cart-subtotal-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:#faf8f4}
  .cart-table .cart-subtotal-row th{display:block;padding:0;border:0;width:auto!important;white-space:normal}
  .cart-table .cart-subtotal-row th:first-child{grid-column:1/2}
  .cart-table .cart-subtotal-row th:nth-child(2){grid-column:2/3;text-align:right}
  .cart-table .cart-subtotal-row th:last-child{display:none}
}

@media(max-width:420px){
  .cart-table .cart-item-row{grid-template-columns:minmax(0,1fr)}
  .cart-table .cart-item-row td{grid-template-columns:74px minmax(0,1fr)}
  .cart-table .cart-qty-cell,.cart-table .cart-remove-cell,.cart-table .cart-total-cell{grid-column:1/-1;grid-row:auto}
  .cart-table .cart-remove-cell{justify-content:flex-start}
}


/* Stage 5.3.0.2 — form control sizing fix
   Generic .form input styles must not force radios/checkboxes to full width. */
.form input[type="radio"],
.form input[type="checkbox"]{
  width:auto;
  min-width:auto;
  max-width:none;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  flex:0 0 auto;
}
.form input[type="radio"]:focus,
.form input[type="checkbox"]:focus{
  box-shadow:none;
  outline:2px solid rgba(190,147,64,.35);
  outline-offset:2px;
}
.delivery-option-row{
  width:100%;
}
.delivery-option-row > .delivery-radio{
  width:auto !important;
  min-width:auto !important;
  flex:0 0 auto !important;
}
.delivery-option-row > span{
  width:auto;
  min-width:0;
  flex:1 1 auto;
}


/* Stage 5.3.0.11 — mobile product quantity / add-to-cart overlap fix */
@media(max-width:700px){
  .product-detail-content form.form{
    width:100%;
    min-width:0;
  }

  /* Quantity stays in normal flow above the purchase button. */
  .product-detail-content form.form > label:last-of-type{
    display:grid;
    gap:7px;
    width:100%;
    min-width:0;
    margin:0;
  }
  .product-detail-content form.form > label:last-of-type input[type="number"]{
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
    position:relative;
    z-index:1;
  }

  /* Do not float the CTA over the preceding quantity field on mobile. */
  .product-detail-content .product-sticky-cart{
    position:static;
    inset:auto;
    z-index:auto;
    width:100%;
    max-width:100%;
    margin:2px 0 0;
    padding:0;
    border-top:0;
    background:transparent;
  }
  .product-detail-content .product-sticky-cart .btn{
    display:flex;
    width:100%;
    max-width:100%;
    min-height:50px;
    margin:0;
  }
}


/* Stage 5.3.0.12 — header search sizing and button text fit */
.header-search{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
}
.header-search input[type="search"]{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  max-width:100%;
}
.header-search button[type="submit"]{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  min-height:40px;
  padding:9px 16px;
  line-height:1;
  white-space:nowrap;
  text-align:center;
  overflow:visible;
}

@media(max-width:700px){
  .header-search{
    gap:8px;
    padding:7px 8px;
  }
  .header-search button[type="submit"]{
    min-width:78px;
    min-height:40px;
    padding:9px 12px;
    font-size:.88rem;
  }
}

@media(max-width:380px){
  .header-search button[type="submit"]{
    min-width:72px;
    padding-left:10px;
    padding-right:10px;
    font-size:.84rem;
  }
}

/* Stage 5.4.17 — first-visit subscription and promotional notifications */
body.store-modal-open{overflow:hidden}
.store-notice-close{
  appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  font:400 1.65rem/1 Arial,sans-serif;transition:background .2s ease,transform .2s ease
}
.store-notice-close:hover{background:rgba(17,17,17,.07);transform:rotate(4deg)}
.store-notice-close:focus-visible,.store-subscribe__button:focus-visible,.store-promo__cta:focus-visible{
  outline:3px solid rgba(202,159,63,.42);outline-offset:3px
}
.store-notice-eyebrow{
  display:block;color:#a87817;font-size:.7rem;font-weight:900;letter-spacing:.15em;
  line-height:1.2;text-transform:uppercase
}
.store-subscribe{
  position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s ease
}
.store-subscribe.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.store-subscribe__backdrop{position:absolute;inset:0;background:rgba(8,8,8,.68);backdrop-filter:blur(7px)}
.store-subscribe__dialog{
  position:relative;width:min(100%,520px);max-height:min(760px,calc(100vh - 44px));overflow:auto;
  border:1px solid rgba(194,151,56,.34);border-radius:26px;background:#fffdf8;color:#171717;
  box-shadow:0 34px 90px rgba(0,0,0,.32);transform:translateY(20px) scale(.975);
  transition:transform .32s cubic-bezier(.2,.8,.2,1)
}
.store-subscribe.is-visible .store-subscribe__dialog{transform:translateY(0) scale(1)}
.store-subscribe__accent{
  height:7px;background:linear-gradient(90deg,#8d6618,#ddb85c 52%,#a77a21)
}
.store-subscribe__content{position:relative;padding:42px 44px 38px}
.store-subscribe__content:before{
  content:"";position:absolute;right:-64px;top:-86px;width:190px;height:190px;border-radius:50%;
  border:42px solid rgba(211,169,70,.08);pointer-events:none
}
.store-subscribe__close{position:absolute;right:14px;top:16px;z-index:2;color:#3b3b3b}
.store-subscribe h2{
  position:relative;margin:12px 48px 12px 0;color:#131313;font-size:clamp(1.75rem,5vw,2.35rem);
  line-height:1.08;letter-spacing:-.035em
}
.store-subscribe__content>p{position:relative;margin:0;color:#5f6064;font-size:.96rem;line-height:1.65}
.store-subscribe__form{position:relative;display:grid;gap:13px;margin-top:24px}
.store-subscribe__field{display:grid;gap:7px;color:#313236;font-size:.76rem;font-weight:850}
.store-subscribe__field input{
  width:100%;min-height:51px;border:1px solid #ddd8cd;border-radius:13px;background:#fff;
  padding:12px 14px;color:#171717;font:inherit;font-size:.95rem;box-shadow:0 1px 0 rgba(0,0,0,.02)
}
.store-subscribe__field input:focus{border-color:#bd8b29;outline:0;box-shadow:0 0 0 4px rgba(190,142,42,.12)}
.store-subscribe__consent{display:flex;align-items:flex-start;gap:9px;color:#6c6d71;font-size:.72rem;line-height:1.45;cursor:pointer}
.store-subscribe__consent input{flex:0 0 auto;width:15px;height:15px;margin-top:2px;accent-color:#a77920}
.store-subscribe__button{
  appearance:none;border:0;border-radius:13px;background:#151515;color:#fff;cursor:pointer;
  min-height:51px;padding:12px 18px;font:inherit;font-size:.84rem;font-weight:900;letter-spacing:.02em;
  box-shadow:0 10px 24px rgba(0,0,0,.14);transition:background .2s ease,transform .2s ease
}
.store-subscribe__button:hover{background:#9d711d;color:#fff;transform:translateY(-1px)}
.store-subscribe__button:disabled{cursor:wait;opacity:.68;transform:none}
.store-subscribe__feedback{min-height:19px;color:#5e6065;font-size:.76rem;line-height:1.4}
.store-subscribe__feedback.is-success{padding:15px;border-radius:12px;background:#eef8f0;color:#236b34;font-weight:800}
.store-subscribe__feedback.is-error{color:#a12626;font-weight:750}
.store-subscribe__form.is-complete .store-subscribe__field,
.store-subscribe__form.is-complete .store-subscribe__consent,
.store-subscribe__form.is-complete .store-subscribe__button{display:none}
.store-subscribe__privacy{margin-top:16px!important;color:#8b8c8f!important;font-size:.68rem!important}
.store-subscribe__honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

.store-promo{
  position:fixed;left:24px;bottom:24px;z-index:1050;width:min(390px,calc(100vw - 48px));
  border:1px solid #e5d3a9;border-radius:20px;background:rgba(255,253,248,.97);color:#181818;
  padding:22px 54px 21px 22px;box-shadow:0 20px 52px rgba(18,18,18,.2);backdrop-filter:blur(12px);
  opacity:0;visibility:hidden;transform:translateY(24px);pointer-events:none;
  transition:opacity .3s ease,visibility .3s ease,transform .3s cubic-bezier(.2,.8,.2,1)
}
.store-promo:before{
  content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;
  background:linear-gradient(#e3c16f,#956817)
}
.store-promo.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.store-promo__close{position:absolute;right:10px;top:10px;color:#56575a}
.store-promo h2{margin:8px 0 7px;font-size:1.2rem;line-height:1.18;letter-spacing:-.02em}
.store-promo p{margin:0;color:#65676c;font-size:.82rem;line-height:1.55}
.store-promo__cta{
  display:inline-flex;align-items:center;gap:8px;margin-top:14px;border-radius:999px;background:#171717;
  color:#fff!important;padding:9px 14px;text-decoration:none;font-size:.75rem;font-weight:900
}
.store-promo__cta span{font-size:1rem;transition:transform .2s ease}
.store-promo__cta:hover span{transform:translateX(3px)}

@media(max-width:700px){
  .store-subscribe{padding:14px}
  .store-subscribe__dialog{max-height:calc(100vh - 28px);border-radius:22px}
  .store-subscribe__content{padding:35px 23px 27px}
  .store-subscribe h2{font-size:1.8rem}
  .store-promo{left:12px;bottom:88px;width:calc(100vw - 24px);padding:20px 50px 19px 20px}
}
@media(prefers-reduced-motion:reduce){
  .store-subscribe,.store-subscribe__dialog,.store-promo,.store-notice-close,.store-subscribe__button{transition:none}
}

/* Stage 5.4.18 — administrator-controlled top scrolling marquee */
.site-announcement{
  --announcement-duration:24s;
  overflow:hidden;width:100%;background:#111;color:#fff9eb;border-bottom:1px solid rgba(214,173,80,.45)
}
.site-announcement__viewport{overflow:hidden;width:100%}
.site-announcement__track{
  display:flex;width:max-content;will-change:transform;
  animation:site-announcement-scroll var(--announcement-duration) linear infinite
}
.site-announcement__item{
  flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:14px;min-width:100vw;
  min-height:38px;padding:8px 42px;white-space:nowrap;font-size:.78rem;font-weight:800;letter-spacing:.025em
}
.site-announcement__marker{
  width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#dcaf4d;
  box-shadow:0 0 0 4px rgba(220,175,77,.14)
}
.site-announcement a,.site-announcement__link-copy{
  color:#e4bd65;font-weight:900;text-decoration:underline;text-underline-offset:3px
}
.site-announcement a:focus-visible{outline:2px solid #e4bd65;outline-offset:3px;border-radius:3px}
.site-announcement:hover .site-announcement__track,
.site-announcement:focus-within .site-announcement__track{animation-play-state:paused}
@keyframes site-announcement-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

@media(max-width:700px){
  .site-announcement__item{min-height:36px;gap:11px;padding:7px 28px;font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){
  .site-announcement__track{width:100%;animation:none;transform:none}
  .site-announcement__item{width:100%;min-width:0;white-space:normal;text-align:center;line-height:1.35}
  .site-announcement__item[aria-hidden="true"]{display:none}
}

/* Stage 5.4.19 — optional hosted payment gateways */
.payment-methods{display:grid;gap:10px;margin-top:10px}
.payment-option-card{
  display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border:1px solid #dedbd2;border-radius:14px;
  background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease
}
.payment-option-card:hover{border-color:#b58a34;box-shadow:0 8px 22px rgba(29,24,14,.08);transform:translateY(-1px)}
.payment-option-card:has(input:checked){border-color:#a57519;box-shadow:0 0 0 3px rgba(181,138,52,.13);background:#fffdf7}
.payment-option-card input{width:auto;margin:3px 0 0;accent-color:#a57519}
.payment-option-card span{display:grid;gap:4px}.payment-option-card small{color:#6b6b6b;line-height:1.45}
.payment-option-card--paystack:has(input:checked){border-color:#08a98f;box-shadow:0 0 0 3px rgba(8,169,143,.12);background:#f8fffd}
.payment-option-card--flutterwave:has(input:checked){border-color:#f2a900;box-shadow:0 0 0 3px rgba(242,169,0,.13);background:#fffdf6}
.payment-page{max-width:760px}.payment-page>.panel{padding:clamp(22px,4vw,38px);border-radius:20px}
.payment-page h1{margin-top:6px}.payment-page hr{margin:24px 0;border:0;border-top:1px solid #e7e3da}
.gateway-readiness{margin:14px 0;padding:14px 16px;border:1px solid #e4dfd2;border-radius:12px;background:#fff}
.gateway-readiness ul{margin:9px 0 0;padding-left:20px;display:grid;gap:5px;font-size:.82rem}
.gateway-readiness .is-ready{color:#24733b}.gateway-readiness .is-missing{color:#a12626;font-weight:800}.gateway-readiness .is-warning{color:#8a6419}

/* Stage 5.4.20 — Oraimo fulfilment notice */
.oraimo-delivery-note{
  display:flex;align-items:flex-start;gap:12px;margin:16px 0;padding:14px 16px;border:1px solid #dfc98f;
  border-radius:14px;background:linear-gradient(135deg,#fffaf0,#fff);color:#332b1d
}
.oraimo-delivery-note>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#f2dfad;font-size:1.05rem}
.oraimo-delivery-note strong{display:block;margin-bottom:2px;font-size:.85rem;letter-spacing:.02em}
.oraimo-delivery-note p{margin:0;color:#62563d;font-size:.88rem;line-height:1.45}
