:root {
    --bg-color: #FFFFFF;
    --black-pure: #FFFFFF;
    --accent-red: #E30613; /* Premium vibrant luxury red */
    --accent-gold: #DFBA73; /* Refined soft champagne gold highlight */
    --text-main: #111111; /* Deep charcoal black for main text */
    --text-muted: #555555;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 20%, #FFFFFF 0%, #F9F9F9 75%, #F0F0F0 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Splash screen lock */
    position: relative;
    height: 100vh;
}

.catalog-view {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Unified Header & Hero Animation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black-pure);
    display: flex;
    flex-direction: column; /* Vertical stack to fully eliminate layout overlaps */
    justify-content: center;
    align-items: center;
    gap: 35px; /* Perfect spacing between logo and text/button */
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.catalog-view .main-header {
    height: 80px;
    flex-direction: row; /* Horizontal row alignment in sticky mode */
    padding: 0 5%;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1.5px dashed var(--accent-red); /* Premium luxury red dashed stitching */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(227, 6, 19, 0.05);
}

/* Splash Screen Entrance Animations */
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.header-logo {
    width: 42vh;
    height: 42vh;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1/1; /* Perfect circle badge */
    object-fit: contain; /* Keep original logo shapes entirely visible, preventing crop cuts */
    background-color: #FFFFFF; /* Pure white background fills circle area naturally */
    padding: 24px; /* Internal padding guarantees text is never cropped by boundary curves */
    border-radius: 50%; /* Make corners circular badge */
    border: 3.5px solid var(--accent-red); /* Premium signature brand-red ring outline */
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.12), 0 0 0 8px rgba(255, 255, 255, 0.8); /* Elegant double-ring style */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    animation: fadeInScale 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.05));
}

.catalog-view .header-logo {
    width: 58px;
    height: 58px;
    padding: 5px; /* smaller padding for smaller badge */
    border-width: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.03));
}

.hero-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    transition: all 0.4s ease;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s both;
}

.catalog-view .hero-bottom-content {
    display: none; /* Hide when view transitions to catalog grid */
}

.hero-saying {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 6px;
    text-align: center;
}

.view-catalog-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #111;
    background: rgba(0, 0, 0, 0.02);
    border: 2px dashed rgba(0, 0, 0, 0.3); /* Elegant dashed black stitching */
    padding: 12px 40px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.view-catalog-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    border-style: dashed;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.3);
    letter-spacing: 4px;
}

/* Spacer to push catalog down (No longer needed since header is sticky) */
.hero-spacer {
    display: none;
}

@media (min-width: 768px) {
    .hero-saying {
        font-size: 4rem;
        letter-spacing: 10px;
    }
}

/* Catalog Section */
.catalog {
    padding: 100px 5% 120px 5%; /* Top padding clears the 80px header */
    position: relative;
    z-index: 2;
    overflow: hidden; /* Clip veins that extend beyond */
    min-height: 100vh; /* Ensures footer stays pushed down while loading */
    background-color: var(--accent-red);
    background-image: radial-gradient(circle at 50% 30%, #E30613 0%, #B2030C 75%, #8A0107 100%);
}

/* Decorative Veins */
.veins-left,
.veins-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.15;
}

.veins-left {
    left: 0;
}

.veins-right {
    right: 0;
    transform: scaleX(-1);
}

.veins-left img,
.veins-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide veins on mobile â€” not enough side space */
@media (max-width: 1200px) {
    .veins-left,
    .veins-right {
        display: none;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: start;
}

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

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Product Item Widget */
.product-item {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Product status badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 4px;
    pointer-events: none;
    font-weight: bold;
}

.badge-new  { background: var(--accent-gold); color: #111111; border: 1px solid rgba(223, 186, 115, 0.2); }
.badge-sale { background: var(--accent-red); color: #ffffff; }
.badge-sold { background: #e0e0e0; color: #888888; text-decoration: line-through; }

.product-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    border-style: dashed; /* Stitching details! */
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.12), 0 5px 15px rgba(0, 0, 0, 0.03);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    position: relative; /* Anchors the status badges correctly */
}

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

.bottom-row {
    margin-top: auto;
}

.item-desc {
    color: #555;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    margin: 5px 0;
}

.check-it-out-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    background: rgba(227, 6, 19, 0.03);
    border: 1.5px dashed var(--accent-red); /* Dashed stitching! */
    padding: 8px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: fit-content;
    white-space: nowrap;
    border-radius: 4px;
}

.check-it-out-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    border-style: dashed;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.35);
}

.product-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.product-image-wrapper:hover .product-cover {
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 767px) {
    .product-image-wrapper {
        aspect-ratio: auto;
    }
    .product-cover {
        height: auto;
        object-fit: contain;
    }
    .product-info {
        padding: 10px;
        gap: 6px;
    }
    .item-label {
        font-size: 1.2rem;
    }
    .item-desc {
        font-size: 0.75rem;
    }
    .item-price {
        font-size: 0.75rem;
    }
    .bottom-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .check-it-out-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
        letter-spacing: 1px;
    }
    .product-item[data-id="combo"] .check-it-out-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

.item-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
    line-height: 1;
}

.item-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #555555;
    font-weight: 600;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .item-label {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .item-price {
        font-size: 1.1rem;
    }
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.swatch:hover {
    transform: scale(1.2);
}

.swatch.selected {
    border-color: #fff;
    transform: scale(1.1);
}

/* Specific Swatch Colors */
.swatch.all     { background: conic-gradient(from 0deg, #888, #333, #aaa, #888); }
.swatch.black   { background: #000000; border: 1px solid rgba(255, 255, 255, 0.2); }
.swatch.pink    { background: #ffb6c1; }
.swatch.special { background: #222; }
.swatch.grey    { background: #808080; }
.swatch.default { background: #555; }
.swatch.swatch-red   { background: #E30613; }
.swatch.swatch-white { background: #ffffff; border: 1px solid rgba(255,255,255,0.3); }
.swatch.cognac  { background: #8B4513; }
.swatch.brown   { background: #5C4033; }
.swatch.beige   { background: #D2B48C; }
.swatch.sand    { background: #E5D3B3; }
.swatch.red     { background: #E30613; }


/* Modal Widget */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 210;
}

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

.modal-wrapper {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 2px dashed rgba(227, 6, 19, 0.45); /* Premium luxury red dashed stitching */
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .modal-wrapper {
        flex-direction: row;
    }
}

/* Modal Left: Carousel */
.modal-left {
    flex: 1 1 65%;
    position: relative;
    background: #F5F5F5; /* Light grey backdrop for crisp product display */
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-left {
        flex: 1 1 50%;
        min-height: 300px;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-logo.show {
    opacity: 1;
}

/* Blend mode helper for logos that need black background removed */
.carousel-logo.no-bg-blend {
    mix-blend-mode: screen; 
}

/* Red Tint filter helper */
.carousel-logo.red-tint {
    filter: brightness(0) saturate(100%) invert(14%) sepia(100%) saturate(6000%) hue-rotate(350deg) brightness(95%) contrast(120%);
}

/* Black Tint filter helper */
.carousel-logo.black-tint {
    filter: brightness(0);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease, background 0.5s ease;
    pointer-events: none;
}

.carousel-overlay.white-flash {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-overlay.show {
    opacity: 1;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.nav-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Modal Right: Instagram Panel */
.modal-right {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-left: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .modal-right {
        flex: 1 1 50%;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
}

.modal-right-header {
    padding: 25px 20px 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal-swatches {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.modal-title-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #111111;
    line-height: 1;
    text-transform: uppercase;
}

.modal-right-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-price-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    display: block;
}

.modal-desc-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

.modal-right-footer {
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.modal-index {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-align: right;
}

.order-btn {
    display: block;
    text-align: center;
    background: var(--accent-red);
    color: #fff;
    border: 2px dashed rgba(255, 255, 255, 0.35); /* Elegant white inside stitching */
    padding: 16px 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.order-btn:hover {
    transform: translateY(-3px) scale(1.01);
    background: #ff1e27;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.6);
}

/* Site Footer */
.site-footer {
    position: relative;
    z-index: 2;
    background: #F9F9F9;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.insta-gradient-text {
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-saying {
        font-size: 2rem;
    }
}

