/* ==========================================
   EASY PURCHASE - Main Stylesheet
   ========================================== */

/* ---- CSS Variables / Design System ---- */
:root {
  /* Brand */
  --brand: #438C79;
  --brand-600: #3A7A69;
  --brand-700: #32685A;
  --brand-50: #EEF5F3;
  --brand-100: #D9E9E4;
  --brand-glow: rgba(67, 140, 121, 0.25);

  /* Neutrals */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #F9FAFB;
  --surface-3: #F3F4F6;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  /* Status */
  --success: #438C79;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
  --shadow-brand: 0 10px 30px -10px var(--brand-glow);

  --header-h: 72px;
  --topbar-h: 40px;
  --container: 1240px;

  --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  /* Alias old variables to new */
  --ep-primary: var(--brand);
  --ep-primary-dark: var(--brand-600);
  --ep-primary-light: var(--brand-50);
  --ep-accent: var(--brand);
  --ep-success: var(--success);
  --ep-danger: var(--danger);
  --ep-warning: var(--warning);
  --ep-info: var(--info);
  --ep-shadow-sm: var(--shadow-sm);
  --ep-shadow: var(--shadow);
  --ep-shadow-lg: var(--shadow-lg);
  --ep-radius-sm: var(--radius-sm);
  --ep-radius: var(--radius);
  --ep-radius-lg: var(--radius-lg);
  --ep-font-primary: var(--font-sans);
  --ep-font-heading: var(--font-sans);
  --ep-white: var(--bg);

  /* Restored - previously declared in an orphaned block outside any
     selector (invalid CSS, silently dropped by the browser), leaving
     these completely undefined everywhere they were used (footer,
     grays, transitions, the orange secondary accent). */
  --ep-secondary: #FF6B00;
  --ep-secondary-dark: #CC5500;
  --ep-dark: #1A1A2E;
  --ep-gray-100: #F8F9FA;
  --ep-gray-200: #E9ECEF;
  --ep-gray-300: #DEE2E6;
  --ep-gray-400: #CED4DA;
  --ep-gray-500: #ADB5BD;
  --ep-gray-600: #6C757D;
  --ep-gray-700: #495057;
  --ep-gray-800: #343A40;
  --ep-gray-900: #212529;
  --ep-transition: all 0.3s ease;
}

/* ---- Green Theme Bootstrap Overrides ---- */
.btn-primary, .bg-primary {
    background-color: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--ep-primary-dark) !important;
    border-color: var(--ep-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
    color: #ffffff !important;
}

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

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

.badge.bg-primary {
    background-color: var(--ep-primary) !important;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ep-font-primary);
    color: var(--ep-gray-800);
    background-color: var(--ep-gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ---- Top Announcement Bar ---- */
.top-bar {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    z-index: 1050;
}

.top-bar a:hover {
    text-decoration: underline !important;
}

/* ---- Header ---- */
@media (max-width: 767.98px) {
    .header-account-menu {
        display: none !important;
    }

    .site-header-main-row {
        position: relative;
        min-height: 68px;
        padding: 0.7rem 0 !important;
    }

    .site-header-logo-col {
        width: 100%;
        padding: 0 3.5rem;
    }

    .site-header-logo-col a {
        justify-content: center !important;
        gap: 0.2rem;
    }

    .site-header-logo-col .site-logo {
        height: 36px !important;
    }

    .site-header-logo-col span {
        font-size: 1rem !important;
        white-space: nowrap;
    }

    .site-header-search-col {
        width: 100%;
        padding: 0 0.75rem;
        margin-top: 1.15rem;
    }

    .site-header-actions-col {
        position: absolute;
        top: 0.8rem;
        right: 0.7rem;
        width: auto;
        padding: 0;
        z-index: 3;
    }

    .site-header-actions-col .d-flex {
        justify-content: flex-end !important;
    }

    .site-header-actions-col .dropdown {
        margin: 0 !important;
    }

    .site-header-actions-col .cart-trigger {
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 0.8rem;
        left: 0.7rem;
        z-index: 3;
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        padding-top: 0 !important;
    }

    .navbar .navbar-collapse {
        margin-top: 0.75rem;
    }
}

header {
    z-index: 1040;
}

header .search-form .input-group {
    margin-top: 0.45rem;
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow-sm);
}

header .search-form .form-control {
    border: 2px solid var(--ep-gray-300);
    border-right: none;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

header .search-form .form-control:focus {
    border-color: var(--ep-primary);
    box-shadow: none;
}

header .search-form .btn {
    padding: 0.6rem 1.2rem;
}

/* ---- Navigation ---- */
.navbar {
    border-top: 1px solid var(--ep-gray-200);
    padding-bottom: 0.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--ep-gray-700);
    transition: var(--ep-transition);
    border-bottom: 2px solid transparent;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--ep-primary);
    border-bottom-color: var(--ep-primary);
}

/* ---- Mobile menu panel ---- */
.mobile-menu-heading,
.mobile-menu-subtitle {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-menu-panel {
        margin-top: 0.85rem;
        padding: 0.8rem;
        border: 1px solid var(--ep-gray-200);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    }

    .mobile-menu-panel .main-menu-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
        margin: 0;
    }

    .mobile-menu-panel .nav-item,
    .mobile-menu-panel .nav-link {
        width: 100%;
    }

    .mobile-menu-panel .nav-link {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 0.7rem 0.85rem !important;
        border: 0;
        border-radius: 10px;
        color: var(--ep-gray-700);
        font-weight: 700;
    }

    .mobile-menu-panel .nav-link:hover,
    .mobile-menu-panel .nav-link.active {
        color: var(--ep-primary-dark);
        background: var(--ep-primary-light);
        border: 0;
    }

    .mobile-menu-panel .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0 !important;
        max-height: 240px !important;
        margin: 0.2rem 0 0.35rem;
        padding: 0.35rem;
        overflow-y: auto;
        border: 1px solid var(--ep-gray-200) !important;
        border-radius: 10px;
        box-shadow: none !important;
        background: var(--ep-gray-100);
    }

    .mobile-menu-panel .dropdown-item {
        border-radius: 8px;
        padding: 0.65rem 0.75rem !important;
        font-weight: 600;
    }

    .mobile-menu-panel .dropdown-item:hover {
        color: var(--ep-primary-dark) !important;
        background: #ffffff;
    }

    .mobile-menu-heading {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.4rem 0.65rem 0.7rem;
        margin-bottom: 0.25rem;
        color: var(--ep-gray-900);
        font-weight: 800;
        border-bottom: 1px solid var(--ep-gray-200);
    }

    .mobile-menu-subtitle {
        display: block;
        color: var(--ep-gray-500);
        font-size: 0.75rem;
        font-weight: 500;
    }
}

/* ---- Category directory page ---- */
.category-page-hero {
    padding: 1.5rem 0 3.25rem;
    color: #ffffff;
    background: radial-gradient(circle at 85% 20%, rgba(122, 187, 170, 0.28), transparent 32%), linear-gradient(135deg, #1F4A40 0%, #32685A 55%, #438c79 100%);
}

.category-page-hero .breadcrumb,
.category-page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.72); }
.category-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }
.category-page-hero .breadcrumb a { color: #ffffff; }
.category-page-hero h1 {
    margin: 0.8rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}
.category-page-hero p { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.category-eyebrow { color: #a7f3d0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }

.category-directory-section { background: #f8fafc; }
.category-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.category-directory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.category-directory-card:hover,
.category-directory-card.is-selected {
    color: inherit;
    border-color: rgba(67,140,121,0.65);
    box-shadow: 0 18px 34px rgba(15,23,42,0.11);
    transform: translateY(-5px);
}
.category-directory-media {
    display: grid;
    place-items: center;
    height: 165px;
    padding: 1.25rem;
    background: linear-gradient(145deg, #eef5f3, #f2f8f6 48%, #e0f2fe);
}
.category-directory-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.category-directory-card:hover .category-directory-media img { transform: scale(1.06); }
.category-directory-media i { color: var(--ep-primary); font-size: 3.3rem; }
.category-directory-content { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.05rem 1.15rem; }
.category-directory-content h2 { margin-bottom: 0.4rem; color: var(--ep-gray-900); font-size: 1.05rem; font-weight: 800; }
.category-directory-content p { flex: 1; margin-bottom: 0.9rem; color: var(--ep-gray-600); font-size: 0.84rem; line-height: 1.5; }
.category-directory-content > span { color: var(--ep-primary-dark); font-size: 0.82rem; font-weight: 800; }
.category-directory-content > span i { margin-left: 0.35rem; transition: transform 0.2s ease; }
.category-directory-card:hover .category-directory-content > span i { transform: translateX(4px); }
.empty-category-state { color: var(--ep-gray-700); }
.empty-category-state > i { margin-bottom: 1rem; color: var(--ep-primary); font-size: 3rem; }

@media (max-width: 991.98px) {
    .category-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .category-page-hero { padding-bottom: 2.2rem; }
    .category-page-hero .btn { width: 100%; margin-top: 0.5rem; }
    .category-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
    .category-directory-media { height: 125px; }
    .category-directory-content { padding: 0.8rem; }
    .category-directory-content h2 { font-size: 0.92rem; }
    .category-directory-content p { font-size: 0.76rem; }
}

/* ---- Home services ---- */
.services-grid {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 210px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid var(--ep-gray-200);
    border-radius: var(--ep-radius);
    background: #ffffff;
    box-shadow: var(--ep-shadow-sm);
}

.services-grid .service-icon,
.services-grid .service-icon-fa {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    object-fit: contain;
    color: var(--ep-primary);
    border-radius: 50%;
    background: var(--ep-primary-light);
}

.services-grid .service-card h5 { margin-bottom: 0.5rem; }
.services-grid .service-card p { margin-bottom: 0; line-height: 1.55; }


.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
    box-shadow: var(--ep-shadow-lg);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--ep-radius) var(--ep-radius);
}

.category-dropdown-link {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-dropdown-link:hover {
    background-color: var(--ep-primary-light);
    color: var(--ep-primary) !important;
    border-color: rgba(67, 140, 121, 0.2);
    transform: translateX(3px);
}

.category-dropdown-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ep-primary-light);
    color: var(--ep-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--ep-radius-lg);
    margin-bottom: 2rem;
}

.hero-slide {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 2rem;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    color: var(--ep-white);
    text-align: center;
    max-width: 700px;
}

.hero-slide .hero-content h1 {
    font-family: var(--ep-font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-slide .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-slide .hero-content .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--ep-radius-sm);
    margin: 0 0.5rem;
}

.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    margin: 0 4px;
    transition: var(--ep-transition);
}

.hero-indicators button.active {
    background: var(--ep-white);
    width: 30px;
    border-radius: 6px;
}

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--ep-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ep-gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--ep-gray-600);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--ep-primary);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* ---- Product Grid: exactly 5 cards per row on large screens ---- */
/* Bootstrap's default columns give 4 (lg) or 6 (xl); these overrides pin the
   grid to 5 columns on laptop+ desktops while keeping 2/4 on small screens. */
@media (min-width: 992px) {
    .product-grid-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ---- Category Cards Horizontal Scroll ---- */
.categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.categories-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-card-small {
    flex: 0 0 auto;
    width: 140px;
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: var(--ep-transition);
    box-shadow: var(--ep-shadow-sm);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--ep-shadow-lg);
    color: var(--ep-primary);
}

.category-card-small .category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ep-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--ep-primary);
    transition: var(--ep-transition);
}

.category-card-small:hover .category-icon {
    background: var(--ep-primary);
    color: var(--ep-white);
}

.category-card-small h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ep-gray-800);
    margin-bottom: 0.2rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2rem;
    width: 100%;
}

.category-card-small .product-count {
    font-size: 0.7rem;
    color: var(--ep-gray-500);
}

/* ---- Category Cards ---- */

.category-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    overflow: hidden;
    transition: var(--ep-transition);
    box-shadow: var(--ep-shadow-sm);
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ep-shadow-lg);
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--ep-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--ep-primary);
    transition: var(--ep-transition);
}

.category-card:hover .category-icon {
    background: var(--ep-primary);
    color: var(--ep-white);
}

.category-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ep-gray-800);
    margin-bottom: 0.3rem;
}

.category-card .product-count {
    font-size: 0.85rem;
    color: var(--ep-gray-500);
}

/* ---- Product Card ---- */
.product-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    overflow: hidden;
    transition: var(--ep-transition);
    box-shadow: var(--ep-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--ep-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ep-white);
}

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

.product-card .badge-new {
    background: var(--ep-accent);
}

.product-card .badge-featured {
    background: var(--ep-primary);
}

.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background: var(--ep-gray-100);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image-wrapper img {
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-card .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--ep-transition);
}

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

.product-card .product-actions .btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ep-white);
    border: none;
    box-shadow: var(--ep-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ep-gray-600);
    transition: var(--ep-transition);
    cursor: pointer;
}

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

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

.product-card .product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-brand {
    font-size: 0.8rem;
    color: var(--ep-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ep-gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-card .product-name a:hover {
    color: var(--ep-primary);
}

.product-card .product-rating {
    margin-bottom: 0.5rem;
}

.product-card .product-rating .stars {
    color: var(--ep-warning);
    font-size: 0.85rem;
}

.product-card .product-rating .review-count {
    font-size: 0.8rem;
    color: var(--ep-gray-500);
    margin-left: 4px;
}

.product-card .product-price {
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card .current-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-gray-900);
}

.product-card .old-price {
    font-size: 0.9rem;
    color: var(--ep-gray-500);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card .discount-percentage {
    font-size: 0.8rem;
    color: var(--ep-danger);
    font-weight: 600;
    margin-left: 6px;
}

.product-card .product-stock {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.product-card .stock-in {
    color: var(--ep-success);
}

.product-card .stock-out {
    color: var(--ep-danger);
}

.product-card .stock-soon {
    color: var(--ep-warning);
}

.product-card .btn-add-cart {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.5rem;
    border-radius: var(--ep-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    background: var(--ep-primary);
    color: var(--ep-white);
    border: none;
    transition: var(--ep-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    line-height: 1.2;
}

.product-card .btn-add-cart > i,
.product-card .btn-add-cart > .fas,
.product-card .btn-add-cart > .far {
    flex: 0 0 auto;
    margin-right: 0 !important;
    font-size: 0.85em;
}

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

.product-card .btn-add-cart:disabled {
    background: var(--ep-gray-400);
    cursor: not-allowed;
}

/* ---- Deals Section ---- */
.deals-section {
    background: linear-gradient(135deg, var(--ep-primary-dark), var(--ep-primary));
    color: var(--ep-white);
    padding: 3rem 0;
    border-radius: var(--ep-radius-lg);
    margin: 2rem 0;
}

.deals-section .section-title,
.deals-section .section-subtitle {
    color: var(--ep-white);
}

.deals-section .section-divider {
    background: var(--ep-secondary);
}

.deals-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.deals-timer .timer-unit {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--ep-radius-sm);
    min-width: 70px;
}

.deals-timer .timer-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.deals-timer .timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ---- Brand Cards ---- */
.brand-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--ep-transition);
    box-shadow: var(--ep-shadow-sm);
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow);
}

.brand-card .brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ep-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
    padding: 10px;
}

.brand-card .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-header-logo {
    max-width: 140px;
    max-height: 90px;
    object-fit: contain;
}

.brand-card .brand-logo i {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-gray-700);
}

.brand-card h6 {
    font-weight: 600;
    color: var(--ep-gray-800);
}

.brand-card .brand-count {
    font-size: 0.85rem;
    color: var(--ep-gray-500);
}

/* ---- Trust Section ---- */
.trust-section {
    background: var(--ep-white);
    padding: 3rem 0;
    margin: 2rem 0;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-item .trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ep-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--ep-primary);
}

.trust-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--ep-gray-600);
}

/* ---- Promotional Banner ---- */
.promo-banner {
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.promo-banner .promo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.promo-banner .promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,102,204,0.85), rgba(0,76,153,0.7));
}

.promo-banner .promo-content {
    position: relative;
    z-index: 2;
    color: var(--ep-white);
    max-width: 500px;
}

.promo-banner .promo-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.promo-banner .promo-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* ---- Order Detail Page ---- */
.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, var(--ep-dark), #24304a);
    color: #fff;
    border-radius: var(--ep-radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.order-detail-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.order-detail-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0.2rem 0 0.35rem;
}

.order-detail-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.status-pill i { font-size: 0.85rem; }

.status-pill-warning { background: rgba(245, 158, 11, 0.18); color: #FBBF24; }
.status-pill-info { background: rgba(59, 130, 246, 0.18); color: #60A5FA; }
.status-pill-primary { background: rgba(67, 140, 121, 0.2); color: #7ABBAA; }
.status-pill-success { background: rgba(67, 140, 121, 0.2); color: #7ABBAA; }
.status-pill-danger { background: rgba(239, 68, 68, 0.2); color: #F87171; }
.status-pill-secondary { background: rgba(255, 255, 255, 0.12); color: #E5E7EB; }

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .order-detail-grid { grid-template-columns: 1fr; }
}

.od-card {
    background: var(--ep-white);
    border: 1px solid var(--ep-gray-200);
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.od-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ep-gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.od-card-title i { color: var(--ep-primary); }

/* Stepper */
.od-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.od-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.od-step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ep-gray-100);
    border: 2px solid var(--ep-gray-300);
    color: var(--ep-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 0.95rem;
    transition: var(--ep-transition);
}

.od-step::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--ep-gray-300);
    z-index: -1;
}

.od-step:first-child::before { display: none; }

.od-step.done .od-step-marker {
    background: var(--ep-primary);
    border-color: var(--ep-primary);
    color: #fff;
}

.od-step.done::before { background: var(--ep-primary); }

.od-step.cancelled .od-step-marker {
    background: var(--ep-danger);
    border-color: var(--ep-danger);
    color: #fff;
}

.od-step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ep-gray-800);
}

.od-step-sub {
    font-size: 0.74rem;
    color: var(--ep-gray-500);
    margin-top: 0.15rem;
}

@media (max-width: 575px) {
    .od-stepper { flex-direction: column; gap: 1.25rem; align-items: stretch; }
    .od-step { display: flex; align-items: center; gap: 0.85rem; text-align: left; }
    .od-step-marker { margin: 0; flex-shrink: 0; }
    .od-step::before { display: none; }
}

/* Items */
.od-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--ep-gray-100);
}

.od-item:last-of-type { border-bottom: none; }

.od-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--ep-radius-sm);
    object-fit: cover;
    border: 1px solid var(--ep-gray-200);
    flex-shrink: 0;
}

.od-item-info { flex: 1; min-width: 0; }

.od-item-name {
    font-weight: 600;
    color: var(--ep-gray-900);
    text-decoration: none;
    display: block;
}

.od-item-name:hover { color: var(--ep-primary); }

.od-item-meta {
    font-size: 0.82rem;
    color: var(--ep-gray-600);
    margin-top: 0.15rem;
}

.od-item-subtotal {
    font-weight: 700;
    color: var(--ep-gray-900);
    white-space: nowrap;
}

.od-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--ep-gray-700);
}

.od-summary-row.total {
    border-top: 2px solid var(--ep-gray-200);
    margin-top: 0.4rem;
    padding-top: 0.85rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.od-summary-row.total span:last-child { color: var(--ep-primary); }

/* Sidebar info rows */
.od-info-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ep-gray-100);
}

.od-info-row:last-child { border-bottom: none; }

.od-info-row i {
    color: var(--ep-primary);
    width: 18px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.od-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ep-gray-500);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.od-info-value {
    color: var(--ep-gray-800);
    font-size: 0.92rem;
    word-break: break-word;
}


.footer {
    background: var(--ep-dark);
    color: var(--ep-gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--ep-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer a {
    color: var(--ep-gray-400);
    text-decoration: none;
    transition: var(--ep-transition);
}

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

.footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-white);
}

.footer .footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--ep-gray-400);
    transition: var(--ep-transition);
}

.footer .social-links a:hover {
    background: var(--ep-primary);
    color: var(--ep-white);
    padding-left: 0;
}

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

.footer .payment-icons img {
    height: 30px;
    margin-left: 8px;
    opacity: 0.7;
}

/* ---- Cart Page ---- */
.cart-table {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow-sm);
}

.cart-table table {
    margin-bottom: 0;
}

.cart-table th {
    background: var(--ep-gray-100);
    font-weight: 600;
    color: var(--ep-gray-700);
    padding: 1rem;
    border: none;
}

.cart-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ep-gray-200);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--ep-radius-sm);
    background: var(--ep-gray-100);
    padding: 4px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--ep-gray-300);
    border-radius: var(--ep-radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    background: var(--ep-gray-100);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--ep-transition);
}

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

.quantity-selector input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--ep-gray-300);
    border-right: 1px solid var(--ep-gray-300);
    font-weight: 600;
}

.cart-summary {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 1.5rem;
    box-shadow: var(--ep-shadow-sm);
}

.cart-summary h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ep-gray-200);
}

.cart-summary .summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ep-primary);
}

/* ---- Checkout Page ---- */
.checkout-section {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 2rem;
    box-shadow: var(--ep-shadow-sm);
    margin-bottom: 1.5rem;
}

.checkout-section h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ep-primary);
}

.payment-method-card,
.delivery-method-card {
    border: 2px solid var(--ep-gray-200);
    border-radius: var(--ep-radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: var(--ep-transition);
}

.payment-method-card:hover,
.delivery-method-card:hover {
    border-color: var(--ep-primary);
}

.payment-method-card.selected,
.delivery-method-card.selected {
    border-color: var(--ep-primary);
    background: var(--ep-primary-light);
}

/* ---- Product Details Page ---- */
.details-breadcrumb-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
    border-bottom: 1px solid var(--ep-gray-200);
    padding: 0.85rem 0;
}

.product-details-section {
    padding: 1.25rem 0 3rem;
}

.product-gallery,
.product-info-card,
.product-tabs {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-gallery {
    position: sticky;
    top: 105px;
    padding: 1rem;
}

.product-main-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, #ffffff 0, #f2f7f5 72%, #e8f1ed 100%);
}

.product-main-image::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 22px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.10);
    filter: blur(12px);
}

.product-main-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 430px;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.35s ease;
}

.product-main-image:hover img { transform: scale(1.035); }

.product-thumbnails {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    padding: 0.15rem;
}

.product-gallery .thumbnail {
    display: grid;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    padding: 0.35rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f3f7f5;
    cursor: pointer;
    transition: var(--ep-transition);
}

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

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--ep-primary);
    background: var(--ep-primary-light);
    transform: translateY(-2px);
}

.product-info-card {
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
}

.product-info .product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.product-info .product-brand,
.product-info .product-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-info .product-brand {
    color: var(--ep-primary-dark);
    background: var(--ep-primary-light);
}

.product-info .product-category {
    color: var(--ep-gray-600);
    background: var(--ep-gray-100);
}

.product-info .product-title {
    max-width: 700px;
    margin: 0;
    color: var(--ep-gray-900);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.product-info .product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.15rem 0;
    font-size: 0.9rem;
}

.product-info .product-rating .stars { color: #f59e0b; letter-spacing: 0.08em; }
.product-info .rating-value { font-weight: 800; color: var(--ep-gray-800); }
.product-info .rating-count { color: var(--ep-gray-500); }

.product-price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin: 1.35rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--ep-gray-200);
    border-bottom: 1px solid var(--ep-gray-200);
}

.product-price-section .current-price {
    order: 2;
    color: var(--ep-gray-900);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.product-price-section .old-price {
    order: 3;
    color: var(--ep-gray-500);
    font-size: 1rem;
    text-decoration: line-through;
}

.product-price-section .discount-badge {
    order: 1;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-availability { margin: 0 0 1.35rem; }
.product-availability .availability {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 750;
}
.product-availability .in-stock { background: #eef5f3; color: #32685A; }
.product-availability .coming-soon { background: #fffbeb; color: #b45309; }
.product-availability .out-of-stock { background: #fef2f2; color: #b91c1c; }

.product-info .quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 280px;
    margin-bottom: 1rem;
}
.product-info .quantity-selector label { color: var(--ep-gray-700); font-weight: 700; }
.product-info .quantity-selector .input-group { width: 142px; }
.product-info .quantity-selector button { min-width: 40px; }
.product-info .quantity-selector input { font-weight: 700; }

.product-info .product-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-info .product-actions .btn-add-cart {
    min-height: 54px;
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 10px 20px rgba(67, 140, 121, 0.22);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}
.product-info .product-actions .btn-add-cart:hover { transform: translateY(-2px); }

.product-features {
    padding-top: 1.25rem;
    border-top: 1px solid var(--ep-gray-200);
}
.product-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.product-features li { color: var(--ep-gray-700); font-size: 0.86rem; }
.product-features li i { width: 20px; }

.product-tabs {
    margin-top: 2rem;
    overflow: hidden;
}
.product-tabs .nav-tabs {
    gap: 0.2rem;
    padding: 0.6rem 0.8rem 0;
    border-bottom: 1px solid var(--ep-gray-200);
}
.product-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--ep-gray-600);
    font-weight: 700;
    padding: 0.9rem 1rem;
}
.product-tabs .nav-link:hover,
.product-tabs .nav-link.active {
    color: var(--ep-primary-dark);
    background: var(--ep-primary-light);
    border-bottom-color: var(--ep-primary);
}
.product-tabs .tab-content { padding: clamp(1.25rem, 3vw, 2rem); }
.product-description, .specs-text, .shipping-info, .product-reviews { color: var(--ep-gray-700); line-height: 1.8; }
.product-specifications table { margin-bottom: 0; }
.product-specifications th { width: 35%; color: var(--ep-gray-700); }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--ep-gray-200); }
.review-header { display: flex; justify-content: space-between; gap: 1rem; }
.reviewer-info { display: flex; flex-direction: column; }
.reviewer-name { font-weight: 800; color: var(--ep-gray-900); }
.review-date { color: var(--ep-gray-500); font-size: 0.8rem; }
.review-rating { color: #f59e0b; }

.related-products { margin-top: 2.5rem !important; }
.related-products .section-title { display: flex; align-items: center; gap: 0.75rem; }
.related-products .section-title::after { content: ""; height: 3px; width: 46px; border-radius: 99px; background: var(--ep-primary); }

@media (max-width: 991.98px) {
    .product-gallery { position: static; }
    .product-main-image, .product-main-image img { height: min(60vw, 430px); min-height: 320px; }
}

@media (max-width: 575.98px) {
    .product-details-section { padding-top: 0.75rem; }
    .product-main-image, .product-main-image img { height: 300px; min-height: 0; }
    .product-info-card { padding: 1.15rem; }
    .product-info .product-title { font-size: 1.75rem; }
    .product-info .quantity-selector { max-width: none; }
    .product-features ul { grid-template-columns: 1fr; }
    .product-tabs .nav-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .product-tabs .nav-link { white-space: nowrap; padding: 0.75rem; font-size: 0.85rem; }
}

/* ---- Auth Pages ---- */
.auth-section {
    position: relative;
    isolation: isolate;
    padding: 3.25rem 0 4.5rem;
    /* Soft brand wash behind the card, no image asset required */
    background:
        radial-gradient(circle at 12% 8%, rgba(67, 140, 121, 0.13), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(67, 140, 121, 0.10), transparent 46%),
        var(--ep-gray-100);
}

/* Faint grid texture, sits below the card */
.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 78% 65% at 50% 40%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 78% 65% at 50% 40%, #000 20%, transparent 78%);
}

.auth-card {
    --auth-gap: 1.15rem;
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    background: var(--ep-white);
    border: 1px solid rgba(67, 140, 121, 0.14);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 22px 48px -22px rgba(15, 23, 42, 0.20),
        0 0 0 6px rgba(255, 255, 255, 0.55);
}

/* Brand bar across the top edge */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ep-primary-dark), var(--ep-primary) 55%, #7ABBAA);
}

/* Header block */
.auth-card-top {
    padding: 2.1rem 2rem 0.4rem;
    text-align: center;
}

.auth-logo-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.05rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.45rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 12px 24px -10px rgba(67, 140, 121, 0.75);
}

.auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ep-gray-900);
}

.auth-subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ep-gray-600);
}

/* Body: the form itself */
.auth-card-body {
    padding: 1.6rem 2rem 1.75rem;
}

.auth-card .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ep-gray-700);
}

.auth-field + .auth-field { margin-top: var(--auth-gap); }

/* Wrapper that hosts the leading icon and optional eye toggle */
.auth-input { position: relative; }

.auth-input .form-control {
    height: 52px;
    padding: 0 1rem 0 2.85rem;
    border: 1.5px solid var(--ep-gray-300);
    border-radius: 12px;
    background: var(--ep-gray-100);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ep-gray-900);
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input .form-control::placeholder {
    color: var(--ep-gray-500);
    font-weight: 400;
}

.auth-input .form-control:hover { border-color: var(--ep-gray-400); }

.auth-input .form-control:focus {
    background: var(--ep-white);
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(67, 140, 121, 0.15);
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1.05rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--ep-gray-500);
    pointer-events: none;
    transition: color 0.18s ease;
}

.auth-input:focus-within .auth-input-icon { color: var(--ep-primary); }

/* Reserve room for the eye button so the text never runs underneath it */
.auth-input:has(.auth-toggle) .form-control { padding-right: 3.1rem; }

.auth-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ep-gray-500);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.auth-toggle:hover { background: rgba(67, 140, 121, 0.10); color: var(--ep-primary); }
.auth-toggle:focus-visible { outline: 2px solid var(--ep-primary); outline-offset: 2px; }

/* Remember me / forgot password row */
.auth-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin: 1.1rem 0 1.35rem;
}

.auth-meta .form-check { margin: 0; min-height: 0; }
.auth-meta .form-check-label { font-size: 0.85rem; color: var(--ep-gray-700); cursor: pointer; }
.auth-meta .form-check-input { cursor: pointer; }
.auth-meta .form-check-input:checked {
    background-color: var(--ep-primary);
    border-color: var(--ep-primary);
}
.auth-meta .form-check-input:focus {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(67, 140, 121, 0.15);
}

.auth-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ep-primary-dark);
    text-decoration: none;
}

.auth-link:hover { color: var(--ep-primary); text-decoration: underline; }

/* Submit button */
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 12px 24px -12px rgba(67, 140, 121, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit i { transition: transform 0.18s ease; }

.auth-submit:hover { color: #ffffff; }

.auth-submit:hover,
.auth-submit:focus-visible {
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -12px rgba(67, 140, 121, 0.9);
}

.auth-submit:hover i { transform: translateX(3px); }
.auth-submit:focus-visible { outline: 2px solid var(--ep-primary-dark); outline-offset: 2px; }
.auth-submit:active { transform: translateY(0); }

/* Register: wider card with a two-column field grid */
.auth-card-wide {
    max-width: 620px;
    --auth-gap: 1rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--auth-gap);
}

.auth-field-full { grid-column: 1 / -1; }

/* Password requirements note */
.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.05rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(67, 140, 121, 0.07);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ep-gray-700);
}

.auth-hint i {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--ep-primary);
}

/* Terms / privacy consent */
.auth-consent {
    margin: 1.15rem 0 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--ep-gray-200);
}

.auth-consent .form-check { margin: 0; display: flex; align-items: flex-start; gap: 0.55rem; }
.auth-consent .form-check-input {
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    cursor: pointer;
}
.auth-consent .form-check-input:checked {
    background-color: var(--ep-primary);
    border-color: var(--ep-primary);
}
.auth-consent .form-check-input:focus {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(67, 140, 121, 0.15);
}
.auth-consent .form-check-label {
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--ep-gray-600);
    cursor: pointer;
}

/* Alerts inside the card */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-alert i { margin-top: 0.15rem; }
.auth-alert.alert-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.auth-alert.alert-success {
    background: rgba(67, 140, 121, 0.09);
    border-color: rgba(67, 140, 121, 0.28);
    color: var(--ep-primary-dark);
}

/* Footer */
.auth-card-foot {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--ep-gray-200);
    background: var(--ep-gray-100);
    text-align: center;
    font-size: 0.88rem;
    color: var(--ep-gray-600);
}

@media (max-width: 575.98px) {
    .auth-section { padding: 1.75rem 0 3rem; }
    .auth-card { border-radius: 18px; box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.22); }
    .auth-card-top { padding: 1.85rem 1.35rem 0.25rem; }
    .auth-card-body { padding: 1.4rem 1.35rem 1.5rem; }
    .auth-card-foot { padding: 1.1rem 1.35rem; }
    .auth-title { font-size: 1.42rem; }
    /* Stack the register fields on small screens */
    .auth-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit,
    .auth-submit i { transition: none; }
    .auth-submit:hover { transform: none; }
    .auth-submit:hover i { transform: none; }
}

/* ---- Account Dashboard ---- */
.account-sidebar {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 1.5rem;
    box-shadow: var(--ep-shadow-sm);
}

.account-sidebar .nav-link {
    color: var(--ep-gray-700);
    padding: 0.75rem 1rem;
    border-radius: var(--ep-radius-sm);
    transition: var(--ep-transition);
}

.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
    background: var(--ep-primary-light);
    color: var(--ep-primary);
}

.account-content {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 2rem;
    box-shadow: var(--ep-shadow-sm);
}

/* ---- Flash Messages ---- */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--ep-radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ---- Pagination ---- */
.pagination .page-link {
    border-radius: var(--ep-radius-sm);
    margin: 0 3px;
    padding: 0.5rem 1rem;
    color: var(--ep-gray-700);
    border: 1px solid var(--ep-gray-300);
}

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

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

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--ep-gray-600);
}

.breadcrumb-item.active {
    color: var(--ep-primary);
    font-weight: 500;
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 1.5rem;
    box-shadow: var(--ep-shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-sidebar h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ep-gray-200);
}

.filter-sidebar .form-check {
    padding: 0.4rem 0;
}

.filter-block-item {
    color: var(--ep-gray-800);
    background-color: #ffffff;
    border: 1px solid var(--ep-gray-200);
    transition: all 0.2s ease;
}

.filter-block-item:hover,
.filter-block-item.active {
    background-color: var(--ep-primary) !important;
    color: #ffffff !important;
    border-color: var(--ep-primary) !important;
}

.price-range-slider {
    margin: 1rem 0;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--ep-gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ---- Loading Spinner ---- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 350px;
    }

    .hero-slide .hero-content h1 {
        font-size: 2.2rem;
    }

    .mega-menu {
        padding: 1rem;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 280px;
        padding: 2rem 1rem;
    }

    .hero-slide .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-slide .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

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

    .deals-timer .timer-unit {
        min-width: 55px;
        padding: 0.5rem;
    }

    .deals-timer .timer-value {
        font-size: 1.3rem;
    }

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

    .checkout-section {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        display: none;
    }

    .hero-slide .hero-content h1 {
        font-size: 1.5rem;
    }

    .product-card .product-image-wrapper {
        aspect-ratio: auto;
        height: 180px;
    }
}

/* ---- Utility Classes ---- */
.hover-shadow:hover {
    box-shadow: var(--ep-shadow);
}

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

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

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

.btn-primary {
    background-color: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

.btn-primary:hover {
    background-color: var(--ep-primary-dark) !important;
    border-color: var(--ep-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--ep-primary) !important;
    color: var(--ep-white) !important;
}

/* ---- Scroll to Top ---- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--ep-primary);
    color: var(--ep-white);
    border: none;
    box-shadow: var(--ep-shadow);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--ep-transition);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--ep-primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* ---- Floating WhatsApp Button ---- */
/* Locked to the bottom-left corner. The top-bar and mobile nav are also
   fixed, so this offsets itself out of their way at every breakpoint. */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem 0.7rem 0.75rem;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.75), 0 2px 8px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float i { display: block; }

.whatsapp-float-text {
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1EBE5A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(37, 211, 102, 0.85), 0 2px 8px rgba(15, 23, 42, 0.18);
}

.whatsapp-float:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }
.whatsapp-float:active { transform: translateY(0); }

@media (max-width: 991.98px) {
    /* Clear the fixed top bar */
    .whatsapp-float { bottom: 1.25rem; left: 1.25rem; }
}

@media (max-width: 767.98px) {
    /* body gets 65px of bottom padding for the mobile nav; keep clear of it */
    .whatsapp-float { bottom: 4.85rem; left: 1rem; }
    /* Icon-only on phones so it never crowds the content */
    .whatsapp-float { padding: 0.7rem; }
    .whatsapp-float-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { transition: none; }
    .whatsapp-float:hover { transform: none; }
}

/* ---- Contact Page ---- */
.contact-section { padding: 1.75rem 0 4rem; }

.contact-info { display: flex; flex-direction: column; gap: 0.85rem; }

/* The floating WhatsApp launcher is pinned bottom-left, which puts it directly
   over the contact cards on this page. Since the page already offers WhatsApp
   as a card, the launcher moves to the right-hand side here instead of trying
   to reserve space under a column it overlaps beside. */
body:has(.contact-section) .whatsapp-float {
    left: auto;
    right: 1.5rem;
}

/* The mobile nav is fixed at the bottom on small screens, so stay clear of it */
@media (max-width: 767.98px) {
    body:has(.contact-section) .whatsapp-float { right: 1rem; bottom: 4.85rem; }
}

/* Fallback for engines without :has() - keep the launcher off the right edge */
@supports not selector(:has(*)) {
    .contact-section .contact-info { padding-bottom: 5rem; }
}

/* Whole card is a clickable target */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 16px;
    background: var(--ep-white);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    border-color: rgba(67, 140, 121, 0.4);
    box-shadow: 0 16px 32px -20px rgba(15, 23, 42, 0.4);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.1rem;
    color: var(--ep-primary);
    background: rgba(67, 140, 121, 0.10);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-card:hover .contact-icon {
    background: var(--ep-primary);
    color: #ffffff;
}

.contact-card-wa .contact-icon {
    color: #128C4A;
    background: rgba(37, 211, 102, 0.13);
}

.contact-card-wa:hover { border-color: rgba(37, 211, 102, 0.45); }

.contact-card-wa:hover .contact-icon { background: #25D366; color: #ffffff; }

.contact-details { min-width: 0; }

.contact-details h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.contact-details p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ep-gray-600);
    word-break: break-word;
}

.contact-meta {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ep-primary);
}

/* Form card */
.contact-form-card {
    padding: 1.85rem 2rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 20px;
    background: var(--ep-white);
    box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.35);
}

.contact-form-title {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.contact-form-sub {
    margin: 0 0 1.5rem;
    font-size: 0.87rem;
    color: var(--ep-gray-600);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--ep-gray-300);
    border-radius: 11px;
    background: var(--ep-gray-100);
    font-size: 0.9rem;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    background: var(--ep-white);
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(67, 140, 121, 0.15);
}

.contact-form-card .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ep-gray-700);
}

.form-hint { font-weight: 500; color: var(--ep-gray-500); }

.contact-submit { margin-top: 1.4rem; }

/* Map */
.map-title {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.map-container {
    overflow: hidden;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    background: var(--ep-gray-100);
}

.map-container iframe { display: block; width: 100%; }

/* ---- Account Dashboard ---- */
.account-page { padding: 1.75rem 0 4rem; }

.acct-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(67, 140, 121, 0.16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(67, 140, 121, 0.12), transparent 45%),
        linear-gradient(135deg, #f7faf9, #ffffff 60%);
}

.acct-avatar {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 12px 24px -10px rgba(67, 140, 121, 0.75);
}

.acct-hero-text { min-width: 0; flex: 1; }

.acct-hero-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ep-primary);
}

.acct-hero-text h1 {
    margin: 0 0 0.3rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ep-gray-900);
}

.acct-hero-sub {
    margin: 0;
    max-width: 58ch;
    font-size: 0.89rem;
    line-height: 1.55;
    color: var(--ep-gray-600);
}

.acct-hero-cta { white-space: nowrap; gap: 0.5rem; }

/* Summary tiles */
.acct-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.acct-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 16px;
    background: var(--ep-white);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.acct-stat:hover {
    border-color: rgba(67, 140, 121, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -22px rgba(15, 23, 42, 0.45);
}

.acct-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--ep-primary);
    background: rgba(67, 140, 121, 0.10);
}

.acct-stat-body { display: flex; flex-direction: column; min-width: 0; }

.acct-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ep-gray-900);
}

.acct-stat-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ep-gray-500);
}

/* Cards */
.acct-card {
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.15rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    background: var(--ep-white);
}

.acct-card:last-child { margin-bottom: 0; }
.acct-card-flush { padding-bottom: 0.5rem; }

.acct-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.acct-card-head h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.acct-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ep-primary-dark);
    text-decoration: none;
}

.acct-card-link:hover { color: var(--ep-primary); text-decoration: underline; }

.acct-badge {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(67, 140, 121, 0.12);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ep-primary-dark);
}

/* Profile detail rows */
.acct-detail-list {
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
}

.acct-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ep-gray-200);
    font-size: 0.86rem;
    color: var(--ep-gray-700);
    word-break: break-word;
}

.acct-detail-list li:last-child { border-bottom: 0; }

.acct-detail-list i {
    width: 16px;
    margin-top: 0.2rem;
    text-align: center;
    color: var(--ep-primary);
}

.acct-missing { color: var(--ep-muted, #6B7280); font-style: italic; text-decoration: none; }
.acct-missing:hover { color: var(--ep-primary); text-decoration: underline; }

/* Rewards block */
.acct-rewards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.acct-reward {
    padding: 0.85rem 0.95rem;
    border-radius: 13px;
    background: rgba(67, 140, 121, 0.07);
}

.acct-reward-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ep-gray-500);
    margin-bottom: 0.2rem;
}

.acct-reward-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ep-primary-dark);
}

.acct-card-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.acct-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.68rem 1rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.acct-card-action:hover { color: #ffffff; filter: brightness(1.06); transform: translateY(-1px); }

.acct-card-action-ghost {
    background: transparent;
    border: 1.5px solid var(--ep-gray-200);
    color: var(--ep-gray-700);
}

.acct-card-action-ghost:hover {
    color: var(--ep-primary);
    border-color: rgba(67, 140, 121, 0.4);
    background: rgba(67, 140, 121, 0.05);
}

.acct-empty { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--ep-gray-600); }

/* Orders table */
.acct-table thead th {
    padding: 0 1rem 0.7rem;
    border-bottom: 1px solid var(--ep-gray-200);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ep-gray-500);
}

.acct-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ep-gray-200);
    font-size: 0.88rem;
    color: var(--ep-gray-700);
}

.acct-table tbody tr:last-child td { border-bottom: 0; }
.acct-table tbody tr:hover { background: rgba(67, 140, 121, 0.035); }

.acct-order-link { font-weight: 700; color: var(--ep-primary-dark); text-decoration: none; }
.acct-order-link:hover { color: var(--ep-primary); text-decoration: underline; }

.acct-pill {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.acct-pill-success { background: rgba(67, 140, 121, 0.14); color: var(--ep-primary-dark); }
.acct-pill-info { background: rgba(59, 130, 246, 0.14); color: #1D4ED8; }
.acct-pill-danger { background: rgba(239, 68, 68, 0.14); color: #B91C1C; }
.acct-pill-muted { background: var(--ep-gray-200); color: var(--ep-gray-700); }

/* Empty state */
.acct-empty-state { padding: 2.25rem 1.5rem 2.5rem; text-align: center; }

.acct-empty-state > i {
    font-size: 1.9rem;
    color: rgba(67, 140, 121, 0.45);
}

.acct-empty-title {
    margin: 0.85rem 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.acct-empty-text {
    margin: 0 auto 1.25rem;
    max-width: 34ch;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--ep-gray-600);
}

@media (max-width: 991.98px) {
    .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The floating WhatsApp launcher is pinned bottom-left and lands on top of the
   left-rail cards, hiding the phone number / address rows. Split the rail so
   the launcher sits in the gap instead of over the content. */
body:has(.account-page) .whatsapp-float { left: auto; right: 1.5rem; }

@media (max-width: 767.98px) {
    body:has(.account-page) .whatsapp-float { right: 1rem; bottom: 4.85rem; }
}

/* Engines without :has() - reserve space at the foot of the rail instead */
@supports not selector(:has(*)) {
    .account-page .col-lg-4 { padding-bottom: 5rem; }
}

@media (max-width: 767.98px) {
    .account-page { padding: 1.25rem 0 2.75rem; }
    .acct-hero { flex-direction: column; align-items: flex-start; padding: 1.4rem 1.25rem; gap: 1rem; }
    .acct-hero-text h1 { font-size: 1.35rem; }
    .acct-hero-cta { width: 100%; justify-content: center; }
    .acct-card { padding: 1.25rem 1.15rem; }
    .acct-rewards { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Profile Page ---- */
.profile-page { padding: 1.75rem 0 4rem; }

.profile-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 12px 24px -10px rgba(67, 140, 121, 0.75);
}

.profile-card {
    padding: 1.85rem 2rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 20px;
    background: var(--ep-white);
    box-shadow: 0 18px 44px -30px rgba(15, 23, 42, 0.35);
}

.profile-card-title {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.profile-card-sub {
    margin: 0 0 1.5rem;
    font-size: 0.87rem;
    color: var(--ep-gray-600);
}

.profile-card .form-control {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--ep-gray-300);
    border-radius: 11px;
    background: var(--ep-gray-100);
    font-size: 0.9rem;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-card .form-control:focus {
    background: var(--ep-white);
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(67, 140, 121, 0.15);
}

.profile-card .form-control:disabled {
    background: var(--ep-gray-200);
    color: var(--ep-gray-500);
    cursor: not-allowed;
}

.profile-card .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ep-gray-700);
}

.profile-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.55rem 0 0;
    font-size: 0.77rem;
    color: var(--ep-gray-500);
}

.profile-note i { color: var(--ep-primary); }

.profile-submit { max-width: 260px; margin-top: 1.5rem; }

/* Quick links rail */
.profile-links {
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.profile-links li + li { margin-top: 0.5rem; }

.profile-links a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 12px;
    background: var(--ep-white);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ep-gray-700);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-links a:hover {
    border-color: rgba(67, 140, 121, 0.4);
    color: var(--ep-primary);
    transform: translateX(3px);
}

.profile-links a > i:first-child {
    width: 18px;
    text-align: center;
    color: var(--ep-primary);
}

.profile-link-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--ep-gray-400);
}

.profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.15rem;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--ep-gray-200);
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ep-gray-600);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.profile-logout:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
    color: var(--ep-danger);
}

@media (max-width: 767.98px) {
    .profile-page { padding: 1.25rem 0 2.75rem; }
    .profile-card { padding: 1.4rem 1.25rem; }
    .profile-submit { max-width: none; }
}

/* ---- About Page ---- */
.about-section { padding: 1.75rem 0 4rem; }

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ep-gray-900);
}

.about-hero .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ep-gray-600);
}

.about-hero p { line-height: 1.7; color: var(--ep-gray-600); }

.about-image {
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 75% 20%, rgba(67, 140, 121, 0.18), transparent 55%),
        linear-gradient(150deg, #f3f8f6, #ffffff 65%);
    border: 1px solid rgba(67, 140, 121, 0.16);
}

.image-placeholder i { color: var(--ep-primary) !important; }

.icon-circle {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(67, 140, 121, 0.12) !important;
    color: var(--ep-primary) !important;
}

.icon-circle.bg-secondary,
.icon-circle.bg-primary {
    background: rgba(67, 140, 121, 0.12) !important;
    color: var(--ep-primary) !important;
}

.about-section .card {
    border: 1px solid var(--ep-gray-200) !important;
    border-radius: 18px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.about-section .card:hover {
    border-color: rgba(67, 140, 121, 0.35) !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px -24px rgba(15, 23, 42, 0.4);
}

.about-section .card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.about-section .card-text { font-size: 0.9rem; line-height: 1.65; color: var(--ep-gray-600); }

.feature-card {
    height: 100%;
    padding: 1.6rem 1.35rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    background: var(--ep-white);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(67, 140, 121, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -26px rgba(15, 23, 42, 0.45);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(67, 140, 121, 0.10);
}

.feature-icon i { color: var(--ep-primary) !important; font-size: 1.6rem !important; }

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.feature-card p { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--ep-gray-600); }

.service-card {
    height: 100%;
    padding: 1.5rem 1.35rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    background: var(--ep-white);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover { border-color: rgba(67, 140, 121, 0.35); transform: translateY(-3px); }

.service-icon {
    width: 100%;
    height: 130px;
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ep-gray-100);
}

.service-icon img { width: 100%; height: 100%; object-fit: cover; }

.service-card h4 { font-size: 1rem; font-weight: 800; color: var(--ep-gray-900); }
.service-card p { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--ep-gray-600); }

.stats-section .stat-card {
    padding: 1.5rem 1rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 18px;
    background: linear-gradient(160deg, #f7faf9, #ffffff 70%);
}

.stats-section .stat-card h2 { margin-bottom: 0.2rem; color: var(--ep-primary) !important; }
.stats-section .stat-card p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 767.98px) {
    .contact-section, .about-section { padding: 1.25rem 0 2.75rem; }
    .contact-form-card { padding: 1.4rem 1.25rem; }
    .about-image { min-height: 200px; }
}

/* ---- Informational / Content Pages (delivery, FAQ, warranty, terms...) ---- */
.content-page,
.faq-page {
    padding: 1.75rem 0 4rem;
}

.content-breadcrumb { margin-bottom: 1.35rem; }
.content-breadcrumb .breadcrumb { background: transparent; padding: 0; font-size: 0.85rem; }

/* Banner */
.content-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.85rem 2rem;
    margin-bottom: 2.25rem;
    border: 1px solid rgba(67, 140, 121, 0.16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(67, 140, 121, 0.12), transparent 45%),
        linear-gradient(135deg, #f7faf9, #ffffff 60%);
}

.content-hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.4rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    box-shadow: 0 12px 24px -10px rgba(67, 140, 121, 0.75);
}

.content-hero-text h1 {
    margin: 0 0 0.4rem;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ep-gray-900);
}

.content-hero-text > p {
    margin: 0;
    max-width: 62ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ep-gray-600);
}

.content-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.05rem 0 0;
    padding: 0;
    list-style: none;
}

.content-hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(67, 140, 121, 0.10);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ep-primary-dark);
}

/* Numbered content blocks */
.content-block {
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 16px;
    background: var(--ep-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-block:hover {
    border-color: rgba(67, 140, 121, 0.35);
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
}

.content-block-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.content-block-num {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ep-primary);
}

.content-block h2 {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 750;
    color: var(--ep-gray-900);
}

.content-block p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ep-gray-600);
}

/* Support rail */
.content-aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(67, 140, 121, 0.16);
    border-radius: 18px;
    background: linear-gradient(160deg, #f7faf9, #ffffff 70%);
}

.content-aside-title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.content-aside-text {
    margin: 0 0 1.1rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--ep-gray-600);
}

.content-aside-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px -12px rgba(67, 140, 121, 0.85);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.content-aside-action:hover {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.content-aside-list {
    margin: 1.15rem 0 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--ep-gray-200);
    list-style: none;
}

.content-aside-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--ep-gray-700);
}

.content-aside-list i {
    width: 18px;
    text-align: center;
    color: var(--ep-primary);
}

.content-aside-list a {
    color: var(--ep-gray-700);
    text-decoration: none;
    word-break: break-word;
}

.content-aside-list a:hover { color: var(--ep-primary); text-decoration: underline; }

/* FAQ accordion */
.faq-group { margin-bottom: 2rem; }

.faq-group-title {
    margin: 0 0 0.85rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--ep-primary);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ep-gray-900);
}

.faq-accordion .accordion-item {
    margin-bottom: 0.6rem;
    border: 1px solid var(--ep-gray-200);
    border-radius: 14px !important;
    overflow: hidden;
    background: var(--ep-white);
}

.faq-accordion .accordion-button {
    padding: 1.05rem 1.25rem;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--ep-gray-900);
    background: var(--ep-white);
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--ep-primary-dark);
    background: rgba(67, 140, 121, 0.07);
}

.faq-accordion .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.faq-accordion .accordion-button:focus-visible {
    outline: 2px solid var(--ep-primary);
    outline-offset: -2px;
}

.faq-accordion .accordion-body {
    padding: 0 1.25rem 1.15rem;
    font-size: 0.89rem;
    line-height: 1.7;
    color: var(--ep-gray-600);
}

@media (max-width: 767.98px) {
    .content-page, .faq-page { padding: 1.25rem 0 2.75rem; }
    .content-hero { flex-direction: column; padding: 1.4rem 1.25rem; gap: 1rem; }
    .content-hero-text h1 { font-size: 1.6rem; }
    .content-block { padding: 1.15rem 1.15rem; }
    .content-aside { position: static; }
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    padding: 3rem 0;
    color: var(--ep-white);
}

.newsletter-section .form-control {
    border-radius: var(--ep-radius-sm) 0 0 var(--ep-radius-sm);
    padding: 0.75rem 1.25rem;
}

.newsletter-section .btn {
    border-radius: 0 var(--ep-radius-sm) var(--ep-radius-sm) 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* ---- Quick View Modal ---- */
.quick-view-modal .modal-content {
    border-radius: var(--ep-radius-lg);
    border: none;
}

.quick-view-modal .modal-body {
    padding: 2rem;
}

/* ---- Star Rating Input ---- */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--ep-gray-300);
    transition: var(--ep-transition);
    margin-left: 4px;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--ep-warning);
}

/* ---- Order Status Badge ---- */
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ---- Skeleton Loading ---- */
.skeleton {
    background: linear-gradient(90deg, var(--ep-gray-200) 25%, var(--ep-gray-100) 50%, var(--ep-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--ep-radius-sm);
}

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

/* ---- Mobile Bottom Navigation Bar ---- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #ffffff;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--ep-gray-200);
    padding: 6px 0 4px 0;
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 65px !important;
    }
}

.mobile-bottom-nav .nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ep-gray-600);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--ep-transition);
    position: relative;
    padding: 3px 10px;
}

.mobile-bottom-nav .nav-item-link i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: var(--ep-transition);
}

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

.mobile-bottom-nav .nav-item-link.active i {
    transform: translateY(-2px);
    color: var(--ep-primary);
}

.mobile-bottom-nav .cart-badge-mobile {
    position: absolute;
    top: 0px;
    right: 8px;
    background-color: var(--ep-primary);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
}

/* ---- Cart Dropdown (Mini Cart) ---- */
.cart-trigger i {
    font-size: 1.1rem;
}

.cart-dropdown {
    width: 380px;
    max-width: 92vw;
    padding: 0;
    border: none;
    border-radius: var(--ep-radius-lg);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    animation: cartDropdownIn 0.18s ease;
}

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

.cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    color: #fff;
}

.cart-dropdown-header h6 {
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-dropdown-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.cart-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.5rem;
    border-radius: var(--ep-radius);
    transition: background-color 0.15s ease;
}

.cart-item + .cart-item {
    border-top: 1px solid var(--border);
}

.cart-item:hover {
    background: var(--surface-2);
}

.cart-item-media {
    width: 56px;
    height: 56px;
    border-radius: var(--ep-radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

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

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 0.15rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-brand {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ep-primary);
    white-space: nowrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    overflow: hidden;
    height: 26px;
}

.qty-stepper .qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qty-stepper .qty-btn:hover {
    background: var(--ep-primary);
    color: #fff;
}

.qty-stepper .quantity-input {
    width: 30px;
    height: 24px;
    border: none;
    border-left: 1px solid var(--border-strong);
    border-right: 1px solid var(--border-strong);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
}

.qty-stepper .quantity-input::-webkit-outer-spin-button,
.qty-stepper .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--muted-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.cart-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
}

.cart-empty-state i {
    font-size: 2.25rem;
    color: var(--border-strong);
    margin-bottom: 0.75rem;
    display: block;
}

.cart-empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-dropdown-footer {
    padding: 1rem 1.25rem 1.1rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.cart-coupon-row .form-control {
    border-color: var(--border-strong);
    font-size: 0.82rem;
}

.cart-coupon-row .form-control:focus {
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 3px var(--ep-primary-light);
}

.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
}

.cart-subtotal-value {
    color: var(--ep-primary);
    font-size: 1.05rem;
}

.cart-dropdown-footer .btn-primary {
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark));
    border: none;
}

.cart-dropdown-footer .btn-primary:hover {
    filter: brightness(0.95);
}

.cart-dropdown-footer .btn-outline-primary {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
}

.cart-dropdown-footer .btn-outline-primary:hover {
    background: var(--ep-primary);
    color: #fff;
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: 92vw;
    }
}

/* ---- Product Details Responsive Adjustments ---- */
@media (max-width: 576px) {
    .product-gallery {
        margin-bottom: 1rem;
    }
    .product-info {
        text-align: center;
    }
    .product-info .product-title {
        font-size: 1.5rem;
    }
    .product-info .product-price-section {
        justify-content: center;
    }
    .product-info .quantity-selector {
        justify-content: center;
    }
    .product-tabs .nav-tabs {
        flex-wrap: wrap;
    }
}
