/* Global Design Tokens */
:root {
    --bg-color: #FFFFFF;
    /* Pure white as seen in contact screenshot */
    --text-color: #2C2C2C;
    --accent-color: #968676;
    /* Warmer taupe brown from screenshot button */
    --border-color: #E6E6E6;
    --input-bg: #FCFCFC;

    --font-heading: 'Times New Roman', Times, serif;
    --font-body: 'Times New Roman', Times, serif;
    /* All fonts to Times New Roman */

    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;

    --container-width: 1200px;
    /* Slightly tighter for text readability */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    /* Slightly smaller global scale */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    /* Regular weight for Serif */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    /* Prototype Characteristic */
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
}

/* SEO Optimization for Spaced Headings */
.spaced-heading {
    letter-spacing: clamp(0.2em, 3.5vw, 0.7em);
    /* Fluid spacing, slightly wider */
    text-transform: lowercase;
    margin-right: -0.2em;
    width: 100%;
}

.spaced-subheading {
    letter-spacing: 0.8em;
    text-transform: lowercase;
    margin-right: -0.8em;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: #000;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    /* Safari support */
    transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state: Matching hover style (Subtle transparency + Blur) */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle white tint */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: none;
}

.site-header:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Ensure content is strictly above the background layer */
.site-header>*,
.site-header nav,
.site-header ul,
.site-header li,
.site-header a,
.site-header span,
.site-header .logo,
.site-header .hamburger {
    position: relative;
    z-index: 2;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: inherit;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
    text-transform: lowercase;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

.material-link,
.journal-link {
    text-decoration: underline;
    color: inherit !important;
    transition: opacity 0.3s;
}

.material-link:visited,
.journal-link:visited {
    color: inherit !important;
}

.material-link:hover,
.journal-link:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #333;
    /* Fallback */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-lg) 5%;
}

/* Wider container for products */
/* Wider container for products */
.models.container {
    max-width: 85vw;
    /* Much wider as requested */
    padding-left: 2%;
    /* Reduced padding to maximize space */
    padding-right: 2%;
}

/* Features Grid (Text) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Strict 3 columns like models */
    gap: 4rem;
    text-align: center;
}

.feature-item h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Gallery (Parallax feel) */
.gallery {
    display: flex;
    height: 80vh;
    width: 100%;
}

.gallery-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s ease;
    will-change: flex;
    /* Performance Optimization */
    transform: translateZ(0);
    /* Force GPU */
    backface-visibility: hidden;
    /* Prevent flickering */
    perspective: 1000px;
}

.gallery-item:hover {
    flex: 1.5;
}

.gallery-item.item-1 {
    background-image: url('https://images.unsplash.com/photo-1533090481720-856c6e3c1fdc?auto=format&fit=crop&w=800&q=80');
}

.gallery-item.item-2 {
    background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=800&q=80');
}

.gallery-item.item-3 {
    background-image: url('https://images.unsplash.com/photo-1618219908412-a29a1bb7b86e?auto=format&fit=crop&w=800&q=80');
}


/* Products */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 2rem;
}

.product-card {
    text-align: left;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 2/3;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: none;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.specs {
    list-style: none;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #555;
}

.specs li {
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eee;
}

.btn-secondary {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Properties Icons */
/* Properties List */
.properties-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    /* Fixed spacing between all items */
    text-align: center;
    max-width: 100%;
}

.prop-item p {
    font-size: 0.95rem;
    /* Slightly larger text */
    color: #444;
    text-transform: lowercase;
    position: relative;
}

/* Optional: Add separator between items on large screens if desired, keeping it simple for now */

.prop-item .icon {
    display: none;
    /* Hide icon as requested */
}

/* Profile Section */
.profile-section {
    margin-top: 2rem;
    text-align: center;
    max-width: 1200px;
    /* Significantly wider */
    margin-left: auto;
    margin-right: auto;
}

.profile-large-image img {
    width: 100%;
    /* Large width */
    height: auto;
    border-radius: 0;
    /* Subtle radius instead of circle */
    margin-bottom: 2rem;
    filter: grayscale(20%);
    /* Slight styling */
    transition: filter 0.3s;
}

.profile-large-image img:hover {
    filter: grayscale(0%);
}

.profile-text h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.profile-text .subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.profile-text p:not(.subtitle) {
    line-height: 2.2;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2.5rem;
    /* Increased spacing */
}

/* Contact Section & Form */
footer {
    padding: var(--spacing-lg) 5% var(--spacing-md);
}

/* Material Story */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.2;
    color: #444;
}

.story-content p {
    margin-bottom: 2.5rem;
    /* Increased spacing */
    font-size: 1.1rem;
}

/* Contact Section */
#kontakt {
    padding-top: 6rem;
    /* Clean separation */
    background: #fff;
    border-top: none;
    /* Removed border for clean look */
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    /* More airy */
}

.contact-header p {
    font-size: 0.8rem;
    color: #888;
    text-transform: lowercase;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #555;
    text-transform: lowercase;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Soft radius from screenshot */
    background: var(--input-bg);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

.form-control.error {
    border-color: #D32F2F;
    background-color: #fffafa;
}

.error-message {
    font-size: 0.8rem;
    color: #D32F2F;
    margin-top: 0.4rem;
    text-align: left;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem;
    text-transform: lowercase;
    font-size: 0.9rem;
    border-radius: 0;
    /* Soft radius */
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #7A6A5A;
    /* Darker shade */
}

.contact-info {
    padding-top: 2rem;
    /* Align visually with form content */
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h3 {
    font-size: 0.9rem;
    /* Smaller heading size */
    margin-bottom: 1rem;
    color: #000;
}

.info-block p,
.info-block a {
    display: block;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.8;
    text-decoration: none;
}

.copyright-footer {
    text-align: center;
    margin-top: 5rem;
    font-size: 0.7rem;
    color: #999;
    text-transform: lowercase;
    border-top: 1px solid transparent;
}

/* Responsive */
/* Mobile Menu Toggle */
.hamburger {
    display: none;
    width: 24px;
    height: auto;
    padding: 0;
    cursor: pointer;
    z-index: 1100;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    margin-bottom: 5px;
    /* Explicit spacing for 4 lines */
    transition: 0.3s;
}

.hamburger .line:last-child {
    margin-bottom: 0;
}



/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .gallery {
        flex-direction: column;
        height: 100vh;
    }

    .site-header {
        padding: 1.5rem;
    }

    /* Mobile Nav Logic */
    .hamburger {
        display: block;
        /* Switch to block to force exact pixel rendering */
        height: auto;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
    }

    .features-grid,
    .model-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Nearly opaque white for clean look */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic Viewport Height for Mobile */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    /* Safe area for home indicator */
    background: #fff;
    z-index: 1600;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid transparent;
}

.cart-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--accent-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 5rem;
    font-size: 0.9rem;
}

/* Cart Item Styling */
.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: #f9f9f9;
}

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

.cart-item-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    text-transform: lowercase;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #eee;
    padding: 0.2rem 0.5rem;
}

.btn-qty {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    padding: 0 0.5rem;
}

.btn-qty:hover {
    color: #000;
}

.cart-item-price {
    font-size: 1rem;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    margin-left: 1rem;
}

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

.cart-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #f5f5f5;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.shipping-note {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem;
    text-transform: lowercase;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background-color: #7A6A5A;
}


@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* Checkout Page Styles */
.checkout-page {
    min-height: 80vh;
    padding-top: 8rem;
    /* Space for minimal header */
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-form-column,
.checkout-summary-column {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.order-summary-box {
    background: #fdfdfd;
    padding: 2rem;
    border: 1px solid #f0f0f0;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.checkout-item-info .name {
    font-weight: 500;
    margin-bottom: 0.2rem;
    text-transform: lowercase;
}

.checkout-item-info .variant {
    font-size: 0.8rem;
    color: #888;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    text-transform: lowercase;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-summary-column {
        order: -1;
        /* Show summary first on mobile? Or stick to flow. Le'ts keep standard flow or maybe summary top is better. */
    }
}

.lightbox.visible {
    opacity: 1;
}

.lightbox-content {
    width: 90%;
    height: 80vh;
    display: flex;
    gap: 10px;
    /* Small gap for elegance */
    padding: 0;
}

/* Reusing the flex mechanic from the main gallery */
.lightbox-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s;
    cursor: crosshair;
    /* Subtle hint */
    filter: grayscale(20%);
    /* Artistic touch */
    position: relative;
    overflow: hidden;
}

.lightbox-item:hover {
    flex: 2.5;
    /* Strong expansion */
    filter: grayscale(0%);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    cursor: pointer;
    z-index: 2001;
    transition: opacity 0.3s;
}

.close-lightbox:hover {
    opacity: 0.5;
}

/* Remove old nav elements */
.lightbox-nav,
.lightbox-dots {
    display: none;
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: row;
        /* Horizontal layout */
        height: 60vh;
        /* Fixed height to ensure visibility */
        width: 100%;
        padding: 0;
        /* Full width to allow precise scroll centering */
        gap: 0;
        /* Gap handled by margin */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        overflow-y: hidden;
        /* Disable vertical scrolling */
        scroll-snap-type: x mandatory;
        /* Snap to items */
        -webkit-overflow-scrolling: touch;
        align-items: center;
        /* Center vertically */

        /* Hide Scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    .lightbox-content::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Webkit */
    }

    .lightbox-item {
        width: 75vw;
        /* Show centered image + peek at neighbors (12.5vw each side) */
        height: 100%;
        /* Fill container height */
        flex: 0 0 auto;
        /* Don't shrink */
        scroll-snap-align: center;
        /* Snap to center */
        margin-right: 15px;
        /* Gap between images */
        border-radius: 0;
        /* Sharp corners */
        background-color: #f0f0f0;
        /* Placeholder color */
    }

    .lightbox-item:last-child {
        margin-right: 12.5vw;
        /* Balance padding for last item if needed, but in infinite loop this matters less. 
           However, keeping it clean for non-loop fallback. */
    }

    .lightbox-item:first-child {
        margin-left: 12.5vw;
        /* Centering first item visually */
    }

    .close-lightbox {
        position: absolute;
        /* Keep it absolute relative to window/lightbox container */
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 2005;
    }
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: lowercase;
}

.btn-text:hover {
    color: #000;
}

/* --- Success Page --- */
body.success-page {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax-like feel */
    position: relative;
    color: #fff;
    /* Default text white */
}

/* Dark Overlay */
body.success-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay */
    z-index: -1;
}

body.success-page main {
    position: relative;
    z-index: 1;
}

body.success-page h1 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.success-page p,
body.success-page li,
body.success-page h3 {
    color: #f0f0f0;
}

/* Glassmorphism for the info box */
body.success-page .info-box {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 2px solid #fff !important;
    color: #fff !important;
}

body.success-page .btn-primary {
    border-color: #fff;
    color: #fff;
}

body.success-page .btn-primary:hover {
    background: #fff;
    color: #000;
}

body.success-page a {
    color: #fff;
    text-decoration: underline;
}

body.success-page a:hover {
    color: #ddd;
}

body.success-page .logo,
body.success-page nav a {
    text-decoration: none;
}


/* --- Checkout Page (Styled like Success) --- */
body.checkout-page {
    /* Background handled via inline or specific class to ensure image path correctness */
    background-image: url('../images/Hero.jpg');
    /* Relative to CSS file if possible */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

/* Dark Overlay */
body.checkout-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

body.checkout-page main {
    position: relative;
    z-index: 1;
}

/* Text Overrides for Dark Background */
body.checkout-page h1,
body.checkout-page h2,
body.checkout-page h3,
body.checkout-page h4,
body.checkout-page p,
body.checkout-page label,
body.checkout-page span:not(.input-group-text) {
    color: #fff;
}

/* Glassmorphism Containers */
body.checkout-page .checkout-form-column,
body.checkout-page .checkout-summary-column,
body.checkout-page .payment-notice {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 2rem;
}

/* Reset specific backgrounds */
body.checkout-page .order-summary-box {
    background: transparent;
    border: none;
    padding: 0;
    /* Let column handle padding */
}

body.checkout-page .payment-notice {
    margin-top: 2rem;
    border-left: 2px solid #fff !important;
    /* White accent */
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Form Controls */
body.checkout-page .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    color: #333;
    /* Dark text inside inputs */
}

body.checkout-page .form-control:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.checkout-page .summary-divider {
    background: rgba(255, 255, 255, 0.2);
}

body.checkout-page .checkout-item-info .variant {
    color: #ccc;
}

body.checkout-page .summary-row {
    color: #ddd;
}

body.checkout-page .btn-qty {
    color: #fff;
    border-color: #fff;
}

body.checkout-page .btn-qty:hover {
    background: #fff;
    color: #000;
}

body.checkout-page a {
    color: #fff;
    text-decoration: underline;
}

body.checkout-page a:hover {
    color: #ddd;
}

/* Checkout Row with Product Images */
.checkout-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* More space for larger image */
    padding: 1.5rem 0;
    /* More vertical breathing room */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-img {
    width: 80px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    border: none;
}

.checkout-row .checkout-item-info {
    flex: 1;
}

.checkout-row .checkout-item-info .name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.checkout-row .variant-label {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Quantity Controls in Checkout */
.checkout-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.checkout-qty-controls .btn-qty {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

.checkout-qty-controls .btn-qty:hover {
    color: #ddd;
    background: transparent;
}

/* Fix Cart Drawer Visibility on Checkout Page (Prevent White-on-White) */
body.checkout-page .cart-drawer {
    color: #333;
}

body.checkout-page .cart-drawer h2,
body.checkout-page .cart-drawer p,
body.checkout-page .cart-drawer span,
body.checkout-page .cart-drawer a,
body.checkout-page .cart-drawer .cart-item-name {
    color: #333;
}

body.checkout-page .cart-drawer .cart-item-variant,
body.checkout-page .cart-drawer .empty-cart-msg {
    color: #888;
}

body.checkout-page .cart-drawer .btn-qty {
    color: #555;
    border: none;
}

body.checkout-page .cart-drawer .btn-qty:hover {
    color: #000;
    background: transparent;
}

body.checkout-page .cart-drawer .quantity-controls {
    border: 1px solid #eee;
    /* Restore original border for drawer */
}

body.checkout-page .cart-drawer .btn-remove {
    color: #ccc;
}

body.checkout-page .cart-drawer .btn-remove:hover {
    color: #000;
}

/* Fix Mobile Nav on Checkout Page */
@media (max-width: 768px) {

    /* Force dark text on white mobile menu background */
    body.checkout-page nav a {
        color: #000;
        text-decoration: none;
    }

    /* Hamburger: White when closed (on dark background) */
    body.checkout-page .hamburger .line {
        background-color: #fff;
    }

    /* Hamburger: Black when open (on white menu background) */
    body.checkout-page nav.active~.hamburger .line {
        background-color: #000;
    }
}

.checkout-qty-controls span {
    font-size: 0.9rem;
    min-width: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.checkout-row .checkout-item-price {
    font-weight: 500;
    white-space: nowrap;
    font-size: 1.1rem;
}

.checkout-row .checkout-item-info {
    flex: 1;
}

.checkout-row .checkout-item-info .name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.checkout-row .checkout-item-price {
    font-weight: 500;
    white-space: nowrap;
}


body.checkout-page .logo,
body.checkout-page nav a {
    text-decoration: none;
}

/* Prevent language switch wrapping in mobile menu */
.lang-switch a {
    white-space: nowrap;
}

/* Hamburger Animation (4 lines -> X) */
.hamburger .line {
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

nav.active~.hamburger .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

nav.active~.hamburger .line:nth-child(2),
nav.active~.hamburger .line:nth-child(3) {
    opacity: 0;
}

nav.active~.hamburger .line:nth-child(4) {
    transform: translateY(-9px) rotate(-45deg);
}

/* CRITICAL CONTENT & HEADER FIXES */

/* 1. Force Header to Top on Checkout Page */
/* 1. Force Header to Top on Checkout Page */
body.checkout-page .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 2000 !important;
    padding: 2rem 5% !important;
}

/* 2. Improve Readability (Background Contrast) */
/* Fallback color if image loads slowly/fails */
body.checkout-page {
    background-color: #111;
}

/* Darker glass containers for better white text readability */
body.checkout-page .checkout-form-column,
body.checkout-page .checkout-summary-column,
body.checkout-page .payment-notice {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 3. Language Switch Formatting */
.lang-switch,
.lang-switch a {
    white-space: nowrap !important;
    display: inline-block !important;
    min-width: max-content;
}

/* 4. Form Input Visibility */
body.checkout-page .form-control {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

/* Fix: Restore Fixed Position for Mobile Nav (Undo conflict with .site-header > * relative rule) */
@media (max-width: 768px) {
    .site-header nav {
        position: fixed !important;
        top: 0;
        height: 100vh;
        z-index: 1000;
        /* Ensure it behaves as overlay */
    }

    /* Ensure Hamburger is ABOVE the Nav Overlay */
    .site-header .hamburger {
        z-index: 2001 !important;
        position: relative;
        /* Ensure it stays relative to header flex or absolute if needed */
    }
}

/* Journal / Blog Styles (Redesign) */
.journal-hero {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 100px;
    max-width: 60vw;
    /* Increased width to 60% */
    margin: 0 auto;
    min-height: 50vh;
    /* Reserve space to prevent CLS */
}

.journal-entry {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: none;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Center everything by default */
}

/* Metadata Row (Topic | Date) */
.journal-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom to match baseline */
    margin-bottom: 2rem;
    border-bottom: 1px solid transparent;
    /* Placeholder alignment */
}

.journal-topic {
    font-size: 1rem;
    text-transform: lowercase;
    color: #666;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.journal-date {
    font-size: 1rem;
    color: #666;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* Content */
.journal-content {
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.journal-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.journal-text {
    font-size: 1.05rem;
    /* Slightly larger */
    line-height: 1.8;
    color: #111;
    /* Darker black for better contrast */
    white-space: pre-wrap;
    margin-bottom: 2rem;
    text-align: center;
    /* Explicitly center text */
    max-width: 700px;
    /* Limit line length for readability */
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    /* Ensure it's not too light */
}

.journal-img {
    width: 100%;
    margin-bottom: 2rem;
    height: auto;
    object-fit: contain;
    /* Don't crop */
    display: block;
    max-height: 800px;
}

/* Separator Line (Thin, Long) */
.journal-separator {
    border: 0;
    height: 1px;
    background: #000;
    /* Black or very dark grey */
    margin: 4rem 0;
    width: 100%;
    /* Full width of container */
    opacity: 0.2;
    /* Thin visuals */
}

/* First post should not have a separator above it? Or maybe between items. 
   We'll render separator AFTER each item except the last one. */
.journal-entry+.journal-separator {
    display: block;
}

/* Admin UI */
.hidden {
    display: none !important;
}

#admin-controls {
    margin-bottom: 2rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.admin-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: lowercase;
    font-family: var(--font-body);
    transition: all 0.2s;
    margin: 0 0.25rem;
}

.btn-edit:hover {
    border-color: #333;
    color: #333;
}

/* Delete button styling for journal */
.btn-delete-inline {
    background: transparent;
    border: 1px solid #e0b0b0;
    color: #c66;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: lowercase;
    font-family: var(--font-body);
    transition: all 0.2s;
    margin: 0 0.25rem;
}

.btn-delete-inline:hover {
    border-color: #c00;
    color: #c00;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#image-preview img {
    max-width: 100px;
    margin-top: 0.5rem;
    border: 1px solid #333;
}

/* Footer Links (Admin & Legal) - Match standard footer text */
.copyright-footer a,
#admin-link {
    color: inherit;
    /* Inherit #999 from .copyright-footer */
    text-decoration: none;
    font-size: inherit;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s;
}

.copyright-footer a:hover,
#admin-link:hover {
    color: #000;
    /* Darker on hover like other links */
    text-decoration: underline;
}

/* Journal section links */
.journal-link-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.journal-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    text-transform: lowercase;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.journal-link:hover {
    border-bottom-color: currentColor;
    opacity: 0.7;
}