/* R1G Enhanced CI System - Main CSS */
/* Design System Implementation - Version 1.0 */
/* Consolidated from: styles.css, product-styles.css, image-gallery.css, archive-backup-fix.css */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;900&display=swap');


/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --r1g-red: #e74c3c;
    --r1g-black: #000000;
    --r1g-white: #ffffff;
    --r1g-gray-900: #333333;
    --r1g-gray-600: #666666;
    --r1g-gray-400: #999999;
    --r1g-gray-200: #e0e0e0;
    --r1g-gray-100: #f8f8f8;

    /* Spacing Scale (8px Grid) */
    --r1g-space-xs: 8px;
    --r1g-space-sm: 16px;
    --r1g-space-md: 24px;
    --r1g-space-lg: 40px;
    --r1g-space-xl: 60px;
    --r1g-space-xxl: 80px;

    /* Transitions */
    --r1g-transition-fast: 0.15s ease;
    --r1g-transition-standard: 0.3s ease;
    --r1g-transition-slow: 0.5s ease;
    --r1g-transition-media: 0.8s ease;

    /* Breakpoints */
    --r1g-breakpoint-sm: 576px;
    --r1g-breakpoint-md: 768px;
    --r1g-breakpoint-lg: 992px;
    --r1g-breakpoint-xl: 1200px;
}

/* ===== CORE RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* iOS 16+ Rubber-band Prevention */
html {
    overscroll-behavior-y: none;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
    color: #000;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
}

/* Global subtle background gradients */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

/* ===== STANDARD HEADER SYSTEM ===== */
.r1g-header {
    position: static;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 30px 15px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 1600px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Play Button Logo (32px) - with enhanced hover */
.logo-svg {
    width: 32px;
    height: auto;
}

.logo-svg svg {
    width: 100%;
    height: auto;
    fill: #000;
    transition: fill 0.3s ease;
}

.logo-svg:hover svg {
    fill: #e74c3c;
}

/* Main R1G Logo (240px) - with scale effect */
.main-logo {
    width: 240px;
    height: auto;
}

.main-logo svg {
    width: 100%;
    height: auto;
    fill: #000;
    transition: all 0.3s ease;
}

.main-logo:hover svg {
    fill: #e74c3c;
    transform: scale(1.05);
}

/* Logo Text - precise sizing */
.logo-text {
    text-align: center;
    margin-top: 0px;
}

.logo-text p {
    font-size: 0.75rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 1px;
    text-transform: lowercase;
    margin: 0;
    white-space: nowrap;
    line-height: 0.8;
}

/* Header Right - Shop Controls */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Burger Menu - Hidden by default */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.burger-line {
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    padding-top: 80px;
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-menu-nav a {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #e74c3c;
}

.mobile-menu-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 20px;
}

.mobile-menu-controls a,
.mobile-menu-controls button {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.mobile-menu-controls a:hover,
.mobile-menu-controls button:hover {
    color: #e74c3c;
}

/* Mobile Cart Badge */
.mobile-cart-link {
    position: relative;
    display: inline-block;
}

.mobile-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e74c3c;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 14px;
    height: 14px;
    line-height: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-count.hidden {
    display: none;
}

/* Cart count badge for desktop */
.cart-count {
    position: absolute;
    top: -8px;
    right: -11px;
    background: #e74c3c;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 14px;
    height: 14px;
    line-height: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count.hidden {
    display: none;
}

/* Notification badge for login button */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -11px;
    background: #e74c3c;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 14px;
    height: 14px;
    line-height: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge.hidden {
    display: none;
}

.shop-controls {
    display: flex;
    gap: 15px;
}

.cart-link,
.login-link {
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.cart-link:hover,
.login-link:hover {
    color: #e74c3c;
}

/* Navigation - enhanced styling */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #000;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e74c3c;
}

/* ===== ENHANCED BACKGROUND SYSTEM ===== */
.page-content {
    margin-top: 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    position: relative;
}

/* CSS BACKGROUND TEXT SYSTEM REMOVED - NOW HANDLED BY JAVASCRIPT */

@keyframes archivePulse {
    0%, 100% {
        opacity: 0.6;
        transform: rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: rotate(90deg) scale(1.02);
    }
}

@keyframes archiveGlitch {
    0%, 98% {
        text-shadow:
            0 0 40px rgba(231, 76, 60, 0.1),
            0 0 80px rgba(231, 76, 60, 0.05);
    }
    99% {
        text-shadow:
            -2px 0 rgba(231, 76, 60, 0.3),
            2px 0 rgba(0, 255, 255, 0.3),
            0 0 40px rgba(231, 76, 60, 0.1),
            0 0 80px rgba(231, 76, 60, 0.05);
    }
    100% {
        text-shadow:
            0 0 40px rgba(231, 76, 60, 0.1),
            0 0 80px rgba(231, 76, 60, 0.05);
    }
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.r1g-heading-1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--r1g-black);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.r1g-heading-2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--r1g-black);
    line-height: 1.3;
    letter-spacing: 0px;
}

.r1g-body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--r1g-gray-900);
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.r1g-small {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--r1g-gray-600);
    line-height: 1.4;
}

.r1g-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--r1g-black);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.r1g-mono-small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 900;
    color: var(--r1g-gray-600);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== R1G BUTTON SYSTEM ===== */

/* Primary Button - Main CTA Actions */
.r1g-button-primary {
    display: inline-block;
    background-color: var(--r1g-red);
    color: var(--r1g-white);
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transform: rotate(-1deg);
    transition: all var(--r1g-transition-standard);
    width: fit-content;
    border: none;
    cursor: pointer;
}

.r1g-button-primary::before {
    content: "[ ";
    font-family: 'JetBrains Mono', monospace;
}

.r1g-button-primary:hover {
    background-color: var(--r1g-black);
    color: var(--r1g-red);
    transform: rotate(0deg) scale(1.05);
    letter-spacing: 3px;
}

/* Secondary Button - Social Links, Secondary Actions */
.r1g-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--r1g-gray-900);
    border: 2px solid var(--r1g-red);
    padding: 15px 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
    text-decoration: none;
    transform: rotate(-1deg);
    transition: all var(--r1g-transition-standard);
    cursor: pointer;
}

.r1g-button-secondary::before {
    content: "[ ";
    color: var(--r1g-red);
}

.r1g-button-secondary:hover {
    background-color: var(--r1g-red);
    color: var(--r1g-black);
    transform: rotate(0deg) scale(1.05);
}

.r1g-button-secondary:hover::before {
    color: var(--r1g-black);
}

/* CTA Button - Homepage Style like Gallery "will haben" */
.r1g-button-cta {
    display: block;
    background-color: var(--r1g-red);
    color: var(--r1g-white);
    text-decoration: none;
    padding: 6px 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    transform: rotate(-1deg);
    transition: all var(--r1g-transition-standard);
    width: fit-content;
    border: none;
    cursor: pointer;
    position: relative;
}

.r1g-button-cta::before {
    content: "[ ";
    font-family: 'JetBrains Mono', monospace;
}


.r1g-button-cta:hover {
    background-color: var(--r1g-black);
    color: var(--r1g-red);
    transform: rotate(0deg) scale(1.05);
    letter-spacing: 3px;
}

/* CTA Button Primary Variant - Black Background */
.r1g-button-cta.primary {
    background-color: var(--r1g-black);
    color: var(--r1g-white);
}

.r1g-button-cta.primary:hover {
    background-color: var(--r1g-black);
    color: var(--r1g-red);
    transform: rotate(0deg) scale(1.05);
    letter-spacing: 3px;
}

/* Large CTA Button - Product Pages */
.r1g-button-large {
    display: block;
    width: 100%;
    padding: 20px;
    background-color: var(--r1g-red);
    color: var(--r1g-white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--r1g-transition-standard);
}

.r1g-button-large::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--r1g-red);
    transform: rotate(-1deg);
    transition: all var(--r1g-transition-standard);
}

.r1g-button-large:hover {
    background-color: var(--r1g-black);
    border-color: var(--r1g-black);
    transform: translateY(-3px);
}

.r1g-button-large:hover::before {
    border-color: var(--r1g-black);
    transform: rotate(0deg);
}

/* Outline Button - Secondary Actions */
.r1g-button-outline {
    flex: 1;
    padding: 15px;
    background: transparent;
    color: var(--r1g-gray-600);
    border: 1px solid var(--r1g-gray-200);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--r1g-transition-standard);
}

.r1g-button-outline:hover {
    border-color: var(--r1g-black);
    color: var(--r1g-black);
    transform: translateY(-2px);
}

/* Purchase Section - Gallery Style Parent Rule */
.purchase-section button {
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
}

/* Cart Button - Gallery Style but Large Size */
.r1g-button-cart {
    display: block;
    width: 100%;
    padding: 20px;
    background-color: var(--r1g-red);
    color: var(--r1g-white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(0deg); /* Straight from the start */
    transition: all var(--r1g-transition-standard);
    border: none;
    cursor: pointer;
    position: relative;
}

.r1g-button-cart::before {
    content: "[ ";
    font-family: 'JetBrains Mono', monospace;
}


.r1g-button-cart::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--r1g-red);
    transition: width 0.3s ease;
}

.r1g-button-cart:hover {
    background-color: var(--r1g-black);
    color: var(--r1g-white);
    transform: rotate(0deg) scale(1.05);
    letter-spacing: 3px;
}

.r1g-button-cart:hover::after {
    width: 100%;
}

/* Selection Button - Size/Option Buttons */
.r1g-button-selection {
    padding: var(--r1g-space-xs) var(--r1g-space-sm);
    background: var(--r1g-gray-100);
    color: var(--r1g-gray-600);
    border: 1px solid var(--r1g-gray-200);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--r1g-transition-fast);
}

.r1g-button-selection:hover {
    background: var(--r1g-gray-200);
    color: var(--r1g-black);
}

.r1g-button-selection.selected {
    background: var(--r1g-black);
    color: var(--r1g-white);
    border-color: var(--r1g-black);
}

/* Enhanced Button System */
.r1g-button {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.r1g-button:hover {
    color: #000;
    border-color: #000;
    transform: translateY(-1px);
}

.r1g-button.primary {
    background: #333;
    color: #fff;
}

.r1g-button.primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.r1g-button.secondary {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.r1g-button.secondary:hover {
    background: #f9f9f9;
    border-color: #333;
}

.r1g-button.disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    transform: none;
}

.r1g-button.disabled:hover {
    background: #f5f5f5;
    color: #999;
    transform: none;
}

/* Generic Button Class */
.button {
    display: block;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: none;
    margin-top: 20px;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    transform: rotate(-1deg);
    width: fit-content;
    cursor: pointer;
}

.button::before {
    content: "[ ";
    font-family: 'JetBrains Mono', monospace;
}

.button:hover {
    background-color: #000;
    color: #fff;
    transform: rotate(0deg) scale(1.05);
    letter-spacing: 3px;
}

.button::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.button:hover::after {
    width: 100%;
}

/* ===== R1G CARD SYSTEM ===== */

/* Product Card - Gallery Style */
.r1g-card {
    background: var(--r1g-white);
    border: 1px solid var(--r1g-gray-200);
    position: relative;
    transition: all var(--r1g-transition-standard);
    text-decoration: none;
    color: inherit;
}

.r1g-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 1px solid var(--r1g-gray-200);
    transform: rotate(-0.5deg);
    transition: all var(--r1g-transition-standard);
    z-index: -1;
}

.r1g-card:hover::before {
    border-color: var(--r1g-red);
    transform: rotate(0deg);
}

.r1g-card:hover {
    transform: translateY(-2px);
}

/* Info Card - Contact/Feature Style */
.r1g-card-info {
    background: var(--r1g-gray-100);
    padding: var(--r1g-space-lg);
    border: 1px solid var(--r1g-gray-200);
    position: relative;
    transition: all var(--r1g-transition-standard);
}

.r1g-card-info::before {
    content: "[ ]";
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    color: var(--r1g-red);
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--r1g-white);
    padding: 0 10px;
    font-size: 14px;
}

.r1g-card-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== R1G MEDIA SYSTEM ===== */

/* Hero Media - Main Visuals */
.r1g-media-hero {
    position: relative;
    overflow: hidden;
    filter: grayscale(0.3) contrast(1.1);
    transition: all var(--r1g-transition-media);
}

.r1g-media-hero:hover {
    filter: grayscale(0) contrast(1);
    transform: scale(1.02);
}

.r1g-media-hero::after {
    content: "R1G";
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* Media System */
.r1g-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.r1g-media::after,
.media::after {
    content: "R1G";
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    letter-spacing: 1px;
    z-index: 10;
}

/* Product tag from data attribute */
.media[data-tag]:not([data-tag=""])::after,
.video[data-tag]:not([data-tag=""])::after {
    content: attr(data-tag);
}

.r1g-media img,
.r1g-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.9);
}

.r1g-media:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: translateY(-5px) rotate(1deg);
}

.r1g-media:hover img,
.r1g-media:hover video {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ===== R1G LINK SYSTEM ===== */
.r1g-link {
    color: var(--r1g-red);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--r1g-transition-standard);
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.r1g-link::before {
    content: "";
}

.r1g-link:hover {
    color: var(--r1g-black);
    letter-spacing: 2px;
}

.inline-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-link::before {
    content: "";
}

.inline-link:hover {
    color: #000;
    letter-spacing: 2px;
}

/* ===== R1G LAYOUT SYSTEM ===== */

/* Section Spacing */
.r1g-section {
    padding: var(--r1g-space-xl) 0;
}

.r1g-section-large {
    padding: var(--r1g-space-xxl) 0;
}

/* Grid Systems */
.r1g-grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--r1g-space-xxl);
    align-items: start;
}

.r1g-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--r1g-space-lg);
}

.r1g-grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--r1g-space-xxl);
}

/* Container */
.r1g-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== R1G UTILITY CLASSES ===== */

/* Spacing Utilities */
.r1g-mb-xs { margin-bottom: var(--r1g-space-xs); }
.r1g-mb-sm { margin-bottom: var(--r1g-space-sm); }
.r1g-mb-md { margin-bottom: var(--r1g-space-md); }
.r1g-mb-lg { margin-bottom: var(--r1g-space-lg); }
.r1g-mb-xl { margin-bottom: var(--r1g-space-xl); }

.r1g-mt-xs { margin-top: var(--r1g-space-xs); }
.r1g-mt-sm { margin-top: var(--r1g-space-sm); }
.r1g-mt-md { margin-top: var(--r1g-space-md); }
.r1g-mt-lg { margin-top: var(--r1g-space-lg); }
.r1g-mt-xl { margin-top: var(--r1g-space-xl); }

/* Text Utilities */
.r1g-text-center { text-align: center; }
.r1g-text-left { text-align: left; }
.r1g-text-right { text-align: right; }

/* Color Utilities */
.r1g-color-red { color: #e74c3c !important; }
.r1g-color-black { color: #000 !important; }
.r1g-color-white { color: #fff !important; }
.r1g-color-gray { color: #666 !important; }

/* Visual Effects */
.r1g-tilt {
    transform: rotate(-1deg);
    transition: transform var(--r1g-transition-standard);
}

.r1g-tilt:hover {
    transform: rotate(0deg);
}

.r1g-scale-hover {
    transition: transform var(--r1g-transition-standard);
}

.r1g-scale-hover:hover {
    transform: scale(1.05);
}

.r1g-letter-expand {
    letter-spacing: 2px;
    transition: letter-spacing var(--r1g-transition-standard);
}

.r1g-letter-expand:hover {
    letter-spacing: 3px;
}

/* Background Text Elements */
.r1g-bg-text {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 200px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(45deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(231, 76, 60, 0.03) 50%,
        rgba(0, 0, 0, 0.01) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: -20px;
    z-index: -2;
    opacity: 0.4;
    transform: rotate(-15deg);
    pointer-events: none;
    user-select: none;
}

/* ===== R1G SPECS SYSTEM (Gallery Style) ===== */

/* Gallery Style Tags/Specs */
.r1g-specs-gallery {
    display: block;
    margin-top: 25px;
    max-width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.r1g-specs-gallery::before {
    content: "SPECS";
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--r1g-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.r1g-specs-gallery ul {
    list-style: none;
    display: block;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.r1g-specs-gallery li {
    display: inline;
    margin: 0;
}

.r1g-specs-gallery li a {
    display: inline;
    background-color: transparent;
    color: #999;
    text-decoration: none;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: all 0.2s ease;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.r1g-specs-gallery li a:hover {
    color: #000 !important;
    background-color: var(--r1g-red) !important;
    padding: 1px 4px;
    transform: translateY(-1px);
}

.r1g-specs-gallery li:not(:last-child)::after {
    content: " / ";
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* ===== TAG SYSTEM ===== */
.r1g-tag {
    display: inline-block;
    padding: 5px 10px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.r1g-tag:hover {
    background: #e74c3c;
    color: #000;
    border-color: #e74c3c;
}

/* ===== ENHANCED TEXT BLOCKS ===== */
.r1g-text-block {
    padding: 20px;
    background:
        linear-gradient(135deg, transparent 0%, rgba(231, 76, 60, 0.02) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(0,0,0,0.02) 20px
        );
    position: relative;
}

.r1g-text-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        #e74c3c 20%,
        #e74c3c 80%,
        transparent 100%
    );
}

/* ===== DETAILED INFO SECTIONS ===== */
.r1g-info-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.r1g-info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.r1g-info-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    color: #e74c3c;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FOOTER SYSTEM ===== */
footer {
    margin-top: 60px;
    padding: 40px 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-content {
    position: relative;
    text-align: center;
    padding: 40px 20px 20px;
}

.footer-content p {
    font-size: 10px;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin: 0;
}

.footer-legal-links {
    position: absolute;
    left: 20px;
    top: 40px;
    display: flex;
    gap: 15px;
}

.footer-legal-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #999;
    text-decoration: none;
    text-transform: lowercase;
}

.footer-legal-links a:hover {
    color: #666;
}

/* ===== ARCHIVE PAGE STYLES ===== */

/* Intro section */
.intro {
    text-align: left;
    padding: 60px 0 80px;
    max-width: 500px;
    margin: 0;
    position: relative;
    overflow: visible;
}

.intro-bg-text {
    position: absolute;
    bottom: -30px;
    left: -50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    color: #ccc;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.intro p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-weight: 300;
    letter-spacing: 0.2px;
    font-family: 'Raleway', sans-serif;
}

.intro span {
    color: #000;
    font-weight: 400;
}

/* Landing garment sections */
.landing-garment {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    transform: translateY(0px) !important;
    transition: all 0.6s ease;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}

.landing-garment::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 1px solid #f0f0f0;
    z-index: -1;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.landing-garment:hover::before {
    border-color: #e74c3c;
    transform: rotate(0deg);
}

.landing-garment.visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-garment.out-of-stock {
    opacity: 0.6;
}

/* Keep consistent alignment - no alternating */
.landing-garment .video {
    order: 1;
}

.landing-garment .media {
    order: 1;
}

.landing-garment .landing-text {
    order: 2;
    text-align: left;
}

.landing-garment .tags {
    text-align: left;
}

.landing-garment .tags ul {
    justify-content: flex-start;
}

/* Video/Media - following original structure */
.video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    max-width: 280px;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    max-width: 280px;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
    border-radius: 4px;
}

.video::after {
    content: "R1G";
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    letter-spacing: 1px;
    z-index: 10;
}

.video a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.media a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.9);
    opacity: 0;
    animation: fadeInImage 0.8s ease forwards;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.9);
    display: block;
}

.video:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: translateY(-5px) rotate(1deg);
}

.video:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.media:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: translateY(-5px) rotate(1deg);
}

.media:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Landing text */
.landing-text {
    padding: 20px;
    display: block;
    height: auto;
    background:
        linear-gradient(135deg, transparent 0%, rgba(231, 76, 60, 0.02) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(0,0,0,0.02) 20px
        );
    position: relative;
}

.landing-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        #e74c3c 20%,
        #e74c3c 80%,
        transparent 100%
    );
}

/* Product Info Section */
.product-info {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 0;
}

.availability,
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.status-label,
.price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-value,
.price-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    color: #e74c3c;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.name {
    margin-bottom: 0;
    display: inline-block;
    vertical-align: top;
    width: 200px;
    margin-right: 40px;
    position: relative;
}

.name::before {
    content: "001";
    position: absolute;
    top: -15px;
    left: -20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 1px;
    transform: rotate(-90deg);
    transform-origin: left center;
}

/* Product number from data attribute */
.name[data-number]:not([data-number=""])::before {
    content: attr(data-number);
}

/* Legacy nth-child selectors (for static HTML) */
.landing-garment:nth-child(3) .name:not([data-number])::before { content: "002"; }
.landing-garment:nth-child(4) .name:not([data-number])::before { content: "003"; }
.landing-garment:nth-child(5) .name:not([data-number])::before { content: "004"; }
.landing-garment:nth-child(6) .name:not([data-number])::before { content: "005"; }
.landing-garment:nth-child(7) .name:not([data-number])::before { content: "006"; }

.name a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -1px;
    display: block;
    margin-bottom: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    position: relative;
}

.name a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.name a:hover {
    color: #e74c3c;
    letter-spacing: 0px;
    transform: translateY(-1px);
}

.name a:hover::after {
    width: 100%;
}

/* Tags */
.tags {
    display: block;
    margin-top: 25px;
    max-width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.tags::before {
    content: "SPECS";
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.tags ul {
    list-style: none;
    display: block;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.tags li {
    display: inline;
    margin: 0;
}

.tags li a {
    display: inline;
    background-color: transparent;
    color: #999;
    text-decoration: none;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: all 0.2s ease;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.tags li a:hover {
    color: #000 !important;
    background-color: #e74c3c !important;
    padding: 1px 4px;
    transform: translateY(-1px);
}

.tags li:not(:last-child)::after {
    content: " / ";
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* ===== PRODUCT GRID STYLES ===== */

.product-grid {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Garment Content */
.garment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    align-items: center;
}

/* Image Gallery */
.image-gallery {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
}

/* Garment Info */
.garment-info {
    padding: 20px 0;
}

.garment-info h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 16px;
}

.price::before {
    content: '€';
}

.description {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Product Details */
.product-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.product-details h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-details li {
    padding: 4px 0;
    border-left: 2px solid #f0f0f0;
    padding-left: 12px;
    margin-bottom: 6px;
}

.product-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

/* Size Selector */
.size-selector {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.size-option {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.size-option:hover {
    border-color: #333;
    background: #f9f9f9;
}

.size-option.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Stock Status */
.stock-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 10px 0;
}

/* Garment Actions */
.garment-actions {
    margin: 30px 0 20px 0;
}

/* Return Info */
.return-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

/* Product Detail Page Styles */
.product-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 20px;
}

.main-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.image-thumbnails img:hover {
    border-color: #333;
    transform: scale(1.05);
}

.product-title {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #000;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.product-description {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-sizes h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-actions {
    margin: 40px 0 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-return-policy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

/* ===== IMAGE GALLERY OVERLAY ===== */

.image-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-gallery-overlay.active {
    display: flex;
    opacity: 1;
}

.image-gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 40px 80px 40px;
}

.image-gallery-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.gallery-main-image.changing {
    opacity: 0.5;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
    border-color: #e74c3c;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    transition: color 0.2s ease;
}

.gallery-close:hover {
    color: #e74c3c;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 15px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e74c3c;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-info {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.gallery-info.mobile-only {
    display: none;
}

.gallery-info.desktop-only {
    display: block;
}

.gallery-counter {
    color: #999;
    margin-bottom: 5px;
}

.gallery-product-name {
    color: #fff;
    font-weight: 700;
}

/* ===== ARCHIVE-SPECIFIC FIXES ===== */

.r1g-bg-archive .landing-garment {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.r1g-bg-archive .landing-garment .media {
    order: 1;
}

.r1g-bg-archive .landing-garment .landing-text {
    order: 2;
    text-align: left;
}

.r1g-bg-archive .media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.r1g-bg-archive .media a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.r1g-bg-archive .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.9);
}

.r1g-bg-archive .media:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: translateY(-5px) rotate(1deg);
}

.r1g-bg-archive .media:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.r1g-bg-archive .landing-garment .garment-content {
    display: contents !important;
}

.r1g-bg-archive .landing-garment .garment-info {
    order: 2;
    text-align: left;
    padding: 30px 0;
}

/* ===== LEGAL PAGES STYLES ===== */

.legal-hero {
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(247,247,247,0.6) 100%);
}

.legal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 64px;
    font-weight: 900;
    color: #e74c3c;
    text-transform: lowercase;
    letter-spacing: -3px;
    margin: 0 0 20px 0;
    transform: rotate(-1deg);
    text-shadow: 0 2px 10px rgba(231,76,60,0.1);
}

.legal-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-section {
    margin-bottom: 80px;
    position: relative;
}

.legal-section .section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-transform: lowercase;
    margin: 0 0 40px 0;
    padding-left: 20px;
    border-left: 3px solid #e74c3c;
    letter-spacing: 0.2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.45;
    max-width: 100%;
}

.legal-section .section-content {
    padding-left: 20px;
}

.legal-section .section-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin: 40px 0 20px 0;
    text-transform: lowercase;
    padding-top: 10px;
}

.legal-section .section-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 20px 0;
}

.legal-section .section-content strong {
    font-weight: 600;
    color: #333;
}

/* Lists (ul/ol) styling */
.legal-section .section-content ul,
.legal-section .section-content ol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 20px 0;
    padding-left: 25px;
}

.legal-section .section-content ul li,
.legal-section .section-content ol li {
    margin: 10px 0;
    padding-left: 5px;
}

.legal-section .section-content ul {
    list-style-type: none;
}

.legal-section .section-content ul li {
    position: relative;
}

.legal-section .section-content ul li::before {
    content: "→";
    position: absolute;
    left: -20px;
    color: #e74c3c;
    font-weight: 600;
}

.legal-section .section-content ol {
    list-style-type: decimal;
}

.legal-section .section-content ol li::marker {
    color: #999;
    font-weight: 600;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-list li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.legal-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.legal-section .section-content a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.legal-section .section-content a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .landing-garment {
        gap: 40px;
        margin-bottom: 60px;
    }

    .name a {
        font-size: 24px;
    }

    .r1g-bg-archive .landing-garment {
        gap: 40px;
        margin-bottom: 60px;
    }
}

@media (max-width: 900px) {
    .r1g-bg-archive .landing-garment {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .r1g-bg-archive .landing-garment .media {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --r1g-space-lg: 24px;
        --r1g-space-xl: 40px;
        --r1g-space-xxl: 60px;
    }

    .r1g-heading-1 {
        font-size: 2rem;
    }

    .r1g-heading-2 {
        font-size: 1.25rem;
    }

    .r1g-body {
        font-size: 14px;
    }

    .r1g-mono {
        font-size: 0.7rem;
    }

    .r1g-grid-2,
    .r1g-grid-equal {
        grid-template-columns: 1fr;
        gap: var(--r1g-space-lg);
    }

    .r1g-grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .r1g-container {
        padding: 0 20px;
    }

    .r1g-button-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Header Responsive */
    .r1g-header {
        padding: 20px 20px 15px;
    }

    .header-container {
        gap: 15px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-left,
    .header-right {
        justify-content: center;
    }

    .main-logo {
        width: 160px;
    }

    .logo-svg {
        width: 24px;
    }

    .logo-text h1 {
        font-size: 2rem;
    }

    .shop-controls {
        gap: 10px;
    }

    .cart-link,
    .login-link {
        font-size: 0.65rem;
    }

    nav ul {
        gap: 15px;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.7rem;
    }

    /* Mobile Navigation - Hide desktop nav, show burger */
    nav, .shop-controls {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .page-content {
        padding: 0 20px;
    }

    /* Archive Responsive */
    .intro {
        padding: 40px 0 60px;
    }

    .intro p {
        font-size: 14px;
    }

    .landing-garment {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .landing-garment .media {
        order: 1;
    }

    .landing-garment .landing-text {
        order: 2;
        text-align: left;
        padding: 30px 20px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .name a {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .name::before {
        top: -10px !important;
        left: -15px !important;
        font-size: 7px !important;
    }

    .button {
        padding: 12px 24px;
        font-size: 11px;
        margin-top: 15px;
    }

    /* Mobile Specs Einrückung */
    .tags {
        padding-left: 15px;
    }

    .tags::before {
        padding-left: 0;
    }

    footer {
        margin-top: 50px;
        padding: 30px 20px;
    }

    /* Product Grid Mobile */
    .product-grid {
        padding: 20px 30px;
    }

    .landing-garment {
        margin-bottom: 50px;
        padding-bottom: 50px;
    }

    .garment-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }

    /* Only apply width override to product-grid media, not archive */
    .product-grid .landing-garment .garment-content .media {
        aspect-ratio: 3/4 !important;
        max-width: none !important;
        width: 100% !important;
        margin-bottom: 40px !important;
        min-height: 400px !important;
    }

    .product-grid .landing-garment .garment-content .media img {
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 8px !important;
    }

    .product-grid .landing-garment .garment-info {
        padding: 40px 20px !important;
    }

    .r1g-bg-archive .product-grid .landing-garment {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .garment-info h2 {
        text-align: center;
    }

    .size-selector {
        justify-content: center;
    }

    /* Product Detail Mobile */
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-images {
        position: static;
    }

    .product-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .product-actions {
        justify-content: center;
    }

    .image-thumbnails {
        justify-content: center;
    }

    .footer-legal-links {
        position: static !important;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .footer-content {
        padding: 30px 20px 20px !important;
    }

    /* Image Gallery Mobile */
    .image-gallery-container {
        padding: 20px 20px 60px 20px;
    }

    .gallery-main-image {
        max-height: 60vh;
    }

    .gallery-thumbnails {
        gap: 8px;
        margin-bottom: 50px;
    }

    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }

    .gallery-nav {
        font-size: 20px;
        padding: 10px 15px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        font-size: 25px;
    }

    .gallery-info.desktop-only {
        display: none;
    }

    .gallery-info.mobile-only {
        display: block;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Archive Mobile Fixes */
    .r1g-bg-archive .landing-garment {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .r1g-bg-archive .landing-garment .media {
        order: 1;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .r1g-bg-archive .landing-garment .landing-text {
        order: 2;
        text-align: left;
        padding: 30px 20px;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Archive Product Info Mobile Overflow Fix */
    .r1g-bg-archive .product-info {
        max-width: 100%;
        overflow: hidden;
    }

    .r1g-bg-archive .availability,
    .r1g-bg-archive .price-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .r1g-bg-archive .status-value,
    .r1g-bg-archive .price-value {
        font-size: 8px;
        word-break: break-word;
        max-width: 60%;
        text-align: right;
    }

    /* Legal Pages Mobile */
    .legal-hero {
        padding: 50px 15px 35px;
    }

    .legal-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .legal-subtitle {
        font-size: 12px;
    }

    .legal-content {
        padding: 40px 15px;
    }

    .legal-section {
        margin-bottom: 50px;
    }

    .legal-section .section-title {
        font-size: 18px;
        padding-left: 15px;
        margin-bottom: 25px;
        letter-spacing: 0.3px;
    }

    .legal-section .section-content {
        padding-left: 15px;
    }

    .legal-section .section-content h3 {
        font-size: 14px;
        margin: 30px 0 15px 0;
        padding-top: 5px;
    }

    .legal-section .section-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .legal-section .section-content ul,
    .legal-section .section-content ol {
        font-size: 13px;
        padding-left: 20px;
        margin: 15px 0;
    }

    .legal-section .section-content ul li,
    .legal-section .section-content ol li {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 0 20px;
    }

    .intro {
        padding: 30px 0 50px;
    }

    .landing-garment {
        margin-bottom: 40px;
    }

    .name a {
        font-size: 18px;
    }

    .tags li a {
        font-size: 9px;
        padding: 5px 10px;
    }

    .r1g-bg-archive .landing-garment {
        margin-bottom: 40px;
    }
}

/* ===== CART PAGE STYLES ===== */
/* R1G Cart Design System */

.cart-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Cart Header mit R1G Style */
.cart-header-section {
    margin-bottom: 80px;
    position: relative;
}

.cart-header {
    font-family: 'Raleway', sans-serif;
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    color: #000;
    margin: 0;
    line-height: 0.9;
}

.cart-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-top: 15px;
}

.cart-empty {
    text-align: center;
    padding: 120px 40px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02) 0%, transparent 100%);
    border: 2px dashed #e0e0e0;
    margin: 60px 0;
}

.cart-empty p {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    margin-bottom: 40px;
}

/* Cart Grid Layout */
.cart-content-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 30px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cart-item:hover::before {
    background: #e74c3c;
}

.cart-item-image {
    width: 120px;
    height: 150px;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.1);
    transition: all 0.4s ease;
}

.cart-item:hover .cart-item-image {
    filter: grayscale(0%) contrast(1.05);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cart-item-details {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.detail-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-size: 9px;
}

.detail-value {
    color: #000;
    font-weight: 600;
    font-size: 10px;
}

.cart-item-quantity-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.quantity-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.cart-item-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Scarcity Badge */
.stock-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 3px 8px;
    margin-top: 8px;
    background: rgba(231, 76, 60, 0.02);
}

/* Product Story Overlay */
.cart-item-image-wrapper {
    position: relative;
    width: 120px;
    height: 150px;
}

.product-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 15px;
}

.cart-item-image-wrapper:hover .product-story-overlay {
    opacity: 1;
}

.product-story-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.quantity-btn:disabled:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}

.quantity-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    color: #000;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.remove-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #e74c3c;
}

.remove-btn-inline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 12px;
    transition: color 0.2s ease;
    text-align: left;
}

.remove-btn-inline:hover {
    color: #e74c3c;
}

/* Cart Summary - R1G Style */
.cart-summary {
    background: white;
    border: 2px solid #000;
    position: sticky;
    top: 100px;
}

.cart-summary-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02) 0%, transparent 100%);
}

.cart-summary-title {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #000;
    margin: 0;
}

.cart-summary-body {
    padding: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-family: 'JetBrains Mono', monospace;
}

.summary-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

/* Free Shipping Progress Bar */
.shipping-progress-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02) 0%, transparent 100%);
    border: 1px solid #f0f0f0;
}

.shipping-progress-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-progress-amount {
    color: #e74c3c;
    font-size: 10px;
}

.shipping-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #000 0%, #e74c3c 100%);
    transition: width 0.4s ease;
    position: relative;
}

.shipping-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.shipping-progress-complete {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #27ae60;
    text-align: center;
    padding: 10px;
}

.summary-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #000;
}

.summary-total .summary-label {
    font-size: 11px;
    color: #000;
}

.summary-total .summary-value {
    font-size: 28px;
    color: #e74c3c;
    letter-spacing: -1px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    background: #000;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e74c3c;
    transition: left 0.4s ease;
    z-index: 0;
}

.checkout-btn:hover::before {
    left: 0;
}

.checkout-btn span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.checkout-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.continue-shopping {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: white;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.continue-shopping:hover {
    border-color: #000;
    background: #f8f8f8;
}

/* ===== CART RECOMMENDATIONS ===== */
.cart-recommendations {
    margin: 100px 0 60px;
    padding: 0;
}

.recommendations-separator {
    width: 100%;
    height: 1px;
    background: #d0d0d0;
    margin-bottom: 35px;
}

.recommendations-content {
    text-align: center;
    margin-bottom: 40px;
}

.recommendations-header {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    padding: 0;
}

.recommendations-description {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    text-transform: lowercase;
    line-height: 1.5;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.recommendation-card {
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    background: transparent;
    border: 1px solid transparent;
    overflow: hidden;
}

.recommendation-card:hover {
    border-color: #000;
}

.recommendation-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 133%; /* 3:4 aspect ratio */
    background: #fafafa;
    overflow: hidden;
}

.recommendation-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-image {
    transform: scale(1.02);
}

.recommendation-info {
    padding: 12px 0;
    text-align: left;
}

.recommendation-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.recommendation-price {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

@media (max-width: 1024px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cart-recommendations {
        margin: 80px 0 40px;
    }

    .recommendations-separator {
        margin-bottom: 25px;
    }

    .recommendations-content {
        margin-bottom: 30px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recommendations-header {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .recommendations-description {
        font-size: 12px;
    }

    .recommendation-image-wrapper {
        padding-bottom: 120%;
    }
}

/* Cart Responsive Styles */
@media (max-width: 992px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 60px 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .cart-header {
        font-size: 48px;
        letter-spacing: -2px;
        text-align: center;
    }

    .cart-subtitle {
        text-align: center;
    }

    .cart-header-section {
        margin-bottom: 60px;
        text-align: center;
    }

    .cart-content-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .cart-item {
        grid-template-columns: 120px 1fr;
        gap: 20px;
        padding: 20px;
        margin: 0 auto;
    }

    .cart-item-image,
    .cart-item-image-wrapper {
        width: 120px;
        height: 150px;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-name {
        font-size: 16px;
        word-wrap: break-word;
    }

    .cart-item-details {
        font-size: 11px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
        margin-top: 15px;
    }

    .cart-summary {
        max-width: 500px;
        margin: 0 auto;
    }

    .cart-summary-header,
    .cart-summary-body {
        padding: 25px;
    }

    /* Product Story auf Mobile besser lesbar */
    .product-story-text {
        font-size: 8px;
        line-height: 1.4;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 40px 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .cart-header {
        font-size: 42px;
        text-align: center;
    }

    .cart-subtitle {
        font-size: 13px;
        text-align: center;
    }

    .cart-header-section {
        text-align: center;
    }

    .cart-content-grid {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .cart-items {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cart-item {
        padding: 20px 10px;
        gap: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cart-item-image-wrapper {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 4/5;
        flex-shrink: 0;
        margin: 0 auto 15px;
        grid-row: 1;
    }

    .cart-item-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cart-item-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        grid-row: 2;
    }

    .cart-item-name {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }

    .cart-item-price {
        font-size: 17px;
        margin-top: 5px;
        text-align: center;
    }

    .cart-item-details {
        font-size: 11px;
        line-height: 1.5;
        word-wrap: break-word;
        text-align: center;
    }

    .cart-item-quantity {
        margin: 15px auto;
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .cart-summary {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .cart-summary-header,
    .cart-summary-body {
        padding: 20px 15px;
    }

    .cart-summary-title {
        font-size: 22px;
    }

    .summary-label {
        font-size: 11px;
    }

    .summary-value {
        font-size: 15px;
    }

    .summary-total .summary-value {
        font-size: 18px;
    }

    .checkout-btn {
        padding: 18px 30px;
        font-size: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .continue-shopping {
        font-size: 12px;
        text-align: center;
        display: block;
    }

    /* Product Story für sehr kleine Screens */
    .product-story-text {
        font-size: 8px;
        line-height: 1.4;
        padding: 8px;
        white-space: pre-line;
    }

    .cart-item-actions {
        grid-row: 3;
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
        margin-top: 15px;
        width: 100%;
    }

    .cart-item-price {
        order: 1;
    }

    .remove-btn {
        order: 2;
        font-size: 11px;
        padding: 10px 20px;
        white-space: nowrap;
    }

    /* Quantity buttons */
    .quantity-btn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .quantity-value {
        font-size: 16px;
        min-width: 40px;
        text-align: center;
    }

    .stock-badge {
        font-size: 9px;
        padding: 4px 8px;
        white-space: normal;
        display: inline-block;
        text-align: center;
        max-width: 100%;
    }

    /* Cart Recommendations - Mobile */
    .cart-recommendations {
        margin: 60px 0 40px;
    }

    .recommendations-separator {
        margin-bottom: 20px;
    }

    .recommendations-content {
        margin-bottom: 25px;
    }

    .recommendations-header {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .recommendations-description {
        font-size: 11px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .recommendation-name {
        font-size: 10px;
    }

    .recommendation-price {
        font-size: 12px;
    }
}

