/*
Theme Name: Vara Mahalaxmi Silks
Theme URI: https://example.com/vara-mahalaxmi
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme for Vara Mahalaxmi Silks, cloning the diverse and premium aesthetic of Nalli.com.
Version: 1.0
License: GPU
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vara-mahalaxmi
*/

:root {
    --primary-color: #bfa05b;
    /* Gold/Beige like Nalli */
    --secondary-color: #800000;
    /* Deep Maroon/Red */
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --border-color: #e5e5e5;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Notification Bar */
.notification-bar {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-family: var(--header-font);
    font-size: 2rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    line-height: 1;
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    display: block;
    text-align: center;
}

.search-bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    width: 400px;
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: var(--secondary-color);
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    padding: 5px;
    font-size: 0.9rem;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
}

.header-actions {
    display: flex;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-color);
}

.action-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 0;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #444;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    margin-left: 10%;
    max-width: 500px;
    color: #fff;
    /* Assuming dark overlay or text shadow required, usually needed for hero images */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    text-shadow: none;
}

.btn-primary:hover {
    background-color: #5a0000;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 15px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: #fff;
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .header-main {
        padding: 15px 20px;
    }

    .search-bar {
        display: none;
        /* Hide for now on smaller screens or move */
    }

    .main-nav {
        display: none;
        /* simple hide for desktop nav */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Mobile Menu Sidebar */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1002;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.open {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h2 {
    font-family: var(--header-font);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--light-text);
}

.mobile-menu-links {
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-links ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Button Active States */
.btn-primary:active,
.add-to-cart:active,
.btn-outline:active {
    transform: scale(0.98);
}

/* Sections Common */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-family: var(--header-font);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Featured Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-item {
    text-align: center;
    display: block;
}

.cat-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    /* Circle images like Nalli often does */
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
    border: 3px solid transparent;
}

.category-item:hover .cat-image {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.category-item h3 {
    font-family: var(--header-font);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 10px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 380px;
    /* Uniform height */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: bottom 0.3s;
}

.product-card:hover .overlay-actions {
    bottom: 0;
}

.overlay-actions button {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.overlay-actions button:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--secondary-color);
    color: #fff;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}


/* Footer */
footer {
    background-color: #f8f8f8;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h3 {
    font-family: var(--header-font);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-column p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    font-size: 0.9rem;
    color: var(--light-text);
}

.footer-column ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    /* Subtle movement */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    outline: none;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #5a0000;
}

.footer-bottom {
    background: #f1f1f1;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .newsletter-form {
        justify-content: center;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, top 0.1s ease-out, left 0.1s ease-out;
    mix-blend-mode: difference;
}

/* Hover State for Cursor (Zoom In) */
.custom-cursor.zoom {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    mix-blend-mode: difference;
}

/* Text State for Cursor (Zoom Out/Shrink) */
.custom-cursor.shrink {
    width: 10px;
    /* Shrink to a small dot */
    height: 10px;
    background-color: var(--secondary-color);
    /* Solid color for visibility during read */
    border-color: transparent;
    mix-blend-mode: normal;
    /* Normal blend to see the dot clearly? Or difference? Let's stick to difference for consistency or normal if we want it distinct. Let's try difference first to keep style. */
    mix-blend-mode: difference;
}