/* ═══════════════════════════════════════════════════════════════
   GLEEZI — responsive.css
   Mobile-First Responsive Breakpoints
   Version: 1.0 · 2026
═══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════
   TABLET LANDSCAPE — max 1024px
════════════════════════════════════ */

@media (max-width: 1024px) {

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

  /* Editorial Grid: 2 Spalten */
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Kategorie Grid: 2 Spalten */
  .kategorie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero */
  .hero-content {
    max-width: 60%;
  }

  /* Brand Story: Stack */
  .brand-story {
    grid-template-columns: 1fr;
  }

  .brand-story-content {
    padding: var(--space-12) var(--space-10);
  }

  /* Footer Grid: 2x2 */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  /* UGC: 4 Spalten */
  .ugc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Contact */
  .contact-grid {
    gap: var(--space-10);
  }

  /* Values */
  .values-grid {
    gap: var(--space-6);
  }

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

  /* Product Page */
  .product-layout {
    gap: var(--space-8);
  }
}

/* ════════════════════════════════════
   TABLET PORTRAIT — max 768px
════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Cart Drawer: Bottom Sheet on Mobile ── */
  .cart-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cart-drawer.is-open {
    transform: translateY(0);
  }
  .cart-drawer-header {
    border-radius: 20px 20px 0 0;
  }
  /* Handle bar on top of bottom sheet */
  .cart-drawer-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 0 auto var(--space-4);
  }
  /* Express pay buttons: full width on mobile */
  .cart-express-btns {
    gap: var(--space-2);
  }
  .cart-express-btn {
    height: 52px;
    font-size: 0.95rem;
  }

  /* ── Product & Editorial Card Images ── */
  .product-card-media,
  .editorial-card-media {
    min-height: 240px;
  }

  .product-card-media img,
  .editorial-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ── Navigation ── */
  .nav-links {
    display: none;
  }

  .nav-inner {
    align-items: center;
    height: 70px !important;
  }

  /* Mobile: Hamburger links, Logo absolut zentriert, Icons rechts */
  .nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 0;
    position: relative;
    /* Safe area for iPhone notch/Dynamic Island */
    padding-inline-start: max(env(safe-area-inset-left, 0px), 0.75rem) !important;
    padding-inline-end: max(env(safe-area-inset-right, 0px), 0.75rem) !important;
  }

  /* Logo: viewport-zentriert auf allen Breakpoints (wie Desktop) */
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Mobile/Tablet: Logo Größe — responsive via clamp */
  .nav-logo img {
    height: clamp(18px, 5vw, 24px) !important;
    width: auto !important;
    max-width: 200px !important;
  }

  /* Dissolve nav-left so its children become direct flex items of nav-inner */
  .nav-left {
    display: contents;
  }

  /* nav-right: wishlist + bag */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    order: 3;
  }

  /* Push all right icons together to the right */
  .nav-search-mobile {
    display: flex !important;
    order: 1;
    margin-left: auto; /* pushes search + everything after it to the far right */
  }

  .nav-hamburger {
    display: flex;
    order: 0;
  }

  /* Mobile: hide desktop search in nav-right */
  .nav-right .nav-icon-btn[aria-label="Search"] {
    display: none;
  }

  /* Mobile: show wishlist + cart on right */
  .nav-right .nav-icon-btn[aria-label="Wishlist"],
  .nav-right .nav-icon-btn[aria-label="Shopping bag"] {
    display: flex;
  }

  /* ── USP Bar — single-item fade on mobile (no scroll animation) ── */
  .usp-bar-track {
    animation: none !important;
    -webkit-animation: none !important;
  }

  .usp-divider {
    display: none;
  }

  /* ── Hero ── */
  .hero {
    min-height: 100svh;
    justify-content: space-between;
    padding-bottom: var(--space-10);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-actions {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: auto;
    flex: 0 0 auto;
  }

  /* ── Product Grid ── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* ── Editorial Grid ── */
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* ── CTA Banner ── */
  .cta-banner {
    min-height: 55vh;
  }

  /* ── Kategorie Grid ── */
  .kategorie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* ── Brand Story ── */
  .brand-story-content {
    padding: var(--space-10) var(--space-6);
  }

  .brand-story-title {
    font-size: var(--text-2xl);
  }

  /* ── Sections ── */
  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-0);
  }

  .footer-brand {
    display: none;
  }

  .footer-col:not(.footer-brand) {
    padding: 0;
  }

  .footer-col:not(.footer-brand) .footer-links {
    display: none;
    padding-bottom: var(--space-2);
  }

  .footer-col:not(.footer-brand).is-open .footer-links {
    display: flex;
  }

  .footer-heading {
    cursor: pointer;
    margin-bottom: 0;
  }

  .footer-heading-chevron {
    transition: transform var(--transition);
  }

  .footer-col.is-open .footer-heading-chevron {
    transform: rotate(180deg);
  }

  .footer-brand {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  /* ── Product Layout ── */
  .product-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-gallery {
    position: static;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
  }

  /* ── Designed For Layout ── */
  .designed-for-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .designed-for-image {
    order: -1;
    max-height: 400px;
  }

  /* ── Product Contact Section ── */
  .product-contact-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

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

  /* ── Checkout ── */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

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

  /* ── Values ── */
  .values-grid {
    grid-template-columns: 1fr;
    padding: var(--space-12) 0;
  }

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

  /* ── Press Logos ── */
  .press-logos {
    gap: var(--space-6);
  }

  /* ── Sticky CTA — hidden on mobile ── */
  .sticky-cta {
    display: none !important;
  }

  /* ── Newsletter ── */
  .newsletter-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .newsletter-input {
    border-right: 1px solid rgba(255,255,255,0.15);
    text-align: center;
  }

  .newsletter-submit .btn {
    width: 100%;
    border-radius: var(--btn-radius);
  }
}

/* ════════════════════════════════════
   SMARTPHONE — max 480px
════════════════════════════════════ */

@media (max-width: 480px) {

  /* Container */
  .container {
    padding-inline: var(--space-4);
  }

  /* Product Gallery: volle Breite */
  .product-gallery {
    margin-inline: calc(-1 * var(--space-4));
  }

  /* Editorial Grid: 2 Spalten auf kleinen Screens */
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* CTA Banner */
  .cta-banner {
    min-height: 50vh;
  }

  .cta-banner-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    justify-content: space-between;
    padding-bottom: var(--space-12);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  /* Grids */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .kategorie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* Sections */
  .section {
    padding: var(--space-10) 0;
  }

  /* Nav */
  .nav-inner {
    height: 70px !important;
  }

  .nav-logo {
    font-size: var(--text-lg);
  }

  .nav-logo img {
    height: clamp(18px, 5vw, 22px) !important;
    width: auto !important;
    max-width: 180px !important;
  }

  /* Section Title */
  .section-title {
    font-size: var(--text-2xl);
  }

  /* Product Page */
  .product-title {
    font-size: var(--text-2xl);
  }

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

  /* Product Trust */
  .product-trust {
    gap: var(--space-4);
  }

  /* Tabs */
  .tab-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }

  /* Cart Item */
  .cart-item {
    grid-template-columns: 90px 1fr;
    gap: var(--space-4);
  }

  /* Footer */
  .footer-main {
    padding: 2rem 0;
  }

  /* Pre-footer */
  .pre-footer {
    padding: 2rem 0;
  }

  .pre-footer-title {
    font-size: var(--text-2xl);
  }

  /* Press logos */
  .press-logos {
    gap: var(--space-4);
  }

  .press-logo-item {
    font-size: var(--text-base);
  }

  /* UGC */
  .ugc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1);
  }

  /* About */
  .about-hero-title {
    font-size: var(--text-2xl);
  }

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

  /* Cookie — handled in style.css */

  /* Checkout steps */
  .checkout-steps {
    font-size: var(--text-xs);
    gap: var(--space-2);
  }

  .checkout-step span:last-child {
    display: none;
  }
}

/* ════════════════════════════════════
   VERY SMALL — max 360px
════════════════════════════════════ */

@media (max-width: 360px) {

  .product-grid {
    gap: var(--space-1);
  }

  .hero-title {
    font-size: 2rem;
  }

  .product-card-wishlist {
    display: none;
  }
}

/* ════════════════════════════════════
   LARGE SCREENS — min 1440px
════════════════════════════════════ */

@media (min-width: 1440px) {

  .hero {
    min-height: 90vh;
  }

  .ugc-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ════════════════════════════════════
   LAPTOP / DESKTOP — min 769px
   (No changes to phone view)
════════════════════════════════════ */

@media (min-width: 769px) {

  /* Footer — contained width, balanced columns */
  .footer-main .container {
    max-width: 1280px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
  }

  .footer-brand {
    padding-right: var(--space-8);
  }
}

/* ════════════════════════════════════
   PRINT
════════════════════════════════════ */

@media print {

  .site-nav,
  .usp-bar,
  .sticky-cta,
  .cookie-banner,
  .cart-drawer,
  .modal-overlay {
    display: none !important;
  }

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

  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ════════════════════════════════════
   HOVER: Touch-Device Safe
════════════════════════════════════ */

@media (hover: none) {

  .product-card-wishlist {
    opacity: 1;
  }

  .product-card-quick-add {
    display: none;
  }

  .product-card:hover .product-card-img {
    transform: none;
  }
}
