/* ============================================
   Maname Medicine - Premium Jade E-Commerce
   Complete Main Stylesheet - v3
   ============================================ */

:root {
    --jade-dark: #061a10;
    --jade: #0f2e1a;
    --jade-medium: #1a4a2a;
    --jade-light: #2d6a3f;
    --emerald: #3a8a50;
    --emerald-light: #5aaa70;
    --gold: #C8A951;
    --gold-light: #e0c878;
    --gold-dark: #a88a3a;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --off-white-2: #f3f2ee;
    --black: #1a1a1a;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --danger: #c0392b;
    --success: #1e7e34;
    --warning: #d4a017;
    --info: #1a6e7a;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --border-radius: 6px;
    --border-radius-lg: 10px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }

/* Suppress Bootstrap's all-property transitions that cause blinking */
.btn, .btn:hover, .dropdown-menu, .collapse, .collapsing, .modal, .fade,
.navbar-collapse, .card, .badge, .alert, .nav-link, .dropdown-toggle,
.form-control, .form-select, .breadcrumb, .pagination .page-link {
    transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
    transition-duration: 0.2s !important;
    transition-timing-function: ease !important;
}
body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--jade-medium); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--jade-dark); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700; color: var(--jade-dark);
    line-height: 1.25;
}
img { max-width: 100%; height: auto; }

/* === UTILITY === */
.text-jade { color: var(--jade-medium) !important; }
.text-gold { color: var(--gold) !important; }
.bg-jade { background-color: var(--jade-medium) !important; }
.bg-jade-dark { background-color: var(--jade-dark) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-offwhite { background-color: var(--off-white) !important; }

/* === BUTTONS === */
.btn {
    font-weight: 500; border-radius: var(--border-radius);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    padding: 9px 20px;
}
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-jade {
    background: var(--jade-medium); color: var(--white); border: none;
}
.btn-jade:hover { background: var(--jade-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white); border: none;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-jade {
    border: 2px solid var(--jade-medium); color: var(--jade-medium); background: transparent;
}
.btn-outline-jade:hover { background: var(--jade-medium); color: var(--white); }
.btn-outline-gold {
    border: 2px solid var(--gold); color: var(--gold-dark); background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.6); }

/* === TOP BAR === */
.top-bar { font-size: 0.8rem; letter-spacing: 0.2px; background: var(--jade-dark) !important; }
.top-bar i { color: var(--gold); font-size: 0.7rem; }

/* === NAVBAR === */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
}
.navbar > .container { padding-top: 0; padding-bottom: 0; }
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700;
    color: var(--jade-dark) !important; padding: 12px 0;
}
.brand-icon { font-size: 1.7rem; color: var(--gold); }
.nav-link {
    font-weight: 500; font-size: 0.9rem;
    padding: 14px 16px !important; color: var(--gray-700) !important;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--jade-medium) !important; border-bottom-color: var(--gold); }
.dropdown-menu {
    border: none; box-shadow: var(--shadow-md); border-radius: var(--border-radius);
    padding: 8px 0; margin-top: 8px; min-width: 200px;
}
.dropdown-item { padding: 8px 20px; font-size: 0.9rem; }
.dropdown-item:hover { background: var(--off-white); color: var(--jade-medium); }
.search-form input {
    border-radius: 50px; padding: 7px 18px; border: 1px solid var(--gray-300);
    font-size: 0.85rem; width: 180px; background: var(--gray-100);
    transition: width 0.3s, border-color 0.3s, background 0.3s;
}
.search-form input:focus {
    width: 230px; border-color: var(--gold); background: var(--white);
    outline: none; box-shadow: none;
}
.badge.bg-gold { background: var(--gold) !important; color: var(--white); font-size: 0.6rem; }

@media (max-width: 991.98px) {
    .nav-link { padding: 10px 16px !important; }
    .search-form input { width: 130px; }
    .search-form input:focus { width: 160px; }
    .navbar .d-flex { flex-wrap: wrap; gap: 6px; }
}

/* === HAMBURGER === */
.navbar-toggler { border: none; padding: 6px 8px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: none !important;
    position: relative; width: 26px; height: 18px;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: ''; position: absolute; left: 0; height: 2px;
    background: var(--jade-dark); border-radius: 1px;
    transition: width 0.25s ease, transform 0.25s ease;
}
.navbar-toggler-icon::before { top: 0; width: 18px; }
.navbar-toggler-icon::after { bottom: 0; width: 14px; }
.navbar-toggler-icon .middle-bar {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%);
    width: 26px; height: 2px; background: var(--jade-dark);
    border-radius: 1px; transition: opacity 0.2s ease;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    width: 26px; transform: rotate(45deg); top: 8px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon .middle-bar { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    width: 26px; transform: rotate(-45deg); bottom: 8px;
}

/* === HERO === */
.hero-section {
    position: relative; overflow: hidden;
    background: var(--jade-dark);
    min-height: 560px; display: flex; align-items: center;
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.025; pointer-events: none;
    background-image:
        linear-gradient(rgba(200,169,81,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,81,0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-section::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 48%;
    background: linear-gradient(225deg, rgba(15,46,26,0.6) 0%, rgba(8,14,10,0.9) 100%);
    pointer-events: none; z-index: 0;
}
.hero-slide { width: 100%; position: relative; z-index: 1; }
.hero-content { padding: 70px 0 60px; position: relative; z-index: 2; }
.hero-label {
    display: inline-block; color: var(--gold);
    font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 16px; font-weight: 600;
    padding: 5px 14px; border: 1px solid rgba(200,169,81,0.25);
    border-radius: 2px;
}
.hero-title {
    font-size: 3.2rem; font-weight: 700; color: var(--white);
    line-height: 1.12; margin-bottom: 16px; font-family: var(--font-heading);
    letter-spacing: -0.5px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,0.55);
    margin-bottom: 0; max-width: 440px; line-height: 1.7;
}
.hero-divider {
    width: 50px; height: 2px; background: var(--gold);
    margin: 28px 0;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons .btn { margin: 0; }
.hero-image-area {
    position: relative; z-index: 3; display: flex;
    align-items: center; justify-content: center; min-height: 400px;
}
.hero-image-frame {
    width: 320px; height: 320px; border-radius: 50%;
    border: 1.5px solid rgba(200,169,81,0.18);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-image-frame::before {
    content: ''; position: absolute; inset: -18px; border-radius: 50%;
    border: 1px solid rgba(200,169,81,0.07);
}
.hero-image-frame::after {
    content: ''; position: absolute; inset: -42px; border-radius: 50%;
    border: 1px dashed rgba(200,169,81,0.05);
}
.hero-image-placeholder {
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(45,109,63,0.8) 0%, rgba(8,14,10,0.95) 80%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 80px rgba(15,46,26,0.4), inset 0 0 60px rgba(200,169,81,0.06);
}
.hero-image-placeholder i {
    font-size: 4.5rem; color: rgba(200,169,81,0.4);
    filter: drop-shadow(0 0 30px rgba(200,169,81,0.2));
}
.hero-float-tag {
    position: absolute; background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px); border: 1px solid rgba(200,169,81,0.18);
    padding: 9px 16px; border-radius: var(--border-radius);
    color: rgba(255,255,255,0.8); font-size: 0.78rem;
}
.hero-float-tag.top-right { top: 8%; right: 2%; }
.hero-float-tag.bottom-left { bottom: 10%; left: -4%; }
.hero-float-tag strong { color: var(--gold); display: block; font-size: 1.05rem; }

@media (max-width: 991.98px) {
    .hero-section { min-height: auto; }
    .hero-content { padding: 50px 0 40px; }
    .hero-title { font-size: 2.4rem; }
    .hero-image-area { min-height: 280px; }
    .hero-image-frame { width: 240px; height: 240px; }
    .hero-image-placeholder { width: 190px; height: 190px; }
    .hero-image-placeholder i { font-size: 3rem; }
}
@media (max-width: 767.98px) {
    .hero-content { padding: 40px 0 30px; text-align: center; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { max-width: 100%; font-size: 0.95rem; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-divider { margin-left: auto; margin-right: auto; }
    .hero-image-area { display: none; }
    .hero-section::after { width: 100%; opacity: 0.3; }
}

/* === SECTION HEADERS === */
.section-header { margin-bottom: 40px; }
.section-title {
    font-size: 2rem; font-weight: 700; color: var(--jade-dark);
    margin-bottom: 6px; font-family: var(--font-heading);
    display: inline-block; position: relative;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: var(--gold); margin: 10px auto 0; border-radius: 2px;
}
.section-subtitle { color: var(--gray-600); font-size: 1rem; }

/* === SECTION THEMING === */
.section-light { background: var(--white); }
.section-muted { background: var(--off-white); }
.section-dark { background: var(--jade-dark); color: var(--white); }
.section-accent { background: var(--jade-medium); color: var(--white); }

/* === CATEGORY CARDS === */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px 16px; border-radius: var(--border-radius-lg);
    background: var(--white); border: 1px solid var(--gray-200);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none; color: var(--gray-700);
    text-align: center; min-height: 130px;
}
.category-card:hover {
    border-color: var(--gold); box-shadow: var(--shadow);
    transform: translateY(-3px); color: var(--jade-medium);
}
.category-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 10px; }
.category-name { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin: 0; }

/* === PRODUCT CARDS === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
    background: var(--white); border-radius: var(--border-radius-lg);
    overflow: hidden; border: 1px solid var(--gray-200);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.product-image-wrapper {
    position: relative; overflow: hidden; aspect-ratio: 1;
    background: var(--off-white);
}
.product-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image { transform: scale(1.06); }
.product-actions {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 5px;
    opacity: 0; transform: translateX(8px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions .btn {
    border-radius: 50%; width: 34px; height: 34px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9); border: none; box-shadow: var(--shadow-sm);
}
.product-actions .btn:hover { background: var(--white); }
.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.7rem; color: var(--gold-dark); margin-bottom: 4px; }
.product-title { font-size: 0.95rem; margin-bottom: 4px; font-weight: 600; }
.product-title a { color: var(--gray-800); }
.product-title a:hover { color: var(--jade-medium); }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.price-sale { color: var(--danger); font-weight: 700; font-size: 1rem; }
.price-original { color: var(--gray-500); text-decoration: line-through; font-size: 0.85rem; }
.price-current { color: var(--jade-medium); font-weight: 700; font-size: 1rem; }
.star-rating { color: var(--gold); font-size: 0.75rem; }
.product-stock { font-size: 0.72rem; margin-top: auto; padding-top: 6px; }
.product-stock.in-stock { color: var(--success); }
.product-stock.out-of-stock { color: var(--danger); }
.product-stock.low-stock { color: var(--warning); }

.badge-sale {
    position: absolute; top: 10px; left: 10px;
    background: var(--danger); color: var(--white);
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; z-index: 2;
}
.badge-new {
    position: absolute; top: 10px; left: 10px;
    background: var(--jade-medium); color: var(--white);
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; z-index: 2;
}

/* No-image placeholder */
.product-image-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8e5df 0%, #f0ede7 50%, #e8e5df 100%);
    color: var(--gray-400); font-size: 3rem;
}

/* === PRODUCT DETAIL === */
.product-detail-title { font-size: 1.8rem; font-weight: 700; }
.product-sku { font-size: 0.82rem; color: var(--gray-500); }
.quantity-selector { display: flex; align-items: center; }
.qty-btn { width: 40px; height: 40px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.qty-input { width: 60px; height: 40px; text-align: center; border-left: none; border-right: none; border-radius: 0; }
.product-gallery { position: sticky; top: 100px; }
.main-image-wrapper {
    border: 1px solid var(--gray-200); border-radius: var(--border-radius-lg);
    overflow: hidden; aspect-ratio: 1; cursor: zoom-in;
}
.main-product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.main-image-wrapper:hover .main-product-image { transform: scale(1.4); }
.gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.thumb-item {
    width: 64px; height: 64px; object-fit: cover; border-radius: 4px;
    border: 2px solid transparent; cursor: pointer; transition: border-color 0.25s ease;
    flex-shrink: 0;
}
.thumb-item.active, .thumb-item:hover { border-color: var(--gold); }

/* === CART === */
.cart-product-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--border-radius); }
.cart-summary { position: sticky; top: 100px; background: var(--white); border-radius: var(--border-radius-lg); }

/* === BLOG === */
.blog-card {
    background: var(--white); border-radius: var(--border-radius-lg);
    overflow: hidden; border: 1px solid var(--gray-200);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%; display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-image-wrapper { overflow: hidden; aspect-ratio: 16/10; background: var(--off-white); }
.blog-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-image { transform: scale(1.05); }
.blog-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-info .btn { margin-top: auto; }
.blog-title { font-size: 1.05rem; margin-bottom: 6px; }
.blog-title a { color: var(--gray-800); }
.blog-title a:hover { color: var(--jade-medium); }
.blog-date { text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.75rem; color: var(--gray-500); }

/* === TESTIMONIALS === */
.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-lg); padding: 28px;
    text-align: center; height: 100%;
}
.testimonial-content { font-style: italic; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.8); }
.testimonial-author { margin-top: 14px; }
.testimonial-author strong { color: var(--white); }
.testimonial-author span { color: var(--gold); font-size: 0.85rem; }

/* === FEATURES BAR === */
.feature-item { padding: 14px 8px; }
.feature-item i { font-size: 1.8rem; color: var(--gold); margin-bottom: 8px; display: block; }
.feature-item h6 { color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.feature-item small { color: rgba(255,255,255,0.6); font-size: 0.78rem; }

/* === FOOTER === */
.footer { background: var(--jade-dark) !important; }
.footer-brand { color: var(--white); font-size: 1.2rem; font-family: var(--font-heading); }
.footer-brand i { color: var(--gold); margin-right: 6px; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; }
.footer-heading {
    color: var(--gold); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.88rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: rgba(255,255,255,0.5); margin-bottom: 8px; font-size: 0.85rem; }
.footer-contact i { color: var(--gold); margin-right: 8px; width: 14px; font-size: 0.8rem; }
.social-links { display: flex; gap: 10px; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; font-size: 0.95rem;
}
.social-icon:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.newsletter-section { border-color: rgba(255,255,255,0.08) !important; }

/* === SEARCH BAR === */
.search-bar-large .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid var(--gray-300); border-right: none; padding: 12px 18px;
}
.search-bar-large .btn { border-radius: 0 var(--border-radius) var(--border-radius) 0; padding: 12px 24px; }

/* === SHOP FILTERS === */
.filter-sidebar {
    background: var(--white); padding: 20px;
    border-radius: var(--border-radius-lg); border: 1px solid var(--gray-200);
    position: sticky; top: 90px;
}
.filter-title {
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--jade-dark); margin-bottom: 10px;
}
.filter-list { list-style: none; padding: 0; margin: 0 0 20px; }
.filter-list li { margin-bottom: 4px; }
.filter-link { color: var(--gray-600); font-size: 0.88rem; display: block; padding: 3px 0; }
.filter-link.active, .filter-link:hover { color: var(--jade-medium); font-weight: 600; }

/* === PAGINATION === */
.pagination .page-link { color: var(--jade-medium); border: 1px solid var(--gray-200); }
.pagination .page-item.active .page-link { background: var(--jade-medium); border-color: var(--jade-medium); color: var(--white); }

/* === BREADCRUMB === */
.breadcrumb { font-size: 0.85rem; }

/* === CONTACT === */
.contact-info-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--jade-medium); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}

/* === SIDEBARS (Customer & Admin) === */
.sidebar .nav-link {
    padding: 9px 14px; color: rgba(255,255,255,0.65) !important;
    border-radius: 4px; margin-bottom: 1px; font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease, border-left-color 0.2s ease; border-left: 3px solid transparent;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white) !important; }
.sidebar .nav-link i { width: 20px; text-align: center; margin-right: 8px; }
.active-customer, .active-admin {
    background: rgba(200,169,81,0.12) !important;
    color: var(--gold) !important; border-left-color: var(--gold) !important;
    font-weight: 600;
}

/* === CHARTS === */
.chart-container { position: relative; }
.chart-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 4px; transition: height 0.5s; }
.chart-bar-wrapper { display: flex; flex-direction: column; justify-content: flex-end; }

/* === TABS === */
.nav-tabs { border-bottom: 2px solid var(--gray-200); }
.nav-tabs .nav-link {
    color: var(--gray-600); border: none; padding: 12px 20px;
    font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.nav-tabs .nav-link.active { color: var(--jade-medium); border-bottom-color: var(--gold); font-weight: 600; }

/* === STAR RATING INPUT === */
.star-rating-input { direction: rtl; display: flex; justify-content: flex-end; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.4rem; color: var(--gray-300); cursor: pointer; padding: 0 2px; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--gold); }

/* === FORMS === */
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(200,169,81,0.12);
}

/* === TABLES === */
.table th {
    font-weight: 600; color: var(--jade-dark); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.table td { vertical-align: middle; }

/* === CARDS === */
.card { border: 1px solid var(--gray-200); border-radius: var(--border-radius-lg); }
.card-header { border-bottom: 1px solid var(--gray-200); background: var(--white); }

/* === ALERTS === */
.alert { border: none; border-radius: var(--border-radius); }

/* === EMPTY STATE === */
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state i { font-size: 3rem; color: var(--gray-300); }
.empty-state h4 { color: var(--gray-600); margin-top: 14px; }

/* === MINI CART DROPDOWN === */
.cart-icon-wrapper { position: relative; }
.mini-cart-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 8px;
    width: 320px; background: var(--white); border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200); display: none; z-index: 1050;
}
.mini-cart-dropdown.show { display: block; }
.mini-cart-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-info .name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-item-info .meta { font-size: 0.72rem; color: var(--gray-600); }
.mini-cart-item-info .price { font-size: 0.82rem; font-weight: 600; color: var(--jade-medium); }

/* === WISHLIST HEART === */
.add-to-wishlist-btn i, .add-to-wishlist-detail i { transition: color 0.2s ease, transform 0.2s ease; }
.add-to-wishlist-btn:hover i, .add-to-wishlist-detail:hover i { transform: scale(1.2); }

/* === Scroll to top === */
.scroll-top-btn {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--jade-medium); color: var(--white); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.25s ease, transform 0.25s ease; box-shadow: var(--shadow-md);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--jade-dark); transform: translateY(-2px); }

/* === MAIN CONTENT === */
main { min-height: 50vh; }

/* === PAGE CONTENT === */
.page-content h2, .page-content h3 { margin-top: 24px; margin-bottom: 12px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; }
.blog-content { line-height: 1.8; font-size: 1.05rem; }
.blog-content h2, .blog-content h3 { margin-top: 30px; margin-bottom: 15px; }
.blog-content img { max-width: 100%; border-radius: var(--border-radius-lg); margin: 20px 0; }
.blog-content p { margin-bottom: 18px; }
.product-description-content { line-height: 1.8; }
.product-description-content img { max-width: 100%; border-radius: var(--border-radius-lg); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}
.skeleton-img { width: 100%; aspect-ratio: 1; }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 50%; }
.skeleton-price { height: 18px; width: 40%; }

/* Empty state icon colors */
.empty-state i { font-size: 3.5rem; }
.empty-state i.bi-bag { color: #d4c5a0; }
.empty-state i.bi-box-seam { color: #b8c9b0; }
.empty-state i.bi-search { color: #c4c4c4; }
.empty-state i.bi-heart { color: #e8c4c4; }
.empty-state i.bi-journal { color: #c4d0d8; }
.empty-state h4 { color: var(--gray-600); margin-top: 12px; font-size: 1.2rem; }
.empty-state p { color: var(--gray-500); }
.empty-state .btn { margin-top: 4px; }

/* Responsive table wrapper */
.table-responsive { -webkit-overflow-scrolling: touch; border-radius: var(--border-radius); }
@media (max-width: 767.98px) {
    .table-responsive table { min-width: 650px; font-size: 0.85rem; }
    .table-responsive .btn-sm { padding: 4px 8px; font-size: 0.75rem; }
}

/* Sort indicator */
.sort-active { font-weight: 600; color: var(--jade-medium) !important; }

/* === RESPONSIVE (Generic) === */
@media (max-width: 575.98px) {
    .section-title { font-size: 1.5rem; }
    .product-card .product-title { font-size: 0.85rem; }
    .product-price { flex-direction: column; align-items: flex-start; gap: 2px; }
    .navbar-brand { font-size: 1.15rem; }
    .btn-lg { padding: 10px 18px; font-size: 0.95rem; }
    .breadcrumb { font-size: 0.78rem; }
    .product-actions { opacity: 1 !important; transform: none !important; }
    section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* === SEARCH AUTOCOMPLETE === */
.autocomplete-results { animation: fadeIn 0.15s ease; }
.autocomplete-item { transition: background 0.15s ease; }
.autocomplete-item:hover { background: #f0fdf5; }
.autocomplete-item:last-child { border-bottom: none !important; }
.autocomplete-item img { flex-shrink: 0; }

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up { animation: fadeInUp 0.5s ease; }
.fade-in { animation: fadeIn 0.4s ease; }
.slide-in-right { animation: slideInRight 0.4s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === SKELETON LOADING === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-img { width: 100%; padding-bottom: 100%; }
.skeleton-text { height: 14px; margin-bottom: 6px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

/* === PAYMENT METHODS === */
.payment-option {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.payment-option:hover { border-color: var(--gold) !important; background: #fdfbf5; }
.payment-option input:checked + label { color: var(--jade-medium); }
.payment-option:has(input:checked) {
    border-color: var(--gold) !important;
    background: #fdf9f0;
}

/* === PRODUCT PRICE PULSE ON SALE === */
.badge-sale { animation: pulse 2s ease-in-out infinite; }

/* === ACCESSIBILITY === */
:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
}
.skip-to-content {
    position: absolute; top: -100px; left: 0; z-index: 9999;
    background: var(--jade-dark); color: #fff; padding: 8px 16px;
    transition: top 0.2s ease;
}
.skip-to-content:focus { top: 0; }

/* === PRINT STYLES === */
@media print {
    header, footer, nav, .btn, .no-print { display: none !important; }
    body { font-size: 12pt; }
    a[href]:after { content: " (" attr(href) ")"; }
}

/* === IMPROVED FORM FOCUS === */
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 169, 81, 0.25);
}

/* === CART ANIMATIONS === */
.cart-item-total { transition: color 0.3s ease; }
.quantity-selector-sm input { transition: border-color 0.2s ease; }

/* === SCROLL TOP BUTTON === */
.scroll-top-btn {
    display: none;
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--jade-dark); color: #fff; cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem; align-items: center; justify-content: center;
}
.scroll-top-btn:hover { background: var(--jade-medium); }
.scroll-top-btn.visible { opacity: 1; }
@media (min-width: 768px) {
    .scroll-top-btn.visible { display: flex; }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    max-width: 360px;
}
.toast-notification {
    background: #fff; border-radius: 8px; padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); margin-bottom: 8px;
    animation: slideInRight 0.3s ease; display: flex; align-items: center; gap: 10px;
}
.toast-notification.success { border-left: 4px solid var(--success); }
.toast-notification.error { border-left: 4px solid var(--danger); }
.toast-notification.warning { border-left: 4px solid var(--warning); }
.toast-notification.info { border-left: 4px solid var(--info); }
.toast-notification i { font-size: 1.2rem; }
.toast-notification.success i { color: var(--success); }
.toast-notification.error i { color: var(--danger); }
.toast-notification.warning i { color: var(--warning); }

/* === MINI CART === */
.mini-cart-dropdown {
    position: absolute; top: 100%; right: 0; width: 320px;
    background: #fff; border-radius: 8px; border: 1px solid var(--gray-200);
    display: none; z-index: 1020;
}
.mini-cart-dropdown.show { display: block; animation: fadeIn 0.2s ease; }
.mini-cart-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.mini-cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.mini-cart-item .name { font-size: 0.85rem; font-weight: 600; }
.mini-cart-item .meta { font-size: 0.75rem; color: var(--gray-500); }
.mini-cart-item .price { font-size: 0.8rem; font-weight: 600; color: var(--jade-medium); margin-left: auto; }

/* === STICKY ADD TO CART MOBILE === */
@media (max-width: 767.98px) {
    .stick-to-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; }
}

