/* Custom CSS for Nuter Guru Organic Food Store */

/* Root Variables — overridden by admin theme settings in layout */
:root {
    --primary-color: #F58220;
    --secondary-color: #F8F4F0;
    --accent-color: #FF9A3C;
    --background-color: #FFFFFF;
    --text-dark: #5C3317;
    --text-light: #6B6B6B;
    --bg-light: #F8F4F0;
    --bg-elegant: #F3F8F2;
    --border-color: #E5E5E5;
    --primary-rgb: 245, 130, 32;
    --shadow: 0 2px 15px rgba(var(--primary-rgb), 0.12);
    --transition: all 0.3s ease;
    --gradient-bg: #ffffff;
    --statistics-color: #6AB344;
    --statistics-font-color: #ffffff;
    --footer-color: #1A1A1A;
}

/* Mobile-First Responsive Design */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar .col-md-6:last-child {
        text-align: left !important;
        margin-top: 5px;
    }
    
    .logo h2 {
        font-size: 1.5rem !important;
    }
    
    .search-bar {
        margin: 10px 0;
    }
    
    .header-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

/* Global Styles */
body {
    font-family: 'Nexa', sans-serif;
    font-weight: 300; /* Light */
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient-bg);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
    opacity: 0.95;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nexa', sans-serif;
    font-weight: 300;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

/* Corano-inspired Topbar Styling */
.corano-topbar {
    background: #f8f9fa;
    color: #333333;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 8px 0;
}

.corano-topbar .contact-info {
    color: #666666;
    font-size: 0.8rem;
}

.corano-topbar .contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 0.75rem;
}

.corano-topbar .contact-info span {
    transition: var(--transition);
    margin-right: 20px;
}

.corano-topbar .contact-info span:hover {
    color: var(--primary-color);
}

.topbar-social-link {
    color: #666666 !important;
    font-size: 0.8rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
    text-decoration: none;
    margin-left: 8px;
}

.topbar-social-link:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Mobile responsiveness for topbar */
@media (max-width: 768px) {
    .corano-topbar {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .corano-topbar .col-md-6:last-child {
        text-align: center !important;
        margin-top: 8px;
    }
    
    .corano-topbar .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .topbar-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Corano-inspired Logo Styling */
.logo h2 {
    font-family: 'Nexa', sans-serif;
    color: #2c3e50 !important;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1;
}

.logo small {
    font-family: 'Nexa', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 300;
    display: block;
    margin-top: -2px;
}

.logo img {
    max-height: 36px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.02);
}

.logo a {
    display: block;
    text-decoration: none;
}

/* Main Header Styling */
.main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    padding: 4px 0;
}

/* Header Layout Sections */
.logo-section {
    flex-shrink: 0;
    min-width: 200px;
}

.search-section {
    max-width: 320px;
    min-width: 220px;
    flex: 0 0 320px;
    width: 320px;
}

.actions-section {
    flex-shrink: 0;
    min-width: 250px;
}

/* Search Bar Styling */
.search-bar .form-control {
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 6px 34px 6px 14px;
    font-size: 0.82rem;
    background: #ffffff;
    transition: var(--transition);
    height: 32px;
}

.search-bar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.1);
    background: #ffffff;
    outline: none;
}

.search-bar .form-control::placeholder {
    color: #999999;
    font-size: 0.9rem;
}

.search-bar .btn {
    border: none;
    background: transparent;
    color: #999999;
    padding: 6px 10px;
    right: 5px;
}

.search-bar .btn:hover {
    color: var(--primary-color);
}

.search-bar {
    position: relative;
}

/* Header Actions Styling */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
}

.header-actions .btn {
    transition: var(--transition);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-actions .btn:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.header-actions .btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    background: transparent;
    height: 34px;
}

.header-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.header-actions .btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    color: #ffffff;
    height: 34px;
}

.header-actions .btn-primary:hover {
    background: #c9a96e;
    border-color: #c9a96e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.header-actions .btn-link {
    color: #666666 !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 45px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.header-actions .btn-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color) !important;
    border-color: rgba(212, 175, 55, 0.2);
}

/* Cart Icon Specific Styling */
.header-actions .btn-link.position-relative {
    margin-right: 0.5rem;
}

.header-actions .cart-count {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    padding: 2px 4px;
}

/* User Dropdown Styling */
.header-actions .dropdown-toggle {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Navigation Styling */
.navbar {
    padding: 0;
    background: #ffffff !important;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #2c3e50 !important;
    padding: 0.45rem 0.8rem !important;
    transition: var(--transition);
    position: relative;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Nexa', sans-serif;
    font-weight: 300;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: transparent;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    color: #333333;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .logo h2 {
        font-size: 2rem;
    }
    
    .logo small {
        font-size: 0.65rem;
    }
    
    .search-bar {
        margin: 1rem 0;
    }
    
    .search-bar .form-control {
        height: 40px;
        font-size: 0.85rem;
    }
    
    .header-actions {
        justify-content: center !important;
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .header-actions .btn-link {
        min-width: 50px;
        height: 45px;
    }
    
    .header-actions .dropdown-toggle {
        max-width: 120px;
    }
    
    .header-actions .btn-outline-primary,
    .header-actions .btn-primary {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        border-bottom: 1px solid #e9ecef;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .main-header {
        padding: 10px 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-elegant) 0%, var(--bg-light) 50%, rgba(var(--primary-rgb), 0.1) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(74, 74, 92, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #faf9fc 0%, #f0edf5 100%);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
}

.product-badge--sale {
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

.product-badge--tag {
    top: 12px;
    right: 12px;
    color: #fff;
}

.product-badge--new {
    background: #27ae60;
}

.product-badge--featured {
    background: var(--primary-color);
}

.product-badge--best {
    background: #f39c12;
    color: #1a1a1a;
}

.product-badge--flash {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.product-quick-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-badge--tag ~ .product-quick-actions,
.product-badge--sale ~ .product-quick-actions {
    top: auto;
    bottom: 12px;
}

.product-quick-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-quick-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

.product-info {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}

.product-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8em;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.25rem;
}

.product-stars {
    display: inline-flex;
    gap: 1px;
    color: #f5b301;
    font-size: 0.72rem;
}

.product-rating-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.product-price .current-price {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.product-price .original-price {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-cart-wrap {
    flex-shrink: 0;
}

.product-cart-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.product-cart-icon-btn:hover:not(.is-disabled) {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.product-cart-icon-btn--options {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.product-cart-icon-btn--options:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.product-cart-icon-btn.is-disabled {
    background: #e9ecef;
    color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
}

.product-add-btn {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1rem;
}

.product-card.flash-sale-card {
    border-color: rgba(255, 107, 53, 0.25);
}

.product-card.flash-sale-card:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.15);
}

/* List view (category / products pages) */
.list-view .product-item {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
}

.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
}

.list-view .product-image-container {
    width: 220px;
    min-width: 220px;
    aspect-ratio: auto;
    height: auto;
    min-height: 220px;
}

.list-view .product-info {
    flex: 1;
    padding: 1.25rem 1.5rem;
}

.list-view .product-footer {
    max-width: 320px;
}

@media (max-width: 767px) {
    .list-view .product-card {
        flex-direction: column;
    }

    .list-view .product-image-container {
        width: 100%;
        min-width: 0;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .list-view .product-footer {
        max-width: none;
    }
}

/* Product Detail Page */
.pd-page {
    padding-bottom: 2rem;
}

.pd-layout {
    align-items: flex-start;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.pd-layout__media,
.pd-layout__info {
    margin-bottom: 0;
}

.pd-gallery-card,
.pd-info-card,
.pd-tab-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(74, 74, 92, 0.06);
}

.pd-gallery-card {
    position: sticky;
    top: 100px;
    padding: 1rem;
}

.pd-main-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #faf9fc 0%, #f0edf5 100%);
    aspect-ratio: 1 / 1;
}

.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.45s ease;
}

.pd-main-image-wrap:hover .pd-main-image {
    transform: scale(1.03);
}

.pd-thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.pd-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f5f3f8;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pd-info-card {
    padding: 1.75rem;
}

.pd-info-card .product-meta {
    margin-bottom: 0.35rem;
}

.pd-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}

.pd-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
}

.pd-rating-row .product-stars {
    font-size: 0.85rem;
}

.pd-rating-text {
    font-size: 0.88rem;
    color: var(--text-light);
}

.pd-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pd-price-block .current-price {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pd-price-block .original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.pd-savings {
    width: 100%;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
}

.pd-short-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.pd-section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.55rem;
}

.pd-variant-group {
    margin-bottom: 1rem;
}

.pd-variant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.pd-variant-card {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: block;
}

.pd-variant-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-variant-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 92px;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-color, #e5e5e5);
    background: #fff;
    color: var(--text-dark, #2c2c2c);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.pd-variant-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.pd-variant-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--organic-orange, #D1642D);
}

.pd-variant-card__regular {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.pd-variant-card__meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

.pd-variant-card:hover .pd-variant-card__body {
    border-color: var(--organic-green, #2D6A4F);
    transform: translateY(-1px);
}

.pd-variant-card input:checked + .pd-variant-card__body {
    border-color: var(--organic-green, #2D6A4F);
    background: #f3faf5;
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.18);
}

.pd-variant-card input:checked + .pd-variant-card__body .pd-variant-card__name {
    color: var(--organic-green, #2D6A4F);
}

.pd-variant-select {
    max-width: 420px;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #2c2c2c);
    background-color: #fff;
    padding: 0.55rem 2.25rem 0.55rem 0.9rem;
}

.pd-variant-select:focus {
    border-color: var(--organic-green, #2D6A4F);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.15);
}

.pd-variant-meta {
    font-size: 0.85rem;
}

.pd-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-variant-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.pd-variant-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-variant-chip__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pd-variant-chip__price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.82rem;
}

.pd-variant-chip input:checked + .pd-variant-chip__label .pd-variant-chip__price {
    color: #fff;
}

.pd-variant-chip:hover .pd-variant-chip__label {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pd-variant-chip input:checked + .pd-variant-chip__label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

@media (max-width: 575.98px) {
    .pd-variant-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pd-variants {
    padding: 14px 16px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 14px;
    background: #fff;
}

.pd-variants__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.pd-variants__hint {
    font-size: 0.8rem;
}

.pd-variants--attention {
    animation: pdVariantPulse 0.6s ease 2;
    border-color: var(--primary-color) !important;
}

@keyframes pdVariantPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
    50% { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.25); }
}

.pd-purchase-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.pd-qty-wrap {
    flex: 0 0 auto;
}

.pd-qty-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pd-qty-control button {
    width: 42px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: background 0.2s ease, color 0.2s ease;
}

.pd-qty-control button:hover {
    background: var(--primary-color);
    color: #fff;
}

.pd-qty-control input {
    width: 56px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.pd-qty-control input:focus {
    outline: none;
    box-shadow: none;
}

.pd-qty-control input::-webkit-outer-spin-button,
.pd-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-stock-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-light);
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex: 1;
    min-width: 220px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-btn--cart {
    flex: 1;
    min-width: 150px;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.pd-btn--cart:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.pd-btn--buy {
    flex: 1;
    min-width: 130px;
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.28);
}

.pd-btn--buy:hover {
    background: #219653;
    color: #fff;
    transform: translateY(-2px);
}

.pd-btn--wishlist {
    width: 48px;
    padding: 0;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.pd-btn--wishlist:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pd-out-of-stock {
    padding: 1.25rem;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #f0d58c;
    text-align: center;
    margin-bottom: 1rem;
}

.pd-out-of-stock h5 {
    margin: 0;
    font-size: 1rem;
    color: #9a7b0a;
}

.pd-out-of-stock p {
    margin: 0.35rem 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pd-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pd-meta-item {
    font-size: 0.88rem;
    color: var(--text-light);
}

.pd-meta-item strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.pd-tags {
    grid-column: 1 / -1;
}

.pd-tag {
    display: inline-block;
    margin: 0.15rem 0.35rem 0 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.78rem;
}

.pd-tabs-section {
    margin-top: 2.5rem;
}

.pd-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border: none;
}

.pd-tabs-nav .nav-link {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    color: var(--text-light) !important;
    background: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pd-tabs-nav .nav-link:hover {
    color: var(--primary-color) !important;
    border-color: rgba(var(--primary-rgb), 0.35);
}

.pd-tabs-nav .nav-link.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.pd-tab-panel {
    padding: 1.5rem;
    color: var(--text-dark);
    line-height: 1.75;
}

.pd-spec-table {
    margin: 0;
}

.pd-spec-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border-color);
}

.pd-spec-table td {
    padding: 0.85rem 0.5rem;
    vertical-align: top;
}

.pd-spec-table td:first-child {
    width: 35%;
    font-weight: 600;
    color: var(--text-dark);
}

.pd-review-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pd-review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pd-review-name {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.pd-review-date {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
}

.pd-review-stars {
    color: #f5b301;
    font-size: 0.75rem;
}

.pd-empty-reviews {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.pd-review-form .card-body {
    padding: 1.25rem;
}

.pd-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.pd-rating-input input {
    display: none;
}

.pd-rating-input label {
    cursor: pointer;
    color: #d0d0d0;
    font-size: 1.35rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.pd-rating-input label:hover,
.pd-rating-input label:hover ~ label,
.pd-rating-input input:checked ~ label {
    color: #f5b301;
}

.pd-related {
    margin-top: 3rem;
}

.pd-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
    .pd-gallery-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .pd-page {
        padding-bottom: 1rem;
    }

    .pd-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pd-layout {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .pd-layout > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .pd-related .products-grid-row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .pd-related .products-grid-row > .col-6,
    .pd-related .products-grid-row > .product-item.col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .pd-info-card {
        padding: 1.25rem;
    }

    .pd-meta-grid {
        grid-template-columns: 1fr;
    }

    .pd-actions {
        width: 100%;
    }

    .pd-btn--cart,
    .pd-btn--buy {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Price Range Slider (shared on product listing pages) */
.price-range-slider__values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.price-range-slider__sep {
    color: var(--text-light);
    font-weight: 400;
}

.price-range-slider__track {
    position: relative;
    height: 28px;
}

.price-range-slider__fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: var(--primary-color);
    pointer-events: none;
    left: 0;
    width: 100%;
}

.price-range-slider__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-slider__input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #e8e4ef;
}

.price-range-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    margin-top: -6px;
    cursor: pointer;
}

.price-range-slider__input::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #e8e4ef;
}

.price-range-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    cursor: pointer;
}

.price-range-slider__input:nth-child(3) {
    z-index: 2;
}

.price-range-slider__input:nth-child(4) {
    z-index: 3;
}

.filters-sidebar {
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(74, 74, 92, 0.06);
}

.filter-section {
    margin-bottom: 1.25rem;
}

.filter-section .filter-title,
.filters-sidebar .filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

/* Cart Page */
.cart-page {
    padding: 2rem 0 4rem;
}

.cart-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-page-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
}

.cart-page-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.cart-panel,
.cart-summary-card,
.cart-recommend-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(74, 74, 92, 0.06);
}

.cart-panel {
    padding: 1rem 1.25rem;
    min-height: 280px;
}

.cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-panel__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #faf9fc 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-line:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.1);
}

.cart-line__media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #faf9fc 0%, #f0edf5 100%);
    aspect-ratio: 1 / 1;
}

.cart-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-line__body {
    min-width: 0;
}

.cart-line__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.cart-line__title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-line__title a:hover {
    color: var(--primary-color);
}

.cart-line__meta {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cart-line__variants {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

.cart-line__price {
    margin-top: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-line__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-line__total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.cart-line__total span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cart-remove-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 10px;
    background: #fff;
    color: #e74c3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.cart-empty,
.cart-login-prompt {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-light);
}

.cart-empty__icon,
.cart-login-prompt__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.6rem;
}

.cart-empty h3,
.cart-login-prompt h3 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-empty p,
.cart-login-prompt p {
    margin: 0 0 1.25rem;
}

.cart-summary-card {
    padding: 1.35rem;
    position: sticky;
    top: 100px;
}

.cart-summary-card h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.92rem;
    color: var(--text-light);
}

.cart-summary-row strong {
    color: var(--text-dark);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.85rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.cart-summary-total span:first-child {
    font-weight: 700;
    color: var(--text-dark);
}

.cart-summary-total span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary-actions {
    display: grid;
    gap: 0.65rem;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-btn--checkout {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.cart-btn--checkout:hover:not(:disabled) {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.cart-btn--checkout:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-btn--secondary {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.cart-btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-recommend-card {
    margin-top: 1rem;
    padding: 1.15rem;
}

.cart-recommend-card h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-recommend-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-recommend-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.cart-recommend-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-light);
}

.cart-recommend-item__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.cart-recommend-item__price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-recommend-add {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-recommend-add:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.cart-recommend-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-recommend-empty {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem 0;
}

@media (max-width: 991px) {
    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-line {
        grid-template-columns: 80px 1fr;
    }

    .cart-line__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: #FDFCFA !important; /* Silver color */
}

.footer h5, .footer h6 {
    color: var(--primary-color);
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer .social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Utility Classes */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    font-family: 'Nexa', sans-serif;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Section Backgrounds */
.bg-light-elegant {
    background: linear-gradient(135deg, var(--bg-elegant) 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

.bg-gradient-elegant {
    background: var(--gradient-bg);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Comprehensive Mobile Responsive Design */
@media (max-width: 768px) {
    /* Header Layout */
    .main-header .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-section {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .search-section {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .actions-section {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center !important;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .product-card {
        margin-bottom: 20px;
    }

    .product-info {
        padding: 0.85rem;
    }

    .product-title {
        font-size: 0.92rem;
        min-height: 2.6em;
    }

    .product-cart-icon-btn {
        width: 38px;
        height: 38px;
    }
    
    /* Product Grid */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 15px;
    }
    
    .form-select {
        padding: 10px 15px;
    }
    
    /* Filters and Sidebar */
    .filter-sidebar {
        margin-bottom: 30px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    /* Product Detail */
    .product-images {
        margin-bottom: 30px;
    }
    
    .product-thumbnails {
        margin-top: 15px;
    }
    
    .product-thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    /* Cart and Checkout */
    .cart-item {
        padding: 15px;
    }
    
    .cart-item .item-details h6 {
        font-size: 0.9rem;
    }
    
    .quantity-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-controls .btn {
        margin: 2px 0;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
    
    /* Navigation Improvements */
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: var(--shadow);
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .product-card {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-quick-actions {
        opacity: 1;
        transform: none;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .category-card {
        height: 250px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-on-hover {
    transition: var(--transition);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Removed conflicting dropdown CSS - handled in individual pages */

/* Home — promo banners (4-up grid) */
.home-promo-section,
.home-categories-section {
    padding: 3.5rem 0;
}

.home-promo-section {
    background: var(--bg-light, #F7F6FA);
}

.home-categories-section {
    background: #fff;
}

.home-section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.home-section-head .section-title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.home-section-head .section-subtitle {
    margin-bottom: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.home-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-promo-card {
    position: relative;
    display: block;
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(74, 74, 92, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(74, 74, 92, 0.18);
    color: #fff;
}

.home-promo-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.home-promo-card:hover .home-promo-card__img {
    transform: scale(1.06);
}

.home-promo-card__content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
}

.home-promo-card__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-promo-card__subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.home-promo-card__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark, #2D2A3A);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-promo-card:hover .home-promo-card__cta {
    background: var(--primary-color, #8B7BA8);
    color: #fff;
}

/* Home — category cards */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color, #E5E3EB);
    box-shadow: 0 4px 20px rgba(74, 74, 92, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.15);
    color: inherit;
}

.home-category-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-light, #F7F6FA);
}

.home-category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-category-card:hover .home-category-card__img {
    transform: scale(1.06);
}

.home-category-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem 1rem;
}

.home-category-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #2D2A3A);
    line-height: 1.3;
}

.home-category-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #8B7BA8);
}

.home-category-card__action i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.home-category-card:hover .home-category-card__action i {
    transform: translateX(3px);
}

@media (max-width: 991.98px) {
    .home-promo-section,
    .home-categories-section {
        padding: 2.5rem 0;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .home-promo-card {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .home-promo-grid {
        gap: 0.65rem;
    }

    .home-promo-card {
        min-height: 180px;
    }

    .home-promo-card__content {
        padding: 0.85rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.5) 100%);
    }

    .home-promo-card__title {
        font-size: 0.95rem;
    }

    .home-promo-card__subtitle {
        font-size: 0.78rem;
        margin-bottom: 0.55rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-promo-card__cta {
        font-size: 0.68rem;
        padding: 0.35rem 0.65rem;
    }

    .home-category-card__body {
        padding: 0.75rem 0.8rem 0.85rem;
    }

    .home-category-card__title {
        font-size: 0.88rem;
    }

    .home-category-card__action {
        font-size: 0.72rem;
    }
}

/* Home — hero slider */
.home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1520;
}

.home-hero__carousel,
.home-hero__carousel .carousel-inner,
.home-hero__carousel .carousel-item {
    height: 100%;
}

.home-hero__slide {
    position: relative;
    min-height: clamp(360px, 58vh, 680px);
    overflow: hidden;
}

.home-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.home-hero__img--fallback {
    background:
        linear-gradient(135deg, #1f1a28 0%, #4a3f5c 42%, var(--primary-color) 100%);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 8, 18, 0.08) 0%, rgba(10, 8, 18, 0.15) 35%, rgba(10, 8, 18, 0.72) 100%);
    pointer-events: none;
}

.home-hero__container {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.home-hero__content {
    max-width: 560px;
    padding: 1rem 0;
    color: #fff;
}

.home-hero__content--right {
    margin-left: auto;
    text-align: right;
}

.home-hero__content--right .home-hero__actions {
    justify-content: flex-end;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.home-hero__desc {
    margin: 0 0 1rem;
    max-width: 46ch;
    font-size: clamp(0.92rem, 1.8vw, 1.08rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.home-hero__content--right .home-hero__desc {
    margin-left: auto;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.home-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-hero__btn--primary {
    background: var(--primary-color, #8B7BA8);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.home-hero__btn--primary:hover {
    background: var(--accent-color, #A594C4);
    color: #fff;
    transform: translateY(-1px);
}

.home-hero__btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.home-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.home-hero__indicators {
    bottom: 1rem;
    margin-bottom: 0;
    gap: 0.35rem;
}

.home-hero__indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 999px;
    margin: 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: width 0.25s ease, background 0.25s ease;
}

.home-hero__indicators [data-bs-target].active {
    width: 42px;
    background: #fff;
}

.home-hero__nav {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 1;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-hero__nav:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.home-hero__nav.carousel-control-prev {
    left: 1rem;
}

.home-hero__nav.carousel-control-next {
    right: 1rem;
}

.home-hero__nav .carousel-control-prev-icon,
.home-hero__nav .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    filter: brightness(0) opacity(0.72);
    background-size: 100% 100%;
    opacity: 1;
}

.home-hero__nav:hover .carousel-control-prev-icon,
.home-hero__nav:hover .carousel-control-next-icon {
    filter: brightness(0) opacity(0.95);
}

@media (min-width: 992px) {
    .main-content > .home-hero:first-child {
        margin-top: -10px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .home-hero:not(.home-hero--contained) {
        min-height: calc(100vh - var(--site-header-height, 88px));
        min-height: calc(100dvh - var(--site-header-height, 88px));
        height: calc(100vh - var(--site-header-height, 88px));
        height: calc(100dvh - var(--site-header-height, 88px));
    }

    .home-hero__carousel {
        min-height: inherit;
        height: 100%;
    }

    .home-hero__slide {
        min-height: 100%;
        height: 100%;
    }

    .home-hero__img {
        object-position: center center;
    }

    .home-hero__container {
        align-items: center;
        padding-bottom: 0;
        min-height: 100%;
    }

    .home-hero__overlay {
        background:
            linear-gradient(90deg, rgba(10, 8, 18, 0.72) 0%, rgba(10, 8, 18, 0.28) 45%, rgba(10, 8, 18, 0.08) 100%);
    }

    .home-hero__slide--align-right .home-hero__overlay {
        background:
            linear-gradient(270deg, rgba(10, 8, 18, 0.72) 0%, rgba(10, 8, 18, 0.28) 45%, rgba(10, 8, 18, 0.08) 100%);
    }

    .home-hero__content {
        padding: 2rem 0;
        max-width: 640px;
    }

    .home-hero__title {
        font-size: clamp(2.25rem, 4.8vw, 4rem);
    }

    .home-hero__desc {
        font-size: clamp(1rem, 1.6vw, 1.2rem);
        max-width: 52ch;
    }

    .home-hero__indicators {
        bottom: 2rem;
    }

    .home-hero__nav.carousel-control-prev {
        left: 1.5rem;
    }

    .home-hero__nav.carousel-control-next {
        right: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero__slide {
        min-height: 420px;
    }

    .home-hero__container {
        padding-bottom: 2.75rem;
    }

    .home-hero__title {
        font-size: 1.65rem;
    }

    .home-hero__desc {
        font-size: 0.86rem;
        margin-bottom: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-hero__actions {
        gap: 0.5rem;
    }

    .home-hero__btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 40px;
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
    }

    .home-hero__nav {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.38);
    }

    .home-hero__nav .carousel-control-prev-icon,
    .home-hero__nav .carousel-control-next-icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .home-hero__nav.carousel-control-prev {
        left: 0.5rem;
    }

    .home-hero__nav.carousel-control-next {
        right: 0.5rem;
    }
}