:root {
    /* Color Palette */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9F8F4;
    --text-primary: #111111;
    --accent-primary: #808000; /* Olive Green */
    --accent-hover: #606000;
    --text-on-accent: #FFFFFF;
    --border: #DAD6C1;
    --font-main: 'Inter', 'Jost', sans-serif;
}

/* FIX: Ensure Inputs are selectable */
input, textarea, select {
    position: relative;
    z-index: 10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Changed from height:100% to allow scrolling */
    width: 100%;
    position: relative;
}

/* --- 1. HEADER & NAV --- */
header {
    background-color: #FFFFFF;
    color: var(--text-primary);
    padding: 0;
    padding-bottom: 15px;
    position: fixed; 
    top: 0; 
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

header.header-hidden { transform: translateY(-100%); }

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background-color: var(--accent-primary);
    height: 36px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.announcement-slider {
    width: 100%;
    animation: slideVertical 8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.announcement-text {
    height: 36px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

@keyframes slideVertical {
    0%, 43% { transform: translateY(0); }
    50%, 93% { transform: translateY(-36px); }
    100% { transform: translateY(-72px); }
}

.header-top { 
    display: flex; justify-content: space-between; align-items: center; 
    position: relative; height: 50px; 
    padding: 0 5%; 
}

.brand-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand-logo img { height: 55px; filter: invert(1); }

.main-nav { 
    display: flex; justify-content: center; align-items: center;
    gap: 30px; padding: 0 5%; z-index: 1002;
}

.main-nav > a, .dropbtn {
    color: var(--text-primary);
    text-decoration: none; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; font-weight: 500; transition: all 0.2s ease; position: relative;
    cursor: pointer; padding: 5px 0; display: block; 
}

.main-nav > a::after, .dropbtn::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--accent-primary);
    transition: width 0.2s ease-in-out;
}

.main-nav > a:hover::after, .dropbtn:hover::after { width: 100%; }
.dropbtn:hover { color: var(--accent-primary); }

/* DROPDOWNS */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: block; /* Always display block so we can use opacity transition */
    visibility: hidden; /* Hide using visibility */
    opacity: 0;
    position: absolute; background-color: #ffffff;
    min-width: 240px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 2000; top: 100%; left: 0; border: 1px solid #eee;
    padding: 10px 0; text-align: left;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Fade only */
    
    /* Scroll Functionality */
    max-height: 400px;
    overflow-y: auto;
}
.dropdown:hover .dropdown-content { 
    visibility: visible;
    opacity: 1;
}

.dropdown-content a {
    color: #333; padding: 10px 20px; text-decoration: none;
    display: block; font-size: 0.85rem; font-weight: 400;
    letter-spacing: 0.5px; text-transform: capitalize;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover { background-color: var(--bg-secondary); color: var(--accent-primary); padding-left: 25px; }

/* SUB-DROPDOWN */
.sub-dropdown { position: relative; }
.arrow { float: right; font-size: 1.2rem; line-height: 0.8rem; color: #999; }
.sub-dropdown-content {
    display: block; /* Always display block so we can use opacity transition */
    visibility: hidden; /* Hide using visibility */
    opacity: 0;
    position: absolute; left: 100%; top: -10px;
    background-color: #ffffff; min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 2001; border: 1px solid #eee; padding: 10px 0;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Fade only */
}
.sub-dropdown:hover .sub-dropdown-content { 
    visibility: visible;
    opacity: 1;
}

/* ICONS */
.icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    transition:
        filter 0.45s ease-in-out,
        transform 0.35s ease,
        opacity 0.35s ease;
}


/* Default: black */
.social-icons .icon-img {
    filter: brightness(0);
    opacity: 0.85;
}

/* Instagram */
.social-icons a[href*="instagram"]:hover .icon-img {
    filter: invert(41%) sepia(82%) saturate(3276%) hue-rotate(316deg) brightness(95%) contrast(92%);
}

/* Facebook */
.social-icons a[href*="facebook"]:hover .icon-img {
    filter: invert(33%) sepia(96%) saturate(749%) hue-rotate(190deg) brightness(92%) contrast(92%);
}

/* Pinterest */
.social-icons a[href*="pinterest"]:hover .icon-img {
    filter: invert(18%) sepia(96%) saturate(7400%) hue-rotate(356deg) brightness(92%) contrast(105%);
}

/* YouTube */
.social-icons a[href*="youtube"]:hover .icon-img {
    filter: invert(16%) sepia(92%) saturate(6250%) hue-rotate(357deg) brightness(95%) contrast(108%);
}

/* Hover animation */
.social-icons a:hover .icon-img {
    transform: scale(1.15);
    opacity: 1;
}

.social-icons { display: flex; gap: 15px; align-items: center; }
.nav-tools { display: flex; gap: 20px; align-items: center; }
.nav-tool-btn { background: none; border: none; cursor: pointer; position: relative; padding: 0; display: flex; align-items: center; justify-content: center; } /* added justify-content: center */
.cart-badge { 
    position: absolute; 
    top: -5px; /* Adjusted from -8px for better vertical centering */
    right: -5px; /* Adjusted from -8px to bring it closer */
    background: var(--text-primary); 
    color: white; 
    font-size: 0.65rem; 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
}

/* --- 2. SEARCH UI --- */
.search-form-wrapper { position: relative; }
.search-panel-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh;
    background: var(--bg-secondary); z-index: 2000; box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 40px; display: flex; flex-direction: column;
}
.search-panel-overlay.active { right: 0; }
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.search-header h2 { font-size: 1.8rem; font-weight: 300; color: var(--text-primary); }
.close-search { font-size: 2rem; cursor: pointer; color: var(--text-primary); line-height: 1; }
.search-input { width: 100%; border: none; border-bottom: 2px solid var(--border); font-size: 1.2rem; padding: 10px 0; outline: none; font-family: var(--font-main); background: transparent; color: var(--text-primary); }
.search-input:focus { border-bottom-color: var(--accent-primary); }
.search-results-box {
    position: absolute; top: 100%; left: 0; width: 100%; background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 2001; display: none;
    max-height: 400px; overflow-y: auto; border: 1px solid var(--border); margin-top: 5px;
}
.sr-section-title { padding: 8px 15px; font-size: 0.7rem; color: #888; text-transform: uppercase; background: #f9f9f9; border-bottom: 1px solid #eee; }
.sr-text-item { display: block; padding: 10px 15px; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; }
.sr-text-item:hover { background-color: #fafafa; color: var(--accent-primary); }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-bottom: 1px solid #eee; text-decoration: none; color: var(--text-primary); }
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* --- 3. HERO & CONTAINER --- */
.hero-section {
    height: 60vh; background-color: var(--accent-primary);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; 
    margin-top: 160px; /* Keep this for Home Page */
    position: relative;
}
.hero-content { position: relative; z-index: 1; color: white; max-width: 600px; padding: 20px; }
.hero-title { font-size: 3rem; font-weight: 300; margin-bottom: 20px; }
.hero-btn { display: inline-block; background: white; color: var(--accent-primary); padding: 12px 30px; text-decoration: none; font-size: 1rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: background 0.3s; }
.hero-btn:hover { background: var(--bg-secondary); }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    flex: 1; 
    padding-top: 180px; /* Ensure content starts below fixed header */
    padding-bottom: 40px;
}
/* Reset for Home Page because Hero handles the spacing */
body.home-page .container { padding-top: 0; }

/* FIX for Product Page specifically if it uses a different structure */
.product-wrapper {
    /* Ensure product page also clears the header if it doesn't use the standard container padding logic */
    margin-top: 40px; 
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* --- 4. PRODUCT CARD --- */
.product-card {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden; transition: box-shadow 0.3s ease;
    display: flex; flex-direction: column; position: relative; width: 100%;
}
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.discount-badge { position: absolute; top: 8px; left: 8px; background-color: var(--accent-primary); color: white; padding: 3px 6px; font-size: 0.7rem; font-weight: 600; border-radius: 3px; z-index: 10; }
.card-image-container { width: 100%; position: relative; padding-top: 100%; overflow: hidden; background-color: #f4f4f4; }
.card-image-container a { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.card-image-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease; }
.product-card:hover .card-image-container img { transform: scale(1.05); }
.card-details { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.card-title { font-size: 0.95rem; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.price-wrapper { display: flex; gap: 8px; align-items: baseline; margin-bottom: 5px; }
.card-price { color: var(--accent-primary); font-weight: 700; font-size: 1rem; }
.original-price { text-decoration: line-through; color: #999; font-size: 0.8rem; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.qty-input { width: 35px; text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 6px 0; font-size: 0.9rem; }
.btn-add-cart { flex-grow: 1; background-color: var(--accent-primary); color: white; border: none; padding: 8px; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.btn-add-cart:hover { background-color: var(--accent-hover); }

/* --- 5. SCROLL SECTIONS --- */
.h-scroll-section { margin-bottom: 40px; padding: 0 20px; position: relative; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.section-title { font-size: 1.5rem; font-weight: 400; color: var(--text-primary); }
.view-all-link { color: var(--accent-primary); text-decoration: none; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid transparent; transition: border 0.2s; }
.view-all-link:hover { border-bottom-color: var(--accent-primary); }
.scrolling-wrapper { display: flex; gap: 15px; overflow-x: auto; padding: 10px 5px 20px 5px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scrolling-wrapper::-webkit-scrollbar { display: none; }
.scrolling-wrapper .product-card, .scrolling-wrapper .view-all-card { min-width: calc(25% - 12px); max-width: calc(25% - 12px); flex: 0 0 auto; }
.view-all-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; cursor: pointer; aspect-ratio: 1 / 1.4; }
.view-all-card:hover { background-color: var(--accent-primary); color: white; transform: scale(1.02); }
.view-all-circle { width: 60px; height: 60px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 1.8rem; transition: all 0.3s ease; }
.view-all-card:hover .view-all-circle { background: white; color: var(--accent-primary); border-color: white; }
.view-all-text { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; }
.scroll-btn { position: absolute; top: 55%; transform: translateY(-50%); background: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 20; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-primary); transition: all 0.2s ease; opacity: 0.9; }
.scroll-btn:hover { background: var(--accent-primary); color: white; transform: translateY(-50%) scale(1.1); opacity: 1; }
.scroll-btn.left { left: -22px; }
.scroll-btn.right { right: -22px; }

/* --- 6. CART --- */
.cart-table-wrapper { overflow-x: auto; margin-bottom: 30px; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.cart-table th { text-align: left; padding: 15px; border-bottom: 2px solid var(--border); color: #666; font-weight: 500; text-transform: uppercase; font-size: 0.85rem; }
.cart-table td { padding: 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 15px; position: relative; }
.cart-item-img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.cart-summary { background: var(--bg-secondary); padding: 25px; border-radius: 8px; border: 1px solid var(--border); width: 100%; max-width: 400px; margin-left: auto; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
.summary-row.total { font-weight: 700; color: var(--accent-primary); font-size: 1.2rem; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px; }
.checkout-btn { width: 100%; background: var(--accent-primary); color: white; padding: 12px; border: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; border-radius: 4px; cursor: pointer; margin-top: 20px; transition: background 0.2s; }
.checkout-btn:hover { background: var(--accent-hover); }

/* --- 7. FOOTER --- */
footer { background-color: var(--accent-primary); color: var(--text-on-accent); padding: 50px 0 20px; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 15px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-col ul li a { color: rgba(255,255,255,0.8); text-decoration: none; transition: opacity 0.2s; }
.footer-col ul li a:hover { color: #fff; opacity: 1; }

/* NEW: Horizontal Policies in Footer */
.footer-policies {
    max-width: 1200px;
    margin: 30px auto 0; /* Space above */
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.footer-policies ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Spacing between items */
}
.footer-policies ul li {
    display: inline-block;
}
.footer-policies ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.75rem; /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.footer-policies ul li a:hover {
    color: white;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-align: center; margin-top: 20px; padding-top: 20px; font-size: 0.75rem; }

/* TOAST */
#toast { visibility: hidden; min-width: 250px; background-color: #111; color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 3000; right: 30px; top: 30px; font-size: 14px; opacity: 0; transition: opacity 0.5s, top 0.5s; text-transform: uppercase; }
#toast.show { visibility: visible; opacity: 1; top: 50px; }

/* --- ADMIN --- */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
.admin-table th, .admin-table td { padding: 12px; border: 1px solid #ddd; text-align: left; }
.admin-table th { background-color: var(--accent-primary); color: white; }
.action-btn { padding: 5px 10px; border: none; cursor: pointer; border-radius: 3px; font-size: 0.8rem; color: white; text-decoration: none; }
.edit-btn { background-color: #2196F3; }
.delete-btn { background-color: #f44336; }
.gallery-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.gallery-item { position: relative; width: 60px; height: 60px; border: 1px solid #ddd; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item input[type="checkbox"] { position: absolute; top: 0; right: 0; width: 15px; height: 15px; z-index: 5; cursor: pointer; }

/* --- MOBILE & MENU --- */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger-btn .bar { width: 24px; height: 2px; background-color: var(--text-primary); display: block; }
.close-nav-btn { display: none; position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-primary); }
.nav-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 ease; }
.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .scrolling-wrapper .product-card, .scrolling-wrapper .view-all-card { min-width: calc(33.33% - 10px); max-width: calc(33.33% - 10px); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .scroll-btn { display: none; }
    .scrolling-wrapper .product-card, .scrolling-wrapper .view-all-card { min-width: 160px; max-width: 160px; }
    .hero-title { font-size: 2rem; }
    .social-icons { display: none; }
    .hamburger-btn { display: flex; }
    .close-nav-btn { display: block; }
    .main-nav { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100vh; background: white; z-index: 1002; padding-top: 80px; padding-left: 20px; transition: left 0.3s ease-in-out; box-shadow: 2px 0 15px rgba(0,0,0,0.1); overflow-y: auto; }
    .main-nav.active { left: 0; }
    .main-nav > a, .dropbtn { width: 100%; padding: 15px 0; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem; }
    .dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; border: none; padding-left: 20px; display: none; opacity: 1; transform: none; animation: none; }
    .dropdown.active .dropdown-content { display: block; } 
    .sub-dropdown-content { position: static; box-shadow: none; border: none; padding-left: 20px; display: block; transform: none; animation: none; opacity: 1; margin-top: 10px; }
    .sub-dropbtn .arrow { display: none; }
}

@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------
   !!! PRODUCT PAGE STYLES !!!
   ----------------------------------------------------- */

/* Breadcrumb Area */
.breadcrumb-container { background-color: var(--bg-secondary); margin-bottom: 20px; }
.breadcrumb-container a { color: #666; text-decoration: none; font-size: 0.85rem; }
.breadcrumb-container a:hover { color: var(--accent-primary); }
.breadcrumb-container span { font-weight: 500; font-size: 0.85rem; color: var(--text-primary); }

/* Layout Grid */
.product-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image larger than text */
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* Gallery Section */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-frame {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.visual-content {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5; /* Modern portrait ratio for jewelry */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-badge {
    position: absolute; top: 15px; left: 15px;
    background-color: var(--accent-primary); color: white;
    padding: 4px 10px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.5px; border-radius: 2px;
}

.thumbnail-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.thumb-item { width: 80px; height: 100px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border 0.2s; border: 1px solid transparent; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item:hover, .thumb-item.active { opacity: 1; border-color: var(--text-primary); }

/* Info Section */
.product-info { padding-top: 10px; }
.p-title { font-size: 2.2rem; font-weight: 400; margin-bottom: 15px; line-height: 1.2; font-family: var(--font-main); }

.p-price-block { margin-bottom: 25px; display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.p-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-primary); }
.p-old-price { text-decoration: line-through; color: #999; font-size: 1rem; }
.p-tax-text { font-size: 0.8rem; color: #777; width: 100%; margin-top: 5px; }

.p-description {
    font-size: 0.95rem; line-height: 1.7; color: #555;
    margin-bottom: 30px; border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; padding: 20px 0;
}

/* Action Buttons */
.p-actions-row { display: flex; gap: 15px; margin-bottom: 15px; }
.qty-control { display: flex; border: 1px solid #ddd; border-radius: 4px; }
.qty-control button { background: none; border: none; padding: 0 15px; font-size: 1.2rem; cursor: pointer; color: #555; }
.qty-control input { width: 40px; text-align: center; border: none; font-size: 1rem; font-weight: 600; font-family: var(--font-main); }

.btn-primary-action {
    flex-grow: 1; background-color: var(--text-primary); color: white;
    border: none; text-transform: uppercase; font-weight: 600;
    letter-spacing: 1px; padding: 15px; cursor: pointer;
    transition: background 0.3s; border-radius: 4px;
}
.btn-primary-action:hover { background-color: var(--accent-primary); }
.btn-primary-action.disabled { background-color: #ccc; cursor: not-allowed; }

.stock-indicator { font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.stock-indicator.in-stock { color: #2e7d32; }
.stock-indicator.out-stock { color: #c62828; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Accordions */
.accordion-group { border-top: 1px solid #eee; margin-bottom: 30px; }
.accordion { border-bottom: 1px solid #eee; }
.accordion-btn {
    width: 100%; text-align: left; background: none; border: none;
    padding: 18px 0; font-size: 1rem; font-weight: 500;
    cursor: pointer; display: flex; justify-content: space-between;
    color: var(--text-primary); font-family: var(--font-main);
}
.accordion-panel {
    max-height: 0; 
    overflow: hidden; 
    /* Faster transition for smoother feel, reduced from 0.3s/0.4s to 0.2s */
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out, padding 0.2s ease-in-out;
    padding: 0; 
    font-size: 0.9rem; 
    line-height: 1.6; 
    color: #666;
    opacity: 0;
}
.accordion.active .accordion-panel { 
    /* Set a reasonable max-height that is definitely larger than content but not huge */
    max-height: 500px; 
    padding-bottom: 20px; 
    opacity: 1;
}
.accordion.active .accordion-panel { 
    max-height: 1000px; /* Increased to ensure content fits */
    padding-bottom: 20px; 
    opacity: 1;
    /* Maintain faster transition for opening as well */
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out, padding 0.2s ease-in-out;
}
.accordion.active .icon { transform: rotate(45deg); }
.icon { font-size: 1.2rem; transition: transform 0.2s; }
.detail-list { padding-left: 20px; margin: 0; }
.detail-list li { margin-bottom: 5px; }

/* Trust Badges */
.trust-badges { display: flex; justify-content: space-around; opacity: 0.7; border-top: 1px solid #eee; padding-top: 20px; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Product Page Responsive */
@media (max-width: 1024px) {
    .product-wrapper { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .product-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .product-gallery { position: static; }
    .p-title { font-size: 1.8rem; }
    .breadcrumb-container { display: none; }
}

/* --- FIX: INPUT SELECTABILITY ISSUES --- */
/* Sometimes fixed headers with 100% width can block clicks if height is weird. */
header {
    pointer-events: none; /* Allow clicks to pass through empty areas of header container */
}
header > * {
    pointer-events: auto; /* Re-enable clicks for actual header content */
}

/* Force inputs to be interactive */
input, textarea, select, button {
    pointer-events: auto !important;
}

/* Razorpay Modal Z-Index Fix (Just in case) */
.razorpay-container {
    z-index: 10000 !important;
}


/* VARIANT SELECTORS */
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-chip {
    cursor: pointer;
    position: relative;
}

.variant-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variant-chip span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s;
}

.variant-chip input:checked + span {
    background-color: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.variant-chip:hover span {
    border-color: var(--accent-primary);
}

/* CUSTOM: Horizontal Mega Menu for Desktop */
@media (min-width: 769px) {
    /* Break the relative positioning of the wrapper so the content expands to the Header width */
    header .main-nav .dropdown {
        position: static !important;
    }

    /* The Full-Width Horizontal Bar */
    header .dropdown-content {
        visibility: hidden;
        opacity: 0;

        position: absolute;
        top: 100%; /* fixed position – no movement */
        left: 0;
        width: 100%;
        padding: 12px 0;
        background-color: #ffffff;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 12px rgba(0,0,0,0.05);
        z-index: 1000;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;

        transition: opacity 0.25s ease, visibility 0.25s ease; /* fade only */
        
        /* FIX: Allow sub-dropdowns to overflow without scrolling */
        overflow: visible; 
        max-height: none;
    }


    /* Bridge to prevent mouse gap issue */
    header .dropdown-content::before {
        content: '';
        position: absolute;
        top: -30px; /* Extend upwards into the header space */
        left: 0;
        width: 100%;
        height: 30px;
        background: transparent;
    }

    /* Show on Hover */
    header .dropdown:hover .dropdown-content {
        visibility: visible;
        opacity: 1;
    }

    /* Style the links inside the bar */
    header .dropdown-content > a,
    header .sub-dropdown .sub-dropbtn {
        padding: 5px 12px; /* Tighter padding */
        font-size: 0.85rem; /* Smaller font */
        font-weight: 500;
        color: #444; /* Slightly softer black */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        transition: color 0.2s;
    }

    header .dropdown-content > a:hover,
    header .sub-dropdown .sub-dropbtn:hover {
        color: var(--accent-primary);
        background: none;
        padding-left: 12px; /* Disable the shift, keep padding same */
    }

    /* --- Earrings Sub-Menu Fix --- */
    header .sub-dropdown {
        position: relative; /* Keep relative for its own dropdown */
        display: flex;
        align-items: center;
        height: auto;
    }

    header .sub-dropdown-content {
        /* Positioning */
        top: 100%; 
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0px; /* Reset */
        
        /* Size & Style */
        min-width: 235px;
        background: #ffffff;
        border: 1px solid #eee;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Stronger shadow */
        border-radius: 6px;
        padding: 8px 0;
        z-index: 1001; /* Above the horizontal bar */
        margin-left: 70px;

        /* Visibility / Animation state */
        display: block; /* Always block for layout */
        visibility: hidden;
        opacity: 0;
        transition: all 0.2s ease;
        text-align: left;
    }
    
    /* Bridge to prevent closing */
    header .sub-dropdown-content::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
    }
    
    header .sub-dropdown:hover .sub-dropdown-content {
        visibility: visible;
        opacity: 1;
        margin-top: 10px; /* Slide down effect */
    }
    
    header .sub-dropdown-content a {
        padding: 10px 20px;
        font-size: 0.9rem;
        text-transform: capitalize;
        font-weight: 400;
        color: #333;
        border-bottom: 1px solid #f9f9f9;
        display: block;
        border-left: 2px solid transparent;
        transition: all 0.2s;
    }
    
    header .sub-dropdown-content a:last-child {
        border-bottom: none;
    }

    header .sub-dropdown-content a:hover {
        color: var(--accent-primary);
        background: #fcfcfc;
        padding-left: 25px;
        border-left-color: var(--accent-primary);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-icon-svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-svg {
        width: 28px;
        height: 28px;
    }
}