/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root {
    --gutter: 32px;
  }

  .main-nav {
    gap: 22px;
    margin-left: 12px;
  }

  .pdp__grid {
    grid-template-columns: 1fr 440px;
    gap: 40px;
  }

  .philosophy__grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__inner {
    min-height: 620px;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero__art {
    left: 50%;
  }

  .hero__stamp {
    display: none;
  }

  .hero__stats {
    gap: 48px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bundle__grid {
    grid-template-columns: 1fr;
  }

  .bundle__items {
    grid-column: span 1;
  }

  .bundle__summary {
    text-align: left;
  }

  .bundle__total {
    justify-content: flex-start;
  }

  .bundle__summary .btn {
    min-width: 0;
    width: 100%;
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
  }

  .heritage__grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    height: 420px;
  }

  .reviews__summary {
    grid-template-columns: 1fr;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .bulk-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdp__grid {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    gap: 16px;
  }

  .listing {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px 20px;
  }

  .filters h4 {
    margin-top: 0;
  }

  .listing .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .account {
    grid-template-columns: 1fr;
  }

  .account__nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .account__nav form {
    border: 0;
    padding: 0;
    margin: 0;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth__art {
    display: none;
  }

  .search-suggest {
    grid-template-columns: 1fr 1fr;
  }

  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 68px;
  }

  .hero__art::before {
    background: linear-gradient(180deg, rgba(230, 232, 219, .7) 0%, rgba(230, 232, 219, 0) 100%);
  }

  body {
    font-size: 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__tag {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head h2,
  .philosophy__head h2,
  .heritage h2,
  .page-head h1 {
    font-size: 30px;
  }

  .section-head .lead,
  .philosophy__head p {
    text-align: left;
  }

  .philosophy__head {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: 0;
    padding: 48px var(--gutter) 140px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__art {
    position: relative;
    height: 260px;
    margin: 28px calc(var(--gutter) * -1) -120px;
    order: 2;
  }

  .hero__dots {
    bottom: 96px;
  }

  .hero__arrow {
    display: none;
  }

  .hero__art img {
    object-position: 70% center;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__content {
    max-width: none;
  }

  .hero__stats {
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .feature-strip.is-overlap {
    margin-top: -80px;
  }

  .feature-strip__grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .listing .grid-4 {
    grid-template-columns: 1fr;
  }

  .cat-tabs {
    gap: 14px;
  }

  .bundle {
    padding: 24px 18px;
  }

  .bundle__items {
    flex-direction: column;
    align-items: stretch;
  }

  .bundle__plus {
    align-self: center;
  }

  .ph-card,
  .ph-card--row {
    padding: 22px;
    grid-template-columns: 1fr;
  }

  .heritage__stats {
    flex-direction: column;
  }

  .stat-box {
    min-width: 0;
  }

  .masonry {
    height: 320px;
    padding: 0;
  }

  .review-bars {
    padding: 24px 18px;
  }

  .bulk-cta {
    padding: 28px 22px;
  }

  .bulk-cta__actions {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdp {
    padding: 24px 0;
  }

  .pdp h1 {
    font-size: 32px;
  }

  .variants {
    grid-template-columns: 1fr 1fr;
  }

  .pdp__buy2 {
    grid-template-columns: 110px 1fr;
  }

  .pdp__buy2 .btn-icon {
    grid-column: span 2;
  }

  .tabs__nav button {
    margin-right: 28px;
    font-size: 16px;
  }

  .cart-row {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .cart-row img {
    width: 72px;
    height: 72px;
  }

  .cart-row .qty {
    grid-column: 2;
    width: 128px;
  }

  .cart-row .line {
    grid-column: 2;
    text-align: left;
  }

  .cart-row .remove {
    position: absolute;
    right: 12px;
    top: 14px;
  }

  .cart-row {
    position: relative;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: span 1;
  }

  .stat-tiles {
    grid-template-columns: 1fr;
  }

  .tracker {
    grid-template-columns: repeat(5, 1fr);
    font-size: 10px;
  }

  .tracker__step {
    font-size: 10px;
  }

  .flash {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .search-suggest {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .panel {
    padding: 20px;
  }

  .auth__form {
    padding: 32px 16px;
  }
}


/* =====================================================================
   Responsive overflow fixes (mobile / tablet)
   ===================================================================== */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero__art {
    left: 45%;
  }

  .hero__art::before {
    background: linear-gradient(90deg, rgba(230, 232, 219, .9) 0%, rgba(230, 232, 219, .4) 30%, rgba(230, 232, 219, 0) 60%);
  }

  .hero__content {
    max-width: 480px;
  }

  .hero__dots {
    bottom: 100px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand__name {
    font-size: 15px;
    white-space: nowrap;
  }

  .header-actions {
    gap: 0;
    flex: none;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .currency-switch select {
    height: 30px;
    padding: 0 20px 0 6px;
    background-position: right 4px center;
    font-size: 11px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .icon-btn--user {
    width: 30px;
    height: 30px;
    margin-left: 2px;
  }

  .badge-count {
    right: -2px;
  }

  .hero__art {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    width: calc(100% + var(--gutter) * 2);
    height: 260px;
    margin: 28px calc(var(--gutter) * -1) -120px;
    order: 2;
  }

  .hero__art::before {
    background: linear-gradient(180deg, rgba(230, 232, 219, .7) 0%, rgba(230, 232, 219, 0) 100%);
  }

  .flash {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }

  .gallery__thumbs {
    gap: 10px;
  }

  .filters,
  .listing__toolbar,
  .cart-table,
  .panel,
  .summary {
    max-width: 100%;
    min-width: 0;
  }

  .listing__toolbar form {
    max-width: 100%;
  }

  .tabs__nav {
    overflow-x: auto;
  }
}

@media (max-width: 1024px) {
  .pdp__grid > *,
  .listing > *,
  .cart-layout > *,
  .contact-grid > *,
  .account > * {
    min-width: 0;
  }

  .gallery,
  .buybox {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    gap: 4px;
  }

  .brand > span {
    min-width: 0;
    overflow: hidden;
  }

  .brand__name {
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__art {
    width: auto;
  }

  .tabs {
    max-width: 100%;
  }

  .tabs__nav button {
    margin-right: 24px;
  }

  .filters form {
    flex-wrap: wrap;
  }
}

.brand__tag {
  display: block;
}

@media (max-width: 640px) {
  .brand__tag {
    display: none;
  }

  .listing .grid-4,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.product-card,
.story,
.review-card {
  min-width: 0;
}

@media (max-width: 1024px) {
  .grid-4,
  .feature-strip__grid,
  .listing .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .listing .grid-4,
  .feature-strip__grid,
  .review-cards,
  .reviews__summary,
  .stat-tiles,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tabs__nav {
    gap: 4px;
  }

  .tabs__nav button {
    margin-right: 0;
    padding: 8px 10px 12px;
    font-size: 14px;
    flex: 1 1 auto;
    text-align: center;
  }

  .tabs__nav button.is-active::after {
    right: 0;
  }
}

@media (max-width: 640px) {
  .icon-btn { width: 32px; height: 32px; }
  .header-actions .icon-btn--user { width: 30px; height: 30px; }
}
