/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1100px)
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .col-grid    { grid-template-columns: repeat(2, 1fr); }
  .pgrid       { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tgrid       { grid-template-columns: 1fr 1fr; }
  .fg          { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hl-grid     { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }

  .story-grid  { grid-template-columns: 1fr; gap: 44px; }
  .story-imgw  { max-width: 500px; }

  .shop-layout { grid-template-columns: 232px 1fr; gap: 30px; }

  .pd-layout  { gap: 40px; }

  /* Info pages tablet */
  .ret-steps    { grid-template-columns: 1fr 1fr; gap: 16px; }
  .auth-checks  { grid-template-columns: 1fr 1fr; }
  .sg-two-col   { gap: 28px; }

  /* About page tablet */
  .ab-values-grid  { grid-template-columns: 1fr 1fr; }
  .ab-process-steps { grid-template-columns: repeat(3, 1fr); }
  .ab-cert-grid    { grid-template-columns: repeat(2, 1fr); }
  .ab-stat-row     { grid-template-columns: repeat(4, 1fr); }

  /* Homepage tablet */
  .h2-hero        { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .h2-about-grid  { grid-template-columns: 1fr; gap: 24px; }
  .h2-col-grid    { grid-template-columns: repeat(2, 1fr); }
  .h2-collections,
  .h2-best,
  .h2-about       { padding: 48px 24px; }
  .h2-nl          { padding: 32px 24px; }
}


/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header */
  header nav     { display: none; }
  header         { padding: 0 4%; }
  #user-menu-wrap { display: none; }
  .h-icons       { gap: 0; }

  /* Ham button — same size as .hico so they stay on one baseline */
  .ham {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
  }

  /* Trust bar */
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item  { border-right: none; border-bottom: 1px solid var(--border-lt); padding: 14px 18px; }

  /* Highlights */
  .hl-grid { grid-template-columns: 1fr; }

  /* Hero glass */
  .hero-glass { padding: 44px 32px; }

  /* Grids */
  .pgrid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .col-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tgrid    { grid-template-columns: 1fr; }

  /* Story */
  .story-feats { grid-template-columns: 1fr; }

  /* Footer */
  .fg { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f-brand { grid-column: 1 / -1; }
  .f-bottom { flex-direction: column; text-align: center; }
  .f-pays   { justify-content: center; }
  .f-logo img { height: 52px; }
  .f-top-bar { margin-bottom: 40px; }

  /* Newsletter */
  .nl-form { flex-direction: column; border: none; gap: 10px; box-shadow: none; border-radius: 0; }
  .nl-inp  { border: 1.5px solid rgba(222,133,150,.28); border-radius: 50px; background: #fff; padding: 15px 22px; }
  .nl-btn  { border-radius: 50px; }

  /* Section */
  .sec { padding: 68px 4%; }

  /* Product card — always show overlay on mobile */
  .pcard-overlay { opacity: 1 !important; }
  .pcard-qview   { transform: translateY(0) !important; opacity: 1 !important; }
  .padd          { transform: translateY(0) !important; opacity: 1 !important; }

  /* ── Shop page ── */
  .shop-page   { padding: 28px 4% 60px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-header { margin-bottom: 24px; padding-bottom: 20px; }

  /* Sidebar → fixed bottom drawer on mobile */
  .shop-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 260;
    border-radius: 20px 20px 0 0;
    max-height: 82vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.16);
    padding-bottom: 24px;
  }

  .shop-sidebar.mob-open { transform: translateY(0); }

  /* Sidebar mobile header */
  .sidebar-mob-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border-lt);
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    font-family: 'Playfair Display', serif;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
  }

  .sidebar-mob-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: all .2s;
    background: var(--white);
  }

  .sidebar-mob-close:hover { border-color: var(--gold); color: var(--gold-dk); }

  /* Mobile filter button (Filters + sliders icon) */
  .shop-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
  }

  .shop-filter-btn:hover { border-color: var(--gold); color: var(--gold-dk); }
  .shop-filter-btn i { font-size: 12px; color: var(--gold); }

  /* Mobile apply button */
  .shop-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 44px);
    margin: 14px 22px 0;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(222,133,150,.3);
  }

  /* Toolbar: filter btn left, sort right */
  .shop-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .prod-count { flex: 1; min-width: 0; }

  /* ── Product cards on mobile ── */
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .pcard-body { padding: 10px 11px 12px; }

  .pname  { font-size: 13px; margin-bottom: 7px; }
  .pp-now { font-size: 13px; }
  .pp-was { font-size: 10px; }
  .pp-off { font-size: 8.5px; padding: 2px 7px; }

  .pcard-foot { padding-top: 7px; }
  .psold-tag  { display: none; }

  /* Hide Quick View on mobile — just show Add to Cart */
  .pcard-qview { display: none !important; }

  /* ── Logo size on mobile ── */
  .logo img     { height: 92px; }
  .mob-logo img { height: 42px; }

  /* ── Checkout modal → bottom sheet on mobile ── */
  #checkout-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .co-modal-box {
    border-radius: 16px 16px 0 0 !important;
    max-height: 93vh !important;
    margin: 0 !important;
  }

  /* Product Detail */
  .pd-layout   { grid-template-columns: 1fr; gap: 28px; }
  .pd-delivery { grid-template-columns: repeat(3, 1fr); }
  .pd-page     { padding-top: 20px; }

  /* Image slider: remove sticky, always show arrows & dots on mobile */
  .pd-img-stack { position: static; }
  .pd-sl-arrow  { opacity: 1 !important; }

  /* Thumbnail strip smaller on mobile */
  .pd-thumb-item { min-width: 54px; height: 84px; }

  /* Cart Sidebar */
  .cart-sidebar { width: 100%; }

  /* Search */
  .search-overlay { padding-top: 48px; }
  .search-input   { font-size: 16px; }

  /* ── Info / Support Pages ── */
  .track-wrap      { grid-template-columns: 1fr; }
  .ret-steps       { grid-template-columns: 1fr 1fr; }
  .ret-two-col     { grid-template-columns: 1fr; }
  .ship-cards      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .contact-fields  { grid-template-columns: 1fr; }
  .sg-two-col      { grid-template-columns: 1fr; }
  .auth-cards      { grid-template-columns: 1fr; }
  .auth-verify-grid { grid-template-columns: 1fr; }
  .auth-checks     { grid-template-columns: 1fr 1fr; }
  .info-cta-strip  { flex-direction: column; align-items: flex-start; }
  .trk-step-lbl    { font-size: 9px; }

  /* ── About Page ── */
  .ab-story-grid   { grid-template-columns: 1fr; gap: 56px; }
  .ab-story-imgcol { max-width: 480px; margin: 0 auto; }
  .ab-story-img-float { bottom: -20px; right: -14px; width: 42%; }
  .ab-stat-row     { grid-template-columns: repeat(2, 1fr); }
  .ab-mv-grid      { grid-template-columns: 1fr; }
  .ab-values-grid  { grid-template-columns: 1fr 1fr; }
  .ab-process-steps { grid-template-columns: 1fr; gap: 32px; }
  .ab-step-line    { display: none; }
  .ab-team-grid    { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ab-cert-grid    { grid-template-columns: 1fr 1fr; }
  .ab-cta-btns     { flex-direction: column; align-items: center; }
  .ab-story-sec    { padding: 64px 5%; }
}


/* ══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
  .pgrid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .col-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcard-body { padding: 9px 10px 11px; }
  .pname  { font-size: 12.5px; }
  .pp-now { font-size: 13px; }
  .pstars { font-size: 9.5px; }

  .hero h1 { font-size: 36px; }
  .hero-btns, .h2-hero-btns { flex-direction: column; align-items: center; }
  .btn-gold, .btn-outline { width: 100%; text-align: center; }

  .toast { right: 10px; left: 10px; max-width: none; bottom: 14px; }

  .product-thumbs .thumb { width: 58px; height: 58px; }

  .product-price { font-size: 24px; }

  .tab-btn { padding: 11px 13px; font-size: 11px; }

  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sort-select  { width: 100%; }

  .hl-item     { padding: 36px 24px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-glass  { padding: 36px 20px; }
  .tcard       { padding: 24px 20px; }

  /* Product detail */
  .pd-delivery { grid-template-columns: 1fr 1fr; }
  .pd-sections .pd-section-hd { padding: 13px 14px; }
  .pd-section.open .pd-section-bd { padding: 12px 14px 16px; }

  /* Checkout form single column on small phones */
  .co-form-grid { grid-template-columns: 1fr !important; }

  /* About page small mobile */
  .ab-values-grid { grid-template-columns: 1fr; }
  .ab-cert-grid   { grid-template-columns: 1fr; }
  .ab-stat-row    { grid-template-columns: repeat(2, 1fr); }

  /* Footer small mobile */
  .fg { grid-template-columns: 1fr; }
  .f-brand { grid-column: 1; }
  .f-pays { gap: 6px; }
  .fpay { font-size: 10px; padding: 4px 9px; }

  /* Extra bottom padding so content doesn't hide behind bottom nav */
  #app    { padding-bottom: 72px; }
  footer  { margin-bottom: 64px; }
}


/* ══════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
══════════════════════════════════════ */
.mob-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mob-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 500;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(100,60,20,.08);
  }

  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    background: none;
    border: none;
    color: var(--gray-lt);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
  }
  .mbn-item i { font-size: 19px; line-height: 1; }
  .mbn-item:active { color: var(--gold-dk); }
  .mbn-item.mbn-active { color: var(--gold-dk); }
  .mbn-item.mbn-active i { color: var(--gold-dk); }

  /* Badge */
  .mbn-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }
  .mbn-wish-badge {
    background: #e5445a;
    right: calc(50% - 18px);
  }

  /* Profile avatar in bottom nav */
  .mbn-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: var(--gold-dk);
    line-height: 1;
    transition: all .15s;
  }
  .mbn-item.mbn-active .mbn-avatar {
    background: var(--gold-pale);
    border-color: var(--gold);
  }
}


/* ══════════════════════════════════════
   PROFILE PAGE — MOBILE RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .profile-hero { padding: 28px 16px 0; }

  .profile-hero-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 28px;
  }
  .profile-avatar-lg {
    width: 60px; height: 60px;
    font-size: 22px;
  }
  .profile-hero-info { flex: 1; min-width: 0; }
  .profile-name  { font-size: 20px; }
  .profile-email { font-size: 12px; }
  .profile-edit-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    order: 3;
  }

  /* Tabs — icons only on very small, show label on 400+ */
  .profile-tabs { padding: 0 8px; gap: 0; }
  .ptab {
    padding: 13px 10px;
    font-size: 11px;
    gap: 5px;
    flex: 1;
    justify-content: center;
  }
  .ptab i { font-size: 15px; }

  @media (max-width: 380px) {
    .ptab span { display: none; }
    .ptab { padding: 14px 8px; }
    .ptab i { font-size: 18px; }
  }

  .profile-tab-content { padding: 16px 12px 80px; }

  /* Stats — 2 columns on mobile, last one full width */
  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-stats .pstat:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* Account form — single column */
  .profile-section [style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  /* Quick links full width */
  .pql-btn { padding: 15px 16px; }

  /* Order cards */
  .order-card { border-radius: 12px; }

  /* Homepage mobile */
  .h2-hero-title  { font-size: 36px; }
  .h2-topbar      { gap: 16px; font-size: 10px; padding: 8px 12px; }
  .h2-nl          { flex-direction: column; align-items: stretch; text-align: center; }
  .h2-nl-form,
  .h2-nl-form input { width: 100%; }
}
