/* --- ROOT VARIABLES & GENERAL STYLES --- */
:root {
    --font-primary: 'Hind', sans-serif;
    --font-display: 'Tiro Devanagari Hindi', serif;
    --color-primary: #AD1A45; /* Deep Magenta */
    --color-secondary: #004E98; /* Royal Blue */
    --color-accent: #FFC72C; /* Marigold/Gold */
    --color-background: #FFF8E1; /* Light Cream */
    --color-text: #3D3D3D; /* Dark Grey */
    --color-light: #FFFFFF;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    line-height: 1.7;
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--color-light);
    padding: 0.5rem 5%; /* Adjusted padding for image logo */
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Control the height of your logo */
    width: auto;
    display: block;
}

.cart-icon {
    cursor: pointer;
    position: relative;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--color-light);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(173, 26, 69, 0.7) 0%, rgba(0, 78, 152, 0.4) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

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

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.cta-button {
    background: var(--color-accent);
    color: var(--color-text);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.5);
}

.cta-button:hover {
    background: #FFB700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 199, 44, 0.6);
}
.cta-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- PRODUCT SECTION --- */
.product-section {
    padding: 4rem 5%;
    text-align: center;
}

.product-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--color-primary);
}

.product-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

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

.product-card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image-container {
    height: 280px;
    background-color: #f7f7f7;
    cursor: pointer;
    overflow: hidden;
}

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

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

.product-card-info {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-info h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.product-card-info p {
    margin: 0 0 1rem 0;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.add-to-cart-btn-container {
    margin-top: auto;
}

.add-to-cart-btn, .quantity-control {
    width: 100%;
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-to-cart-btn:hover {
    background: #003D7A;
}

.quantity-control {
    justify-content: space-between;
    padding: 8px 12px;
}

.quantity-control button {
    background: #003D7A;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.quantity-control span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-light);
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 550px;
    border-radius: var(--border-radius);
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: #f0060689;
    position: absolute;
    top:1px;
    right: 8px;
    border: white;
    border-radius: 1px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-button:hover, .close-button:focus { color: rgba(241, 4, 4, 0.899); }

/* --- CART & CHECKOUT SPECIFIC STYLES --- */
#cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}
.cart-item-info { flex-grow: 1; }
.cart-item-info span { display: block; }
.cart-item-info .item-name { font-weight: 600; }
.cart-item-info .item-price { color: #888; font-size: 0.9rem; }

.cart-item .quantity-control { width: 120px; }
.cart-summary {
    text-align: right;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

/* --- ENHANCED FORM STYLES --- */
#checkout-form .form-row {
    display: flex;
    gap: 1.5rem;
}
#checkout-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}
#checkout-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}
#checkout-form input, #checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#checkout-form input:focus, #checkout-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.3);
}
#checkout-form button { width: 100%; margin-top: 1rem; }

/* --- PRODUCT DETAIL MODAL --- */
.slider-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slider-image {
    flex-shrink: 0;
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

#product-detail-content h3 { font-size: 2.2rem; color: var(--color-primary); }
#product-detail-content .price { font-size: 1.8rem; color: var(--color-secondary); font-weight: 700; margin: 0.5rem 0; }
#product-detail-content .description { margin: 1rem 0 1.5rem 0; line-height: 1.8; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: var(--color-primary);
    color: var(--color-light);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}
