/* ============================================================
   Mackfast Fitness Solution - Main Stylesheet
   Version: 2.0.0
   Author: Mackfast Dev Team
   ============================================================ */

/* ==========================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================== */
:root {
    /* Colors */
    --color-primary: #0B6E4F;
    --color-primary-dark: #084a35;
    --color-primary-light: #10a37f;
    --color-secondary: #111827;
    --color-accent: #F97316;
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-warning: #eab308;
    --color-info: #3b82f6;
    --color-light-bg: #f8faf9;
    --color-card-bg: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gold: #d4a843;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #f59e0b 100%);
    --gradient-hero: linear-gradient(135deg, rgba(11,110,79,0.92) 0%, rgba(8,74,53,0.95) 100%);
    --gradient-footer: linear-gradient(180deg, #111827 0%, #0d1117 100%);
    --gradient-newsletter: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #063d2b 100%);
    --gradient-announcement: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-header: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.3);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1rem;

    /* Header */
    --header-height: 72px;
    --announcement-height: 40px;
}

/* ==========================================================
   2. RESET / NORMALIZE (supplement to Bootstrap)
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-light-bg);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-secondary);
}

p {
    margin: 0 0 1rem;
}

/* Selection Colors */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) var(--color-light-bg);
}

/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */
body {
    font-family: var(--font-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

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

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

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

.fw-medium {
    font-weight: var(--font-weight-medium);
}

.fw-semibold {
    font-weight: var(--font-weight-semibold);
}

.fw-bold {
    font-weight: var(--font-weight-bold);
}

/* ==========================================================
   4. ANNOUNCEMENT BAR
   ========================================================== */
.announcement-bar {
    background: var(--gradient-announcement);
    color: var(--color-white);
    padding: 8px 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-align: center;
    position: relative;
    z-index: var(--z-fixed);
    overflow: hidden;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.announcement-bar a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.announcement-bar a:hover {
    color: var(--color-white);
}

.announcement-bar .announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    opacity: 0.7;
    font-size: var(--font-size-lg);
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.announcement-bar .announcement-close:hover {
    opacity: 1;
}

.announcement-bar .announcement-icon {
    font-size: var(--font-size-base);
    color: var(--color-gold);
}

/* ==========================================================
   5. HEADER / NAVIGATION
   ========================================================== */
.main-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-base);
    border-bottom: 1px solid var(--color-border);
}

.main-header.scrolled {
    box-shadow: var(--shadow-header);
    border-bottom-color: transparent;
}

.header-top-bar {
    background-color: var(--color-secondary);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-top-bar a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.header-top-bar a:hover {
    color: var(--color-primary-light);
}

.header-top-bar .top-bar-left,
.header-top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-top-bar .top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.header-top-bar .top-bar-item i {
    color: var(--color-primary-light);
    font-size: var(--font-size-xs);
}

.header-main {
    padding: 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
}

.logo .logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    line-height: 1;
}

.logo .logo-text span {
    color: var(--color-accent);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition-fast);
    background-color: var(--color-light-bg);
}

.header-search .search-form:focus-within {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(11,110,79,0.1);
}

.header-search .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    outline: none;
    color: var(--color-text);
}

.header-search .search-input::placeholder {
    color: var(--color-text-muted);
}

.header-search .search-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    transition: background-color var(--transition-fast);
}

.header-search .search-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    max-height: 420px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    display: none;
}

.search-results-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.search-results-dropdown .search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-item:hover {
    background-color: var(--color-light-bg);
}

.search-results-dropdown .search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.search-results-dropdown .search-result-info h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.125rem;
}

.search-results-dropdown .search-result-info .price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.search-results-dropdown .view-all-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

.search-results-dropdown .view-all-link:hover {
    background-color: var(--color-light-bg);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    color: var(--color-secondary);
    position: relative;
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

.header-action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.header-action-btn .badge.cart-badge {
    animation: cartBounce 0.4s ease;
}

/* Desktop Navigation */
.main-nav {
    background-color: var(--color-primary);
    position: relative;
    z-index: 1019;
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 12px 16px;
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.nav-item > .nav-link:hover,
.nav-item.active > .nav-link {
    background-color: rgba(255,255,255,0.1);
}

.nav-item > .nav-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-item > .nav-link .nav-badge {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mega Menu Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 720px;
    background-color: var(--color-white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--color-primary);
    padding: 1.5rem;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown .mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-dropdown .mega-col h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.mega-dropdown .mega-col ul li a {
    display: block;
    padding: 0.375rem 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.mega-dropdown .mega-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

/* Simple Dropdown */
.simple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--color-white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--color-primary);
    padding: 0.5rem 0;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.nav-item:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.simple-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.simple-dropdown li a:hover {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    padding-left: 1.25rem;
}

.simple-dropdown li a i {
    width: 16px;
    text-align: center;
    color: var(--color-text-muted);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: var(--z-modal-backdrop);
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: var(--z-modal);
    overflow-y: auto;
    transition: left var(--transition-base);
    box-shadow: var(--shadow-2xl);
}

.mobile-nav.active {
    left: 0;
}

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

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.mobile-nav-close:hover {
    background-color: var(--color-light-bg);
}

.mobile-nav-list {
    padding: 0.5rem 0;
}

.mobile-nav-list .mobile-nav-item {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-list .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-list .mobile-nav-link:hover,
.mobile-nav-list .mobile-nav-item.active .mobile-nav-link {
    color: var(--color-primary);
    background-color: var(--color-light-bg);
}

.mobile-nav-list .mobile-nav-link i {
    transition: transform var(--transition-fast);
}

.mobile-nav-list .mobile-nav-item.active > .mobile-nav-link i {
    transform: rotate(90deg);
}

.mobile-sub-nav {
    display: none;
    padding-left: 1rem;
    background-color: var(--color-light-bg);
}

.mobile-sub-nav.active {
    display: block;
}

.mobile-sub-nav a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.mobile-sub-nav a:hover {
    color: var(--color-primary);
    padding-left: 1.5rem;
}

/* ==========================================================
   6. BUTTONS
   ========================================================== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary-custom:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-accent);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-accent:hover {
    background-color: #e06b10;
    border-color: #e06b10;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.btn-icon.btn-primary-custom {
    width: 40px;
    padding: 0;
}

.btn-icon.btn-outline-custom {
    width: 40px;
    padding: 0;
}

.btn-rounded {
    border-radius: var(--radius-full);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: 6px 16px;
    font-size: var(--font-size-xs);
}

.btn-xs {
    padding: 4px 10px;
    font-size: var(--font-size-xs);
}

/* ==========================================================
   7. HERO SECTION
   ========================================================== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-section .carousel-item {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    animation: kenBurns 16s ease-in-out infinite alternate;
}

.carousel-item:nth-child(2) .hero-bg-img {
    animation-name: kenBurnsAlt;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-subtitle {
    display: block;
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    line-height: var(--line-height-tight);
    margin-bottom: 1.25rem;
}

.hero-title strong {
    color: var(--color-gold);
}

.hero-desc {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: var(--line-height-relaxed);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-custom-text {
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.75rem;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
    background: rgba(11,110,79,0.9);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 32px;
    font-size: var(--font-size-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(-2%, -1%);
    }
}

@keyframes kenBurnsAlt {
    0% {
        transform: scale(1.12) translate(-2%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev {
    left: 20px;
}

.hero-section .carousel-control-next {
    right: 20px;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-section .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background-color: transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.hero-section .carousel-indicators button.active {
    background-color: var(--color-white);
    opacity: 1;
    transform: scale(1.1);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

/* Hero Glass Card */
.hero-glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--color-white);
}

.hero-carousel .carousel-item {
    min-height: 600px;
}

/* ==========================================================
   8. SECTION STYLES
   ========================================================== */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.bg-light-custom {
    background-color: var(--color-light-bg);
}

.bg-white {
    background-color: var(--color-white);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading .section-subtitle {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-heading .section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    position: relative;
}

.section-heading .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    margin: 0.75rem auto 0;
}

.section-heading .section-description {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Section with Left Align */
.section-heading.text-start .section-title::after {
    margin: 0.75rem 0 0;
}

/* ==========================================================
   9. CATEGORY CARDS
   ========================================================== */
.category-card.cat-card-image {
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.category-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-light-bg);
    border-radius: var(--radius-xl);
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 2.5rem;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(11,110,79,0.85) 0%, rgba(11,110,79,0.2) 60%, transparent 100%);
}

.category-card-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.category-card-count {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

.category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-link {
    opacity: 1;
    transform: translateY(0);
}

.category-card-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-link i {
    transform: translateX(4px);
}

/* ==========================================================
   10. PRODUCT CARDS
   ========================================================== */
.product-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.product-card .product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--color-light-bg);
}

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

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

.product-card .product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 2;
}

.product-card .product-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .badge-sale {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.product-card .badge-new {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.product-card .badge-hot {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.product-card .badge-stock {
    background-color: var(--color-warning);
    color: var(--color-secondary);
}

.product-card .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card .product-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.product-card .product-action-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.product-card .product-action-btn.wishlist-btn.active {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.product-card .quick-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 2;
}

.product-card:hover .quick-add-btn {
    transform: translateY(0);
}

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

.product-card .product-info {
    padding: 1.25rem;
}

.product-card .product-category {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.product-card .product-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

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

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.product-card .product-rating .stars {
    display: flex;
    gap: 1px;
    color: var(--color-warning);
    font-size: var(--font-size-xs);
}

.product-card .product-rating .rating-count {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card .product-price .current-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.product-card .product-price .original-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card .product-price .discount-percent {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-danger);
    background-color: rgba(239,68,68,0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ==========================================================
   11. FLASH DEALS
   ========================================================== */
.flash-deals-section {
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.flash-deals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' 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");
    pointer-events: none;
}

.flash-deals-section .section-header .section-subtitle,
.flash-deals-section .section-heading .section-subtitle {
    color: var(--color-accent);
}

.flash-deals-section .section-header .section-title,
.flash-deals-section .section-heading .section-title {
    color: var(--color-white);
}

.flash-deals-section .section-header .section-title::after,
.flash-deals-section .section-heading .section-title::after {
    background: var(--gradient-accent);
}

.flash-deals-section .section-header p,
.flash-deals-section .section-header .section-desc,
.flash-deals-section .section-heading .section-description {
    color: rgba(255,255,255,0.7);
}

/* Flash Deals Countdown (home.php) */
.flash-countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.flash-countdown-header .countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md, 8px);
    padding: 0.5rem 0.875rem;
    min-width: 64px;
}

.flash-countdown-header .countdown-box span {
    font-size: var(--font-size-2xl, 1.5rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-white, #fff);
    line-height: 1;
}

.flash-countdown-header .countdown-box small {
    font-size: var(--font-size-xs, 0.7rem);
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.flash-deal-timer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.flash-deal-timer .timer-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.flash-deal-timer .timer-label i {
    animation: pulse 1.5s ease-in-out infinite;
}

.flash-deal-timer .timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    min-width: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}

.flash-deal-timer .timer-block .timer-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    line-height: 1;
}

.flash-deal-timer .timer-block .timer-label-text {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.flash-deal-timer .timer-separator {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
}

/* Flash Deal Product Card Override */
.flash-deals-section .product-card {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.flash-deals-section .product-card:hover {
    border-color: var(--color-accent);
}

.flash-deals-section .product-card .product-title {
    color: var(--color-white);
}

.flash-deals-section .product-card .product-category {
    color: rgba(255,255,255,0.5);
}

.flash-deals-section .product-card .product-rating .rating-count {
    color: rgba(255,255,255,0.5);
}

.flash-deals-section .product-card .product-info {
    background-color: transparent;
}

.flash-deals-section .product-card .product-price .current-price {
    color: var(--color-accent);
}

.flash-deals-section .product-card .product-price .original-price {
    color: rgba(255,255,255,0.4);
}

.flash-deals-section .product-card .product-actions .product-action-btn {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.15);
}

.flash-deals-section .product-card .product-actions .product-action-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ==========================================================
   12. PROMOTIONAL BANNERS
   ========================================================== */
.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.promo-banner .promo-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    max-width: 450px;
}

.promo-banner .promo-tag {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.promo-banner h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.promo-banner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ==========================================================
   13. WHY CHOOSE US
   ========================================================== */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-light);
}

.feature-box .feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: var(--font-size-2xl);
    transition: all var(--transition-base);
}

.feature-box .feature-icon.icon-green {
    background-color: rgba(11,110,79,0.1);
    color: var(--color-primary);
}

.feature-box .feature-icon.icon-orange {
    background-color: rgba(249,115,22,0.1);
    color: var(--color-accent);
}

.feature-box .feature-icon.icon-blue {
    background-color: rgba(59,130,246,0.1);
    color: var(--color-info);
}

.feature-box .feature-icon.icon-red {
    background-color: rgba(239,68,68,0.1);
    color: var(--color-danger);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-box h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: var(--line-height-relaxed);
}

/* ==========================================================
   14. TESTIMONIALS
   ========================================================== */
.testimonial-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card .testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 1rem;
    color: var(--color-warning);
}

.testimonial-card .testimonial-quote,
.testimonial-card .testimonial-text {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B6E4F 0%, #094e39 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.author-info {
    text-align: center;
}

.author-info .author-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.15rem;
}

.author-info .author-title {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ==========================================================
   15. BRAND LOGOS
   ========================================================== */
.brand-logos-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.brand-logos-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollLogos 30s linear infinite;
}

.brand-logos-track .brand-logo {
    flex-shrink: 0;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.brand-logos-track .brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.brand-logos-track .brand-logo img {
    height: 36px;
    width: auto;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================
   16. BLOG CARDS
   ========================================================== */
.blog-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100%;
}

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

.blog-card .blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

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

.blog-card .blog-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.2;
}

.blog-card .blog-date .day {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.blog-card .blog-date .month {
    display: block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}

.blog-card .blog-content {
    padding: 1.5rem;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-card .blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.blog-card .blog-meta span i {
    color: var(--color-primary);
}

.blog-card .blog-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-card .blog-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.blog-card .blog-link:hover {
    gap: 0.75rem;
}

/* ==========================================================
   17. NEWSLETTER SECTION
   ========================================================== */
.newsletter-section {
    background: var(--gradient-newsletter);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    background-color: var(--color-white);
    padding: 5px;
}

.newsletter-form .form-control {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    outline: none;
    background: transparent;
    color: var(--color-text);
}

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

.newsletter-form .btn {
    flex-shrink: 0;
}

/* ==========================================================
   18. INSTAGRAM GALLERY
   ========================================================== */
.instagram-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item .instagram-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(11,110,79,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item .instagram-overlay i {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

/* ==========================================================
   19. FOOTER
   ========================================================== */
.main-footer {
    background: var(--gradient-footer);
    color: rgba(255,255,255,0.7);
    padding-top: 4rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-widget .footer-logo .logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
}

.footer-widget .footer-logo .logo-text span {
    color: var(--color-gold);
}

.footer-widget .footer-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.footer-widget .footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-widget .footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
}

.footer-widget .footer-social a:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-widget h5 {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--color-gold);
    padding-left: 0.375rem;
}

.footer-widget ul li a i {
    font-size: 10px;
    color: var(--color-gold);
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--color-gold);
    flex-shrink: 0;
    font-size: var(--font-size-sm);
}

.footer-contact-item p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom .footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
}

.footer-bottom .footer-copyright a {
    color: var(--color-gold);
}

.footer-bottom .footer-payments {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom .footer-payments img {
    height: 28px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.footer-bottom .footer-payments img:hover {
    opacity: 1;
}

/* ==========================================================
   20. BREADCRUMBS
   ========================================================== */
.breadcrumb-section {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

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

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

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

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

/* ==========================================================
   21. FORM STYLES
   ========================================================== */
.form-control-custom {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.form-control-custom:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11,110,79,0.1);
}

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

.form-control-custom.is-invalid {
    border-color: var(--color-danger);
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-select-custom {
    display: block;
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition-fast);
}

.form-select-custom:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11,110,79,0.1);
}

.form-label-custom {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.form-label-custom .required {
    color: var(--color-danger);
}

.form-text-custom {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.form-error-custom {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    margin-top: 0.25rem;
    display: none;
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

/* ==========================================================
   22. SHOP SIDEBAR / FILTERS
   ========================================================== */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.filter-widget {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.filter-widget .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.filter-widget .filter-header h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0;
}

.filter-widget .filter-header i {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.filter-widget.filter-collapsed .filter-header i {
    transform: rotate(-90deg);
}

.filter-widget.filter-collapsed .filter-body {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
    cursor: pointer;
}

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

.filter-option label {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
}

.filter-option .filter-count {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background-color: var(--color-light-bg);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Price Range Slider */
.price-range-slider {
    padding: 0.5rem 0;
}

.price-range-slider .price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-range-slider .price-inputs input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    text-align: center;
    outline: none;
    transition: border-color var(--transition-fast);
}

.price-range-slider .price-inputs input:focus {
    border-color: var(--color-primary);
}

.price-range-slider .price-inputs span {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.price-range-slider input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ==========================================================
   23. CART PAGE
   ========================================================== */
.cart-table {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cart-table thead {
    background-color: var(--color-light-bg);
}

.cart-table thead th {
    padding: 1rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
}

.cart-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-info img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.cart-product-info .cart-product-title {
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.cart-product-info .cart-product-variant {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.cart-product-remove {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.cart-product-remove:hover {
    color: var(--color-danger);
}

/* Quantity Adjuster */
.quantity-adjuster {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-adjuster button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.quantity-adjuster button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.quantity-adjuster input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    outline: none;
    background: var(--color-white);
}

/* Cart Summary */
.cart-summary {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.cart-summary h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: var(--font-size-sm);
}

.cart-summary .summary-row .label {
    color: var(--color-text-muted);
}

.cart-summary .summary-row .value {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.cart-summary .summary-row.total {
    border-top: 2px solid var(--color-border);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.cart-summary .summary-row.total .label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
}

.cart-summary .summary-row.total .value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.cart-summary .coupon-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cart-summary .coupon-form input {
    flex: 1;
}

/* ==========================================================
   24. CHECKOUT PAGE
   ========================================================== */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.checkout-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.checkout-step.active .step-number,
.checkout-step.completed .step-number {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.checkout-step .step-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

.checkout-step.active .step-label {
    color: var(--color-primary);
}

.checkout-step.completed .step-label {
    color: var(--color-success);
}

.checkout-step-connector {
    width: 40px;
    height: 2px;
    background-color: var(--color-border);
}

.checkout-step-connector.completed {
    background-color: var(--color-primary);
}

.checkout-form-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.checkout-order-summary {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

/* ==========================================================
   25. PRODUCT DETAIL
   ========================================================== */
.product-gallery {
    position: relative;
}

.product-gallery .main-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-border);
    aspect-ratio: 1 / 1;
    cursor: crosshair;
}

.product-gallery .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-base);
}

.product-gallery .thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.product-gallery .thumbnail.active,
.product-gallery .thumbnail:hover {
    border-color: var(--color-primary);
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery .zoom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.6);
    color: var(--color-white);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    pointer-events: none;
}

.product-gallery .zoom-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 5;
    background-repeat: no-repeat;
}

/* Product Detail Info */
.product-detail-info .product-detail-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.product-detail-info .product-sku {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.product-detail-info .product-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-detail-info .product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.product-detail-info .product-detail-price .current-price {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.product-detail-info .product-detail-price .original-price {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-detail-info .product-detail-price .discount-badge {
    background-color: var(--color-danger);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.product-detail-info .product-short-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

/* Product Detail Tabs */
.product-tabs {
    margin-top: 3rem;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--color-border);
}

.product-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    padding: 0.875rem 1.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.product-tabs .nav-tabs .nav-link:hover {
    color: var(--color-primary);
}

.product-tabs .nav-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background-color: transparent;
}

.product-tabs .tab-content {
    padding: 2rem 0;
}

.product-tabs .tab-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

/* Review Styles */
.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.review-text {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

/* ==========================================================
   26. PAGINATION
   ========================================================== */
.pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.pagination-custom .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background-color: var(--color-card-bg);
    transition: all var(--transition-fast);
}

.pagination-custom .page-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pagination-custom .page-item.disabled .page-link {
    color: var(--color-text-muted);
    pointer-events: none;
}

/* ==========================================================
   27. ALERT / TOAST NOTIFICATIONS
   ========================================================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--color-primary);
    min-width: 320px;
    max-width: 420px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    transition: all var(--transition-base);
}

.toast-notification.toast-success {
    border-left-color: var(--color-success);
}

.toast-notification.toast-error {
    border-left-color: var(--color-danger);
}

.toast-notification.toast-warning {
    border-left-color: var(--color-warning);
}

.toast-notification.toast-info {
    border-left-color: var(--color-info);
}

.toast-notification .toast-icon {
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.toast-notification.toast-success .toast-icon {
    color: var(--color-success);
}

.toast-notification.toast-error .toast-icon {
    color: var(--color-danger);
}

.toast-notification.toast-warning .toast-icon {
    color: var(--color-warning);
}

.toast-notification.toast-info .toast-icon {
    color: var(--color-info);
}

.toast-notification .toast-content h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: 0.125rem;
}

.toast-notification .toast-content p {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.toast-notification .toast-close {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    padding: 4px;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.toast-notification .toast-close:hover {
    color: var(--color-text);
}

.toast-notification.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* Alert Styles */
.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.alert-custom.alert-success {
    background-color: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #166534;
}

.alert-custom.alert-danger {
    background-color: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #991b1b;
}

.alert-custom.alert-warning {
    background-color: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.3);
    color: #854d0e;
}

.alert-custom.alert-info {
    background-color: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    color: #1e40af;
}

/* ==========================================================
   28. LOADING / SKELETON
   ========================================================== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner.spinner-lg {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-border) 25%, rgba(229,231,235,0.5) 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.skeleton-btn {
    height: 40px;
    width: 120px;
    border-radius: var(--radius-md);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader .preloader-logo {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
}

.preloader .preloader-bar {
    width: 120px;
    height: 3px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader .preloader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: preloaderBar 1s ease-in-out infinite;
}

/* ==========================================================
   29. MODAL STYLES
   ========================================================== */
.modal-custom .modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-modal);
}

.modal-custom .modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
}

.modal-custom .modal-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.modal-custom .modal-body {
    padding: 1.5rem;
}

.modal-custom .modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

/* Quick View Modal */
.quick-view-modal .modal-xl {
    max-width: 900px;
}

.quick-view-modal .qv-product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-light-bg);
}

.quick-view-modal .qv-product-gallery img {
    width: 100%;
    height: auto;
}

/* ==========================================================
   30. BACK TO TOP
   ========================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
}

/* ==========================================================
   31. WHATSAPP FLOATING BUTTON
   ========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 5.5rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    color: var(--color-white);
}

.whatsapp-float .whatsapp-pulse {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid #25d366;
    animation: whatsappPulse 2s ease-out infinite;
}

/* ==========================================================
   32. DARK MODE TOGGLE
   ========================================================== */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dark-mode-toggle .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}

.dark-mode-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.dark-mode-toggle .toggle-switch.active {
    background-color: var(--color-primary);
}

.dark-mode-toggle .toggle-switch.active::after {
    transform: translateX(20px);
}

.dark-mode-toggle .toggle-icon {
    font-size: var(--font-size-lg);
    color: var(--color-warning);
}

/* ==========================================================
   33. EMPTY STATE
   ========================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--color-text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ==========================================================
   33b. CHECKOUT PAGE (WooCommerce-style)
   ========================================================== */
.checkout-section {
    background-color: var(--color-light-bg, #f8f9fa);
}

.checkout-page-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.checkout-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.checkout-card-title {
    font-size: 1rem;
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-secondary, #212529);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.checkout-label {
    display: block;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-secondary, #212529);
    margin-bottom: 0.375rem;
}

.checkout-label .required {
    color: #dc3545;
}

.checkout-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: var(--font-size-sm, 0.875rem);
    line-height: 1.5;
    color: var(--color-text, #212529);
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: var(--radius-sm, 6px);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.checkout-input:focus {
    outline: none;
    border-color: var(--color-primary, #0B6E4F);
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}

.checkout-input::placeholder {
    color: var(--color-text-muted, #9ca3af);
}

select.checkout-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

textarea.checkout-input {
    resize: vertical;
    min-height: 80px;
}

.checkout-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-secondary, #212529);
    cursor: pointer;
    margin-bottom: 0;
}

.checkout-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #0B6E4F);
    cursor: pointer;
}

/* Delivery options */
.checkout-radio {
    display: block;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkout-radio:hover {
    border-color: var(--color-primary, #0B6E4F);
}

.checkout-radio.active,
.checkout-radio:has(input:checked) {
    border-color: var(--color-primary, #0B6E4F);
    background-color: rgba(11, 110, 79, 0.05);
}

.checkout-radio strong {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-secondary, #212529);
}

.checkout-radio small {
    font-size: var(--font-size-xs, 0.75rem);
}

/* Order Summary Card */
.order-summary-card {
    border-color: var(--color-border, #e5e7eb);
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border, #f0f0f0);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-img {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-item-qty {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-secondary, #6b7280);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.order-item-name {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--color-secondary, #212529);
    margin-bottom: 0;
    line-height: 1.3;
}

.order-item-price {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-secondary, #212529);
    white-space: nowrap;
}

/* Coupon section */
.order-coupon-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 0.75rem;
}

.coupon-toggle {
    border: none;
    padding: 0;
}

.coupon-toggle summary {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-primary, #0B6E4F);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.coupon-toggle summary::-webkit-details-marker {
    display: none;
}

.coupon-toggle summary::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.coupon-toggle[open] summary::before {
    transform: rotate(90deg);
}

.coupon-apply-btn {
    padding: 0.625rem 1rem;
    background: var(--color-secondary, #374151);
    color: #fff;
    border: 1px solid var(--color-secondary, #374151);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.coupon-apply-btn:hover {
    background: var(--color-text, #1f2937);
}

/* Totals */
.order-totals {
    padding: 0.75rem 0;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 0.5rem;
}

.order-total-row span:last-child {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-secondary, #212529);
}

.order-total-grand {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-size: var(--font-size-lg, 1.125rem);
}

.order-total-grand span:first-child {
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-secondary, #212529);
}

.order-total-grand span:last-child {
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-primary, #0B6E4F);
    font-size: var(--font-size-xl, 1.25rem);
}

/* Payment info box */
.order-payment-info {
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.payment-method-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-sm, 6px);
}

.payment-method-badge > i {
    font-size: 1.75rem;
    color: #25d366;
    flex-shrink: 0;
}

.payment-method-badge strong {
    display: block;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-secondary, #212529);
    margin-bottom: 0.125rem;
}

.payment-method-badge small {
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--color-text-muted, #6b7280);
    line-height: 1.4;
}

/* Checkout CTA button */
.checkout-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 6px);
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-bold, 700);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.checkout-btn-checkout:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.checkout-btn-checkout:active {
    transform: translateY(0);
}

.checkout-btn-checkout i {
    font-size: 1.25rem;
}

/* Trust badge */
.order-trust {
    text-align: center;
    padding: 0.75rem 0 0;
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--color-text-muted, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.order-trust i {
    color: var(--color-primary, #0B6E4F);
}

/* Checkout responsive */
@media (max-width: 991px) {
    .order-summary-card {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .checkout-card {
        padding: 1.25rem 1rem;
    }

    .checkout-page-title {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================
   34. DARK MODE STYLES
   ========================================================== */
body.dark-mode {
    --color-light-bg: #0f1724;
    --color-card-bg: #1a1f2e;
    --color-text: #e0e0e0;
    --color-text-muted: #9ca3af;
    --color-border: #2d3748;
    --color-secondary: #e0e0e0;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
    background-color: #0d1117;
    color: #e0e0e0;
}

body.dark-mode .main-header {
    background-color: #161b22;
    border-bottom-color: #2d3748;
}

body.dark-mode .main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .header-top-bar {
    background-color: #0d1117;
    border-bottom-color: #2d3748;
}

body.dark-mode .header-search .search-form {
    background-color: #161b22;
    border-color: #2d3748;
}

body.dark-mode .header-search .search-form:focus-within {
    background-color: #1a1f2e;
}

body.dark-mode .header-action-btn {
    color: #e0e0e0;
}

body.dark-mode .header-action-btn:hover {
    background-color: #1a1f2e;
}

body.dark-mode .main-nav {
    background-color: #1a1f2e;
}

body.dark-mode .main-nav .nav-item > .nav-link:hover,
body.dark-mode .main-nav .nav-item.active > .nav-link {
    background-color: rgba(255,255,255,0.08);
}

body.dark-mode .mega-dropdown,
body.dark-mode .simple-dropdown {
    background-color: #1a1f2e;
    border-top-color: var(--color-primary);
}

body.dark-mode .mega-dropdown .mega-col h6 {
    color: var(--color-primary-light);
}

body.dark-mode .mega-dropdown .mega-col ul li a {
    color: #9ca3af;
}

body.dark-mode .mega-dropdown .mega-col ul li a:hover {
    color: var(--color-primary-light);
}

body.dark-mode .simple-dropdown li a {
    color: #e0e0e0;
}

body.dark-mode .simple-dropdown li a:hover {
    background-color: #161b22;
    color: var(--color-primary-light);
}

body.dark-mode .product-card,
body.dark-mode .category-card,
body.dark-mode .feature-box,
body.dark-mode .testimonial-card,
body.dark-mode .blog-card,
body.dark-mode .filter-widget,
body.dark-mode .cart-table,
body.dark-mode .cart-summary,
body.dark-mode .checkout-form-card,
body.dark-mode .checkout-order-summary,
body.dark-mode .checkout-card,
body.dark-mode .order-summary-card {
    background-color: #1a1f2e;
    border-color: #2d3748;
}

body.dark-mode .section-heading .section-title {
    color: #e0e0e0;
}

body.dark-mode .product-card .product-title,
body.dark-mode .product-card .product-info .product-category {
    color: #e0e0e0;
}

body.dark-mode .blog-card .blog-title {
    color: #e0e0e0;
}

body.dark-mode .feature-box h5 {
    color: #e0e0e0;
}

body.dark-mode .cart-table thead {
    background-color: #161b22;
}

body.dark-mode .cart-table thead th,
body.dark-mode .cart-table tbody td {
    border-bottom-color: #2d3748;
}

body.dark-mode .quantity-adjuster {
    border-color: #2d3748;
}

body.dark-mode .quantity-adjuster button {
    background-color: #161b22;
    color: #e0e0e0;
}

body.dark-mode .quantity-adjuster input {
    background-color: #1a1f2e;
    color: #e0e0e0;
}

body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 50%, #1a1f2e 100%);
}

body.dark-mode .breadcrumb-section {
    background-color: #161b22;
    border-bottom-color: #2d3748;
}

body.dark-mode .form-control-custom,
body.dark-mode .form-select-custom {
    background-color: #161b22;
    border-color: #2d3748;
    color: #e0e0e0;
}

body.dark-mode .form-control-custom:focus,
body.dark-mode .form-select-custom:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(16,163,127,0.2);
}

body.dark-mode .modal-custom .modal-content {
    background-color: #1a1f2e;
}

body.dark-mode .modal-custom .modal-header {
    border-bottom-color: #2d3748;
}

body.dark-mode .modal-custom .modal-footer {
    border-top-color: #2d3748;
}

body.dark-mode .mobile-nav {
    background-color: #161b22;
}

body.dark-mode .mobile-nav-header {
    border-bottom-color: #2d3748;
}

body.dark-mode .mobile-nav-list .mobile-nav-link {
    color: #e0e0e0;
}

body.dark-mode .mobile-sub-nav {
    background-color: #0d1117;
}

body.dark-mode .search-results-dropdown {
    background-color: #1a1f2e;
    border-color: #2d3748;
}

body.dark-mode .search-results-dropdown .search-result-item {
    border-bottom-color: #2d3748;
}

body.dark-mode .search-results-dropdown .search-result-item:hover {
    background-color: #161b22;
}

body.dark-mode .search-results-dropdown .search-result-info h6 {
    color: #e0e0e0;
}

body.dark-mode .search-results-dropdown .view-all-link {
    border-top-color: #2d3748;
}

body.dark-mode .product-gallery .main-image-wrapper {
    background-color: #161b22;
    border-color: #2d3748;
}

body.dark-mode .product-tabs .nav-tabs {
    border-bottom-color: #2d3748;
}

body.dark-mode .product-tabs .nav-tabs .nav-link {
    color: #9ca3af;
}

body.dark-mode .pagination-custom .page-link {
    background-color: #1a1f2e;
    border-color: #2d3748;
    color: #e0e0e0;
}

body.dark-mode .toast-notification {
    background-color: #1a1f2e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.dark-mode .preloader {
    background-color: #0d1117;
}

body.dark-mode .back-to-top {
    background-color: var(--color-primary-light);
}

body.dark-mode .announcement-bar {
    background: linear-gradient(90deg, #0d1117 0%, #161b22 50%, #1a1f2e 100%);
}

body.dark-mode .filter-widget .filter-header {
    border-bottom-color: #2d3748;
}

body.dark-mode .cart-summary .summary-row.total {
    border-top-color: #2d3748;
}

body.dark-mode .checkout-step .step-number {
    border-color: #2d3748;
}

body.dark-mode .checkout-step-connector {
    background-color: #2d3748;
}

body.dark-mode .checkout-card {
    background-color: #1a1f2e;
    border-color: #2d3748;
}

body.dark-mode .checkout-card-title {
    color: #e0e0e0;
    border-bottom-color: #2d3748;
}

body.dark-mode .checkout-input {
    background-color: #161b22;
    border-color: #2d3748;
    color: #e0e0e0;
}

body.dark-mode .checkout-input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

body.dark-mode .checkout-radio {
    border-color: #2d3748;
}

body.dark-mode .checkout-radio:hover,
body.dark-mode .checkout-radio.active {
    border-color: #10a37f;
    background-color: rgba(16, 163, 127, 0.08);
}

body.dark-mode .order-item {
    border-bottom-color: #2d3748;
}

body.dark-mode .order-item-name,
body.dark-mode .order-item-price,
body.dark-mode .order-total-row span:last-child {
    color: #e0e0e0;
}

body.dark-mode .order-total-grand span:first-child {
    color: #e0e0e0;
}

body.dark-mode .order-total-grand {
    border-top-color: #2d3748;
}

body.dark-mode .order-payment-info {
    border-top-color: #2d3748;
}

body.dark-mode .coupon-apply-btn {
    background: #374151;
    border-color: #4b5563;
}

/* ==========================================================
   35. ANIMATIONS / KEYFRAMES
   ========================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes preloaderBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(300%); }
    100% { transform: translateX(-100%); }
}

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

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

/* ==========================================================
   36. AOS OVERRIDE STYLES
   ========================================================== */
[data-aos] {
    pointer-events: auto !important;
}

[data-aos].aos-animate {
    pointer-events: auto !important;
}

.aos-disabled {
    pointer-events: none !important;
}

/* ==========================================================
   37. UTILITY CLASSES
   ========================================================== */
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.object-cover { object-fit: cover; }
.border-0 { border: 0; }
.shadow-none { box-shadow: none; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ==========================================================
   38. PRINT STYLES
   ========================================================== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    .main-header,
    .main-footer,
    .back-to-top,
    .whatsapp-float,
    .announcement-bar,
    .main-nav,
    .newsletter-section,
    .mobile-nav,
    .mobile-nav-overlay,
    .dark-mode-toggle,
    .preloader,
    .toast-container,
    .product-actions,
    .quick-add-btn {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .product-card,
    .blog-card {
        break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}

/* ==========================================================
   39. RESPONSIVE - TABLET (768px - 1199px)
   ========================================================== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-stats {
        gap: 2rem;
    }

    .mega-dropdown {
        min-width: 600px;
    }

    .mega-dropdown .mega-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 4rem 0;
    }

    .instagram-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .flash-deal-timer .timer-block {
        min-width: 50px;
        padding: 0.375rem 0.5rem;
    }

    .flash-deal-timer .timer-block .timer-value {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 991px) {
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .header-top-bar .top-bar-left {
        display: none;
    }

    .hero-section {
        height: 480px;
    }

    .hero-slide {
        height: 480px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stat h3 {
        font-size: var(--font-size-2xl);
    }

    .section-heading .section-title {
        font-size: var(--font-size-2xl);
    }

    .product-gallery .thumbnails {
        flex-wrap: wrap;
    }

    .checkout-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cart-table {
        overflow-x: auto;
    }

    .cart-summary {
        position: static;
    }
}

/* ==========================================================
   40. RESPONSIVE - MOBILE (max 767px)
   ========================================================== */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --container-padding: 0.75rem;
    }

    .hero-section {
        height: 420px;
        padding: 3rem 0;
    }

    .hero-slide {
        height: 420px;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-desc {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        border-top: none;
        padding-top: 1rem;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-stat h3 {
        font-size: var(--font-size-xl);
    }

    .section {
        padding: 3rem 0;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading .section-title {
        font-size: var(--font-size-xl);
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card .category-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .product-card .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-card .product-action-btn {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-xs);
    }

    .product-card .quick-add-btn {
        position: relative;
        transform: none;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .flash-deal-timer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .flash-deal-timer .timer-block {
        min-width: 44px;
        padding: 0.375rem;
    }

    .flash-deal-timer .timer-block .timer-value {
        font-size: var(--font-size-lg);
    }

    .promo-banner {
        min-height: 240px;
    }

    .promo-banner .promo-content {
        padding: 1.5rem;
    }

    .promo-banner h3 {
        font-size: var(--font-size-xl);
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 0.5rem;
    }

    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }

    .instagram-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom .footer-payments {
        margin-top: 1rem;
    }

    .breadcrumb-section {
        padding: 0.75rem 0;
    }

    .breadcrumb {
        font-size: var(--font-size-xs);
    }

    .feature-box {
        padding: 1.5rem 1rem;
    }

    .feature-box .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .cart-product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-product-info img {
        width: 56px;
        height: 56px;
    }

    .product-detail-info .product-detail-price {
        flex-wrap: wrap;
    }

    .product-detail-info .product-detail-price .current-price {
        font-size: var(--font-size-2xl);
    }

    .product-tabs .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-tabs .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 4.5rem;
        width: 46px;
        height: 46px;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .filter-widget {
        padding: 1rem;
    }

    .checkout-step .step-label {
        display: none;
    }

    .mega-dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .mega-dropdown.active {
        display: block;
    }

    .mega-dropdown .mega-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   41. EXTRA SMALL (< 400px)
   ========================================================== */
@media (max-width: 399px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .section-heading .section-title {
        font-size: var(--font-size-lg);
    }

    .flash-deal-timer .timer-block {
        min-width: 40px;
    }

    .flash-deal-timer .timer-block .timer-value {
        font-size: var(--font-size-base);
    }

    .flash-deal-timer .timer-separator {
        font-size: var(--font-size-base);
    }
}

/* ==========================================================
   42. LARGE DESKTOP (1400+)
   ========================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        max-width: 520px;
    }
}

/* ==========================================================
   43. SPECIAL: RETINA / HIGH DPI
   ========================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ==========================================================
   44. ACCESSIBILITY
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .brand-logos-track {
        animation: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================
   45. TRANSITION UTILITIES
   ========================================================== */
.transition-all {
    transition: all var(--transition-base);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.hover-shadow {
    transition: box-shadow var(--transition-base);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ==========================================================
   BRAND SECTION
   ========================================================== */
.search-dropdown {
    top: 100%;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown a:hover {
    background-color: var(--color-light-bg, #f8faf9);
}

body.dark-mode .search-dropdown {
    background: var(--color-card-bg, #1a1f2e);
    border-color: var(--color-border, #2d3748);
}

body.dark-mode .search-dropdown a {
    color: #e0e0e0;
}

body.dark-mode .search-dropdown a:hover {
    background-color: rgba(255,255,255,0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header .section-subtitle {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header .section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    position: relative;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    margin: 0.75rem auto 0;
}

.brand-section {
    overflow: hidden;
}

.brand-marquee {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
}

.brand-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.brand-item {
    flex: 0 0 auto;
    padding: 16px 32px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: var(--radius-lg, 12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 107, 69, 0.15);
    border-color: var(--color-primary);
}

.brand-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary, #212529);
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.brand-item:hover .brand-text {
    color: var(--color-primary);
}

@media (max-width: 576px) {
    .brand-track {
        gap: 16px 24px;
    }

    .brand-item {
        padding: 10px 20px;
    }

    .brand-text {
        font-size: 13px;
    }
}

/* ==========================================================
   PWA INSTALL BANNER
   ========================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0B6E4F 0%, #084a35 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    animation: slideUpPwa 0.4s ease;
}

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

.pwa-install-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pwa-install-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.pwa-install-info img {
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .pwa-install-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .pwa-install-info {
        justify-content: center;
    }

    .pwa-install-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   RESPONSIVE - GLOBAL MOBILE FIXES
   ========================================================== */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 5rem;
        width: 40px;
        height: 40px;
    }

    .newsletter-section {
        padding: 2rem 0 !important;
    }

    .newsletter-section .btn {
        width: 100%;
    }

    .footer-payments img {
        height: 28px;
    }

    .instagram-gallery {
        gap: 4px;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }

    .product-card .product-price {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 360px;
    }

    .hero-slide {
        height: 360px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header .section-title {
        font-size: 1.1rem;
    }

    .category-card .category-name {
        font-size: 0.8rem;
    }
}

/* ==========================================================
   SMALL PHONE - PROMO BANNER BUTTONS & COUNTDOWN
   ========================================================== */
@media (max-width: 575.98px) {
    .promo-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .promo-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 399px) {
    .flash-countdown-header {
        gap: 0.375rem;
    }

    .flash-countdown-header .countdown-box {
        min-width: 52px;
        padding: 0.4rem 0.5rem;
    }

    .flash-countdown-header .countdown-box span {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   SAFE AREA - NOTCH / NOTCH-LIKE DEVICES
   ========================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pwa-install-banner {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .site-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* ==========================================================
   TOUCH DEVICE IMPROVEMENTS
   ========================================================== */
@media (hover: none) and (pointer: coarse) {
    .product-card .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-card .product-action-btn {
        width: 34px;
        height: 34px;
    }

    .btn-hero {
        min-height: 48px;
    }

    .btn-auth {
        min-height: 48px;
    }

    .category-card {
        min-height: 44px;
    }
}
