/**
 * eShop Multipurpose Main Stylesheet
 * Premium, glassmorphic, responsive, and performance-optimized CSS system.
 */

/* 1. Design System & CSS Variables */
:root {
    /* Color Palette (Ghorer Bazar Organic Aesthetics) */
    --primary-color: #f48721;
    --primary-hover: #d97012;
    --primary-rgb: 244, 135, 33;
    
    --accent-color: #041f1e;
    --accent-hover: #021211;
    --accent-rgb: 4, 31, 30;

    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Light Theme (Default) - Warm Ivory Base */
    --bg-base: #fbfbfa;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.75);
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    --glass-blur: 12px;
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Layout Constants */
    --max-width: 1280px;
    --header-height: 120px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
body.dark-theme {
    --bg-base: #090d16;
    --bg-card: #121826;
    --bg-nav: rgba(9, 13, 22, 0.75);
    --border-color: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* 2. Global Styles */
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

a:hover {
    color: var(--primary-hover);
}

button, .button, input[type="submit"] {
    font-family: var(--font-sans);
    cursor: pointer;
}

/* Custom Typography spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
    color: var(--text-main);
}

/* 3. Header & Glass Navigation */
.eshop-top-hotline-bar {
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.hotline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotline-text strong {
    color: var(--primary-color);
}

.hotline-promo {
    font-size: 12px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hotline-promo {
        display: none;
    }
    .hotline-container {
        justify-content: center;
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-nav);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.site-header .header-container {
    flex: 1;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled .eshop-top-hotline-bar {
    margin-top: -38px;
    opacity: 0;
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.custom-logo-link img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.eshop-logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Primary Menu */
.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.primary-navigation ul a {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.primary-navigation ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition-smooth);
}

.primary-navigation ul a:hover::after,
.primary-navigation ul li.current-menu-item a::after {
    width: 100%;
}

/* Header Utilities */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    background: none;
    border: none;
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-icon:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #db2777 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
    display: none;
}

/* 4. Interactive Hero Banner */
.hero-banner {
    position: relative;
    padding: 160px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
                radial-gradient(circle at 15% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
}

body.dark-theme .hero-banner::before {
    background: radial-gradient(circle at 75% 30%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%),
                radial-gradient(circle at 15% 80%, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Premium Buttons */
.eshop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.eshop-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.eshop-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(var(--primary-rgb), 0.45);
    color: white;
}

.eshop-btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

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

/* Floating shapes micro-animation */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.floating-circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(var(--primary-rgb), 0.15);
    top: 15%;
    right: 10%;
    animation: floatShape 12s infinite alternate ease-in-out;
}

.floating-circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(var(--accent-rgb), 0.15);
    bottom: 20%;
    right: 25%;
    animation: floatShape 8s infinite alternate-reverse ease-in-out;
}

/* 5. Features Grid Section */
.features-section {
    padding: 60px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* 6. Product Category grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    position: relative;
}

.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background-color: #ddd;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-card:hover::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%);
}

.category-info {
    position: relative;
    z-index: 2;
    color: white;
}

.category-info h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.category-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 7. Product Loop & Cards Layout */
.products-section {
    padding: 60px 0;
}

.eshop-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

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

.eshop-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.eshop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #f1f5f9;
}

body.dark-theme .product-image-wrapper {
    background-color: #1e293b;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.eshop-product-card:hover .product-thumb {
    transform: scale(1.08);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-sale {
    background: linear-gradient(135deg, var(--accent-color) 0%, #db2777 100%);
}

.badge-new {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
}

.badge-hot {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

/* Card hover utility buttons */
.product-hover-actions {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 3;
}

.eshop-product-card:hover .product-hover-actions {
    opacity: 1;
}

.qv-btn, .add-to-cart-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    transform: translateY(20px);
}

.qv-btn:hover, .add-to-cart-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) translateY(0) !important;
}

.eshop-product-card:hover .qv-btn {
    transform: translateY(0);
    transition-delay: 0.05s;
}

.eshop-product-card:hover .add-to-cart-icon {
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Card Info */
.product-card-info {
    padding: 24px;
}

.product-cat {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: var(--text-main);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.card-price del {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
}

.card-price ins {
    text-decoration: none;
}

.rating-stars {
    display: flex;
    color: #eab308;
    gap: 2px;
}

/* 8. Slide-Out Mini-Cart Drawer & Backdrop */
.mini-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cart-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-color);
}

.mini-cart-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin-bottom: 0;
    font-size: 20px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    background: var(--border-color);
}

.drawer-body-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* WooCommerce Mini Cart Overrides */
.woocommerce-mini-cart {
    list-style: none;
}

.woocommerce-mini-cart__item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.woocommerce-mini-cart__item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--bg-base);
}

.woocommerce-mini-cart__item a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-mini-cart__item a:hover {
    color: var(--primary-color);
}

.woocommerce-mini-cart__item .quantity {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.woocommerce-mini-cart__item .remove_from_cart_button {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--error-color) !important;
    background: none;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-mini-cart__total {
    margin-top: 20px;
    padding: 16px 0;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
}

.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.woocommerce-mini-cart__buttons .button:hover {
    transform: translateY(-2px);
}

/* 9. AJAX Quick View Modal UI */
.quickview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.quickview-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quickview-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.quickview-overlay.active .quickview-modal {
    transform: scale(1);
}

.qv-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-base);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.qv-close-btn:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.qv-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 40px;
}

/* Quickview columns */
.quickview-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .quickview-product-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.qv-image-column img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.qv-details-column {
    display: flex;
    flex-direction: column;
}

.qv-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 12px;
}

.qv-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.qv-short-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.qv-action {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    align-items: center;
}

.qv-action form.cart {
    display: flex;
    gap: 16px;
    width: 100%;
}

.qv-action .quantity input {
    width: 60px;
    height: 48px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    text-align: center;
    font-weight: 600;
}

.qv-action .single_add_to_cart_button {
    flex: 1;
    height: 48px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 15px -5px rgba(var(--primary-rgb), 0.3);
    transition: var(--transition-smooth);
}

.qv-action .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(var(--primary-rgb), 0.45);
}

.qv-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
}

.qv-meta span span {
    color: var(--text-main);
    font-weight: 600;
}

/* 10. Footer Section */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 100px;
    transition: var(--transition-smooth);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr) 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-widget p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

/* Dynamic Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.newsletter-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.newsletter-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.payment-methods {
    display: flex;
    gap: 12px;
    opacity: 0.6;
}

.payment-methods img {
    height: 24px;
}

/* 11. Blog & Page Fallbacks Styling */
.eshop-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
}

.blog-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.blog-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--text-main);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-readmore {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-readmore:hover {
    gap: 10px;
}

/* Keyframes animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Responsive CSS for Mobile Navbar Drawer */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .primary-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 150;
        padding: 100px 40px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.15);
        transition: var(--transition-smooth);
        border-right: 1px solid var(--border-color);
    }
    
    .primary-navigation.active {
        left: 0;
    }
    
    .primary-navigation ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .primary-navigation ul a {
        font-size: 18px;
    }
}

/* ==========================================================================
   12. WooCommerce Single Product Layout Styling
   ========================================================================== */
.woocommerce-product-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.single-product div.product .summary {
    display: flex;
    flex-direction: column;
}

.single-product div.product .product_title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.single-product div.product .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color) !important;
    margin-bottom: 24px;
}

.single-product div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Custom trust badges styled similarly to Ghorer Bazar */
.eshop-single-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
    padding: 24px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
}

.trust-badge-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Single Product Cart Add */
.single-product div.product form.cart {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.single-product div.product form.cart .quantity input {
    height: 52px;
    width: 70px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    background: transparent;
    color: var(--text-main);
}

.single-product div.product form.cart .single_add_to_cart_button {
    flex: 1;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ea580c 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 10px 15px -5px rgba(var(--primary-rgb), 0.3);
    transition: var(--transition-smooth);
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(var(--primary-rgb), 0.45);
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 60px;
    margin-bottom: 60px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid var(--border-color);
    gap: 30px;
    padding-left: 0;
    margin-bottom: 30px;
}

.woocommerce-tabs ul.tabs li {
    padding: 12px 0;
}

.woocommerce-tabs ul.tabs li a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    padding-bottom: 12px;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* ==========================================================================
   13. WooCommerce Cart Page Styling
   ========================================================================== */
.woocommerce-cart .woocommerce {
    padding-top: 20px;
}

.woocommerce-cart-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
}

.shop_table.cart th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

.shop_table.cart td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.shop_table.cart img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-base);
}

.shop_table.cart .product-name a {
    color: var(--text-main);
    font-weight: 700;
}

.shop_table.cart .product-price, .shop_table.cart .product-subtotal {
    font-weight: 700;
    color: var(--accent-color);
}

.shop_table.cart .product-quantity input {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
}

.woocommerce-cart .cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .woocommerce-cart .cart-collaterals {
        grid-template-columns: 1fr;
    }
}

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

.cart_totals h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.cart_totals .shop_table {
    width: 100%;
}

.cart_totals .shop_table td, .cart_totals .shop_table th {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart_totals .shop_table tr.order-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
}

.cart_totals .checkout-button {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ea580c 100%);
    color: white;
    font-weight: 700;
    text-align: center;
    margin-top: 24px;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
    transition: var(--transition-smooth);
}

.cart_totals .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(var(--primary-rgb), 0.45);
    color: white;
}

/* ==========================================================================
   14. WooCommerce Checkout Page Styling
   ========================================================================== */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.woocommerce-checkout #customer_details h3, .woocommerce-checkout #order_review_heading {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.woocommerce-checkout .form-row label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 15px;
    transition: var(--transition-smooth);
    width: 100%;
}

.woocommerce-checkout .form-row input.input-text:focus, .woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

#order_review {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

#order_review table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

#order_review table.shop_table th, #order_review table.shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

#order_review table.shop_table .product-total, #order_review table.shop_table .cart-subtotal, #order_review table.shop_table .order-total {
    text-align: right;
    font-weight: 700;
}

#order_review table.shop_table .order-total {
    font-size: 20px;
    color: var(--primary-color);
}

/* Payment Selector */
#payment {
    background: transparent;
    padding: 0;
    margin-top: 30px;
}

#payment ul.payment_methods {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

#payment ul.payment_methods li {
    margin-bottom: 16px;
    background: var(--bg-base);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#payment ul.payment_methods li input[type="radio"] {
    margin-right: 10px;
}

#payment ul.payment_methods li label {
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
}

#payment .place-order button.button {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.3);
    transition: var(--transition-smooth);
}

#payment .place-order button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(22, 163, 74, 0.45);
}
