/* ==========================================================================
   Design Tokens & Global Styles (Takshora Premium Studio Theme)
   ========================================================================== */

:root {
    /* Color Palette - Premium Italian Furniture Studio Inspired */
    --primary-color: #1f1412;    /* Deep Charcoal Oak */
    --secondary-color: #b8972f;  /* Warm Antique Gold */
    --accent-color: #8d6e63;     /* Walnut Earth tone */
    --bg-color: #fcfbfa;         /* Luxury linen off-white */
    --white: #ffffff;
    --black: #000000;
    --danger: #b22222;
    --success: #2e7d32;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1280px;
    --padding-container: 0 2rem;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 20px rgba(31, 20, 18, 0.04);
    --shadow-md: 0 16px 40px rgba(31, 20, 18, 0.08);
    --shadow-lg: 0 30px 60px rgba(31, 20, 18, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--padding-container);
}

/* ==========================================================================
   Buttons (Luxury Minimalism)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: none;
    border-radius: 50px; /* Modern Pill Shape */
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(31, 20, 18, 0.18);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(184, 151, 47, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(31, 20, 18, 0.1);
}

/* ==========================================================================
   Header & Navigation (Glassmorphic Luxury)
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(31, 20, 18, 0.05);
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

.logo h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    transition: transform 0.5s ease;
}

.logo:hover img {
    transform: rotate(5deg) scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li {
    position: relative;
    display: inline-block;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--primary-color);
    padding: 10px 0;
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Dropdown Megamenu Styling - Lakkadhaara Style */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(31, 20, 18, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px 22px;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 210px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(31, 20, 18, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links li:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
    pointer-events: auto;
}

.dropdown-menu a {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: capitalize !important;
    padding: 3px 0 !important;
    letter-spacing: 0.5px !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 1.25rem;
}

.nav-icons a {
    color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
}

.nav-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Search Bar (Sleek Rounded Outline)
   ========================================================================== */
.search-bar-container {
    display: flex;
    align-items: center;
}

.search-bar-container form {
    display: flex;
    border: 1.5px solid rgba(31, 20, 18, 0.1);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 14px;
    width: 280px;
    transition: var(--transition);
}

.search-bar-container form:focus-within {
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(184, 151, 47, 0.1);
}

.search-bar-container input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    padding: 4px 8px;
    width: 100%;
    font-family: var(--font-body);
    color: var(--primary-color);
    background: transparent;
}

.search-bar-container button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.search-bar-container button:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Hero Section (Premium High-End Overlay)
   ========================================================================== */
.hero {
    height: 85vh;
    background-image: linear-gradient(rgba(18, 12, 10, 0.45), rgba(18, 12, 10, 0.45)), url('../images/hero_banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    color: var(--white);
    max-width: 900px;
    padding: 0 30px;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-content h2 {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .btn {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

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

/* ==========================================================================
   Categories Section (Zoom Overlays)
   ========================================================================== */
.section-header {
    text-align: center;
    margin: 80px 0 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--accent-color);
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.category-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(31, 20, 18, 0.03);
    height: 420px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(31, 20, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    transform: translateY(10px);
}

.category-card:hover .category-label {
    transform: translateY(0);
    background: rgba(184, 151, 47, 0.95);
    border-color: rgba(184, 151, 47, 0.3);
}

.category-label h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--white) !important;
    margin-bottom: 5px;
    transition: var(--transition);
}

.category-card:hover .category-label h3 {
    color: var(--primary-color) !important;
}

.category-label .explore-btn {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    opacity: 0.8;
    transition: var(--transition);
}

.category-card:hover .category-label .explore-btn {
    color: var(--primary-color);
    opacity: 1;
}

/* ==========================================================================
   Product Grid (Luxurious Minimalist Cards)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(31, 20, 18, 0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 151, 47, 0.25);
}

.product-image {
    height: 380px;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(184, 151, 47, 0.25);
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(31, 20, 18, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1.15rem;
    z-index: 10;
}

.wishlist-btn:hover {
    background: var(--white);
    color: var(--danger);
    transform: scale(1.1);
}

.product-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--secondary-color);
}

.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.95rem;
    color: var(--accent-color);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 300;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
}

/* ==========================================================================
   Footer (Gothic Luxury)
   ========================================================================== */
.footer {
    background-color: #140d0c;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    margin-top: 100px;
    margin-bottom: 0;
    border-top: 1px solid rgba(184, 151, 47, 0.15);
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-col h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1.5px;
    background-color: var(--secondary-color);
}

.footer-col p {
    line-height: 1.8;
    font-weight: 300;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   Responsive Grid Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: grid !important;
        grid-template-columns: 60px 1fr auto;
        align-items: center;
        height: 75px;
        padding: 0 1rem;
        gap: 0;
    }
    .mobile-nav-toggle {
        display: block !important;
        grid-column: 1;
        justify-self: start;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }
    .mobile-nav-toggle:hover {
        color: var(--secondary-color);
    }
    .logo {
        grid-column: 2;
        justify-self: center;
        display: flex;
        align-items: center;
    }
    .logo h1 {
        font-size: 1.45rem !important;
    }
    .logo img {
        height: 32px !important;
    }
    .nav-links {
        display: none !important;
    }
    .nav-icons {
        grid-column: 3;
        justify-self: end;
        gap: 15px !important;
        font-size: 1.15rem !important;
    }
    .search-bar-container {
        display: none !important;
    }
    .hero {
        height: 70vh;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==========================================================================
   Mobile Sliding Navigation Drawer & Overlay Styles
   ========================================================================== */
.mobile-nav-toggle {
    display: none;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px; /* Start hidden off-screen */
    width: 300px;
    height: 100%;
    background-color: var(--bg-color);
    box-shadow: 5px 0 25px rgba(31, 20, 18, 0.15);
    z-index: 10020;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-menu-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(31, 20, 18, 0.06);
}

.drawer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.drawer-close:hover {
    color: var(--secondary-color);
}

.drawer-search {
    padding: 15px 24px 10px;
}

.drawer-search form {
    display: flex;
    border: 1.5px solid rgba(31, 20, 18, 0.1);
    border-radius: 30px;
    padding: 2px 12px;
    background: var(--white);
    width: 100%;
}

.drawer-search input {
    border: none;
    outline: none;
    width: 100%;
    padding: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: transparent;
}

.drawer-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.drawer-nav-links {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-nav-links li {
    border-bottom: 1px solid rgba(31, 20, 18, 0.04);
    padding-bottom: 12px;
}

.drawer-nav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.drawer-nav-links a i {
    font-size: 0.85rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.drawer-nav-links a:hover {
    color: var(--secondary-color);
}

.drawer-nav-links a:hover i {
    transform: translateX(3px);
    color: var(--secondary-color);
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid rgba(31, 20, 18, 0.06);
    background: rgba(31, 20, 18, 0.02);
}

.drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(31, 20, 18, 0.15);
    transition: var(--transition);
}

.drawer-login-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.drawer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1rem;
}

.drawer-socials a {
    color: var(--accent-color);
    transition: var(--transition);
}

.drawer-socials a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Drawer overlay backdrop */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 20, 18, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10015;
}

.drawer-overlay.open {
    display: block;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    animation: phone-shake 3s ease-in-out infinite;
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}
