/* 
  Godavari Purva Ruchulu - Premium CSS Design System
  Theme: Traditional Andhra Heritage meets Luxury Modern E-Commerce
  Colors: Deep Maroon, Royal Gold, Warm Cream, Rich Charcoal
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #58111A;
    --primary-light: #7E1E2A;
    --primary-rgb: 88, 17, 26;
    --secondary: #D4AF37;
    --secondary-light: #E5C158;
    --secondary-rgb: 212, 175, 55;
    --bg-warm: #FFFDF9;
    --bg-warm-secondary: #F6EFE6;
    --bg-card: #FFFFFF;
    --dark-accent: #2C1A1D;
    --text-main: #2C1A1D;
    --text-muted: #6B5759;
    --border-color: #EEDEC8;
    --white: #FFFFFF;
    --success: #2E7D32;
    --error: #C62828;
    
    --shadow-sm: 0 4px 12px rgba(88, 17, 26, 0.04);
    --shadow-md: 0 12px 32px rgba(88, 17, 26, 0.08);
    --shadow-lg: 0 20px 48px rgba(88, 17, 26, 0.12);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', Helvetica, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 28px;
}

/* Dark Mode Override */
body.dark-mode {
    --bg-warm: #120A0B;
    --bg-warm-secondary: #1C1113;
    --bg-card: #180F11;
    --text-main: #FFFDF9;
    --text-muted: #A89B9D;
    --border-color: #3D2226;
    --white: #180F11;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

/* Base resets & styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-warm-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Heritage Borders & Motifs */
.heritage-border {
    position: relative;
    border: 1px solid var(--secondary);
    padding: 10px;
}
.heritage-border::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px dashed var(--secondary);
    pointer-events: none;
}

/* Sticky Navbar */
header {
    background-color: rgba(var(--primary-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1, .logo .logo-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo span {
    font-size: 11px;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 24px);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.menu-toggle {
    display: none;
}

/* Category Quick Dropdown Submenu */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 220px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 12px 0;
    display: none;
    z-index: 1010;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-out;
}
.dropdown-menu li a {
    color: var(--text-main);
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover {
    background-color: var(--bg-warm-secondary);
    color: var(--primary);
    padding-left: 24px;
}

/* Search Bar in Header */
.search-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.search-input {
    width: 100%;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px;
    padding-right: 40px;
    border-radius: 20px;
    color: var(--white);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}
.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}
.search-input:focus {
    background-color: var(--white);
    color: var(--text-main);
    border-color: var(--secondary);
}
.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
}
.search-input:focus ~ .search-btn {
    color: var(--primary);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1020;
    display: none;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: var(--bg-warm-secondary);
}
.search-result-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.search-result-info h4 {
    font-size: 13px;
    margin-bottom: 2px;
}
.search-result-info p {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

/* Page Sections Management (SPA) */
.page-section {
    display: none;
}
.page-section.active-section {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-warm-secondary);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-text h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 4px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    color: var(--dark-accent);
    line-height: 1.15;
    margin-bottom: 20px;
}
body.dark-mode .hero-text h1 {
    color: var(--white);
}

.hero-text h1 span {
    color: var(--primary);
    display: block;
    font-style: italic;
    font-weight: 500;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88,17,26,0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    border: 4px solid var(--secondary);
    border-radius: var(--border-radius-lg);
    padding: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius-lg) - 8px);
    transition: var(--transition);
}

.hero-image-frame:hover img {
    transform: scale(1.05);
}

/* Categories Section */
.categories-sec {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Why Choose Us Section */
.why-us-sec {
    background-color: var(--bg-warm-secondary);
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}
.why-card:hover .why-icon {
    background-color: var(--primary);
    color: var(--white);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Bestsellers Section & Product Listing Grid */
.products-sec {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Premium Product Card */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(var(--white), 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
    z-index: 10;
}
.wishlist-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}
.wishlist-btn.active {
    color: #e74c3c;
    background-color: var(--white);
}

.product-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-warm-secondary);
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-actions-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
    bottom: 0;
}

.overlay-btn {
    background-color: var(--white);
    color: var(--text-main);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.overlay-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.product-pack {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #F39C12;
    margin-bottom: 14px;
}
.product-rating span {
    color: var(--text-muted);
    font-weight: 500;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.offer-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
body.dark-mode .offer-price {
    color: var(--secondary-light);
}

.qty-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.qty-select {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 40px;
}

.qty-select button {
    background: none;
    border: none;
    width: 30px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-main);
}

.qty-select button:hover {
    background-color: var(--bg-warm-secondary);
}

.qty-select input {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--text-main);
    outline: none;
}

.card-add-btn {
    flex-grow: 1;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    height: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.card-add-btn:hover {
    background-color: var(--primary-light);
}

.buy-now-btn {
    width: 100%;
    margin-top: 8px;
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    height: 40px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.buy-now-btn:hover {
    background-color: var(--secondary-light);
}

/* Festival Offers Banner */
.festival-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.festival-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.fest-content h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.fest-content p {
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fest-code {
    display: inline-block;
    border: 2px dashed var(--secondary);
    padding: 10px 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    background-color: rgba(0,0,0,0.2);
}

/* Product Listing / Shop Page layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0 80px 0;
}

.filter-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.filter-list {
    list-style: none;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.price-range {
    margin-top: 10px;
}
.price-range input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    margin-bottom: 10px;
}
.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
}

/* Shop Header Controls */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.shop-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.shop-sort select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

/* Product Detail Page View */
.product-details-container {
    padding: 50px 0 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Product Gallery Zoom */
.details-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1.1;
    background-color: var(--bg-warm-secondary);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Content */
.details-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.details-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #F39C12;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.details-rating span {
    color: var(--text-muted);
}

.details-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.details-price .original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.details-price .offer {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.details-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.details-options {
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 16px;
}

.option-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.pack-selectors {
    display: flex;
    gap: 12px;
}

.pack-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pack-btn.active, .pack-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.action-row {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.detail-qty-select {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 48px;
}
.detail-qty-select button {
    background: none;
    border: none;
    width: 36px;
    height: 100%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-main);
}
.detail-qty-select input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    color: var(--text-main);
    outline: none;
}

.detail-add-btn {
    height: 48px;
    flex-grow: 1;
    font-size: 15px;
}

.detail-wishlist-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.detail-wishlist-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}
.detail-wishlist-btn.active {
    background-color: #e74c3c;
    color: var(--white);
    border-color: #e74c3c;
}

.details-extra-info {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 13px;
}
.info-row {
    display: flex;
    margin-bottom: 8px;
}
.info-row span:first-child {
    font-weight: 700;
    width: 140px;
}
.info-row span:last-child {
    color: var(--text-muted);
}

/* Tabs for reviews and additional information */
.details-tabs {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 30px;
}
.tab-header-btn {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}
.tab-header-btn.active {
    color: var(--primary);
}
.tab-header-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background-color: var(--primary);
}
.tab-content {
    padding: 24px 0;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* Reviews Styling */
.reviews-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}
.review-stats {
    background-color: var(--bg-warm-secondary);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    height: fit-content;
}
.review-stats h3 {
    font-size: 48px;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 4px;
}
.review-stats p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-user {
    font-weight: 600;
    font-size: 14px;
}
.review-date {
    font-size: 11px;
    color: var(--text-muted);
}
.review-stars {
    color: #F39C12;
    font-size: 12px;
    margin-bottom: 6px;
}
.review-text {
    font-size: 13px;
    color: var(--text-muted);
}

.add-review-form {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}
.add-review-form h4 {
    font-size: 16px;
    margin-bottom: 16px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
}
.star-rating-select {
    display: flex;
    gap: 8px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 16px;
}
.star-rating-select span.hover, .star-rating-select span.selected {
    color: #F39C12;
}

/* Slide-out Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--secondary);
}

.cart-drawer.open {
    right: 0;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}
.cart-backdrop.open {
    display: block;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    background-color: var(--bg-warm-secondary);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-pack {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    height: 28px;
}
.cart-qty button {
    background: none;
    border: none;
    width: 24px;
    height: 100%;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-main);
}
.cart-qty span {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--error);
    font-size: 14px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-warm-secondary);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}
.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

.coupon-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.coupon-box input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-main);
}
.coupon-box button {
    padding: 8px 16px;
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.checkout-btn {
    width: 100%;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.checkout-btn:hover {
    background-color: var(--primary-light);
}

/* Checkout Page Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 40px 0 80px 0;
}

.checkout-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.checkout-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.payment-method-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.payment-method-box.selected {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.03);
}
.payment-method-box input[type="radio"] {
    accent-color: var(--primary);
}
.payment-method-box label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;
}

/* Razorpay Simulated Modal */
.razorpay-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 360px;
    background-color: #0E1626;
    color: white;
    z-index: 2100;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.razorpay-modal.open {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.rp-header {
    background-color: #17243B;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rp-logo {
    background-color: #3399FF;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}
.rp-details h4 {
    font-size: 14px;
    font-weight: 600;
}
.rp-details p {
    font-size: 11px;
    color: #8BA2C1;
}
.rp-amount-bar {
    background-color: #21314F;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8BA2C1;
}
.rp-amount-bar span:last-child {
    font-size: 15px;
    font-weight: 700;
    color: white;
}
.rp-body {
    padding: 20px;
}
.rp-option {
    background-color: #1A2842;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition);
}
.rp-option:hover {
    border-color: #3399FF;
    background-color: #21314F;
}
.rp-btn {
    width: 100%;
    height: 44px;
    background-color: #3399FF;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Order Confirmation Page */
.confirmation-box {
    text-align: center;
    padding: 80px 0;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 72px;
    color: var(--success);
    margin-bottom: 24px;
    display: inline-block;
    animation: scaleUp 0.5s ease-out;
}

.confirmation-box h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary);
}

.confirmation-box p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.order-id-tag {
    background-color: var(--bg-warm-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 40px;
}

.conf-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Contact Page View */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding: 50px 0 80px 0;
}

.contact-info-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    height: 220px;
    position: relative;
    background-color: var(--bg-warm-secondary);
}
.mock-map {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}
.mock-map .map-pin {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

/* Floating Actions & Sticky Add to Cart */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}
.float-btn:hover {
    transform: scale(1.1) rotate(10deg);
}
.float-whatsapp {
    background-color: #25D366;
}
.float-call {
    background-color: var(--primary);
    border: 1px solid var(--secondary);
}

/* Sticky Bottom Add To Cart on Mobile (For Product Details page) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 12px 16px;
    display: none;
    z-index: 1005;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

/* User Account Section (SPA) */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}
.auth-tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}

/* Order Tracking View */
.track-card {
    max-width: 600px;
    margin: 50px auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.track-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}
.track-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.track-search-box input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-main);
}
.track-search-box button {
    padding: 0 24px;
}
.tracking-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}
.tracking-stepper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}
.tracking-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80px;
}
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 4px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 10px auto;
    transition: var(--transition);
}
.tracking-step.active .step-dot {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--bg-warm-secondary);
}
.tracking-step.completed .step-dot {
    background-color: var(--success);
    color: var(--white);
}
.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.tracking-step.active .step-label {
    color: var(--primary);
}

/* Footer Section */
footer {
    background-color: var(--dark-accent);
    color: var(--bg-warm-secondary);
    padding: 80px 0 30px 0;
    border-top: 3px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 13px;
    color: #A89B9D;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #A89B9D;
}
.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #A89B9D;
    transition: var(--transition);
}
.social-icon:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background-color: rgba(255,255,255,0.05);
    color: white;
    font-size: 13px;
    outline: none;
}
.newsletter-form input:focus {
    border-color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8C7B7D;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2200;
}
.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
}
.toast.toast-success {
    border-left-color: var(--success);
}
.toast.toast-error {
    border-left-color: var(--error);
}

/* Recently Viewed Products Bar */
.recently-viewed-sec {
    padding: 40px 0 80px 0;
    border-top: 1px solid var(--border-color);
}

/* Dynamic Notification Alert Banner */
.broadcast-banner {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    padding: 8px 24px;
    display: none;
    position: relative;
    z-index: 1002;
    animation: fadeIn 0.5s ease-out;
}
.broadcast-banner .close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Quick View Modal Overlay */
.quickview-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 2005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.quickview-modal.open {
    display: flex;
}
.quickview-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--secondary);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    box-shadow: var(--shadow-lg);
}
.close-quickview {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-warm-secondary);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--text-main);
}
.quickview-img {
    height: 100%;
    min-height: 350px;
    background-color: var(--bg-warm-secondary);
}
.quickview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quickview-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 46px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 20px;
        cursor: pointer;
        margin-left: 4px;
    }
    .nav-actions {
        gap: 6px;
    }
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: -3px;
        right: -3px;
        border-width: 1.5px;
    }
    #notif-bell-btn {
        display: none !important;
    }
    
    .nav-links {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
        z-index: 998;
        border-top: 1px solid rgba(255,255,255,0.1);
        gap: 24px;
    }
    
    .nav-links.open {
        left: 0;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        position: static;
        display: block;
        background-color: rgba(0,0,0,0.1);
        box-shadow: none;
        border: none;
        text-align: center;
    }
    .dropdown-menu li a {
        color: var(--white);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 38px; }
    .hero-text p { margin: 0 auto 30px auto; }
    .hero-btns { justify-content: center; }
    .hero-image-wrapper { order: -1; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-layout { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; } /* On mobile, we can toggle it or rely on tags */
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .mobile-sticky-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-actions { gap: 10px; }
    .search-container { display: none; } /* Hide raw search in header, toggle via action instead */
    .hero-text h1 { font-size: 32px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .conf-btns { flex-direction: column; }
    .quickview-content {
        grid-template-columns: 1fr;
    }
    .quickview-img {
        min-height: 200px;
    }
}

/* ================= CUSTOMER DASHBOARD STYLES ================= */
.dashboard-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}
.dashboard-sidebar {
    flex-basis: 280px;
    flex-shrink: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}
.user-meta h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary);
    margin: 0 0 2px 0;
}
.user-meta p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.dashboard-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dash-menu-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-menu-btn:hover, .dash-menu-btn.active {
    background-color: var(--bg-warm-secondary);
    color: var(--primary);
    font-weight: 700;
}
.dash-menu-btn.logout-btn {
    color: #c0392b;
}
.dash-menu-btn.logout-btn:hover {
    background-color: #fdedec;
}
.dashboard-content {
    flex-grow: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}
.dashboard-panel {
    display: none;
}
.dashboard-panel.active-panel {
    display: block;
}
.panel-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.address-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    background-color: var(--bg-card);
    transition: var(--transition);
    position: relative;
}
.address-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}
.address-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--bg-warm-secondary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.address-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    padding-right: 60px;
}
.address-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 6px 0;
}
.address-actions {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}
.address-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}
.address-action-btn:hover {
    color: var(--primary);
}
.orders-table-wrapper {
    overflow-x: auto;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.orders-table th {
    background-color: var(--bg-warm-secondary);
    color: var(--primary);
    padding: 14px 10px;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}
.orders-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
.orders-table tr:hover td {
    background-color: var(--bg-warm-secondary);
}
.order-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
}
.order-status-badge.pending { background-color: #FEF9E7; color: #D4AC0D; }
.order-status-badge.confirmed { background-color: #EBF5FB; color: #2980B9; }
.order-status-badge.preparing { background-color: #EAECEE; color: #5D6D7E; }
.order-status-badge.shipped { background-color: #E8F8F5; color: #117A65; }
.order-status-badge.delivered { background-color: #E8F8F5; color: #27AE60; }
.order-status-badge.cancelled { background-color: #FDEDEC; color: #C0392B; }
.order-status-badge.return-requested { background-color: #F5EEF8; color: #8E44AD; }

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-sidebar {
        flex-basis: auto;
        width: 100%;
    }
}

/* ================= PAYMENT MODAL & SUCCESS/FAILURE FLOW ================= */
.razorpay-checkout-box {
    width: 90%;
    max-width: 650px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
    border: 1px solid #e4e9f2;
}

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

.razorpay-checkout-box .rp-header {
    background-color: #0c1b2c;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid var(--secondary);
}

.razorpay-checkout-box .rp-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.razorpay-checkout-box .rp-details h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.razorpay-checkout-box .rp-details p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #8ba2c1;
}

.razorpay-checkout-box .rp-amount-badge {
    text-align: right;
}

.razorpay-checkout-box .rp-layout {
    display: flex;
    background-color: #ffffff;
    min-height: 350px;
}

.razorpay-checkout-box .rp-sidebar {
    width: 180px;
    flex-shrink: 0;
    background-color: #f7f9fc;
    border-right: 1px solid #e4e9f2;
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
}

.razorpay-checkout-box .rp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.razorpay-checkout-box .rp-menu-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.razorpay-checkout-box .rp-menu-btn:hover,
.razorpay-checkout-box .rp-menu-btn.active {
    background-color: #ffffff;
    color: #3b82f6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.razorpay-checkout-box .rp-content {
    flex-grow: 1;
    padding: 24px;
    color: #2e3a59;
}

.razorpay-checkout-box .rp-panel h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #2e3a59;
    font-weight: 700;
    border-bottom: 1px solid #f0f4f9;
    padding-bottom: 8px;
}

.razorpay-checkout-box .form-control {
    background-color: #f7f9fc;
    border: 1px solid #e4e9f2;
    color: #2e3a59;
}

.razorpay-checkout-box .form-control::placeholder {
    color: #a6b0c3;
}

.razorpay-checkout-box .form-control:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.razorpay-checkout-box .rp-submit-btn {
    width: 100%;
    height: 44px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.razorpay-checkout-box .rp-submit-btn:hover {
    background-color: #2563eb;
}

.razorpay-checkout-box .rp-footer {
    background-color: #0c1b2c;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.razorpay-checkout-box .rp-cancel-btn {
    background: none;
    border: none;
    color: #a6b0c3;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.razorpay-checkout-box .rp-cancel-btn:hover {
    color: #ffffff;
}

.rp-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bank-box {
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f7f9fc;
}

.bank-box input {
    display: none;
}

.bank-box:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.bank-box:has(input:checked) {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bank-icon {
    font-size: 20px;
}

.bank-name {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
}

/* Success / Failure details box styling */
.success-icon-wrap, .failure-icon-wrap {
    animation: scaleUpDown 1s ease infinite alternate;
}

@keyframes scaleUpDown {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@media (max-width: 600px) {
    .razorpay-checkout-box .rp-layout {
        flex-direction: column;
    }
    .razorpay-checkout-box .rp-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e4e9f2;
        padding: 10px 8px;
    }
    .razorpay-checkout-box .rp-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .razorpay-checkout-box .rp-menu-btn {
        padding: 8px 12px;
        white-space: nowrap;
    }
}

/* ================= SHIPPING Speed CARDS & STEPPER TRACKER ================= */
.shipping-method-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-card);
    position: relative;
    display: flex;
    align-items: center;
}

.shipping-method-box:hover {
    border-color: var(--secondary);
}

.shipping-method-box.selected {
    border-color: var(--primary);
    background-color: var(--bg-warm-secondary);
    box-shadow: var(--shadow-sm);
}

.tracking-results-box {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.stepper-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0 50px 0;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.stepper-progress-bar {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 4px;
    background-color: var(--success);
    z-index: 2;
    transition: width 0.4s ease, height 0.4s ease;
    width: 0;
}

.stepper-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.stepper-step.active .step-circle {
    border-color: var(--primary);
    color: var(--primary);
}

.stepper-step.completed .step-circle {
    border-color: var(--success);
    background-color: var(--success);
    color: var(--white);
}

.step-label {
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.stepper-step.active .step-label {
    color: var(--primary);
    font-weight: 800;
}

.stepper-step.completed .step-label {
    color: var(--text-main);
}

.tracking-logs {
    list-style: none;
    margin: 30px 0 0 0;
    padding: 0;
    border-left: 2px solid var(--border-color);
    margin-left: 16px;
    text-align: left;
}

.tracking-log-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 20px;
}

.tracking-log-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.tracking-log-item.latest::before {
    background-color: var(--success);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
}

.tracking-log-item .log-date {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
}

.tracking-log-item .log-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 2px 0;
}

.tracking-log-item .log-details {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

@media (max-width: 500px) {
    .stepper-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-left: 20px;
    }
    .stepper-container::before {
        top: 15px;
        bottom: 15px;
        left: 31px;
        width: 4px;
        height: calc(100% - 30px);
        right: auto;
    }
    .stepper-progress-bar {
        top: 15px;
        left: 31px;
        width: 4px;
        height: 0;
    }
    .stepper-step {
        flex-direction: row;
        width: auto;
        gap: 15px;
    }
    .step-label {
        margin-top: 0;
        text-align: left;
    }
}

/* ================= PRODUCT AVAILABILITY OUT-OF-STOCK OVERLAYS ================= */
.product-card.out-of-stock-card {
    opacity: 0.85;
}

.product-card.out-of-stock-card img {
    filter: grayscale(60%) contrast(90%);
}

.out-of-stock-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #c0392b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.35);
    letter-spacing: 0.5px;
}

button:disabled, .btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
    background-color: #bdc3c7 !important;
    border-color: #bdc3c7 !important;
    color: #7f8c8d !important;
    box-shadow: none !important;
}

/* ================= HEADER NOTIFICATIONS DROPDOWN & FLOATING PUSH BANNER ================= */
.notifications-dropdown-menu {
    position: absolute;
    top: 54px;
    right: 0;
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease;
}

.notifications-dropdown-menu.open {
    display: flex;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
    text-align: left;
}

.notif-dropdown-item:hover {
    background-color: var(--bg-warm-secondary);
}

.notif-dropdown-item .notif-text {
    font-size: 12.5px;
    color: var(--text-main);
    margin: 0;
    line-height: 1.45;
    font-weight: 600;
}

.notif-dropdown-item .notif-time {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

.floating-push-card {
    position: fixed;
    top: 90px;
    right: 24px;
    width: 340px;
    background-color: var(--bg-card);
    border-left: 5px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    padding: 16px 24px 16px 16px;
    z-index: 99999;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-push-card.show {
    transform: translateX(0);
}

.close-notif-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-notif-btn:hover {
    color: var(--primary);
}

.push-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-warm-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}