/* ============================================================
   SPACENK - Responsive Stylesheet
   Breakpoints: 1200px, 992px, 768px, 576px
   ============================================================ */

/* ============================================================
   LARGE DESKTOP (1200px - 1440px): Minor adjustments
   ============================================================ */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .carousel-track .product-card {
    min-width: calc(33.333% - 16px);
  }

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

/* ============================================================
   TABLET / SMALL DESKTOP (992px - 1199px)
   ============================================================ */
@media (max-width: 992px) {
  /* Nav */
  .nav-links,
  .nav-hamburger + .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

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

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

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

  /* Lookbook */
  .lookbook-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .lookbook-card-main {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 300px;
  }

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

  .reviews-grid .review-card:nth-child(3) {
    display: none;
  }

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

  /* Category */
  .category-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    display: none;
  }

  .filter-sidebar.mobile-open {
    display: block;
  }

  /* About */
  .about-hero-grid {
    gap: 40px;
  }

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

  .value-card {
    padding: 28px;
  }

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

  .craft-row {
    gap: 40px;
  }

  /* Contact */
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .cart-summary {
    position: static;
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  /* Collections */
  .collections-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Section padding */
  .section {
    padding: 48px 0;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}

/* ============================================================
   TABLET PORTRAIT (768px - 991px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: 70vh;
    min-height: 480px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

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

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

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

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  /* Carousel */
  .carousel-track .product-card {
    min-width: calc(50% - 12px);
  }

  /* Lookbook */
  .lookbook-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lookbook-card-main {
    grid-column: span 1;
    min-height: 300px;
  }

  /* Product Detail */
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* About */
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-img {
    display: none;
  }

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

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

  .team-grid .team-card:nth-child(3) {
    grid-column: span 2;
    max-width: 280px;
    margin: 0 auto;
  }

  .craft-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .craft-row.reverse {
    direction: ltr;
  }

  /* Contact */
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

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

  /* About sections */
  .mission-quote {
    font-size: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Checkout progress */
  .checkout-step-label {
    display: none;
  }

  .checkout-step.active .checkout-step-label {
    display: block;
  }

  /* Form rows */
  .form-row {
    grid-template-columns: 1fr;
  }

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
}

/* ============================================================
   MOBILE (576px - 767px)
   ============================================================ */
@media (max-width: 576px) {
  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Section spacing */
  .section {
    padding: 32px 0;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

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

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

  /* Product card adjustments on mobile */
  .product-card-body {
    padding: 12px;
  }

  .product-add-btn {
    opacity: 1;
    transform: none;
  }

  /* Carousel */
  .carousel-track .product-card {
    min-width: calc(100% - 0px);
  }

  .carousel-btn-prev {
    left: 4px;
  }

  .carousel-btn-next {
    right: 4px;
  }

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

  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid .review-card:nth-child(2),
  .reviews-grid .review-card:nth-child(3) {
    display: none;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  /* Category hero */
  .cat-hero {
    height: 200px;
  }

  .cat-hero-content h1 {
    font-size: 1.75rem;
  }

  .cat-hero-content .desc {
    display: none;
  }

  /* Cart */
  .cart-item-card {
    flex-direction: column;
    padding: 16px;
  }

  .cart-item-img {
    width: 100%;
    height: 200px;
  }

  .cart-item-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Filter bar */
  .filter-bar-inner {
    flex-wrap: wrap;
  }

  /* Collections */
  .collections-grid {
    grid-template-columns: 1fr;
  }

  /* Contact methods */
  .contact-methods-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card:nth-child(3) {
    grid-column: span 1;
    max-width: none;
    margin: 0;
  }

  /* About hero */
  .craft-row {
    grid-template-columns: 1fr;
  }

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  /* Cookie banner */
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  /* Checkout summary */
  .checkout-summary {
    order: -1;
  }

  /* Section headers */
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Order confirmation */
  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }

  /* Payment */
  .payment-tabs {
    flex-wrap: wrap;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ============================================================
   EXTRA SMALL (below 400px)
   ============================================================ */
@media (max-width: 400px) {
  .nav-main {
    padding: 0 12px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .cart-item-img {
    height: 160px;
  }

  .checkout-step-line {
    width: 32px;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .announcement-bar,
  .newsletter-strip,
  .cookie-banner,
  .mobile-nav-overlay,
  .search-overlay,
  .carousel-btn,
  .cart-summary,
  .hero-scroll,
  footer {
    display: none !important;
  }

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

  a {
    color: #000;
    text-decoration: underline;
  }
}
