/* Cart Drawer Styling */
:root {
    --cart-primary: #f43f5e;
    --cart-gradient: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    --cart-bg: #ffffff;
    --cart-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.cart-overlay {
    position: fixed;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100vh;
    background: var(--cart-bg);
    z-index: 999999999;
    box-shadow: var(--cart-shadow);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 500px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

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

.cart-header {
    padding: 35px 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.close-cart {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #1a1a1a;
}

.close-cart:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

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

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f8fafc;
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 85px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.cart-item-price {
    font-weight: 700;
    color: var(--cart-primary);
    font-size: 1rem;
    margin-bottom: 12px;
}

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

.qty-input {
    width: 45px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    color: #1a1a1a;
    line-height: 1;
}

.qty-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.cart-footer {
    padding: 40px;
    background: #fcfcfc;
    border-top: 1px solid #f1f5f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-total span:first-child {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.cart-total span:last-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.checkout-btn {
    width: 100%;
    padding: 20px;
    background: var(--cart-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.4);
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
}

.navbar-shop .cart-trigger {
    background: #f1f5f9;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}

.cart-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.navbar-shop .cart-trigger:hover {
    background: #ffffff;
    border-color: #f43f5e;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cart-primary);
    color: white;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2.5px solid #0c0f17; /* Dark border for home */
    padding: 0 4px;
}

.navbar-shop .cart-count {
    border-color: #ffffff; /* White border for shop */
}

/* Simple & Robust Blur for background content */
body.cart-open .navbar, 
body.cart-open .shop-wrapper,
body.cart-open .carousel,
body.cart-open .footer,
body.mobile-menu-open .navbar, 
body.mobile-menu-open .shop-wrapper,
body.mobile-menu-open .carousel,
body.mobile-menu-open .footer {
    filter: blur(6px);
    pointer-events: none;
}

.navbar, .shop-wrapper, .carousel, .footer {
    transition: filter 0.4s ease;
}

/* --- Mobile Menu Styling --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000001;
    padding: 100px 40px;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
}

.about-page .mobile-nav-drawer, 
.navbar-shop .mobile-nav-drawer,
.contact-page .mobile-nav-drawer {
    background: #ffffff;
    color: #1e293b;
}

/* Home page dark version of mobile drawer */
body:not(.navbar-shop):not(.about-page):not(.contact-page) .mobile-nav-drawer {
    background: #0c0f17;
    color: white;
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--cart-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000002;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Menu Open State For Hamburger */
.mobile-menu-open .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links { display: none !important; }
    .user-menu-container { display: none !important; }
    .navbar { justify-content: space-between !important; }
    .nav-right { gap: 15px !important; }
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .container { padding: 0 5% !important; }
    .footer { flex-direction: column !important; gap: 30px !important; text-align: center !important; padding: 40px 5% !important; }
    .socials { justify-content: center !important; }
}

/* --- Brand New Navbar Collections Dropdown --- */
.nav-dropdown-container { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.nav-dropdown {
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #ffffff; 
    min-width: 260px; 
    border-radius: 4px; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0; 
    display: none; 
    opacity: 0; 
    transition: none; /* Instant show like traditional menus */
    z-index: 9999999; 
    margin-top: 5px;
    visibility: hidden;
}

.nav-dropdown-container:hover .nav-dropdown { 
    display: block; 
    opacity: 1; 
    visibility: visible;
}

/* Remove arrow for that specific minimalist look */
.nav-dropdown::before { display: none; }

.nav-dropdown-item {
    display: block !important; 
    padding: 14px 20px !important; 
    color: #4a5568 !important;
    text-decoration: none !important; 
    font-size: 0.95rem !important; 
    font-weight: 500 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.2s ease !important; 
    text-align: left !important;
    white-space: nowrap !important;
}

.nav-dropdown-item:last-child {
    border-bottom: none !important;
}

.nav-dropdown-item:hover { 
    background: #f8fafc !important; 
    color: #f43f5e !important; 
    transform: none !important; 
}

/* Remove SVG from dropdown items to match image */
.nav-dropdown-item svg { display: none !important; }

/* Navbar item decoration */
.dropdown-chevron {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    opacity: 0.6;
}

/* Navbar item decoration for dropdown */
.nav-links li.nav-dropdown-container > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.nav-dropdown-container:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Mobile Category List */
.mobile-categories-list {
    margin-top: 5px;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid rgba(244, 63, 94, 0.1);
}

.mobile-cat-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    opacity: 1 !important;
}

.mobile-cat-link:hover {
    color: #f43f5e !important;
}
