/* Global Styles */
:root {
    --primary-color: #D4AF37; /* Gold */
    --secondary-color: #1a1a1a; /* Dark Grey/Black */
    --background-color: #FAFAFA; /* Off-white */
    --text-color: #333333;
    --light-grey: #f4f4f4;
    --border-color: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 0.8rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-top: 3px solid var(--primary-color);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on header height */
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 16px 0;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: var(--light-grey);
        display: none; /* Keep hidden initially on mobile */
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/heroimage.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #f0f0f0;
    font-family: var(--font-body);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/sankranti-offer.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.offer-title {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.offer-desc {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 600px;
}

/* Section Common */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    padding: 10px;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 2px solid #fff;
    padding: 10px 20px;
}

/* Shop Page */
.shop-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: var(--text-color);
    font-size: 0.95rem;
}

.filter-list a:hover, .filter-list a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.shop-main {
    flex-grow: 1;
}

/* Single Product Page */
.product-details {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
    opacity: 0.7;
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-info-details {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-rating {
    color: #f1c40f;
    margin-bottom: 20px;
}

.product-price-large {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

/* Special Section */
.special-section {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    padding: 60px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.special-content {
    flex: 1;
}

.special-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.special-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.special-image {
    flex: 1;
    height: 400px;
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.customer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.customer-name {
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .special-section {
        flex-direction: column-reverse;
        padding: 40px 20px;
    }
    
    .special-image {
        width: 100%;
        height: 300px;
    }
}

.product-description {
    margin-bottom: 30px;
    color: #666;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
}

.color-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.add-to-cart-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qty-input {
    width: 60px;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    background-color: var(--light-grey);
    border-bottom: 2px solid var(--primary-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.cart-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.remove-btn {
    color: #ff4d4d;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}

.cart-summary {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 5px;
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    color: var(--primary-color);
}

/* Checkout */
.checkout-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.checkout-form {
    flex: 2;
    min-width: 300px;
}

.order-summary {
    flex: 1;
    min-width: 300px;
    background: var(--light-grey);
    padding: 30px;
    align-self: flex-start;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .shop-layout {
        flex-direction: column;
    }
    
    .shop-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .offer-title {
        font-size: 1.8rem;
    }

    .offer-desc {
        font-size: 0.9rem;
    }

    .offer-banner {
        height: 250px;
        padding: 0 15px;
    }

    .special-section {
        flex-direction: column-reverse;
        padding: 30px 15px;
        gap: 30px;
    }
    
    .special-image {
        width: 100%;
        height: 250px;
    }

    .special-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for products */
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        padding: 10px;
    }

    .cart-table td {
        text-align: right;
        padding: 5px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
    
    .cart-product {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items if needed */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
