/*
 * DentalPlus - Premium Theme with Gold Accents
 * Luxury Design System - Light/Dark Mode with Brand Gold
 * Auto-detects OS preference via prefers-color-scheme
 * Default: Light mode
 */

/* =============================================================================
   CSS Custom Properties (Variables) — LIGHT MODE (default)
   ============================================================================= */
:root {
    /* Primary Colors - Gold (same in both modes) */
    --primary-color: #D4AF37;
    --primary-dark: #C5A028;
    --primary-light: #b89a2e;
    --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);

    /* Background Colors - Light */
    --bg-black: #f8f9fa;
    --bg-dark: #f0f1f3;
    --surface-dark: #ffffff;
    --surface-darker: #f0f1f3;

    /* Text Colors */
    --text-light: #1a1a2e;
    --text-muted: #4a5568;
    --text-dark: #718096;
    --white: #1a1a2e;

    /* Borders */
    --border-dark: rgba(0, 0, 0, 0.1);
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-gold-hover: rgba(212, 175, 55, 0.5);

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.2);
    --shadow-glow-strong: 0 0 25px rgba(212, 175, 55, 0.3);

    /* Semantic Component Variables */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #1a1a2e;
    --bottom-nav-bg: rgba(255, 255, 255, 0.98);
    --bottom-nav-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    --bottom-nav-border: rgba(212, 175, 55, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --overlay-strong: rgba(0, 0, 0, 0.6);
    --product-img-bg: #f0f1f3;
    --hero-overlay-top: rgba(248, 249, 250, 0.7);
    --hero-overlay-bottom: rgba(248, 249, 250, 0.95);
    --hero-overlay-full: rgba(248, 249, 250, 0.9);
    --hero-badge-bg: rgba(0, 0, 0, 0.03);
    --hero-badge-border: rgba(0, 0, 0, 0.1);
    --hero-pattern-opacity: 0.05;
    --selection-text: #ffffff;
    --scrollbar-track: #f0f1f3;
    --scrollbar-thumb: #d1d5db;
    --card-border: rgba(0, 0, 0, 0.08);
    --bg-primary-soft: rgba(212, 175, 55, 0.1);
    --feature-icon-bg: rgba(212, 175, 55, 0.08);
    --feature-icon-hover-text: #ffffff;
    --social-icon-bg: rgba(0, 0, 0, 0.05);
    --btn-outline-sec-hover-bg: rgba(0, 0, 0, 0.05);
    --btn-outline-sec-hover-border: #1a1a2e;
    --btn-outline-sec-hover-text: #1a1a2e;
    --input-group-btn-bg: rgba(0, 0, 0, 0.03);
    --table-hover-bg: rgba(212, 175, 55, 0.05);
    --alert-bg: #ffffff;
    --list-item-hover-bg: rgba(212, 175, 55, 0.05);
    --list-item-active-bg: rgba(212, 175, 55, 0.1);
    --cta-overlay-gradient: linear-gradient(to right, var(--bg-black), transparent, var(--bg-black));
    --cta-dots-color: var(--primary-color);
    --gold-shimmer-text-fill: transparent;
    --btn-primary-text: #ffffff;
    --nav-icon-filter: brightness(0) saturate(100%) invert(48%) sepia(56%) saturate(424%) hue-rotate(10deg) brightness(97%) contrast(83%);

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* =============================================================================
   DARK MODE — Activated by OS preference OR manual toggle
   ============================================================================= */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Primary Colors - Gold (unchanged) */
        --primary-light: #F9E076;

        /* Background Colors - Dark */
        --bg-black: #050505;
        --bg-dark: #0a0a0a;
        --surface-dark: #121212;
        --surface-darker: #0a0a0a;

        /* Text Colors */
        --text-light: #E2E8F0;
        --text-muted: #94A3B8;
        --text-dark: #64748B;
        --white: #ffffff;

        /* Borders */
        --border-dark: rgba(255, 255, 255, 0.1);

        /* Shadows */
        --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.15);
        --shadow-glow-strong: 0 0 25px rgba(212, 175, 55, 0.25);

        /* Semantic Component Variables */
        --navbar-bg: rgba(0, 0, 0, 0.95);
        --navbar-text: #E2E8F0;
        --bottom-nav-bg: rgba(0, 0, 0, 0.98);
        --bottom-nav-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
        --bottom-nav-border: rgba(212, 175, 55, 0.2);
        --overlay-bg: rgba(0, 0, 0, 0.4);
        --overlay-strong: rgba(0, 0, 0, 0.8);
        --product-img-bg: #1a1a1a;
        --hero-overlay-top: rgba(0, 0, 0, 0.7);
        --hero-overlay-bottom: rgba(0, 0, 0, 0.95);
        --hero-overlay-full: rgba(0, 0, 0, 0.9);
        --hero-badge-bg: rgba(255, 255, 255, 0.05);
        --hero-badge-border: rgba(255, 255, 255, 0.1);
        --hero-pattern-opacity: 0.03;
        --selection-text: #050505;
        --scrollbar-track: #0a0a0a;
        --scrollbar-thumb: #121212;
        --card-border: rgba(255, 255, 255, 0.08);
        --bg-primary-soft: rgba(212, 175, 55, 0.1);
        --feature-icon-bg: rgba(255, 255, 255, 0.05);
        --feature-icon-hover-text: #050505;
        --social-icon-bg: rgba(255, 255, 255, 0.05);
        --btn-outline-sec-hover-bg: rgba(255, 255, 255, 0.05);
        --btn-outline-sec-hover-border: #ffffff;
        --btn-outline-sec-hover-text: #ffffff;
        --input-group-btn-bg: rgba(255, 255, 255, 0.05);
        --table-hover-bg: rgba(212, 175, 55, 0.03);
        --alert-bg: #121212;
        --list-item-hover-bg: rgba(212, 175, 55, 0.05);
        --list-item-active-bg: rgba(212, 175, 55, 0.1);
        --cta-overlay-gradient: linear-gradient(to right, #050505, transparent, #050505);
        --cta-dots-color: var(--primary-color);
        --gold-shimmer-text-fill: transparent;
        --btn-primary-text: #050505;
        --nav-icon-filter: brightness(0) saturate(100%) invert(72%) sepia(56%) saturate(424%) hue-rotate(10deg) brightness(97%) contrast(83%);
    }
}

/* Manual dark mode override via toggle button */
:root[data-theme="dark"] {
    --primary-light: #F9E076;
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --surface-dark: #121212;
    --surface-darker: #0a0a0a;
    --text-light: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dark: #64748B;
    --white: #ffffff;
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.15);
    --shadow-glow-strong: 0 0 25px rgba(212, 175, 55, 0.25);
    --navbar-bg: rgba(0, 0, 0, 0.95);
    --navbar-text: #E2E8F0;
    --bottom-nav-bg: rgba(0, 0, 0, 0.98);
    --bottom-nav-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    --bottom-nav-border: rgba(212, 175, 55, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --overlay-strong: rgba(0, 0, 0, 0.8);
    --product-img-bg: #1a1a1a;
    --hero-overlay-top: rgba(0, 0, 0, 0.7);
    --hero-overlay-bottom: rgba(0, 0, 0, 0.95);
    --hero-overlay-full: rgba(0, 0, 0, 0.9);
    --hero-badge-bg: rgba(255, 255, 255, 0.05);
    --hero-badge-border: rgba(255, 255, 255, 0.1);
    --hero-pattern-opacity: 0.03;
    --selection-text: #050505;
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #121212;
    --card-border: rgba(255, 255, 255, 0.08);
    --bg-primary-soft: rgba(212, 175, 55, 0.1);
    --feature-icon-bg: rgba(255, 255, 255, 0.05);
    --feature-icon-hover-text: #050505;
    --social-icon-bg: rgba(255, 255, 255, 0.05);
    --btn-outline-sec-hover-bg: rgba(255, 255, 255, 0.05);
    --btn-outline-sec-hover-border: #ffffff;
    --btn-outline-sec-hover-text: #ffffff;
    --input-group-btn-bg: rgba(255, 255, 255, 0.05);
    --table-hover-bg: rgba(212, 175, 55, 0.03);
    --alert-bg: #121212;
    --list-item-hover-bg: rgba(212, 175, 55, 0.05);
    --list-item-active-bg: rgba(212, 175, 55, 0.1);
    --cta-overlay-gradient: linear-gradient(to right, #050505, transparent, #050505);
    --cta-dots-color: var(--primary-color);
    --gold-shimmer-text-fill: transparent;
    --btn-primary-text: #050505;
    --nav-icon-filter: brightness(0) saturate(100%) invert(72%) sepia(56%) saturate(424%) hue-rotate(10deg) brightness(97%) contrast(83%);
}

/* =============================================================================
   Base Styles
   ============================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    background-color: var(--bg-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--selection-text);
}

/* =============================================================================
   Gold Text Gradient Effect
   ============================================================================= */
.gold-text-clip {
    background: linear-gradient(90deg,
            #D4AF37 0%,
            #D4AF37 40%,
            #F9E076 50%,
            #D4AF37 60%,
            #D4AF37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

/* =============================================================================
   Navigation - Dark Glass Effect
   ============================================================================= */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.75rem 0;
    transition: var(--transition-normal);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.navbar-brand span:last-child {
    color: var(--text-light) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link i {
    color: var(--primary-color);
}

/* Navigation Icons - Gold Filter */
.nav-icon-gold {
    filter: var(--nav-icon-filter);
}

/* Currency Switcher */
.currency-switcher .btn-group {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.currency-switcher .btn {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.currency-switcher .btn-primary {
    background: var(--primary-gradient) !important;
    color: var(--btn-primary-text) !important;
}

.currency-switcher .btn-outline-secondary {
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.currency-switcher .btn-outline-secondary:hover {
    color: var(--white);
    background: transparent;
}

/* Cart Button */
.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--border-gold);
    background: transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-glow);
}

/* Fix for cart badge clipping */
.navbar .btn-outline-primary {
    overflow: visible;
}

/* Theme Toggle Button */
.btn-theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.btn-theme-toggle i {
    transition: transform var(--transition-fast);
}

.btn-theme-toggle:hover i {
    transform: rotate(30deg);
}

.navbar .btn-outline-primary .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50% !important;
}

/* =============================================================================
   Hero Section - Premium Dark
   ============================================================================= */
.hero-section {
    background-color: var(--bg-black);
    background-image: linear-gradient(to bottom, var(--hero-overlay-top), var(--hero-overlay-bottom)),
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23D4AF37" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, var(--hero-overlay-top), var(--hero-overlay-full));
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-section p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Hero Badge */
.hero-section .badge {
    background: var(--hero-badge-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--hero-badge-border);
    color: var(--primary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
}

/* Hero Buttons */
.hero-section .btn-light {
    background: var(--primary-gradient);
    color: var(--btn-primary-text);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-fast);
}

.hero-section .btn-light:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

.hero-section .btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
}

.hero-section .btn-outline-light:hover {
    background: var(--hero-badge-bg);
    border-color: var(--text-light);
}

.min-vh-75 {
    min-height: 75vh;
}

/* =============================================================================
   Sections Background
   ============================================================================= */
section {
    background-color: var(--bg-black);
}

.bg-light {
    background-color: var(--bg-dark) !important;
}

.py-5 {
    background-color: var(--bg-black);
}

/* =============================================================================
   Cards - Dark Premium Style
   ============================================================================= */
.card {
    background-color: var(--surface-dark);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        border-color: var(--border-gold);
        box-shadow: var(--shadow-glow);
    }
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--card-border);
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--card-border);
}

/* =============================================================================
   Product Cards - Dark Theme
   ============================================================================= */
.product-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        border-color: var(--border-gold);
        box-shadow: var(--shadow-glow);
        transform: translateY(-5px);
    }
}

.product-image-container {
    background-color: var(--product-img-bg);
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-image {
        transform: scale(1.05);
    }
}

.product-image-placeholder {
    height: 220px;
    background-color: var(--product-img-bg);
}

/* Product Badges */
.product-card .badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4em 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.bg-warning {
    background: var(--primary-gradient) !important;
    color: var(--btn-primary-text) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.badge.bg-light {
    background: var(--hero-badge-bg) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-dark);
}

.badge.bg-primary-soft {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-gold);
}

/* Product Card Body */
.product-card .card-body {
    border-top: 1px solid var(--card-border);
}

.product-card .card-title {
    color: var(--white);
    transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .card-title,
    .product-card:hover .card-title a {
        color: var(--primary-color);
    }
}

.product-card .card-text {
    color: var(--text-muted);
    font-weight: 300;
}

/* Product Price */
.product-card .text-primary,
.fs-4.fw-bold.text-primary {
    color: var(--primary-color) !important;
}

/* =============================================================================
   Feature Cards - Dark with Gold Border
   ============================================================================= */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--feature-icon-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.feature-icon i {
    color: var(--primary-color);
}

.card:hover .feature-icon {
    background-color: var(--primary-color);
}

.card:hover .feature-icon i {
    color: var(--feature-icon-hover-text);
}

.bg-primary-soft {
    background: rgba(212, 175, 55, 0.1) !important;
}

/* =============================================================================
   Stats Section - Gold Numbers
   ============================================================================= */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    text-align: center;
    padding: 2rem;
}

.stat-card:hover {
    border-color: var(--border-gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================================================
   Footer - Dark Premium
   ============================================================================= */
.footer-section {
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
}

.footer-section h5,
.footer-section h6 {
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.footer-section a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color) !important;
}

.footer-section .text-light {
    color: var(--text-muted) !important;
}

/* Social Icons */
.footer-section .fs-4 a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--social-icon-bg);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.footer-section .fs-4 a:hover {
    background: var(--primary-color);
    color: var(--btn-primary-text) !important;
}

/* =============================================================================
   Buttons - Premium Gold Style
   ============================================================================= */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg,
            #D4AF37 0%,
            #D4AF37 40%,
            #F9E076 50%,
            #D4AF37 60%,
            #D4AF37 100%);
    background-size: 200% 100%;
    border: none;
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-glow);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
    color: var(--btn-primary-text);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    border: none;
    color: var(--white);
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-outline-secondary {
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--btn-outline-sec-hover-bg);
    border-color: var(--btn-outline-sec-hover-border);
    color: var(--btn-outline-sec-hover-text);
}

.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    background: transparent;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border-color: transparent;
    color: var(--white);
}

/* =============================================================================
   Forms - Dark Style
   ============================================================================= */
.form-control,
.form-select {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    padding: 0.875rem 1.25rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--surface-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-dark);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Input Group */
.input-group .btn {
    border: 1px solid var(--border-dark);
    background: var(--input-group-btn-bg);
    color: var(--text-muted);
}

.input-group .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--btn-primary-text);
}

/* =============================================================================
   Tables - Dark Style
   ============================================================================= */
.table {
    color: var(--text-light);
}

.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-dark);
    background-color: transparent;
}

.table>tbody>tr {
    transition: var(--transition-fast);
}

.table-hover>tbody>tr:hover {
    background-color: var(--table-hover-bg);
}

.table-light,
thead.table-light {
    background-color: var(--surface-dark) !important;
}

.table-light th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* =============================================================================
   Alerts - Dark Style
   ============================================================================= */
.alert {
    background-color: var(--alert-bg);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
}

.alert-info {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--border-gold);
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

/* =============================================================================
   Breadcrumb - Dark Style
   ============================================================================= */
.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

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

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-dark);
}

/* Page Headers */
section.bg-primary {
    background: var(--primary-gradient) !important;
}

section.bg-primary h1,
section.bg-primary .text-white {
    color: var(--btn-primary-text) !important;
}

section.bg-primary .breadcrumb-item a {
    color: rgba(0, 0, 0, 0.6);
}

section.bg-primary .breadcrumb-item.active {
    color: var(--btn-primary-text);
}

section.bg-primary .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   List Groups - Dark Style
   ============================================================================= */
.list-group-item {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.75rem 0;
}

.list-group-item a {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.list-group-item a:hover {
    background: var(--list-item-hover-bg);
    color: var(--primary-color);
}

.list-group-item a.fw-bold {
    background: var(--list-item-active-bg);
    color: var(--primary-color);
}

/* =============================================================================
   Check Icons - Gold Style
   ============================================================================= */
.check-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.check-icon:hover,
li:hover .check-icon {
    background: var(--primary-color);
    color: var(--btn-primary-text);
}

.bg-success.check-icon {
    background: transparent;
    border-color: var(--border-gold);
}

/* =============================================================================
   Mission & Vision Section
   ============================================================================= */
.bg-light.rounded-4 {
    background: var(--surface-darker) !important;
    border: 1px solid var(--border-dark);
}

/* =============================================================================
   Contact Page - Dark Cards
   ============================================================================= */
.bg-success.bg-opacity-10,
.bg-primary.bg-opacity-10 {
    background: var(--bg-primary-soft) !important;
}

/* =============================================================================
   Product Detail Page
   ============================================================================= */
.product-detail-image-container {
    background: linear-gradient(135deg, var(--product-img-bg) 0%, var(--surface-dark) 100%);
    border: 1px solid var(--border-dark);
}

/* =============================================================================
   CTA Section - Premium Gold
   ============================================================================= */
.cta-section {
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-dark);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cta-overlay-gradient);
    opacity: 0.8;
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--cta-dots-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* =============================================================================
   Scrollbar - Dark Style
   ============================================================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* =============================================================================
   Responsive Adjustments
   ============================================================================= */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Mobile Navigation - Hide top navbar completely */
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .navbar-brand {
        display: none !important;
    }

    /* Hide main navigation items on mobile */
    .navbar-nav {
        display: none !important;
    }

    /* Show only currency and cart in top navbar */
    .navbar-collapse {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .navbar-collapse .d-flex {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    /* Smaller currency switcher */
    .currency-switcher .btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    /* Smaller cart button in top */
    .navbar .btn-outline-primary {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.7rem !important;
    }

    .navbar .btn-outline-primary img {
        height: 14px !important;
    }

    /* Add padding to main content for bottom nav */
    .main-content-with-bottom-nav {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Catalog - Force 2 columns for product cards on mobile */
    .col-sm-6.col-xl-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Adjust product card image height for mobile */
    .product-image-container {
        height: 12rem !important;
    }

    /* Compact product card text */
    .product-card .card-title {
        font-size: 0.9rem !important;
    }

    .product-card .card-text {
        font-size: 0.75rem !important;
    }

    .product-card .fs-4 {
        font-size: 1rem !important;
    }
}

/* =============================================================================
   Bottom Navigation Bar (Mobile)
   ============================================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bottom-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bottom-nav-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--bottom-nav-shadow);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    min-width: 70px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Badge for cart in bottom nav */
.bottom-nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    /* =========================================================================
       Cart & Checkout — Mobile Responsive Overrides
       ========================================================================= */

    /* Bottom nav safe area — prevent content from being hidden */
    .cart-header-section ~ section {
        padding-bottom: 90px !important;
    }

    /* Cart page header icon — smaller on mobile */
    .cart-header-section .bi {
        font-size: 1.75rem !important;
    }

    /* --- Cart Table → Card Layout Transformation --- */
    .cart-table-mobile,
    .cart-table-mobile tbody {
        display: block !important;
        width: 100%;
    }

    .table-responsive:has(.cart-table-mobile) {
        overflow-x: visible !important;
        -webkit-overflow-scrolling: auto;
    }
    .cart-table-mobile thead {
        display: none !important;
    }

    .cart-table-mobile tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-dark) !important;
        gap: 0.5rem;
    }

    .cart-table-mobile tbody td {
        border: none !important;
        padding: 0 !important;
    }

    /* Product info cell — full width */
    .cart-table-mobile tbody td.cart-td-product {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .cart-table-mobile tbody td.cart-td-product .d-flex {
        gap: 0.75rem !important;
    }

    .cart-table-mobile tbody td.cart-td-product .product-thumb {
        width: 55px !important;
        height: 55px !important;
        flex-shrink: 0;
    }

    .cart-table-mobile tbody td.cart-td-product h6 {
        font-size: 0.9rem !important;
    }

    /* Quantity cell — takes remaining space */
    .cart-table-mobile tbody td.cart-td-quantity {
        flex: 1 1 auto;
        text-align: left !important;
    }

    .cart-table-mobile tbody td.cart-td-quantity .quantity-control {
        transform: scale(0.9);
        transform-origin: left center;
    }

    /* Price cell — hide on mobile (already shown in subtotal) */
    .cart-table-mobile tbody td.cart-td-price {
        display: none !important;
    }

    /* Subtotal cell */
    .cart-table-mobile tbody td.cart-td-subtotal {
        flex: 0 0 auto;
        text-align: right !important;
        font-size: 0.95rem;
    }

    /* Delete button cell */
    .cart-table-mobile tbody td.cart-td-delete {
        flex: 0 0 auto;
        text-align: right !important;
    }

    /* --- Checkout Overrides --- */

    /* Reduce card body padding */
    .checkout-card-body {
        padding: 1rem !important;
    }

    /* Reduce alert info padding */
    .checkout-alert {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .checkout-alert .fs-4 {
        font-size: 1.1rem !important;
    }

    .checkout-alert p {
        font-size: 0.8rem !important;
    }

    /* Section titles smaller */
    .checkout-section-title {
        font-size: 0.95rem !important;
    }

    /* Reduce total price font size */
    .checkout-total-price {
        font-size: 1.5rem !important;
    }

    /* Checkout order summary — reduce padding */
    .checkout-summary-footer {
        padding: 1rem !important;
    }

    /* Order summary product items */
    .checkout-summary-item {
        padding: 0.75rem 1rem !important;
    }

    .checkout-summary-item img,
    .checkout-summary-item .product-thumb-placeholder {
        width: 40px !important;
        height: 40px !important;
    }

    .checkout-summary-item h6 {
        font-size: 0.85rem !important;
    }

    /* Cart summary total price */
    .cart-total-price {
        font-size: 1.5rem !important;
    }

    /* Fix "Seguir Comprando" button visibility */
    .btn-outline-light {
        border-color: var(--border-dark) !important;
        color: var(--text-light) !important;
    }

    .btn-outline-light:hover {
        background: var(--surface-darker) !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .product-image {
        height: 180px;
    }

    .about-stats-grid {
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* =============================================================================
   Animation Classes
   ============================================================================= */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Shadow */
.hover-shadow {
    transition: var(--transition-normal);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-gold) !important;
}

/* Text Colors Override */
.text-dark {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
}

p {
    color: var(--text-muted);
}

a.text-dark {
    color: var(--text-light) !important;
}

a.text-dark:hover {
    color: var(--primary-color) !important;
}

/* Link styles */
a {
    color: var(--primary-color);
}

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

a.text-decoration-none {
    color: inherit;
}