:root {
    --color-primary: #260F06;


    /* Primary light: 683924, Bg: F2D9CE */
    /* Midnight Navy */
    --color-accent: #C5A059;
    /* Premium Gold */
    --color-accent-hover: #AB8A4A;
    --color-bg: #F8FAFC;
    /* Light Slate Gray */
    --color-surface: #FFFFFF;
    --color-text-main: #260F06;
    --color-text-muted: #64748B;
    --color-header-bg: #260F06;
    --color-header-text: #F8FAFC;
    --color-btn-bg: #C5A059;
    --color-btn-text: #FFFFFF;
    --color-white: #FFFFFF;

    --font-primary: 'Urbanist', sans-serif;
    --font-accent: 'Urbanist', sans-serif;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
/* Floating Pill Header */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background-color: var(--color-header-bg);
    /* Reddish brown pill */
    color: var(--color-header-text);
    /* Light text */
    padding: 0px 24px;
    border-radius: 999px;
    /* Pill shape */
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    /* Adjust based on header size */
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    color: var(--color-header-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-btn {
    background-color: var(--color-accent);
    color: var(--color-header-bg);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-accent-hover);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    margin-right: 20px;
    display: inline-block;
}

.user-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    transition: opacity 0.2s;
}

.user-dropdown-trigger:hover {
    opacity: 0.8;
}

.user-dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 5px;
    /* Reduced gap */
    display: none;
    z-index: 1001;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}


.btn-primary {
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-btn-bg);
    color: #FFE7D1;
}

/* Bridge to prevent menu hiding when moving mouse from trigger to content */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
    display: none;
}

.user-dropdown:hover .user-dropdown-content,
.user-dropdown:hover::after {
    display: block;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.user-dropdown-content a:hover {
    background-color: var(--color-bg);
}

.user-dropdown-content a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.user-dropdown-content a.logout-link {
    color: #e74c3c;
}

.user-dropdown-content a.logout-link:hover {
    background-color: #fff5f5;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Styles */
.hero-section {
    margin-top: 100px;
    /* Space for the floating header */
    padding: 0 15px;
}

.hero-slider-main {
    border-radius: 30px;
    overflow: hidden;
    height: 60vh;
    min-height: 300px;
    max-height: 800px;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.swiper-slide:hover .hero-overlay,
.hero-slider-main:hover .hero-overlay {
    opacity: 1;
    visibility: visible;
}

.hero-content-inner {
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.swiper-slide:hover .hero-content-inner,
.hero-slider-main:hover .hero-content-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-title-main {
    font-family: 'Carattere', cursive;
    font-size: 6rem !important;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content-inner .btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.hero-content-inner .btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
}

@media (max-width: 768px) {
    .hero-slider-main {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title-main {
        font-size: 3.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

.floating-header-wrapper .navbar-brand img {
    height: 55px;
}


@media (max-width: 768px) {
    .floating-header-wrapper .navbar-brand img {
        height: 45px;
    }
}




/* Hero Branding */
.brand-hero {
    text-align: center;
    padding: 120px 20px 40px;
    /* Top padding to clear fixed header */
}

.brand-title {
    font-family: var(--font-accent);
    /* Actually screenshot looks serif-ish but lowercase. Sticking to Accent or finding a serif. Uses accent for now. */
    font-family: 'Times New Roman', serif;
    /* Looks more like a standard serif in the screenshot for the big "cottonbloom" */
    font-size: 4rem;
    color: var(--color-primary);
    /* Main text color */
    margin-bottom: 8px;
    line-height: 1;
}

.brand-slogan {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--color-accent);
    opacity: 0.9;
}


/* Filter Bar Container */
/* Filter Bar Container */
.filter-bar-container {
    padding: 10px 24px;
    max-width: 1400px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top since right side has multiline */
    font-size: 0.95rem;
    color: #792520;
}

/* Left components */
.filter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right components */
.filter-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-weight: 400;
}

/* Custom Native Select Styling */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-text-main);
    padding: 8px 32px 8px 16px;
    /* Space for arrow */
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 140px;
    background-color: var(--color-surface);
    /* White bg for dropdown like screenshot */
}

.custom-select-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.product-count {
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Responsive grid */
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg) var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait ratio */
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.image-overlay-text {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: serif;
    /* As per analysis */
    font-size: 2rem;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--color-accent);
}

.product-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 4px;
}

.add-to-cart-btn {
    margin-top: var(--spacing-sm);
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
    border: none;
    padding: 12px;
    border-radius: 8px;
    /* Slightly rounded */
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--color-header-bg);
    color: var(--color-bg);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-bg);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.social-icon:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .image-overlay-text {
        font-size: 1.5rem;
    }
}

/* Responsive Mobile Menu Button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .floating-header {
        flex-direction: column;
        border-radius: 20px;
        /* Slightly less rounded when open */
    }
}

/* Button Link Styling */
.btn-link {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: normal;
}

/* Section Separator */
.section-separator {
    border: none;
    border-top: 1px solid rgba(121, 37, 32, 0.1);
    margin: 0 auto 20px;
    width: 100%;
    max-width: 1400px;
}

/* Gallery Layout */
.product-gallery {
    display: flex;
    gap: 16px;
}

.main-image-wrapper {
    flex: 3;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
    /* Consistent constraint */
}

.thumbnails-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.thumb-img:hover,
.thumb-img.active {
    opacity: 1;
    border: 1px solid #792520;
}

/* Detail Info Tweaks */
.size-box {
    width: 40px;
    height: 40px;
    border: 1px solid #E5E5E5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #792520;
    transition: all 0.2s;
}

.size-box:hover,
.size-box.selected {
    background-color: #FDF2F8;
    border-color: #C48B77;
    color: #792520;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .image-overlay-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .filter-bar-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .filter-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    /* Product Detail Stack */
    .product-detail-container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding-top: 140px !important;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .thumbnails-grid {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        /* Scrollbar space */
    }

    .thumb-img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .detail-title {
        font-size: 2.2rem !important;
        /* Fix oversized title */
    }

    .detail-image-container {
        border-radius: 8px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .brand-title {
        font-size: 3rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* Responsive Mobile Menu Button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .floating-header {
        flex-direction: column;
        border-radius: 20px;
    }
}
.text-shadow { text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); }
.midscreen-banner img { transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.midscreen-banner:hover img { transform: scale(1.05); }

/* Responsive Banner Fixes */
@media (max-width: 991px) {
    .hero-slider-main { height: 45vh; min-height: 250px; border-radius: 15px; }
    .hero-title-main { font-size: 3rem !important; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 3px; }
    .midscreen-banner { height: 250px !important; border-radius: 15px !important; }
}
