/* ==========================================================================
   Resham Silks - Clean & Modern Base Stylesheet
   ========================================================================== */

:root {
    --bg: #faf7f2;
    --card: #ffffff;
    --text: #2a1f1c;
    --text-muted: #8a7a70;
    --border: #ece3d8;
    --accent: #4A0E17;
    --accent-hover: #3B0B12;
    --gold: #b8863f;
    --success: #16a34a;
    --danger: #b3261e;
    --dark: #1c1210;
}

* { 
    box-sizing: border-box; 
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img { 
    max-width: 100%;
    height: auto; 
    display: block; 
}

p { 
    margin: 0 0 12px; 
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3, .logo, .btn-primary, .hero h1 {
    font-family: 'Playfair Display', 'Space Grotesk', serif;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Announcement Bar ---------- */
.top-announcement-bar {
    background: linear-gradient(90deg, #3B0B12 0%, #4A0E17 50%, #3B0B12 100%);
    color: #f7e7ce;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bar-divider {
    opacity: 0.5;
}

/* ---------- Navbar & Header ---------- */
.navbar {
    background: #121212;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo, .brand-logo {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Modern Capsule Search Bar */
.nav-search, .modern-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    transition: all 0.2s ease;
}

.nav-search:focus-within, .modern-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-search input, .modern-search-bar input {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.nav-search input::placeholder, .modern-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search button, .modern-search-bar button {
    padding: 0;
    min-width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.nav-search button:hover, .modern-search-bar button:hover {
    background: var(--accent-hover);
}

/* Nav Links */
.nav-links, .modern-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a, .nav-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-item:hover {
    color: #ffffff !important;
}

/* Cart Icon & Badge */
.cart-link, .modern-cart-btn {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    position: relative;
    padding: 4px;
}

.cart-count, .cart-badge {
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: -8px;
    border: 1px solid #121212;
}

/* ---------- Mobile Hamburger & Drawer ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.drawer-overlay.active { display: block; opacity: 1; }

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(78vw, 300px);
    background: var(--card);
    z-index: 200;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.active { transform: translateX(0); }

.mobile-drawer a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
}

.drawer-search { display: flex; margin-bottom: 10px; }
.drawer-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}
.drawer-search button {
    padding: 0 16px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 780px) {
    .menu-toggle, .mobile-drawer { display: flex; }
    .nav-search, .nav-links { display: none !important; }
    .logo, .brand-logo { font-size: 19px; }
    .top-announcement-bar { font-size: 11px; padding: 6px 10px; }
    .bar-divider { display: none; }
}

/* ---------- Page Layout ---------- */
.page { padding: 30px 20px 60px; min-height: 60vh; }

.messages { margin-bottom: 20px; }
.message {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.message-success { background: #dcfce7; color: #166534; }
.message-error   { background: #fee2e2; color: #991b1b; }
.message-warning { background: #fef3c7; color: #92400e; }
.message-info    { background: #dbeafe; color: #1e40af; }

/* ---------- Hero Banner ---------- */
.hero {
    background: linear-gradient(135deg, #2a1214, #4a1a24, #4A0E17, #2a1214);
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    color: #fff;
    padding: 70px 40px;
    border-radius: 8px;
    text-align: center;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero .eyebrow {
    display: inline-block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}
.hero h1 { font-size: 36px; margin: 0 0 12px; line-height: 1.25; }
.hero p { color: #e8d9d0; margin: 0 0 24px; font-size: 15px; }

/* ---------- Category Chips ---------- */
.category-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.category-chip {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}
.category-chip:hover { 
    border-color: var(--accent); 
    color: #ffffff; 
    background: var(--accent); 
    transform: translateY(-2px); 
}

/* ---------- Product Grid & Cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.card-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}
.card-img-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* ---------- Discount Badge & Price Formatting Fixes ---------- */
.discount-badge {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.original-price {
    color: #8a7a70;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 400;
}

.current-price {
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-small { padding: 7px 16px; font-size: 13px; background: var(--accent); color: #fff; border-radius: 6px; }
.btn-small:hover { background: var(--accent-hover); }

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 99;
    transition: transform 0.2s ease;
}
.whatsapp-float-btn:hover {
    transform: scale(1.08);
    background: #1ebd5a;
}
.whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
}

/* ---------- Footer ---------- */
.footer {
    background: #121212;
    color: #94a3b8;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Product Detail Gallery Fix (Desktop 2-Col & Mobile Slider) ---------- */
.product-detail-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
}

.product-detail-gallery {
    flex: 1 1 50%;
    max-width: 50%;
    width: 50%;
}

.product-detail-info {
    flex: 1 1 50%;
    max-width: 50%;
    width: 50%;
}

.product-detail-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Mobile Screens Par Carousel Slider Bane GA */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 20px;
    }

    .product-detail-gallery,
    .product-detail-info {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .product-detail-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    .product-detail-gallery img {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }
}

/* Remove top padding for product page */
main.page {
    padding-top: 0 !important;
}

/* ==========================================================================
   PDP Action Buttons & Quantity Stepper Styles (ADDED FIX)
   ========================================================================== */

.pdp-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 380px !important;
    margin-top: 20px !important;
}

/* Quantity & Add to Cart Container */
.add-to-cart-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.qty-stepper {
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 48px !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

.qty-btn {
    width: 36px !important;
    height: 100% !important;
    background: var(--bg) !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
}

.qty-btn:hover {
    background: var(--border) !important;
}

.qty-input {
    width: 44px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    outline: none !important;
}

/* Wishlist Button */
.wishlist-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: #fff !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Base PDP Button Override */
.pdp-actions .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Add to Cart Button */
.btn-primary {
    flex: 1 !important;
    background: var(--accent) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--accent-hover) !important;
}

/* Buy It Now Form & Button */
.buy-now-form {
    width: 100% !important;
}

.btn-buy-now {
    width: 100% !important;
    background: var(--dark) !important;
    color: #ffffff !important;
}

.btn-buy-now:hover {
    background: #000000 !important;
}

/* WhatsApp Contact Button */
.btn-whatsapp {
    width: 100% !important;
    background: #25D366 !important;
    color: #ffffff !important;
    gap: 8px !important;
}

.btn-whatsapp:hover {
    background: #1ebd5a !important;
}

.btn-whatsapp svg {
    fill: #ffffff !important;
}

/* ==========================================================================
   Static Pages Layout & Styling (Resham Silks Premium Theme Extension)
   ========================================================================== */

.page-container {
    padding: 60px 0;
    min-height: 70vh;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Content Blocks */
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.content-card h2 {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.content-card p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

/* Accordion Component (FAQs Page) */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.7;
}

/* Grid Layouts for Features & Contact Pages */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    .content-card {
        padding: 24px;
    }
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }
}