/* =========================================================
   BAYT AL AMANAH — Responsive Breakpoints
   Desktop 1440 / Laptop 1280 / Tablet 1024 / Tablet-P 768 / Mobile 576 / Small 375
   ========================================================= */

/* Large Desktop */
@media (min-width: 1441px){
  .container{ max-width: var(--container-lg); }
}

/* Admin mobile nav overlay — tablet and down */
.admin-sidebar-backdrop{ display: none; }
@media (max-width: 900px){
  .admin-sidebar-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(30, 24, 16, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .admin-sidebar.is-open ~ .admin-sidebar-backdrop{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Laptop / standard desktop already covered by base styles at 1280 container */

/* Tablet landscape */
@media (max-width: 1024px){
  .about-choose__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    max-width: 640px;
  }
  .container{ padding-inline: var(--pad-tablet); }
  .hero-title{ font-size: 52px; }
  .home-intro{ min-height: 0; }
  .page-home .hero-home{ min-height: clamp(680px, 86vh, 920px); }
  .page-wholesale .hero-wholesale{
    min-height: clamp(600px, 72vh, 820px);
    --wholesale-header-clear: 108px;
  }
  .page-about .hero-about{
    min-height: clamp(600px, 72vh, 820px);
    --about-header-clear: 108px;
  }
  .hero-features{ padding: 0 var(--pad-tablet) 6px; margin-top: -20px; }
  .hero-features__card{ max-width: min(var(--container-lg), 98vw); }
  .page-home .hero-home::before{
    background-size: contain;
    background-position: right bottom;
  }
  .page-wholesale .hero-wholesale::before{
    background-size: 74% auto;
    background-position: right center;
  }
  .page-about .hero-about::before{
    background-size: 74% auto;
    background-position: right center;
  }
  .hero-home-main{ padding-top: 96px; }
  .hero-wholesale-main{ padding-top: 120px; }
  .hero-about-main{ padding-top: 120px; }
  .partner-grid{ gap: 20px 16px; }
  .partner-item__icon{ width: 52px; height: 52px; }
  .partner-item__label{ font-size: 14px; }
  .wholesale-form__grid{ gap: 18px 20px; }
  .contact-section{
    padding: 118px 0 36px;
  }
  .contact-section .container{ padding-bottom: 0; }
  .contact-grid{ gap: 28px; }
  .contact-list{ gap: 28px; }
  .contact-form-panel{ padding: 30px; }
  .contact-info__text{ margin-bottom: 36px; }
  .hero-features .features--hero{ padding: 4px 0; }
  .hero-features .features--hero .feature-card{ padding: 16px 14px; gap: 10px; }
  .hero-art{ padding: 10px; }
  .hero-art img{ transform: scale(1.08); }
  .section-title{ font-size: 34px; }
  .features:not(.features--hero){ grid-template-columns: repeat(2, 1fr); }
  .product-grid{
    grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
    justify-content: center;
  }
  .shop-layout{
    --shop-grid-gap: 16px;
    --shop-prod-w: calc((100% - 2 * var(--shop-grid-gap)) / 3);
  }
  .shop-layout .product-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--shop-grid-gap);
  }
  .shop-layout .product-card{
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
  .shop-layout .product-media{
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }
  .shop-layout .product-body{
    flex: 0 0 auto;
  }
  .page-header--shop{ padding: 136px 0 28px; }
  .shop-section{ padding: 20px 0 0; }
  .shop-trust-wrap{ margin: 0; padding: 0; }
  .filters{
    overflow: visible;
  }
  .filter-list{
    overflow: visible;
    min-height: 0;
  }
  .filter-list button{ font-size: 13px; }
  .trust-strip{ grid-template-columns: repeat(2, 1fr); }
  .trust-strip > .trust-item,
  .trust-strip > div{
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  .promise-section{
    --promise-bg-size: contain;
    --promise-bg-position: right center;
  }
}

/* Tablet portrait */
@media (max-width: 768px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .hero{ padding-top: 130px; }
  .page-home .hero-home{ min-height: clamp(640px, 82vh, 880px); }
  .hero-home-main{ padding-bottom: 12px; }
  .hero-features{ padding: 0 var(--pad-mobile) 4px; margin-top: -12px; }
  .hero-features__card{ max-width: 100%; }
  .page-home .hero-home::before{
    background-size: contain;
    background-position: center bottom;
  }
  .home-hero-shade{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      #F7F4EE 42%,
      rgba(247, 244, 238, 0) 72%
    );
  }
  .hero-home-main{
    padding: 96px 0 16px;
    align-items: flex-start;
  }
  .hero-home .container{ grid-template-columns: 1fr; }
  .hero-wholesale .container{ grid-template-columns: 1fr; }
  .hero-about .container{ grid-template-columns: 1fr; }
  .page-wholesale .hero-wholesale{
    min-height: clamp(560px, 70vh, 760px);
    --wholesale-header-clear: 96px;
  }
  .page-about .hero-about{
    min-height: clamp(560px, 70vh, 760px);
    --about-header-clear: 96px;
  }
  .page-wholesale .hero-wholesale::before{
    background-size: 78% auto;
    background-position: center right;
    opacity: .95;
  }
  .page-about .hero-about::before{
    background-size: 88% auto;
    background-position: center right;
    opacity: .95;
  }
  .wholesale-hero-shade{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      #F7F4EE 48%,
      rgba(247, 244, 238, 0) 82%
    );
  }
  .about-hero-shade{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      #F7F4EE 48%,
      rgba(247, 244, 238, 0) 82%
    );
  }
  .hero-wholesale-main{ padding: 110px 0 40px; }
  .hero-about-main{ padding: 110px 0 40px; }
  .about-story__grid{ grid-template-columns: 1fr; }
  .about-story{
    padding: 64px 0 40px;
  }
  .about-story::before{
    background-position: right bottom;
    background-size: auto 70%;
  }
  .about-ahead{
    padding: 24px 0 64px;
  }
  .about-story::after{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      #F7F4EE 48%,
      rgba(247, 244, 238, 0) 82%
    );
  }
  .about-principles__grid{ grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
  .about-choose__grid{ grid-template-columns: 1fr; gap: 32px; max-width: 360px; margin-inline: auto; }
  .about-ahead__paths{
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .about-ahead__path{
    border-right: none;
    border-bottom: 1px solid rgba(200, 155, 60, .18);
    padding: 20px 12px;
  }
  .about-ahead__path:last-child{ border-bottom: none; }
  .partner-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    max-width: 520px;
  }
  .bulk-contacts__grid{ grid-template-columns: 1fr; max-width: 480px; }
  .wholesale-story__grid{ grid-template-columns: 1fr; }
  .wholesale-story{
    padding: clamp(48px, 8vw, 72px) 0;
  }
  .wholesale-story::before{
    opacity: .18;
    background-position: center top;
    background-size: cover;
  }
  .wholesale-story::after{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      rgba(247, 244, 238, .92) 55%,
      rgba(247, 244, 238, .88) 100%
    );
  }
  .wholesale-ahead__paths{
    grid-template-columns: 1fr;
  }
  .wholesale-ahead__path{
    border-right: none;
    border-bottom: 1px solid rgba(200, 155, 60, .18);
    padding: 20px 12px;
  }
  .wholesale-ahead__path:last-child{ border-bottom: none; }
  .wholesale-form__grid{ grid-template-columns: 1fr; }
  .wholesale-form__half{ grid-column: 1; }
  .wholesale-stats__grid{ grid-template-columns: repeat(2, 1fr); }
  .wholesale-stats__item{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.22);
    padding: 18px 12px;
  }
  .wholesale-stats__item:nth-last-child(-n+2){ border-bottom: none; }
  .hero-features .features--hero{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px 0;
    border-radius: 0;
  }
  .hero-features .features--hero .feature-card{
    border-right: none;
    border-bottom: none;
    padding: 18px 14px;
  }
  .hero-features .features--hero .feature-card:not(:last-child)::after{
    display: none;
  }
  .hero-features .features--hero .feature-card:nth-child(odd)::after{
    display: block;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: #D4C8B5;
  }
  .hero-features .features--hero .feature-card:nth-child(-n+2)::before{
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 1px;
    background: #D4C8B5;
    pointer-events: none;
  }
  .hero-features .features--hero .feature-card:nth-last-child(-n+2){
    border-bottom: none;
  }
  .home-purpose__grid{
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .home-purpose__item{
    border-right: none;
    border-bottom: 1px solid rgba(200, 155, 60, .18);
    padding: 28px 20px;
  }
  .home-purpose__item:last-child{ border-bottom: none; }
  .home-purpose__item p{ max-width: none; }
  .hero .container{ grid-template-columns: 1fr; text-align: left; }
  .hero-visual{ order: -1; margin-bottom: 20px; }
  .hero-float-card{ display: none; }
  .hero-title{ font-size: 42px; }
  .category-section__label{
    margin-bottom: 32px;
    font-size: clamp(20px, 4.5vw, 26px);
    letter-spacing: 0.06em;
    text-indent: 0.06em;
  }
  .category-grid{ grid-template-columns: 1fr; gap: 22px; max-width: 560px; }
  .category-card{
    aspect-ratio: 2 / 1;
    min-height: 0;
  }
  .category-card__body{
    width: min(58%, 260px);
    padding: 24px 22px;
  }
  .category-card__body h3{ font-size: 20px; margin-bottom: 6px; }
  .category-card__sub{ margin-bottom: 20px; }
  .contact-section{
    padding: 110px 0 32px;
  }
  .contact-section .container{ padding-bottom: 0; }
  .contact-section__media img{
    object-position: center top;
  }
  .contact-section::after{
    background: linear-gradient(
      180deg,
      rgba(250, 248, 244, .9) 0%,
      rgba(250, 248, 244, .55) 40%,
      transparent 72%
    );
  }
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info__text{ max-width: none; margin-bottom: 32px; }
  .contact-list{ gap: 28px; }
  .contact-form-wrap{ width: 100%; }
  .contact-form-panel{
    max-width: none;
    margin-left: 0;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .82);
  }
  .contact-form__grid{ grid-template-columns: 1fr; }
  .contact-form__half{ grid-column: 1; }
  .contact-form .form-group.full{ grid-column: 1; }
  .split, .split.reverse{ grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media{ order: 0; }
  .promise-section{
    --promise-bg-size: contain;
    --promise-bg-position: right center;
  }
  .promise-section::after{
    background: linear-gradient(
      90deg,
      #F7F4EE 0%,
      #F7F4EE 40%,
      rgba(247, 244, 238, 0) 62%
    );
  }
  .promise-section__media{ min-height: 280px; }
  .pdp-section{ padding-top: 100px; padding-bottom: 40px; }
  .pdp-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "info"
      "about";
    gap: 24px;
  }
  .pdp-gallery__main{ max-width: 480px; margin-inline: auto; width: 100%; }
  .pdp-thumbs{ justify-content: center; }
  .pdp-info{
    position: static;
    padding: 20px 18px 22px;
  }
  .pdp-info__short{ max-width: none; }
  .pdp-about{ padding: 22px 18px 24px; }
  .pdp-about__title{ font-size: 22px; }
  .pdp-related{ padding: 40px 0 64px; }
  .pdp-related .product-grid{ grid-template-columns: 1fr; }
  .category-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .form-card{ padding: 30px 24px; }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .footer-brand{
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }
  .footer-col{
    border-left: none;
    padding: 0 12px;
  }
  .footer-col:nth-child(odd){
    border-left: 1px solid rgba(255,255,255,.28);
  }
  .footer-bottom{
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .footer-bottom__copy{
    grid-column: 1;
    white-space: normal;
  }
  .footer-bottom__credit{
    grid-column: 1;
    justify-self: center;
  }
  .footer-social{
    grid-column: 1;
    justify-self: center;
  }
  .section{ padding-block: 70px; }
  .page-header{ padding: 120px 0 40px; }
  .page-header h1{ font-size: 38px; }
  .page-header--shop{ padding: 128px 0 24px; }
  .shop-layout{
    --shop-prod-w: 100%;
  }
  .shop-layout .product-grid{
    grid-template-columns: 1fr;
  }
  .shop-toolbar__search input{ max-width: none; }
  .shop-toolbar__meta select{ min-width: 0; }
  .shop-layout .product-card{
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    flex-direction: row;
    align-items: stretch;
  }
  .shop-layout .product-media{
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: 10px 0 10px 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .shop-layout .product-body{
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 10px 10px;
  }
  .product-actions{
    gap: 6px;
  }
}

/* Mobile */
@media (max-width: 576px){
  .container{ padding-inline: var(--pad-mobile); }
  .cart-drawer{ width: 100vw; }
  .hero-title{ font-size: 34px; }
  .promise-section{
    --promise-bg-size: contain;
    --promise-bg-position: center bottom;
  }
  .promise-section::after{
    background: linear-gradient(
      180deg,
      #F7F4EE 0%,
      #F7F4EE 48%,
      rgba(247, 244, 238, 0) 78%
    );
  }
  .promise-section__media{ min-height: 200px; }
  .hero-features .features--hero{
    grid-template-columns: 1fr;
    padding: 4px 0;
  }
  .hero-features .features--hero .feature-card:not(:last-child)::after{
    display: none;
  }
  .hero-features .features--hero .feature-card:nth-child(odd)::after{
    display: none;
  }
  .hero-features .features--hero .feature-card:nth-child(-n+2)::before{
    display: none;
  }
  .hero-features .features--hero .feature-card:not(:last-child)::before{
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 1px;
    background: #D4C8B5;
    pointer-events: none;
    display: block;
  }
  .hero-features .features--hero .feature-card:last-child{
    border-bottom: none;
  }
  .hero-subtitle{ font-size: 16px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .section-title{ font-size: 27px; }
  .features:not(.features--hero){ grid-template-columns: 1fr; }
  .product-grid{
    grid-template-columns: 1fr;
    max-width: none;
    margin-inline: 0;
  }
  .shop-layout .product-grid,
  .pdp-related .product-grid{
    max-width: none;
    margin-inline: 0;
  }
  .trust-strip{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 22px; }
  .footer-col{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.22);
    padding: 18px 0 0;
  }
  .btn{ padding: 14px 24px; }
  .form-card{ padding: 26px 18px; }
  .contact-section{ padding: 104px 0 28px; }
  .contact-info__title{
    font-size: clamp(26px, 7.2vw, 32px);
    letter-spacing: .01em;
  }
  .contact-form-panel{ padding: 24px 18px; }
}

/* Small mobile */
@media (max-width: 375px){
  .hero-title{ font-size: 29px; }
  .promise-section{ --promise-bg-size: contain; }
  .brand{ font-size: 17px; }
  .brand img{ height: 32px; }
  .brand--logo-img img{ max-height: 72px; max-width: 150px; }
}

/* =========================================================
   Mobile polish — phones/tablets only. Desktop styles unchanged.
   ========================================================= */
@media (max-width: 768px){
  :root{
    --nav-h: 76px;
    --pad-mobile: 18px;
  }

  .navbar{
    padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  }
  .navbar.is-scrolled{ padding: calc(6px + env(safe-area-inset-top, 0px)) 0 6px; }
  .navbar .container{
    gap: 10px;
    align-items: center;
  }
  .brand--logo-img img{
    max-height: 52px;
    max-width: 118px;
  }
  .navbar.is-scrolled .brand--logo-img img{
    max-height: 44px;
    max-width: 104px;
  }
  .nav-actions{ gap: 4px; }
  .icon-btn{
    width: 40px;
    height: 40px;
  }
  .nav-toggle{
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 6px;
    flex-shrink: 0;
    z-index: 1210;
  }
  .nav-toggle span{ width: 20px; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
  .nav-auth-link{ display: none; }

  .mobile-menu{
    width: min(300px, 88vw);
    padding: calc(88px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-menu a{
    padding: 14px 0;
    font-size: 16px;
  }

  .page-home .hero-home,
  .page-wholesale .hero-wholesale,
  .page-about .hero-about{
    min-height: auto;
  }
  .hero-home-main,
  .hero-wholesale-main,
  .hero-about-main{
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: 28px;
  }
  .hero-copy{ max-width: 100%; }
  .hero-title{
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.12;
  }
  .hero-subtitle{
    font-size: 15px;
    max-width: 36em;
  }
  .hero-actions .btn{ width: 100%; justify-content: center; }

  .page-header{
    padding: calc(96px + env(safe-area-inset-top, 0px)) 0 28px;
  }
  .page-header h1{ font-size: clamp(28px, 7vw, 36px); }
  .page-header--shop{ padding: calc(96px + env(safe-area-inset-top, 0px)) 0 20px; }
  .page-header--shop p br{ display: none; }

  .shop-layout{
    --shop-grid-gap: 12px;
    --shop-prod-w: 100%;
  }
  .shop-layout .product-grid{
    grid-template-columns: 1fr;
  }
  .shop-layout .product-card{
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
  }
  .shop-layout .product-media{
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: 10px 0 10px 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .shop-layout .product-media .art-frame img{
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1.05);
  }
  .shop-layout .product-card:hover .product-media .art-frame img{
    transform: translate(-50%, -50%) scale(1.08);
  }
  .shop-layout .product-body{
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 10px 10px;
    display: flex;
    flex-direction: column;
  }

  .product-grid .product-card{
    flex-direction: row;
    align-items: stretch;
  }
  .product-grid .product-media{
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: 10px 0 10px 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .product-grid .product-media .art-frame img{
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1.05);
  }
  .product-grid .product-card:hover .product-media .art-frame img{
    transform: translate(-50%, -50%) scale(1.08);
  }
  .product-grid .product-body{
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 10px 10px;
    display: flex;
    flex-direction: column;
  }
  .product-grid .product-title-link h3,
  .product-grid .product-body h3{
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .product-grid .product-weight{
    font-size: 11px;
    margin-top: 2px;
  }
  .product-grid .product-price{
    font-size: 14px;
    margin-top: 4px;
  }
  .product-grid .product-reviews{
    font-size: 11px;
    margin-top: 2px;
  }
  .product-grid .product-actions{
    padding-top: 8px;
    margin-top: auto;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .product-grid .product-actions .qty-stepper{
    width: 100%;
    flex: none;
    max-width: 100%;
    height: 36px;
  }
  .product-grid .product-actions .add-cart-btn{
    width: 100%;
    flex: none;
    height: 36px;
    font-size: 11px;
    letter-spacing: .06em;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .product-grid .product-badge,
  .shop-layout .product-badge{
    top: 4px;
    left: 4px;
    height: 18px;
    font-size: 7px;
    padding: 0 5px;
    letter-spacing: .06em;
  }
  .product-grid .wishlist-btn,
  .shop-layout .wishlist-btn{
    width: 26px;
    height: 26px;
    top: 4px;
    right: 4px;
  }
  .product-grid .wishlist-btn svg,
  .shop-layout .wishlist-btn svg{
    width: 13px;
    height: 13px;
  }

  .shop-toolbar{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .shop-toolbar__search input,
  .shop-toolbar__meta select{
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .shop-toolbar__meta{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: center;
  }
  .shop-toolbar__label--inline{
    display: block;
    margin: 0;
  }
  .shop-result-count{
    grid-column: 1 / -1;
    margin: 0;
  }

  .pdp-section{ padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .pdp-info{ position: static; }
  .pdp-actions .add-cart-btn,
  .pdp-actions .btn-secondary{ width: 100%; }

  .auth-page{
    padding: calc(var(--nav-h, 76px) + 24px + env(safe-area-inset-top, 0px)) 0 48px;
  }
  .auth-card{ padding: 28px 20px; }
  .acct,
  .cart-page,
  .checkout-page{
    padding: calc(var(--nav-h, 76px) + 16px + env(safe-area-inset-top, 0px)) 0 48px;
  }
  .acct-panel-head,
  .acct-panel-body{ padding-left: 16px; padding-right: 16px; }
  .acct-panel-head{ padding-top: 18px; padding-bottom: 16px; }
  .acct-panel-body{ padding-bottom: 20px; }
  .acct-user-card{ padding-left: 4px; }
  .acct-order-card__items li{
    grid-template-columns: 48px 1fr auto;
  }
  .acct-order-card__items img{ width: 48px; height: 48px; }
  .acct-order-card__actions{
    flex-wrap: wrap;
  }

  .checkout-progress{
    flex-direction: row;
    overflow: hidden;
  }
  .checkout-progress__step{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #eee9e0;
    border-bottom: 0;
  }
  .checkout-progress__step:last-child{ border-right: 0; }
  .checkout-progress__label{ font-size: 11px; line-height: 1.2; }
  .checkout-panel{ padding: 18px 16px; }
  .checkout-summary,
  .cart-summary{
    position: static;
    margin-top: 4px;
  }

  .cart-page__head .btn{ width: 100%; justify-content: center; }
  .baya-modal{ padding: 12px; align-items: flex-end; }
  .baya-modal__dialog,
  .baya-modal__dialog--wide,
  .baya-modal__dialog--sm{
    width: 100%;
    max-height: min(88vh, 100%);
    border-radius: 14px 14px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .footer{ padding-bottom: env(safe-area-inset-bottom, 0px); }
  .cart-drawer{
    width: 100vw;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .admin-sidebar-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(30, 24, 16, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .admin-sidebar.is-open ~ .admin-sidebar-backdrop{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .admin-sidebar{ z-index: 50; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .admin-topbar{
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-topbar__titles{
    flex: 1 1 0;
    min-width: 0;
  }
  .admin-topbar__user{
    margin-left: 0;
    flex: 1 0 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .commerce-settings__row{ grid-template-columns: 1fr; }
}

@media (max-width: 576px){
  .hero-features{ padding-inline: 0; }
  .hero-features__card{ border-radius: 0; }
  .section{ padding-block: 52px; }
  .section-title{ font-size: 24px; }

  .product-grid,
  .shop-layout .product-grid,
  .pdp-related .product-grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-grid .product-card{
    flex-direction: row;
    align-items: stretch;
  }
  .product-grid .product-media{
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: 10px 0 10px 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .product-grid .product-media .art-frame img{
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1.05);
  }
  .product-grid .product-card:hover .product-media .art-frame img{
    transform: translate(-50%, -50%) scale(1.08);
  }
  .product-grid .product-body{
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 10px 10px;
    display: flex;
    flex-direction: column;
  }
  .product-grid .product-title-link h3,
  .product-grid .product-body h3{
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .product-grid .product-weight{
    font-size: 11px;
    margin-top: 2px;
  }
  .product-grid .product-price{
    font-size: 14px;
    margin-top: 4px;
  }
  .product-grid .product-reviews{
    font-size: 11px;
    margin-top: 2px;
  }
  .product-grid .product-actions{
    padding-top: 8px;
    margin-top: auto;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }
  .product-grid .product-actions .qty-stepper{
    width: 100%;
    flex: none;
    height: 36px;
  }
  .product-grid .product-actions .add-cart-btn{
    width: 100%;
    flex: none;
    height: 36px;
    font-size: 11px;
    letter-spacing: .06em;
    padding: 0 10px;
  }
  .product-grid .product-badge{
    top: 4px;
    left: 4px;
    height: 18px;
    font-size: 7px;
    padding: 0 5px;
    letter-spacing: .06em;
  }
  .product-grid .wishlist-btn{
    width: 26px;
    height: 26px;
    top: 4px;
    right: 4px;
  }
  .product-grid .wishlist-btn svg{
    width: 13px;
    height: 13px;
  }

  .product-badge{
    height: 24px;
    font-size: 9px;
    padding: 0 8px;
    top: 8px;
    left: 8px;
  }
  .wishlist-btn{
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }
  .product-title-link h3{ font-size: 13px; }
  .product-price{ font-size: 14px; margin-top: 6px; }
  .product-reviews{ font-size: 11px; }

  .trust-strip{ gap: 0; }
  .trust-item{ padding: 16px 12px; }

  .footer-grid{ gap: 8px; }
  .footer-brand__logo{ width: 88px; height: auto; }

  .acct-metrics,
  .acct-quick-links{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .acct-info-item{ grid-template-columns: 1fr; gap: 4px; }

  .checkout-progress__label{
    font-size: 10px;
    letter-spacing: 0;
  }

  .admin-stat-grid,
  .admin-chart-grid{ grid-template-columns: 1fr; }
  .admin-topbar h1{ font-size: 1.25rem; }
  .admin-card{ padding: 14px; }
}

@media (max-width: 375px){
  .brand--logo-img img{
    max-height: 44px;
    max-width: 96px;
  }
  .shop-layout .product-grid,
  .pdp-related .product-grid,
  .product-grid{
    gap: 8px;
  }
  .product-grid .product-media,
  .shop-layout .product-media{
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    margin: 8px 0 8px 8px;
  }
  .product-grid .product-title-link h3,
  .product-grid .product-body h3{
    font-size: 13px;
  }
  .hero-title{ font-size: 26px; }
}

/* =========================================================
   Mobile layout — keep copy on cream, photos in their own band.
   Menu stays tappable. Desktop (≥769px) is unchanged.
   ========================================================= */
@media (max-width: 768px){
  html, body{
    overflow-x: hidden;
    overflow-x: clip;
  }
  html.nav-open,
  html.nav-open body,
  body.nav-open{
    overflow: hidden;
  }

  .navbar{
    z-index: 1200;
    overflow: visible;
    background: rgba(247, 244, 238, .96);
  }
  .page-home .navbar--home:not(.is-scrolled),
  .page-wholesale .navbar--wholesale:not(.is-scrolled),
  .page-about .navbar--about:not(.is-scrolled),
  .page-contact .navbar--contact:not(.is-scrolled){
    background: rgba(247, 244, 238, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .navbar .container{
    min-width: 0;
    overflow: visible;
  }
  .brand{
    min-width: 0;
    flex: 0 1 auto;
  }
  .nav-actions{
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  .nav-toggle{
    display: flex !important;
    position: relative;
    z-index: 1210;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-overlay{
    z-index: 1100;
    pointer-events: none;
  }
  .menu-overlay.is-open{
    pointer-events: auto;
  }
  .mobile-menu{
    z-index: 1150;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .mobile-menu.is-open{
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  /* ----- Heroes: headline first, photo below ----- */
  .page-home .hero-home,
  .page-wholesale .hero-wholesale,
  .page-about .hero-about{
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .page-home .hero-home::before,
  .page-wholesale .hero-wholesale::before,
  .page-about .hero-about::before{
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    height: min(58vw, 300px);
    flex: 0 0 auto;
    order: 2;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home-hero-shade,
  .wholesale-hero-shade,
  .about-hero-shade{
    display: none;
  }
  .hero-home-main,
  .hero-wholesale-main,
  .hero-about-main{
    order: 1;
    flex: 0 0 auto;
    align-items: flex-start;
    background: #F7F4EE;
    z-index: 1;
    padding: calc(88px + env(safe-area-inset-top, 0px)) 0 24px;
  }
  .hero-home .container,
  .hero-wholesale .container,
  .hero-about .container{
    grid-template-columns: 1fr;
  }
  .hero-copy{
    max-width: 100%;
  }
  .hero-title,
  .page-home .hero-title,
  .page-home .hero-title .hero-title-accent,
  .hero-title em,
  .contact-info__title,
  .split-copy h2 .keep-line{
    white-space: normal;
  }
  .hero-actions{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }
  .hero-actions .btn{
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* ----- Story / promise / contact: copy then photo ----- */
  .about-story,
  .wholesale-story,
  .promise-section,
  .contact-section{
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .about-story::before,
  .wholesale-story::before,
  .promise-section::before{
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: min(50vw, 230px);
    flex: 0 0 auto;
    order: 2;
    z-index: 0;
    opacity: 1;
    background-size: cover;
    background-position: center;
  }
  .about-story::after,
  .wholesale-story::after,
  .promise-section::after,
  .contact-section::after{
    display: none;
  }
  .about-story .container,
  .wholesale-story .container,
  .promise-section .container{
    order: 1;
    background: #F7F4EE;
    z-index: 1;
    width: 100%;
    padding-bottom: 24px;
  }
  .promise-section__media{
    display: none;
  }
  .promise-section{
    padding-top: 36px;
    padding-bottom: 0;
  }
  .contact-section{
    padding: calc(88px + env(safe-area-inset-top, 0px)) 0 0;
  }
  .contact-section__media{
    position: relative;
    inset: auto;
    order: 2;
    height: min(48vw, 240px);
    width: 100%;
  }
  .contact-section__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .contact-section .container{
    order: 1;
    background: #FAF8F4;
    z-index: 1;
    width: 100%;
    padding-bottom: 24px;
  }
  .about-story,
  .wholesale-story{
    padding: 48px 0 0;
  }
  .about-story__copy,
  .wholesale-story__copy,
  .split-copy{
    max-width: 100%;
  }
  .about-story__title,
  .wholesale-story__title{
    font-size: clamp(24px, 6.4vw, 32px);
  }

  .category-card{
    aspect-ratio: 16 / 9;
    min-height: 168px;
    background-size: cover;
    background-position: right center;
  }
  .category-card__body{
    width: min(64%, 240px);
    padding: 20px 18px;
    background: linear-gradient(90deg, rgba(247,244,238,.92) 0%, rgba(247,244,238,.55) 70%, transparent 100%);
  }

  .hero-features .features--hero .feature-card{
    min-width: 0;
    align-items: flex-start;
  }
  .hero-features .features--hero .feature-card h3,
  .hero-features .features--hero .feature-card p{
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px){
  .page-home .hero-home::before,
  .page-wholesale .hero-wholesale::before,
  .page-about .hero-about::before,
  .about-story::before,
  .wholesale-story::before,
  .promise-section::before,
  .contact-section__media{
    height: min(58vw, 220px);
  }
  .category-card{
    aspect-ratio: 1.7 / 1;
  }
  .category-card__body h3{ font-size: 18px; }
  .category-card__sub{ font-size: 13px; margin-bottom: 14px; }
}

/* =========================================================
   Mobile shop — filter toolbar + product actions (no overflow)
   Desktop/tablet (≥769px) unchanged.
   ========================================================= */
@media (max-width: 768px){
  .shop-toolbar{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 10px;
  }
  .shop-toolbar__search{
    flex: none;
    width: 100%;
  }
  .shop-toolbar__label{
    margin-bottom: 6px;
  }
  .shop-toolbar__search input{
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .shop-toolbar__meta{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #faf8f4;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 8px;
    box-sizing: border-box;
  }
  .shop-toolbar__label--inline{
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #b8923a;
  }
  .shop-toolbar__meta select{
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 12px 36px 12px 14px;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
  }
  .shop-result-count{
    grid-column: 1;
    text-align: center;
    font-size: 12px;
    color: #6b635a;
    padding-top: 10px;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,.08);
  }

  /* qty stepper button sizing on mobile */
  .shop-layout .product-actions .qty-stepper button,
  .product-grid .product-actions .qty-stepper button{
    width: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    font-size: 16px;
    line-height: 1;
  }
  .shop-layout .product-actions .qty-stepper input,
  .product-grid .product-actions .qty-stepper input{
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font-size: 14px;
    font-weight: 700;
    color: #2b241c;
    -webkit-text-fill-color: #2b241c;
  }
}

/* =========================================================
   Final mobile cleanup — shop filters + footer
   ========================================================= */
@media (max-width: 768px){
  /* Cleaner mobile filter panel */
  .shop-toolbar{
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    gap: 12px;
  }
  .shop-toolbar__search{
    width: 100%;
  }
  .shop-toolbar__search input{
    width: 100%;
    max-width: none;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #faf8f4;
  }
  .shop-toolbar__meta{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: #f8f3ea;
    border: 1px solid rgba(184,146,58,.18);
    border-radius: 10px;
  }
  .shop-toolbar__label--inline{
    margin: 2px 0 4px;
    color: #8f6a1c;
  }
  .shop-toolbar__meta select{
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background-color: #fff;
  }
  .shop-result-count{
    text-align: left;
    padding-top: 8px;
    border-top: none;
    font-size: 12px;
    color: #6b635a;
  }

  /* Footer: remove extra separator lines on mobile */
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-col,
  .footer-col:nth-child(odd){
    border-left: none;
    border-top: none;
    padding: 0;
  }
  .footer-col + .footer-col{
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .footer-brand{
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding-bottom: 10px;
    margin-bottom: 2px;
  }
}
