/* --- VARIABLES --- */
:root {
    --maroon: #800020;
    --maroon-dark: #4a0010;
    --gold: #C0B283;
    --gold-dark: #a39568;
    --cream: #FDF5E6;
    --charcoal: #333333;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --border-color: #e5e5e5;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-gray);
    color: var(--charcoal);
    padding-top: 180px; 
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

h1, h2, h3, .site-title { font-family: 'Playfair Display', serif; }

/* --- HEADER --- */
.site-header {
    background: var(--cream);
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px;
    background: var(--cream);
    border-bottom: 4px solid var(--maroon);
}

.logo-container { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.site-logo { height: 50px; width: auto; }
.site-title { font-size: 1.5rem; color: var(--maroon); font-weight: bold; }

.hamburger { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); display: none; }
.header-actions i { font-size: 1.4rem; color: var(--maroon); cursor: pointer; transition: 0.3s; }
.wishlist-icon { position: relative; }
.badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--gold); color: var(--charcoal);
    font-size: 0.7rem; padding: 2px 6px; border-radius: 50%;
    font-weight: bold;
}

/* SEARCH BAR */
.search-bar-container {
    background: var(--white); 
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
}
.search-wrapper {
    max-width: 600px; margin: 0 auto;
    position: relative; display: flex; align-items: center;
}
.search-wrapper i { position: absolute; left: 15px; color: #888; }
.search-wrapper input {
    width: 100%; padding: 10px 10px 10px 40px;
    border: 1px solid #ddd; border-radius: 30px;
    background: #f5f5f5; font-family: 'Lato';
}

/* --- NAV MENU STYLES --- */
.nav-menu ul {
    display: flex; justify-content: center; gap: 15px;
    list-style: none; padding: 15px 0; border-bottom: 1px solid var(--border-color);
}
.nav-menu a {
    text-decoration: none; 
    color: var(--charcoal); 
    font-weight: bold;
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 16px;       
    border-radius: 20px;     
}

.nav-menu a:hover,
.nav-menu a.active { 
    color: var(--maroon);            
    background-color: var(--gold);   
}

.close-menu { display: none; }
.overlay { display: none; }

/* --- CONTROLS SECTION --- */
.controls-section {
    max-width: 1200px; margin: 20px auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.hidden { display: none !important; }

.section-title h2 { font-size: 2rem; color: var(--maroon); margin-bottom: 5px; }
.section-title span { color: #666; font-size: 0.9rem; }
.sort-wrapper select {
    padding: 8px; border: 1px solid #ccc; border-radius: 4px;
    font-family: 'Lato'; margin-left: 10px;
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    justify-content: center; /* Ensures a full look even with few items */
}

/* --- PRODUCT CARD --- */
.product-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    display: flex; flex-direction: column;
}

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

/* IMAGE AREA WITH ZOOM */
.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Keeps it a perfect square */
    overflow: hidden;
    background: #f0f0f0;
}

.img-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Trigger the Zoom on Hover */
.product-card:hover .img-zoom {
    transform: scale(1.12);
}

/* RIBBON TAG */
.ribbon {
    position: absolute; top: 10px; left: 0; z-index: 10;
    background: var(--maroon); color: white;
    padding: 5px 10px; font-size: 0.7rem; font-weight: bold;
    text-transform: uppercase; border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* DETAILS AREA */
.card-details { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--gold-dark); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-title { color: var(--charcoal); font-size: 1.1rem; margin-bottom: 15px; line-height: 1.3; }

/* ACTIONS */
.card-actions {
    margin-top: auto;
    display: flex; gap: 10px;
}
.btn-enquire {
    flex: 1;
    background: var(--maroon);
    color: white; border: none;
    padding: 10px; border-radius: 4px; cursor: pointer;
    font-weight: bold; transition: background 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-enquire:hover { background: var(--maroon-dark); }

.btn-wishlist {
    width: 40px; background: transparent; border: 1px solid var(--maroon);
    color: var(--maroon); border-radius: 4px; cursor: pointer;
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.btn-wishlist:hover, .btn-wishlist.active { background: var(--maroon); color: white; }

/* QUANTITY STEPPER */
.quantity-stepper {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 15px; padding: 4px 10px; border-radius: 4px; border: 1px solid #ddd;
    background: #fdfdfd; width: fit-content; margin-left: auto; margin-right: auto;
}
.qty-btn {
    background: var(--light-gray); color: var(--charcoal); border: none;
    width: 26px; height: 26px; border-radius: 4px;
    font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; line-height: 0;
}
.qty-btn:hover { background: var(--maroon); color: white; }
.qty-display { font-weight: bold; color: var(--maroon); min-width: 25px; text-align: center; }

/* --- WISHLIST SIDEBAR --- */
.wishlist-sidebar {
    position: fixed; top: 0; right: -350px; width: 320px;
    height: 100vh; height: 100dvh;
    background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000; transition: right 0.3s ease;
    display: flex; flex-direction: column;
}
.wishlist-sidebar.open { right: 0; }
.wishlist-header {
    background: var(--maroon); color: white; padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.wishlist-header button { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.wishlist-items {
    padding: 15px;
    overflow-y: auto;
    flex: 1 1 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.wishlist-item {
    display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.wishlist-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.wishlist-item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }
.remove-btn { color: #999; font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.wishlist-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.enquire-all-btn {
    width: 100%; background: var(--maroon); 
    color: white; border: none;
    padding: 12px; border-radius: 4px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.empty-cart-btn {
    width: 100%; background: transparent;
    color: var(--maroon); border: 1.5px solid var(--maroon);
    padding: 10px; border-radius: 4px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 10px; transition: background 0.3s, color 0.3s;
    font-size: 0.9rem;
}
.empty-cart-btn:hover { background: var(--maroon); color: white; }
.enquire-all-btn:hover { background: var(--maroon-dark); }

/* --- ABOUT US SECTION UPGRADE --- */
.about-section {
    display: none; 
    background-color: var(--light-gray);
    padding: 80px 20px;
    margin-top: 40px;
}
.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.divine-symbols {
    color: var(--maroon);
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.divine-symbols .symbol {
    opacity: 0.85;
}
.about-hero h2 {
    color: var(--maroon);
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.about-hero h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--gold);
    bottom: -10px;
    left: 20%;
}
.about-hero .lead-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
    margin-top: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text-content {
    background: var(--cream);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-left: 6px solid var(--maroon);
    position: relative;
}
.about-text-content .ornamental-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    background: var(--gold);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(192, 178, 131, 0.4);
}
.about-text-content h3 {
    color: var(--maroon);
    font-size: 2.2rem;
    margin-bottom: 25px;
}
.about-text-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateX(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(192, 178, 131, 0.15);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--gold);
    background: var(--cream);
    padding: 15px;
    border-radius: 8px;
}
.feature-card-text h4 {
    color: var(--maroon);
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.feature-card-text p {
    color: #555;
    line-height: 1.6;
}

/* --- FOOTER --- */
footer {
    background: var(--cream); border-top: 5px solid var(--maroon);
    padding: 40px 20px 20px; margin-top: 50px;
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; margin-bottom: 30px;
}
.footer-col h3 { color: var(--maroon); margin-bottom: 15px; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-col i { color: var(--maroon); width: 25px; }

/* --- FIXED SOCIAL LINKS CENTERING --- */
.social-links a {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 40px; 
    height: 40px;
    background: var(--gold); 
    color: var(--white);
    border-radius: 50%; 
    margin-right: 10px; 
    text-decoration: none; 
    font-size: 1.2rem;
    transition: 0.3s;
    line-height: 0; /* CRITICAL: Collapses extra text space for perfect centering */
}

.social-links a i {
    margin: 0; /* Ensures no default margins from FontAwesome shift the icon */
}

.social-links a:hover { 
    background: var(--gold-dark); 
    transform: scale(1.1); /* Adds a nice little 'pop' on hover */
}
.footer-wa-btn {
    display: inline-block; background: var(--gold); 
    color: var(--maroon-dark);
    padding: 10px 20px; border-radius: 30px; text-decoration: none;
    font-weight: bold; margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.footer-wa-btn:hover { background: var(--gold-dark); color: white; }

.footer-bottom { text-align: center; border-top: 1px solid #ccc; padding-top: 20px; font-size: 0.8rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    body { padding-top: 160px; }
    .hamburger { display: block; }
    .site-title { font-size: 1.2rem; }
    .nav-menu {
        position: fixed; top: 0; left: -250px; width: 250px; height: 100vh;
        background: white; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 1001; transition: left 0.3s;
        padding-top: 60px;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 0; padding: 0; }
    .nav-menu li { border-bottom: 1px solid #f0f0f0; }
    .nav-menu a { display: block; padding: 15px 20px; }
    .close-menu {
        display: block; position: absolute; top: 15px; right: 20px;
        background: none; border: none; font-size: 2rem; cursor: pointer;
    }
    .overlay.active {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.5); z-index: 1000;
    }
    .controls-section { flex-direction: column; align-items: flex-start; gap: 15px; }
    .sort-wrapper { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-hero h2 { font-size: 2.5rem; }
    .about-text-content { padding: 30px; }
    .feature-card:hover { transform: translateY(-5px); }
}

/* --- IMAGE MODAL --- */
.image-modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    display: flex;
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.image-modal .close-modal:hover {
    color: var(--gold);
}