@font-face {
    font-family: 'forma djr display';
    src: url('../assets/fonts/forma-djr-banner/FormaDJRDisplay-Regular-Testing.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'forma djr display';
    src: url('../assets/fonts/forma-djr-banner/FormaDJRDisplay-Medium-Testing.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'forma djr display';
    src: url('../assets/fonts/forma-djr-banner/FormaDJRDisplay-Bold-Testing.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'forma djr display';
    src: url('../assets/fonts/forma-djr-banner/FormaDJRDisplay-Thin-Testing.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'forma djr display';
    src: url('../assets/fonts/forma-djr-banner/FormaDJRDisplay-Italic-Testing.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* ===== CSS Variables ===== */
:root {
    --bg-dark: #1a2a1a;
    --bg-gradient-start: #1e3025;
    --bg-gradient-end: #0f1a12;
    --accent-green: #2d4a35;
    --accent-gold: #8b5a2b;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --text-gray: #888888;
    --glow-color: rgba(255, 255, 255, 0.8);
    --glow-soft: rgba(255, 255, 255, 0.2);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    background-color: #0d0d0d;
    margin: 0;
    padding: 0;
}

/* Fallback to hide white spaces */


body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-light);
    min-height: 100vh;
}

/* ===== Landing Page ===== */
.landing-page {
    background: linear-gradient(180deg, #2a3a2d 0%, #1a2a1d 50%, #0f1a12 100%);
    position: relative;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

/* ===== Decorative Lines ===== */
.decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decorative-lines svg {
    width: 100%;
    height: 100%;
}

.curve-line {
    animation: drawLine 3s ease-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== Logo ===== */
.logo-container {
    position: relative;
    margin-bottom: 40px;
}

.logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 60px rgba(45, 74, 53, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.logo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-star {
    width: 80%;
    height: 80%;
    opacity: 0.6;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 80px 20px rgba(255, 255, 255, 0.1),
        0 0 120px 40px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* ===== Brand Section ===== */
.brand-section {
    text-align: center;
    margin-bottom: 60px;
}

.brand-arabic {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.brand-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.nav-link:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===== Rings Collection Page ===== */
.collection-page {
    min-height: 100vh;
    background: url('../assets/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0d1a12;
    position: relative;
    overflow-x: hidden;
}

.collection-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(47, 79, 58, 0.4) 0%, rgba(13, 26, 18, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.collection-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Left Section */
.collection-left {
    flex: 0 0 45%;
    /* Wider to push content closer to center/rings */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Align content to the right (toward rings) */
    padding: 60px 40px 60px 60px;
    position: relative;
    text-align: left;
}

.season-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.season-badge .nav-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.collection-info {
    position: relative;
    z-index: 2;
    padding-left: 0;
    margin-left: -100px;
    width: 420px;
    text-align: center;
    font-family: "forma djr display", sans-serif;
}

.collection-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: #000;
    border-radius: 50%;
    z-index: -1;
}

.season-label {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.55em;
    word-spacing: 0.25em;
    text-transform: lowercase;
}

.season-label span {
    font-weight: 700;
}

.collection-title {
    font-family: 'forma djr display', sans-serif;
    font-size: 50pt;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 60pt;
    letter-spacing: 0;
}

.home-link {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding: 0 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.collection-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Center Section - Rings Display */
.collection-center {
    flex: 0 0 25%;
    /* Reduced to accommodate wider left section */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    margin-left: 60px;
}

.rings-rail {
    position: relative;
    height: 90vh;
    width: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.rings-rail::before {
    /* Dark bold black line — leftmost */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #000000;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6);
    clip-path: polygon(50% 0%, 100% 5%, 100% 95%, 50% 100%, 0% 95%, 0% 5%);
}

.rings-rail::after {
    /* Bright white line — rightmost */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    z-index: 0;
    clip-path: polygon(50% 0%, 100% 5%, 100% 95%, 50% 100%, 0% 95%, 0% 5%);
}

.ring-item {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    /* Ensure this is higher than the lines */
}

.ring-item {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    /* Ensure this is higher than the lines */
}

.ring-item:hover {
    transform: scale(1.1);
    /* Slight hover scaling */
}

/* Active state (when clicked) */
.ring-item.active {
    transform: scale(1.8);
    /* Magnify significantly */
    z-index: 50;
    /* Ensure it floats above others */
}

/* Alternating positioning relative to the line */
.ring-item:nth-child(odd) {
    left: -50px;
    /* First, 3rd... to the left */
}

.ring-item:nth-child(even) {
    left: 50px;
    /* 2nd, 4th... to the right */
}

.ring-item:hover .ring-glow,
.ring-item.active .ring-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.ring-item.active .ring-3d-container {
    filter: brightness(1.3);
}

.ring-glow {
    display: none;
    /* Glow removed as per user request */
}

/* Crosshair effect removed as per user request */
.ring-glow::before,
.ring-glow::after {
    display: none;
    content: none;
}

.ring-3d-container {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}

/* Right Section */
.collection-right {
    flex: 1; /* Automatically takes remaining space without overflowing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 70px 60px 40px;
    position: relative;
}

/* Make product preview absolute to move freely vertically */
.product-preview {
    position: absolute;
    left: 0;
    margin-left: -20px;
    /* Pull slightly towards the ring */
    /* Position to the right of center (50%) */
    right: auto;
    /* Remove right positioning to prevent cutoff */
    top: 50%;
    /* Default, will be overridden by JS */
    transform: translateY(-50%);
    width: calc(100% - 80px);
    max-width: 400px;
    z-index: 10;
    /* Lower than .ring-item (20) to place line behind rings */
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    display: block;
    text-align: left;
    /* Align text to the left side of the block */
}

/* Horizontal connector line - positioned between name (above) and info+ (below) */
.connector-line {
    position: relative;
    height: 2px;
    margin: 10px 0;
    /* Sharp end using linear gradient fade */
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 5%,
            rgba(255, 255, 255, 0.6) 80%,
            transparent 100%);
    transform-origin: left center;
    pointer-events: none;
    display: block;
    max-width: calc(100vw - 120px);
}

.product-number {
    display: none;
}

.product-name {
    font-family: "Layaan Arabic", "Amiri", "forma djr display", serif;
    font-size: 16pt;
    font-style: italic;
    font-weight: normal;
    color: #808080;
    margin: 0;
    margin-bottom: 0;
    white-space: nowrap;
    display: block;
    text-align: right;
}

.product-number-label {
    font-style: normal;
    /* Numbers should not be italic */
    font-weight: bold;
    color: #000;
    margin-right: 5px;
}

.info-toggle {
    font-family: "forma djr display", sans-serif;
    font-size: 28pt;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    margin-top: 0;
    display: block;
    text-align: right;
}

.info-toggle:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ===== Product Detail Page ===== */
/* Product Page Design - Dark Green Grid */
.product-page {
    min-height: 100vh;
    background: url('../assets/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0d1a12;
    position: relative;
    overflow-x: hidden;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Subtle Green Gradient Overlay */
.product-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(47, 79, 58, 0.4) 0%, rgba(13, 26, 18, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.product-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Rail | Content - Viewer is absolute */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- Vertical Rail Column --- */
.grid-rail {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* Center the line */
}

/* --- Shared Decorative Lines --- */
.rail-lines {
    position: absolute;
    top: 0;
    left: 130px;
    height: 100%;
    width: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.rail-line-black {
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    clip-path: polygon(50% 0%, 100% 5%, 100% 95%, 50% 100%, 0% 95%, 0% 5%);
}

.rail-line-brown {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #3B2517 5%, #3B2517 95%, transparent 100%);
}

.rail-line-white {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 100% 5%, 100% 95%, 50% 100%, 0% 95%, 0% 5%);
}

.horizontal-line-glow {
    position: fixed;
    top: 28vh;
    left: 0;
    width: 100vw;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 2%,
            rgba(255, 255, 255, 0.6) 80%,
            transparent 100%);
    opacity: 0.4;
    z-index: 5;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.vertical-line {
    display: none;
    /* Deprecated in favor of .rail-lines */
}

/* Typography */
.product-header-row {
    margin-bottom: 20px;
    margin-top: 180px;
    /* Push down below the horizontal line area */
}

.product-number {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    /* Pure black */
    margin-right: 15px;
    text-shadow: none;
}

.product-title {
    display: inline-block;
    font-family: "Layaan Arabic", "Amiri", "Helvetica Neue", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-description {
    font-family: 'forma djr display', sans-serif;
    /* Match global site font family */
    font-style: italic;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 50px;
    max-width: 500px;
    border-left: none;
    padding-left: 0;
}

.product-description::before {
    content: none;
}

/* Actions */
.stock-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.size-selector-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Helvetica Neue', sans-serif;
}

.size-label {
    font-weight: 700 !important;
    font-style: italic !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    display: block !important;
}

.size-options {
    display: flex;
    gap: 15px;
}

.size-option {
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.size-option:hover,
.size-option.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.add-to-cart-text-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    text-align: left;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.add-to-cart-text-btn:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateX(10px);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    /* Pure black */
}

/* --- Viewer Column --- */
/* --- Viewer - Absolute Positioned --- */
.grid-viewer {
    position: absolute;
    top: 28%;
    /* Align with horizontal line */
    right: 5%;
    /* Position on right side */
    transform: translateY(-50%);
    /* Center vertically */
    width: 300px;
    height: 300px;
    z-index: 10;
    pointer-events: none;
}

.product-3d-viewer {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: auto;
}

.product-3d-container {
    width: 100%;
    height: 100%;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            transparent 70%);
    z-index: -1;
    filter: blur(20px);
}




/* ===== Cart Styles ===== */
.cart-icon {
    position: fixed;
    top: 35px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.cart-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 50%;
    font-family: "forma djr display", sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(15, 26, 18, 0.98);
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: "forma djr display", sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -1px;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: "forma djr display", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.cart-item-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-price {
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: "forma djr display", sans-serif;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-item-remove:hover {
    color: #ff6666;
}

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

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

.qty-value {
    min-width: 20px;
    text-align: center;
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
}

.clear-cart-btn {
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-family: "forma djr display", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: #ff6666;
    color: #ff6666;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: "forma djr display", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    font-family: "forma djr display", sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--text-muted);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ===== Mobile Background Fix ===== */
/* background-attachment: fixed doesn't work well on mobile devices */
@media (max-width: 1024px) {

    .collection-page,
    .product-page,
    .collection-page::after,
    .product-page::after,
    .checkout-page::after,
    .profile-page::after,
    .seeds-page::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: url('../assets/Background.png') center / cover no-repeat;
        z-index: -2;
    }

    .collection-page,
    .product-page,
    .index-page,
    .checkout-page,
    .profile-page,
    .seeds-page {
        background-image: none !important;
    }
}

/* ===== Product Detail Page - Mobile ===== */
/* ===== Responsive ===== */
@media (max-width: 1200px) {

    .collection-container {
        flex-direction: column;
    }

    .product-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .product-nav {
        grid-row: 1;
    }

    .product-left {
        grid-row: 2;
        padding: 40px;
    }

    .product-right {
        grid-row: 3;
        padding: 40px;
    }

    .horizontal-line {
        display: none;
    }

    .nav-badge::before {
        display: none;
    }

    .collection-left,
    .collection-center,
    .collection-right {
        flex: none;
        width: 100%;
    }

    .rings-rail {
        flex-direction: row;
        height: auto;
        width: 90%;
        padding: 40px 0;
    }

    .rings-rail::before {
        width: 100%;
        height: 1px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .collection-container {
        flex-direction: column;
        padding-top: 60px;
        /* Space for top navigation/header */
        height: auto;
        min-height: 100vh;
    }

    /* Stack sections */
    .collection-left,
    .collection-center,
    .collection-right {
        flex: 0 0 auto;
        width: 100%;
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    /* Left Section - Intro */
    .collection-left {
        order: 1;
        padding-bottom: 0;
        align-items: center;
        /* Center align text on mobile */
    }

    .season-badge {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
    }

    .collection-info::before {
        display: none;
        /* Hide large decoration to save space */
    }

    /* Center Section - Rings */
    .collection-center {
        order: 2;
        height: 60vh;
        /* Reduced height for mobile scrolling rail */
        overflow: visible;
        /* Allow glow to spill */
        margin: 20px 0;
        position: relative;
        padding-left: 30px;
        /* Space for the vertical line */
    }

    /* Mobile vertical line on the left of rings - REMOVED */
    .collection-center::before {
        display: none !important;
    }

    .rings-rail {
        height: 100%;
        width: 12px;
    }

    /* Reduce offsets on mobile */
    .ring-item:nth-child(odd) {
        left: -30px;
    }

    .ring-item:nth-child(even) {
        left: 30px;
    }

    .ring-item {
        width: 100px;
        /* Smaller rings */
        height: 100px;
    }

    .ring-glow {
        width: 180px;
        height: 180px;
    }

    /* Active Magnification Adjustment for Mobile */
    .ring-item.active {
        transform: scale(1.4);
    }

    /* Right Section - Info */
    .collection-right {
        order: 3;
        position: fixed;
        bottom: 0;
        left: 0;
        padding: 20px;
        background: linear-gradient(to top, #0f1a12 90%, transparent);
        z-index: 100;
        pointer-events: none;
        /* Pass clicks unless content active */
        justify-content: flex-end;
    }

    .product-preview {
        width: 100%;
        pointer-events: auto;
        position: relative;
        transform: none;
        text-align: center;
    }

    .product-name {
        white-space: normal;
        /* Allow wrapping on mobile */
        font-size: 16pt;
    }
}

@media (max-width: 1024px) {
    .brand-arabic {
        font-size: 2.5rem;
        letter-spacing: 0.3em;
    }

    .collection-title {
        font-size: 2.5rem;
    }

    .product-id,
    .product-title {
        font-size: 1.8rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 100px rgba(255, 255, 255, 0.5);
    }
}

.ring-item {
    animation: float 4s ease-in-out infinite;
}

.ring-item:nth-child(2) {
    animation-delay: 0.5s;
}

.ring-item:nth-child(3) {
    animation-delay: 1s;
}

.ring-item:nth-child(4) {
    animation-delay: 1.5s;
}

/* ===== New Landing Page Styles (Rebuild) ===== */
.index-page {
    background: url('../assets/homescreen_bg.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #0d0d0d;
    min-height: 100vh;
    width: 100%;
    display: block;
    font-family: 'Manrope', sans-serif;
    /* Alternative to Forma DJR Display */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.index-page .background-lines {
    display: none;
    /* User requested to move/hide the square for now */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.index-page .decorative-line {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 40%;
    opacity: 0.4;
    animation: ambientGlow 4s ease-in-out infinite;
}

/* Main container overrides */
.index-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Logo section */
.index-page .logo-container {
    position: relative;
    margin-bottom: 0;
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
}

.index-page .logo {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    /* Fuzzy sharp white outer glow */
    filter:
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.25));
}

.index-page .logo:hover {
    transform: scale(1.05) rotate(5deg);
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.35));
}

.index-page .brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
}

.index-page .arabic-logo-img {
    display: block;
    /* Match the nav menu width so it aligns with Rings | Watch | Other */
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 0 auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

/* Tagline base styles — typing animation handled by JS in index.html */
.index-page .tagline {
    font-family: 'Space Mono', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 400;
    color: #b8b8b8;
    letter-spacing: 0.05em;
    line-height: 20px;
    font-style: normal;
    margin-top: 0;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    max-width: fit-content;
    min-height: 1.5em;
}

/* Navigation */
.index-page .navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.index-page .nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.index-page .nav-divider {
    color: #d4d4d4;
    margin: 0 0.8rem;
    font-size: 16px;
    font-family: 'Space Mono', 'Courier New', Courier, monospace;
    font-weight: 400;
}

.index-page .nav-links a {
    color: #d4d4d4;
    text-decoration: none;
    font-family: 'Space Mono', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.index-page .nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a0b090, transparent);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.index-page .nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.index-page .nav-links a:hover::before {
    width: 100%;
}

/* Animations */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }

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

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

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

@keyframes ambientGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .index-page .logo {
        width: 220px;
        height: 220px;
    }

    .index-page .arabic-logo-img {
        max-width: 320px;
    }

    .index-page .arabic-text {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .index-page .tagline {
        font-size: 13.3281px;
    }

    .index-page .nav-links {
        flex-direction: row;
        gap: 0;
    }

    .index-page .nav-divider {
        display: inline;
    }

    .index-page .nav-links a {
        font-size: 1rem;
    }

    .index-page .decorative-line {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .index-page .logo {
        width: 240px;
        height: 240px;
    }

    .index-page .arabic-logo-img {
        max-width: 320px;
    }

    .index-page .arabic-text {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .index-page .tagline {
        font-size: 14px;
        letter-spacing: 0;
        white-space: normal;
        max-width: 90%;
        margin: 10px auto;
        font-family: 'Space Mono', 'Courier New', Courier, monospace !important;
    }

    .index-page .brand-section {
        margin-bottom: 2.5rem;
    }
}

/* ===== Seeds Page (Rings Redesign) ===== */
.seeds-page {
    background: url('../assets/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #112216;
    /* Slightly lighter olive green */
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

.seeds-page .collection-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Background Texture if needed, otherwise plain dark green */
.seeds-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Left Section & Black Circle */
.seeds-page .collection-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 2;
}

.seeds-page .black-circle {
    position: absolute;
    width: 500px;
    /* Adjust size as needed */
    height: 500px;
    background-color: #000000;
    border-radius: 50%;
    top: 50%;
    left: 200px;
    /* Move further right as requested (was 50px) */
    transform: translateY(-50%);
    z-index: -1;
}

.seeds-page .collection-info {
    position: relative;
    padding-left: 100px;
    /* Indent text */
    text-align: left;
    max-width: 400px;
}

.seeds-page .season-label {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.seeds-page .season-label span {
    font-weight: 700;
    color: #fff;
}

.seeds-page .collection-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

.seeds-page .home-link {
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 2rem;
    display: inline-block;
}

.seeds-page .collection-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    max-width: 250px;
}

/* Center Rings Rail */
.seeds-page .collection-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 2;
    position: relative;
}

.seeds-page .rings-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 2px;
    height: 80vh;
    background-color: rgba(255, 255, 255, 0.2);
    /* The vertical line */
}

/* Ring Items Positioning */
.seeds-page .ring-item {
    position: absolute;
    width: 150px;
    height: 150px;
    /* Reset typical spacing */
}

/* Custom positioning for each ring to match image 'scattered' look along line */
.seeds-page .ring-item:nth-child(1) {
    top: 0%;
    transform: translateX(50%);
    /* Right side */
}

.seeds-page .ring-item:nth-child(2) {
    top: 30%;
    transform: translateX(-50%);
    /* Left side */
}

.seeds-page .ring-item:nth-child(3) {
    top: 60%;
    transform: translateX(20%);
    /* Slightly right/center */
}

.seeds-page .ring-item:nth-child(4) {
    bottom: 5%;
    transform: translateX(-40%);
    /* Left side */
}

/* Ensure 3D objects are visible */
.seeds-page .ring-3d-container {
    width: 100%;
    height: 100%;
    filter: none;
    /* Remove filter for clarity unless hovered */
}

/* ===== Auth Button & User Menu ===== */
.auth-button {
    position: fixed;
    top: 90px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-light);
    width: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-family: "forma djr display", sans-serif;
    font-size: 0; /* Hide text */
    z-index: 1000;
    transition: all 0.3s ease;
    height: 44px;
}

.auth-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.auth-button svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
    fill: none;
}

.home-icon {
    position: fixed;
    top: 145px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    color: var(--text-light);
    overflow: hidden;
}

.home-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.home-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.user-menu {
    position: fixed;
    top: 90px;
    right: 30px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    height: 44px;
    flex-direction: row-reverse; /* expand to the left so it stays aligned on right */
}

.user-menu .user-name {
    color: var(--text-light);
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-menu .user-name::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.user-menu .user-name:hover {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.user-menu .logout-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-light);
    padding: 0 20px;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.user-menu .logout-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
}

/* ===== Auth Modals ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1e3025 0%, #0f1a12 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-modal.open .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-modal-close:hover {
    color: var(--text-light);
}

.auth-modal h2 {
    font-family: "forma djr display", sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -1px;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-family: "forma djr display", sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-muted);
}

.auth-form input {
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent browser autofill background */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f1a12 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-form input:focus {
    border-bottom-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05) !important;
}

.auth-form .submit-btn {
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 16px;
    border-radius: 5px;
    font-family: "forma djr display", sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-form .submit-btn:hover {
    background: var(--text-muted);
}

.auth-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 5px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: none;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    padding-right: 45px;
    outline: none;
    transition: border-color 0.3s ease;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-light);
}

.toggle-password.visible {
    color: var(--text-light);
}

.eye-icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Checkout Page ===== */
.checkout-page {
    background: url('../assets/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0d1a12;
    color: var(--text-light);
    min-height: 100vh;
    padding: 60px 40px;
    font-family: "forma djr display", sans-serif;
}

.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -1px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-light);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.checkout-form-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-light);
    text-transform: uppercase;
}

.checkout-form-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.checkout-form-section label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkout-form-section input[type="text"],
.checkout-form-section input[type="email"],
.checkout-form-section input[type="tel"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.checkout-form-section input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

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

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-option span {
    font-size: 1rem;
    color: var(--text-light);
}

.payment-details {
    margin-top: 20px;
}

.place-order-btn {
    width: 100%;
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 18px;
    border-radius: 5px;
    font-family: "forma djr display", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.place-order-btn:hover {
    background: var(--text-muted);
}

.order-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 40px;
}

.order-summary h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-light);
    text-transform: uppercase;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h4 {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-light);
}

.checkout-item-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.checkout-item-price {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.summary-totals {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

/* ===== Profile Page ===== */
.profile-page {
    background: url('../assets/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0d1a12;
    color: var(--text-light);
    min-height: 100vh;
    padding: 60px 40px;
    font-family: "forma djr display", sans-serif;
}

.back-to-shop {
    position: fixed;
    top: 30px;
    left: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 100;
}

.back-to-shop:hover {
    color: var(--text-light);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -1px;
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.profile-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-nav-item {
    background: none;
    border: none;
    text-align: left;
    padding: 15px 20px;
    color: var(--text-muted);
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.profile-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.profile-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.profile-nav-item.logout {
    margin-top: 20px;
    color: #ff6666;
}

.profile-nav-item.logout:hover {
    background: rgba(255, 100, 100, 0.1);
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-tab h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-form label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.profile-form input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.save-profile-btn {
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-family: "forma djr display", sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.save-profile-btn:hover {
    background: var(--text-muted);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-orders {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.no-orders p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.shop-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
}

.shop-link:hover {
    text-decoration: underline;
}

.order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.order-number .label,
.order-date .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.order-number .value,
.order-date .value {
    font-size: 1rem;
    color: var(--text-light);
}

.order-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.order-status.pending {
    background: rgba(255, 200, 50, 0.2);
    color: #ffc832;
}

.order-status.processing {
    background: rgba(100, 150, 255, 0.2);
    color: #6496ff;
}

.order-status.shipped {
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
}

.order-status.delivered {
    background: rgba(100, 200, 100, 0.2);
    color: #64c864;
}

.order-status.cancelled {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.order-items {
    padding: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.order-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item .item-name {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
}

.tracking-search {
    max-width: 600px;
    margin-bottom: 40px;
}

.tracking-search .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tracking-search label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tracking-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.tracking-search input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.track-btn {
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-btn:hover {
    background: var(--text-muted);
}

.order-item .item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-item .item-price {
    font-size: 1rem;
    color: var(--text-light);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.order-total {
    font-size: 1.1rem;
    font-weight: 500;
}

.track-order-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-order-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* Tracking */
.tracking-search {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.tracking-search .form-group {
    flex: 1;
    margin-bottom: 0;
}

.track-btn {
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: "forma djr display", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-btn:hover {
    background: var(--text-muted);
}

.tracking-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
}

.tracking-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.tracking-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-step.completed .step-icon svg,
.timeline-step.current .step-icon svg {
    stroke: #64c864;
}

.timeline-step.completed .step-icon {
    background: rgba(100, 200, 100, 0.3);
}

.timeline-step.current .step-icon {
    background: rgba(100, 150, 255, 0.3);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-step.completed .step-label,
.timeline-step.current .step-label {
    color: var(--text-light);
}

.step-line {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-step.completed .step-line {
    background: rgba(100, 200, 100, 0.5);
}

.tracking-details,
.shipping-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-details h4,
.shipping-info h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.tracking-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-muted);
}

.tracking-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: var(--text-light);
}

.shipping-info p {
    color: var(--text-muted);
    margin: 5px 0;
}

.tracking-not-found {
    background: rgba(255, 100, 100, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tracking-search {
        flex-direction: column;
    }

    .tracking-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-step {
        flex-direction: row;
        gap: 15px;
    }

    .step-line {
        display: none;
    }
}

/* ===== Global Mobile/Tablet Adjustments (max-width: 1024px) ===== */
@media (max-width: 1024px) {

    /* Header Elements - Vertical stack on right: Cart → Profile → Home */
    .cart-icon {
        top: 15px !important;
        right: 15px !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        padding: 5px !important;
    }

    .cart-count {
        top: -5px !important;
        right: -5px !important;
        padding: 2px 6px !important;
        font-size: 10px !important;
    }

    .auth-button {
        top: 57px !important;
        right: 15px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        z-index: 1000 !important;
    }

    .user-menu {
        top: 57px !important;
        right: 15px !important;
        gap: 6px !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
        height: 36px !important;
        padding: 0 !important;
        z-index: 1000 !important;
        flex-direction: row-reverse !important;
        /* Do NOT set display here — let JS control visibility */
    }

    .user-menu .user-name {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 17px !important;
        padding: 6px 10px !important;
        height: 36px !important;
        font-size: 0.75rem !important;
        color: white !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        max-width: 100px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .user-menu .user-name::before {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
    }

    .user-menu .logout-btn {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 17px !important;
        padding: 6px 10px !important;
        height: 36px !important;
        font-size: 0.75rem !important;
        color: white !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
    }

    .home-icon {
        top: 99px !important;
        right: 15px !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
    }

    /* Landing/Index Page */
    .index-page .logo {
        width: 240px;
        height: 240px;
    }

    .index-page .background-lines {
        display: none !important;
    }

    .index-page .index-container {
        padding: 20px !important;
        justify-content: center !important;
    }

    .index-page .arabic-logo-img {
        max-width: 340px;
        margin-bottom: 10px !important;
    }

    .index-page .navigation {
        flex-direction: column;
        gap: 1.5rem;
    }

    .index-page .nav-links {
        flex-direction: row;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .index-page .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        font-family: 'Space Mono', 'Courier New', Courier, monospace !important;
    }

    .index-page .nav-divider {
        display: inline;
        font-family: 'Space Mono', 'Courier New', Courier, monospace !important;
    }

    /* Collection Page (Rings) Mobile Overhaul */
    .collection-page {
        overflow-y: auto !important;
    }

    .collection-page .collection-container {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 60px 20px 40px !important;
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
    }

    .collection-page .collection-left {
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        padding: 0 !important;
        margin-top: 100px !important;
        margin-bottom: 20px !important;
    }

    .collection-page .black-circle {
        display: none !important;
    }

    .collection-page .collection-info {
        padding-left: 20px !important;
        text-align: left !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .collection-page .collection-title {
        font-size: 3.2rem !important;
        margin: 5px 0 15px !important;
        letter-spacing: -2px !important;
        color: #fff !important;
        font-style: normal !important;
        margin-left: 0 !important;
    }

    .collection-page .season-label {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 5px !important;
        margin-left: 0 !important;
        text-align: left !important;
        opacity: 0.6;
    }

    .collection-page .home-link {
        font-size: 0.8rem !important;
        padding: 8px 30px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        margin: 5px 0 25px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        display: inline-block !important;
        color: #fff !important;
    }

    .collection-page .collection-description {
        display: block !important;
        font-size: 0.85rem !important;
        font-style: italic !important;
        color: var(--text-muted) !important;
        margin: 5px 0 0 !important;
        max-width: 260px !important;
        text-align: left !important;
        opacity: 0.7;
    }

    .collection-page .collection-center {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        position: relative !important;
    }

    .collection-page .rings-rail {
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        background-color: transparent !important;
        background-image: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 60px !important;
    }

    .collection-page .rings-rail::before,
    .collection-page .rings-rail::after {
        display: none !important;
        /* Hide vertical rail lines on mobile */
    }

    .collection-page .ring-item {
        position: relative !important;
        width: 100% !important;
        max-width: 320px !important;
        height: 380px !important;
        margin: 0 auto !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%) !important;
        border-bottom: none !important;
        /* Removed horizontal white dividers */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .collection-page .ring-3d-container {
        width: 50% !important;
        height: 140px !important;
        margin-bottom: 10px !important;
    }

    /* Add Info to Ring Item Footer on Mobile */
    .collection-page .ring-item::after {
        content: "Tap for details";
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 1px;
        text-transform: uppercase;
        position: absolute;
        bottom: 10px;
        right: 75px;
        margin: 0;
    }

    .collection-page .mobile-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        position: absolute !important;
        bottom: 30px !important;
        right: 75px !important;
        text-align: right !important;
        margin: 0 !important;
    }

    .collection-page .collection-right {
        display: none !important;
    }

    .collection-page .product-preview {
        display: none !important;
    }

    .seeds-page .rings-rail::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .seeds-page .ring-item {
        position: relative !important;
        width: 280px !important;
        height: 280px !important;
        margin: 20px 0 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .seeds-page .collection-right {
        width: 100% !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    .seeds-page .product-preview {
        display: none !important;
        /* Hide dynamic preview on mobile, user clicks ring for details */
    }

    .seeds-page .product-name {
        font-size: 1.8rem !important;
        margin: 10px 0 !important;
    }

    .seeds-page .product-number-label {
        font-size: 1.2rem !important;
        display: block !important;
        margin-bottom: 5px !important;
    }

    .seeds-page .connector-line {
        display: none !important;
    }

    /* Product Page Specifics (overriding inline styles) */
    .product-page {
        overflow-y: auto !important;
    }

    .product-page .grid-rail {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 70px 20px 10px !important;
        /* Clears fixed header icons */
    }

    .product-page .nav-badge {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8px 0 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        margin: 0 auto 30px !important;
        max-width: fit-content !important;
    }

    .product-page .rail-lines,
    .product-page .horizontal-line-glow {
        display: none !important;
    }

    .product-page .product-content {
        margin-left: 0 !important;
        height: auto !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-page .viewer-container {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto 20px !important;
        transform: none !important;
        order: -1 !important;
        /* Move model to top in flex flow */
    }

    .product-page .viewer-container .star-glow {
        width: 240px !important;
        height: 240px !important;
        animation:
            starBounce 3s ease-in-out infinite,
            starFlicker 7s ease-in-out infinite !important;
    }

    @keyframes starBounce {
        0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
        50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
    }

    .product-page .header-section {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
        margin-bottom: 20px !important;
        padding-right: 20px !important;
    }

    .product-page .product-number {
        font-size: 2rem !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        color: #000000 !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #000000 !important;
    }

    .product-page .product-title {
        font-size: 2.2rem !important;
        text-align: right !important;
    }

    .product-page .body-section {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .product-page .product-description {
        font-size: 1rem !important;
        justify-content: flex-end !important;
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        white-space: pre-line !important;
    }

    .product-page .size-label {
        text-align: left !important;
    }

    .product-page .size-options {
        justify-content: flex-start !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    .product-page .add-to-cart-text-btn {
        font-size: 1.8rem !important;
        text-align: left !important;
        margin: 0 0 15px 0 !important;
    }

    .product-page .product-price {
        text-align: left !important;
    }

    /* Checkout & Profile Pages */
    .checkout-content,
    .profile-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .checkout-page,
    .profile-page {
        padding: 80px 20px 40px !important;
    }

    .checkout-header h1,
    .profile-header h1 {
        font-size: 2rem !important;
    }

    .order-summary,
    .profile-sidebar {
        position: static !important;
    }

    .profile-nav {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .profile-nav-item {
        white-space: nowrap;
        padding: 10px 15px !important;
    }

    /* Auth Modals */
    .auth-modal-content {
        padding: 30px 20px !important;
        width: 95% !important;
    }

    .auth-modal h2 {
        font-size: 1.8rem !important;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100% !important;
        right: -100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .cart-sidebar.open {
        right: 0 !important;
    }

    .cart-sidebar .cart-header {
        flex-shrink: 0 !important;
        padding: 20px !important;
    }

    .cart-sidebar .cart-items {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
        padding: 15px 20px !important;
    }

    .cart-sidebar .cart-footer {
        flex-shrink: 0 !important;
        padding: 15px 20px !important;
        padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(15, 26, 18, 0.98) !important;
    }
}

@media (max-width: 480px) {
    .seeds-page .item-name {
        font-size: 2.2rem;
    }

    .product-page .product-title {
        font-size: 2.5rem;
    }

    .product-page .add-to-cart-text-btn {
        font-size: 1.8rem;
    }

    .waitlist-form .add-to-cart-text-btn {
        font-size: 2.5rem !important;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .form-group label {
        min-width: unset !important;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select {
        width: 100% !important;
    }
}