/* =============================================================================
   WORDANS — Responsive Stylesheet
   Italian Fashion E-Commerce
   Mobile-first breakpoints: 576 | 768 | 1024 | 1280
   ============================================================================= */


/* =============================================================================
   BASE MOBILE STYLES (< 576px)
   Applies to all screen sizes unless overridden
   ============================================================================= */

/* Container full-width on very small screens */
.container {
  padding: 0 16px;
}

/* Section spacing reduced on mobile */
.section {
  padding: 60px 0;
}

/* Typography adjustments for small screens */
.lead {
  font-size: 1rem;
}

/* Form rows collapse to single column on mobile */
.form-row {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Products grid: single column on mobile */
.products-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* General grids collapse on mobile */
.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Section header reduced margin */
.section-header {
  margin-bottom: 36px;
}

/* Hero mobile */
.hero {
  height: 100svh;
  min-height: 580px;
}

.hero__content {
  padding: 0 20px;
}

.hero__title {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
}

.hero__subtitle {
  font-size: 15px;
  margin-bottom: 28px;
}

.hero__actions {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__actions .btn {
  width: 100%;
  justify-content: center;
}

.hero__blob--1,
.hero__blob--2 {
  display: none;
}

.hero__trust-bar {
  flex-direction: column;
  gap: 8px;
}

.hero__trust-item {
  font-size: 12px;
  padding: 6px 14px;
}

.hero__scroll-hint {
  display: none;
}

/* Header mobile */
.header__inner {
  padding: 0 16px;
}

.header__logo {
  font-size: 22px;
}

/* Top bar adjustments */
.top-bar {
  font-size: 11px;
  gap: 10px;
  padding: 0 12px;
  text-align: center;
  flex-wrap: wrap;
  height: auto;
  min-height: 36px;
  padding: 8px 12px;
}

/* Promo banner stacks on mobile */
.promo-banner {
  grid-template-columns: 1fr;
  min-height: auto;
}

.promo-banner__image {
  min-height: 280px;
}

.promo-banner__image img {
  height: 280px;
}

.promo-banner__content {
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  padding: 40px 24px;
}

.newsletter-form {
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.newsletter-form input {
  border-radius: var(--radius-pill);
  padding: 14px 20px;
}

.newsletter-form .btn {
  border-radius: var(--radius-pill);
  width: 100%;
  justify-content: center;
}

/* Categories */
.categories-grid {
  gap: 16px;
  justify-content: center;
}

.category-card__image {
  width: 110px;
  height: 110px;
}

.category-card__name {
  font-size: 14px;
}

/* Testimonials */
.testimonials-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* New arrivals stacks on mobile */
.new-arrivals {
  grid-template-columns: 1fr;
  gap: 32px;
}

.new-arrivals__image img {
  max-height: 320px;
}

/* Lookbook grid */
.lookbook-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.lookbook__item:first-child {
  grid-row: span 1;
}

.lookbook__item img {
  min-height: 240px;
}

.lookbook__overlay {
  transform: translateY(0);
}

/* Values grid */
.grid-4.values-grid {
  grid-template-columns: 1fr;
}

/* Featured header */
.featured-header {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
}

/* Footer mobile */
.footer-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-main {
  padding: 56px 0 40px;
}

.footer-bottom__inner {
  flex-direction: column;
  text-align: center;
  gap: 16px;
}

.footer-legal-links {
  justify-content: center;
}

.site-footer {
  border-radius: 24px 24px 0 0;
}

/* Catalog mobile */
.catalog-hero {
  padding: 40px 0 28px;
}

.catalog-layout {
  grid-template-columns: 1fr;
  gap: 24px;
}

.catalog-sidebar {
  position: static;
  display: none;
  padding: 24px 20px;
}

.catalog-sidebar.is-open {
  display: block;
}

.catalog-toolbar {
  margin-bottom: 20px;
}

/* Product detail mobile */
.product-layout {
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-gallery {
  position: static;
}

.product-gallery__main {
  aspect-ratio: 4 / 3;
}

.product-gallery__thumbs {
  gap: 8px;
}

.product-gallery__thumb {
  width: 64px;
  height: 64px;
}

.product-actions {
  flex-direction: column;
  gap: 12px;
}

.product-actions .btn--full {
  width: 100%;
}

.product-trust {
  gap: 12px;
}

/* About mobile */
.about-hero {
  padding: 72px 0 48px;
}

.about-hero p {
  font-size: 16px;
}

.story-block {
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 48px 0;
}

.story-block.reverse {
  direction: ltr;
}

.story-block__image img {
  height: 280px;
}

.stats-banner {
  margin: 0 8px;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-item__number {
  font-size: 2.4rem;
}

/* Contact mobile */
.contact-hero {
  padding: 60px 0 80px;
}

.contact-cards-grid {
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: -48px;
}

.contact-card__arrow {
  display: none;
}

.contact-form-grid {
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-map__frame {
  height: 280px;
}

.contact-map__header {
  padding: 20px 20px;
}

.contact-map-section {
  padding: 0 0 60px;
}

.contact-social__links {
  grid-template-columns: 1fr;
}

/* Legal mobile */
.legal-layout {
  grid-template-columns: 1fr;
  gap: 0;
}

.legal-toc {
  display: none;
}

/* FAQ mobile */
.faq-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.faq-tabs::-webkit-scrollbar {
  display: none;
}

.tab-panel {
  padding: 0 0;
}

.faq-content-section {
  padding: 40px 0 56px;
  max-width: 100%;
}

/* Cookie banner mobile */
.cookie-banner__inner {
  flex-direction: column;
  align-items: flex-start;
}

.cookie-banner__actions {
  width: 100%;
  flex-direction: column;
}

.cookie-banner__actions .btn {
  width: 100%;
  justify-content: center;
}

/* Toast mobile */
.toast-container {
  bottom: 16px;
  right: 16px;
  left: 16px;
}

.toast {
  max-width: 100%;
}

/* Sticky ATC mobile */
.sticky-atc {
  padding: 12px 16px;
}

.sticky-atc__inner {
  gap: 12px;
}

/* Search overlay mobile */
.search-overlay__input {
  font-size: 18px;
  padding: 16px 52px 16px 16px;
}

/* Mobile menu padding */
.mobile-menu {
  padding: 20px;
}


/* =============================================================================
   SMALL MOBILE AND UP (min-width: 576px)
   Two-column product grid, two-column footer
   ============================================================================= */

@media (min-width: 576px) {
  .container {
    padding: 0 24px;
  }

  /* Product grid: 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Other grids: 2 columns */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Form rows: restore 2 columns on 576+ */
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Hero actions: row again */
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    width: auto;
  }

  /* Categories */
  .categories-grid {
    gap: 20px;
  }

  .category-card__image {
    width: 140px;
    height: 140px;
  }

  /* Testimonials: 2 columns */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Lookbook: 2 columns */
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .lookbook__item:first-child {
    grid-row: span 1;
  }

  /* Footer: 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-bottom__inner {
    flex-direction: row;
    text-align: left;
  }

  .footer-legal-links {
    justify-content: flex-end;
  }

  /* Contact cards: 2 columns */
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats grid: 2 columns stays fine */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Values 2-col */
  .grid-4.values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =============================================================================
   TABLET AND UP (min-width: 768px)
   Two-col grids refined, promo banner stacking resolved
   ============================================================================= */

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  /* Section padding restored partially */
  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Hero */
  .hero {
    height: 85vh;
  }

  .hero__content {
    padding: 0 40px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__trust-bar {
    flex-direction: row;
    gap: 16px;
  }

  .hero__scroll-hint {
    display: flex;
  }

  /* Promo banner: 2 columns restored at 768 */
  .promo-banner {
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
  }

  .promo-banner__image {
    min-height: 460px;
  }

  .promo-banner__image img {
    height: 100%;
  }

  .promo-banner__content {
    border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
    padding: 56px 48px;
  }

  .newsletter-form {
    flex-direction: row;
    gap: 0;
    max-width: 460px;
  }

  .newsletter-form input {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding: 16px 20px;
  }

  .newsletter-form .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    width: auto;
  }

  /* Products grid: 2 columns at 768 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Grid-4: 2 columns at 768 */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Testimonials: 2 columns */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Categories */
  .category-card__image {
    width: 160px;
    height: 160px;
  }

  /* New arrivals: 2 columns */
  .new-arrivals {
    grid-template-columns: 55% 45%;
    gap: 48px;
  }

  .new-arrivals__image img {
    max-height: 480px;
  }

  /* Lookbook: 2 columns */
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .lookbook__item:first-child {
    grid-row: span 1;
  }

  /* Story block: 2 columns */
  .story-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .story-block.reverse {
    direction: rtl;
  }

  .story-block.reverse > * {
    direction: ltr;
  }

  .story-block__image img {
    height: 380px;
  }

  /* Stats: 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact grid */
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .contact-map__frame {
    height: 360px;
  }

  .contact-social__links {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card__arrow {
    display: inline-flex;
  }

  /* Product layout: 2 columns at 768 */
  .product-layout {
    grid-template-columns: 55% 45%;
    gap: 40px;
  }

  .product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
  }

  .product-gallery__main {
    aspect-ratio: 3 / 4;
  }

  /* Product actions */
  .product-actions {
    flex-direction: row;
  }

  /* About hero */
  .about-hero {
    padding: 96px 0 64px;
  }

  /* Footer grid: 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Catalog layout */
  .catalog-hero {
    padding: 56px 0 36px;
  }

  /* Legal layout still single col but more spacious */
  .legal-content-section {
    padding: 56px 0 80px;
  }

  /* Search overlay */
  .search-overlay__input {
    font-size: 22px;
    padding: 18px 60px 18px 24px;
  }

  /* Map placeholder */
  .map-placeholder {
    height: 360px;
    margin: 0 0 72px;
    border-radius: var(--radius-2xl);
  }

  /* Cookie banner */
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner__actions {
    flex-direction: row;
    width: auto;
  }

  .cookie-banner__actions .btn {
    width: auto;
  }

  /* Stats banner */
  .stats-banner {
    margin: 0 24px;
    padding: 56px 40px;
  }

  /* Toast */
  .toast-container {
    left: auto;
    right: 24px;
    bottom: 24px;
  }

  .toast {
    max-width: 320px;
  }
}


/* =============================================================================
   DESKTOP AND UP (min-width: 1024px)
   Full desktop nav, 3-col grids, sidebar visible
   ============================================================================= */

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  /* Full section padding */
  .section {
    padding: 100px 0;
  }

  .section-header {
    margin-bottom: 56px;
  }

  /* Desktop nav: visible */
  .header__nav {
    display: flex;
  }

  /* Hamburger: hidden on desktop */
  .hamburger {
    display: none;
  }

  /* Hero full height */
  .hero {
    height: 92vh;
  }

  .hero__blob--1,
  .hero__blob--2 {
    display: block;
  }

  /* Products grid: 3 columns at 1024 */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  /* Grid-4: 3 columns at 1024 */
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* Grid-3: 3 columns */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials: 3 columns */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* New arrivals: asymmetric */
  .new-arrivals {
    gap: 64px;
  }

  .new-arrivals__image img {
    max-height: 540px;
  }

  /* Categories */
  .categories-grid {
    gap: 28px;
  }

  .category-card__image {
    width: 180px;
    height: 180px;
  }

  /* Lookbook: 3 columns */
  .lookbook-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .lookbook__item:first-child {
    grid-row: span 2;
  }

  .lookbook__overlay {
    transform: translateY(100%);
  }

  /* Footer: full grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
  }

  .footer-bottom__inner {
    flex-direction: row;
  }

  /* Catalog layout: sidebar visible */
  .catalog-layout {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }

  .catalog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: block;
  }

  /* Product layout */
  .product-layout {
    grid-template-columns: 55% 45%;
    gap: 56px;
  }

  /* Sticky ATC hidden on desktop (user sees the full add-to-cart panel) */
  .sticky-atc {
    display: none;
  }

  /* Story block */
  .story-block {
    gap: 72px;
    padding: 80px 0;
  }

  .story-block__image img {
    height: 420px;
  }

  /* Stats: 4 columns */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact cards: 3 columns */
  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .contact-map__frame {
    height: 400px;
  }

  /* Legal layout: with TOC */
  .legal-layout {
    grid-template-columns: 1fr 240px;
    gap: 64px;
  }

  .legal-toc {
    display: block;
  }

  /* About hero */
  .about-hero {
    padding: 120px 0 80px;
  }

  /* Promo banner */
  .promo-banner {
    min-height: 520px;
  }

  .promo-banner__content {
    padding: 72px 64px;
  }

  /* Featured header */
  .featured-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 48px;
  }

  /* Map placeholder */
  .map-placeholder {
    height: 400px;
    margin: 0 24px 80px;
  }

  /* Values 4-col */
  .grid-4.values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* FAQ content section max-width */
  .faq-content-section {
    padding: 64px 0 80px;
    max-width: 860px;
  }

  .faq-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .tab-panel {
    padding: 0 24px;
  }
}


/* =============================================================================
   LARGE DESKTOP (min-width: 1280px)
   4-col product grid, full layout
   ============================================================================= */

@media (min-width: 1280px) {
  /* Products grid: full 4 columns */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* Hero full */
  .hero__content {
    padding: 0 40px;
  }

  /* Categories: full circles */
  .category-card__image {
    width: 200px;
    height: 200px;
  }

  /* Promo banner */
  .promo-banner__content {
    padding: 72px 72px;
  }

  /* New arrivals */
  .new-arrivals {
    gap: 64px;
  }

  .new-arrivals__image img {
    max-height: 580px;
  }

  /* About */
  .story-block__image img {
    height: 420px;
  }

  .stats-banner {
    margin: 0 24px;
  }

  /* Product gallery thumbs */
  .product-gallery__thumbs {
    gap: 12px;
  }

  .product-gallery__thumb {
    width: 80px;
    height: 80px;
  }
}


/* =============================================================================
   EXTRA LARGE SCREENS (min-width: 1440px)
   Max-width container already caps at 1280px; these are fine-tuning tweaks
   ============================================================================= */

@media (min-width: 1440px) {
  .hero__content {
    padding: 0 60px;
  }

  .promo-banner__content {
    padding: 80px 72px;
  }

  .about-hero {
    padding: 140px 0 96px;
  }
}


/* =============================================================================
   NAV BREAKPOINT: hamburger shows, desktop nav hides below 1024px
   ============================================================================= */

@media (max-width: 1023px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .catalog-filter-toggle {
    display: inline-flex;
  }

  .catalog-sidebar__close {
    display: flex;
  }

  .catalog-sidebar.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    border-radius: 0;
    overflow-y: auto;
    padding: 24px;
  }
}


/* =============================================================================
   SPECIFIC RANGE OVERRIDES
   ============================================================================= */

/* 576px – 767px: 2-col products, partial tablet layout */
@media (min-width: 576px) and (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .section {
    padding: 64px 0;
  }
}

/* 768px – 1023px: tablet, 2-col products, no sidebar */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

  .catalog-sidebar {
    position: static;
    display: none;
  }

  .catalog-sidebar.is-open {
    display: block;
  }
}

/* 1024px – 1279px: 3-col products */
@media (min-width: 1024px) and (max-width: 1279px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-banner__content {
    padding: 56px 48px;
  }
}


/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
  .site-header,
  .mobile-menu,
  .mobile-overlay,
  .search-overlay,
  .cookie-banner,
  .toast-container,
  .sticky-atc,
  .site-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

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

  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .section {
    padding: 32pt 0;
  }
}
