/* style.css */
:root {
    --bg-color: #F9F8F6; /* Soft Ivory */
    --primary: #0A3A2A; /* Royal Emerald */
    --accent: #C5A059; /* Rich Gold / Champagne */
    --text-dark: #1A1A1A;
    --text-light: #F9F8F6;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor.hovering {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    border-color: transparent;
    mix-blend-mode: difference;
}

.cursor-text {
    font-size: 12px;
    color: var(--bg-color);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.custom-cursor.hovering .cursor-text {
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--text-light);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 3rem;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    display: inline-block;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(10, 58, 42, 0.4), rgba(10, 58, 42, 0.8)), url('Kurta Set/1.jpg') center/cover;
    z-index: -1;
}

.hero-content {
    color: var(--text-light);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    margin-bottom: 1rem;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
}

/* Buttons */
button {
    background: none;
    border: none;
    font-family: var(--font-body);
}

.cta-btn, .add-to-cart-btn, .checkout-btn, .pay-btn, .close-success-btn {
    padding: 1rem 3rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    display: inline-block;
}

.hero .cta-btn {
    color: var(--text-light);
    border-color: var(--text-light);
    opacity: 0;
}

.cta-btn:hover, .add-to-cart-btn:hover, .checkout-btn:hover, .pay-btn:hover, .close-success-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
}

/* Global Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* About & Counter Section */
.about-section {
    padding: 8rem 4rem;
    background-color: #F1EFE9;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.about-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--primary);
}

/* Shop Section */
.shop-section {
    padding: 8rem 4rem;
}

.shop-section .section-title {
    margin-bottom: 5rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem 3rem;
}

.product-card {
    opacity: 0;
    transform: translateY(60px);
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    background: #e8e8e8;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.product-card:hover .img-wrapper img.main-img {
    opacity: 0;
}

.product-card:hover .img-wrapper img.hover-img {
    opacity: 1;
    transform: scale(1.08);
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--accent);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Footer Section */
.footer-section {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 6rem 4rem 2rem 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-brand p {
    line-height: 1.6;
    color: #cccccc;
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    color: #cccccc;
    line-height: 1.5;
}

.footer-contact strong {
    color: var(--accent);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 58, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-color);
    padding: 3rem;
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal, .close-cart {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-dark);
    line-height: 1;
    transition: color 0.3s;
}
.close-modal:hover, .close-cart:hover { color: var(--accent); }

/* Product Details Modal */
.modal-body {
    display: flex;
    gap: 4rem;
}

.modal-image-container { flex: 1; }
.modal-image-container img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-info .price {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.modal-info .desc {
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #444;
}

.sizes {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.sizes span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    transition: all 0.3s;
}
.sizes span.active, .sizes span:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-color);
}

.add-to-cart-btn {
    border-color: var(--primary);
    color: var(--primary);
    width: 100%;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1001;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.cart-sidebar.active { right: 0; }
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.cart-items { flex: 1; overflow-y: auto; padding-right: 10px; }
.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}
.cart-item img { width: 90px; height: 120px; object-fit: cover; }
.cart-item-info h4 { font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 1.1rem; }
.cart-item-info p { color: var(--accent); }

.cart-footer { padding-top: 2rem; border-top: 1px solid #ddd; }
.cart-total {
    display: flex; justify-content: space-between;
    font-size: 1.4rem; font-weight: 500; margin-bottom: 1.5rem;
}
.checkout-btn { width: 100%; background: var(--primary); color: var(--bg-color); border:none; }

/* Checkout & Success Modals */
.checkout-modal-content { max-width: 500px; padding: 3rem; }
.checkout-modal-content h2 { font-family: var(--font-heading); margin-bottom: 2rem; color: var(--primary); text-align: center; }
#checkout-form input, #checkout-form textarea, #checkout-form select {
    width: 100%; padding: 1.2rem; margin-bottom: 1.2rem;
    border: 1px solid #ccc; background: transparent; font-family: var(--font-body); outline: none;
}
#checkout-form input:focus, #checkout-form textarea:focus, #checkout-form select:focus { border-color: var(--accent); }
.pay-btn { width: 100%; background: var(--accent); color: #fff; border:none; margin-top: 1rem; }

.success-content { text-align: center; max-width: 450px; padding: 4rem 2rem; }
.success-icon {
    width: 80px; height: 80px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 2rem;
}
.success-content h2 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 1rem; font-size: 2.2rem; }
.success-content p { margin-bottom: 2.5rem; font-size: 1.1rem; color: #555; }
.close-success-btn { background: var(--primary); color: #fff; border: none; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { padding: 1.5rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 3.5rem; }
    .about-section { padding: 5rem 1.5rem; }
    .shop-section { padding: 5rem 1.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-section { padding: 4rem 1.5rem; }
    .modal-body { flex-direction: column; gap: 2rem; }
    .cart-sidebar { width: 100%; right: -100%; }
}