/* ============================================
   ECOMMERCE – PREMIUM MODERN THEME
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --ec-primary: #6C5CE7;
    --ec-primary-dark: #5A4BD1;
    --ec-primary-light: #A29BFE;
    --ec-secondary: #00B894;
    --ec-secondary-dark: #00A381;
    --ec-accent: #FD79A8;
    --ec-warning: #FDCB6E;
    --ec-danger: #E17055;

    /* Neutrals */
    --ec-dark: #1A1A2E;
    --ec-dark-2: #16213E;
    --ec-dark-3: #0F3460;
    --ec-gray-900: #212529;
    --ec-gray-700: #495057;
    --ec-gray-500: #8896A4;
    --ec-gray-400: #ADB5BD;
    --ec-gray-300: #CED4DA;
    --ec-gray-200: #E9ECEF;
    --ec-gray-100: #F1F3F5;
    --ec-white: #FFFFFF;
    --ec-bg: #F8F9FA;

    /* Typography */
    --ec-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ec-fs-xs: 0.75rem;
    --ec-fs-sm: 0.875rem;
    --ec-fs-base: 1rem;
    --ec-fs-lg: 1.125rem;
    --ec-fs-xl: 1.25rem;
    --ec-fs-2xl: 1.5rem;
    --ec-fs-3xl: 2rem;
    --ec-fs-4xl: 2.5rem;

    /* Spacing */
    --ec-radius-sm: 8px;
    --ec-radius: 12px;
    --ec-radius-lg: 16px;
    --ec-radius-xl: 24px;
    --ec-radius-pill: 50px;

    /* Shadows */
    --ec-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ec-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ec-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --ec-shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.16);
    --ec-shadow-primary: 0 8px 30px rgba(108, 92, 231, 0.3);

    /* Transitions */
    --ec-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ec-transition-fast: all 0.15s ease;
    --ec-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ec-font);
    background-color: var(--ec-bg);
    color: var(--ec-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ---------- Links ---------- */
a {
    color: var(--ec-primary);
    text-decoration: none;
}


/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.ec-announcement-bar {
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-dark-3) 100%);
    color: var(--ec-white);
    text-align: center;
    padding: 8px 16px;
    font-size: var(--ec-fs-sm);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ec-announcement-bar i {
    margin-right: 6px;
}

/* ============================================
   NAVBAR
   ============================================ */
.ec-navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 0;
    z-index: 1050;
}

.ec-navbar.scrolled {
    box-shadow: var(--ec-shadow-lg);
    padding: 0.4rem 0;
}

.ec-navbar .navbar-brand {
    font-weight: 800;
    font-size: var(--ec-fs-xl);
    color: var(--ec-white) !important;
    letter-spacing: -0.5px;
}

.ec-navbar .navbar-brand img {
    max-height: 38px;
    filter: brightness(1.1);
}

.ec-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: var(--ec-fs-sm);
    padding: 0.5rem 1rem !important;
    border-radius: var(--ec-radius-sm);
    position: relative;
}

.ec-navbar .nav-link:focus,
.ec-navbar .nav-link.active {
    color: var(--ec-white) !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.ec-navbar .dropdown-menu {
    background: var(--ec-white);
    border: none;
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.ec-navbar .dropdown-item {
    border-radius: var(--ec-radius-sm);
    padding: 0.5rem 1rem;
    font-size: var(--ec-fs-sm);
    font-weight: 500;
    color: var(--ec-gray-700);
    transition: var(--ec-transition);
}

.ec-navbar .dropdown-item.active {
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    font-weight: 700;
}


/* Search Bar */
.ec-search-form {
    position: relative;
    max-width: 480px;
    flex: 1;
}

.ec-search-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ec-radius-pill);
    color: var(--ec-white);
    padding: 0.5rem 1rem 0.5rem 2.8rem;
    font-size: var(--ec-fs-sm);
}

.ec-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ec-search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ec-primary-light);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    outline: none;
}

.ec-search-form .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    font-size: var(--ec-fs-sm);
}

.ec-search-form .btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ec-primary);
    border: none;
    border-radius: var(--ec-radius-pill);
    color: var(--ec-white);
    padding: 0.35rem 1rem;
    font-size: var(--ec-fs-sm);
}


/* Cart Badge */
.ec-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ec-accent);
    color: var(--ec-white);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar icons */
.ec-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: var(--ec-fs-sm);
    padding: 0.5rem 0.75rem !important;
}


.ec-nav-icon i {
    font-size: 1.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ec-hero {
    background: linear-gradient(135deg, var(--ec-dark) 0%, var(--ec-dark-3) 50%, var(--ec-primary) 100%);
    color: var(--ec-white);
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.ec-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.ec-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.ec-hero h1 {
    font-size: var(--ec-fs-4xl);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ec-hero p {
    font-size: var(--ec-fs-lg);
    opacity: 0.85;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.ec-hero .ec-btn-primary {
    position: relative;
    z-index: 1;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.ec-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ec-section-header h2 {
    font-size: var(--ec-fs-3xl);
    font-weight: 800;
    color: var(--ec-gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.ec-section-header .ec-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-secondary));
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.ec-btn-primary {
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-dark));
    color: var(--ec-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--ec-radius-pill);
    font-weight: 600;
    font-size: var(--ec-fs-sm);
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}


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

.ec-btn-outline {
    background: transparent;
    color: var(--ec-primary);
    border: 2px solid var(--ec-primary);
    padding: 0.65rem 1.8rem;
    border-radius: var(--ec-radius-pill);
    font-weight: 600;
    font-size: var(--ec-fs-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}


.ec-btn-success {
    background: linear-gradient(135deg, var(--ec-secondary), var(--ec-secondary-dark));
    color: var(--ec-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--ec-radius-pill);
    font-weight: 600;
    font-size: var(--ec-fs-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}


.ec-btn-wishlist {
    background: var(--ec-white);
    color: var(--ec-gray-500);
    border: 2px solid var(--ec-gray-200);
    padding: 0.75rem 1.25rem;
    border-radius: var(--ec-radius-pill);
    font-size: var(--ec-fs-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ec-transition);
}

.ec-btn-wishlist:hover {
    border-color: var(--ec-primary);
    color: var(--ec-primary);
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--ec-shadow-sm);
}

.ec-btn-wishlist i {
    transition: transform 0.2s ease;
}

.ec-btn-wishlist:hover i {
    transform: scale(1.1);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.ec-product-card {
    background: var(--ec-white);
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--ec-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* Image container */
.ec-product-card .ec-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--ec-gray-100);
}

.ec-product-card .ec-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Image overlay */
.ec-product-card .ec-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}


.ec-img-overlay .ec-quick-view {
    background: var(--ec-white);
    color: var(--ec-gray-900);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--ec-radius-pill);
    font-size: var(--ec-fs-sm);
    font-weight: 600;
    cursor: pointer;
    transform: translateY(12px);
    text-decoration: none;
}



/* Badges */
.ec-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--ec-radius-pill);
    font-size: var(--ec-fs-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ec-badge-sale {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: var(--ec-white);
}

.ec-badge-new {
    background: linear-gradient(135deg, var(--ec-secondary), #55EFC4);
    color: var(--ec-white);
}

.ec-badge-label {
    background: var(--ec-secondary);
    color: var(--ec-white);
    right: 12px;
    left: auto;
}

/* Card body */
.ec-product-card .ec-card-body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ec-product-card .ec-category-label {
    color: var(--ec-gray-500);
    font-size: var(--ec-fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.ec-product-card .ec-product-title {
    font-size: var(--ec-fs-sm);
    font-weight: 600;
    color: var(--ec-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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


/* Price */
.ec-price-group {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ec-price {
    font-size: var(--ec-fs-lg);
    font-weight: 800;
    color: var(--ec-primary);
}

.ec-old-price {
    font-size: var(--ec-fs-sm);
    color: var(--ec-gray-500);
    text-decoration: line-through;
    font-weight: 500;
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.ec-product-detail .ec-gallery {
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    box-shadow: var(--ec-shadow);
}

.ec-product-detail .ec-gallery img {
    border-radius: var(--ec-radius-lg);
}

.ec-product-detail .ec-thumb {
    border: 2px solid transparent;
    border-radius: var(--ec-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
}

.ec-product-detail .ec-thumb.active,

.ec-product-detail .ec-detail-title {
    font-size: var(--ec-fs-3xl);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ec-gray-900);
}

.ec-product-detail .ec-detail-price {
    font-size: var(--ec-fs-3xl);
    font-weight: 800;
    color: var(--ec-primary);
}

.ec-product-detail .ec-detail-old-price {
    font-size: var(--ec-fs-xl);
    color: var(--ec-gray-500);
    text-decoration: line-through;
    font-weight: 500;
}

.ec-detail-discount-badge {
    background: linear-gradient(135deg, #FF7675, #D63031);
    color: var(--ec-white);
    font-size: var(--ec-fs-sm);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--ec-radius-pill);
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.25);
    letter-spacing: 0.5px;
}

/* Quantity control */
.ec-qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--ec-gray-300);
    border-radius: var(--ec-radius-pill);
    overflow: hidden;
}

.ec-qty-control button {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: var(--ec-fs-lg);
    cursor: pointer;
    color: var(--ec-gray-700);
}


.ec-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: var(--ec-fs-base);
    background: transparent;
    color: var(--ec-gray-900);
}

.ec-qty-control input:focus {
    outline: none;
}

/* ============================================
   CARDS (GENERIC)
   ============================================ */
.ec-card {
    background: var(--ec-white);
    border-radius: var(--ec-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--ec-shadow-sm);
    overflow: hidden;
}

.ec-card .card-header {
    background: var(--ec-white);
    border-bottom: 1px solid var(--ec-gray-100);
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--ec-gray-900);
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.ec-filter-card {
    background: var(--ec-white);
    border-radius: var(--ec-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--ec-shadow-sm);
    padding: 1.5rem;
}

.ec-filter-card h6 {
    font-weight: 700;
    font-size: var(--ec-fs-sm);
    color: var(--ec-gray-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.ec-breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
}

.ec-breadcrumb .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.ec-breadcrumb .breadcrumb-item {
    font-size: var(--ec-fs-sm);
    color: var(--ec-gray-500);
}

.ec-breadcrumb .breadcrumb-item a {
    color: var(--ec-gray-500);
    text-decoration: none;
}


.ec-breadcrumb .breadcrumb-item.active {
    color: var(--ec-gray-900);
    font-weight: 600;
}

/* ============================================
   CART
   ============================================ */
.ec-cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--ec-gray-100);
}


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

.ec-cart-item img {
    border-radius: var(--ec-radius);
    object-fit: cover;
    width: 80px;
    height: 80px;
}

/* Cart summary */
.ec-order-summary {
    background: var(--ec-white);
    border-radius: var(--ec-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--ec-shadow);
    position: sticky;
    top: 100px;
}

.ec-order-summary .ec-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ec-gray-100);
}

.ec-order-summary .ec-summary-row:last-child {
    border-bottom: none;
}

.ec-order-summary .ec-summary-total {
    font-size: var(--ec-fs-2xl);
    font-weight: 800;
    color: var(--ec-primary);
}

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.ec-auth-card {
    background: var(--ec-white);
    border-radius: var(--ec-radius-xl);
    box-shadow: var(--ec-shadow-lg);
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.ec-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-secondary));
}

.ec-auth-card .ec-auth-body {
    padding: 2.5rem;
}

.ec-auth-card h2 {
    font-weight: 800;
    font-size: var(--ec-fs-2xl);
    text-align: center;
    margin-bottom: 0.25rem;
}

.ec-auth-card .ec-auth-subtitle {
    text-align: center;
    color: var(--ec-gray-500);
    font-size: var(--ec-fs-sm);
    margin-bottom: 2rem;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.ec-form-control {
    border: 2px solid var(--ec-gray-300);
    border-radius: var(--ec-radius);
    padding: 0.65rem 1rem;
    font-size: var(--ec-fs-sm);
    font-family: var(--ec-font);
    background: var(--ec-white);
}

.ec-form-control:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    outline: none;
}

.ec-form-control::placeholder {
    color: var(--ec-gray-500);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* ============================================
   PROFILE SIDEBAR
   ============================================ */
.ec-profile-sidebar .list-group-item {
    border: none;
    border-radius: var(--ec-radius-sm) !important;
    padding: 0.75rem 1rem;
    margin-bottom: 2px;
    font-weight: 500;
    color: var(--ec-gray-700);
}


.ec-profile-sidebar .list-group-item.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--ec-primary);
    font-weight: 600;
}


/* ============================================
   FORMS & SWITCHES
   ============================================ */
.form-check-input:checked {
    background-color: var(--ec-primary);
    border-color: var(--ec-primary);
}

.form-check-input:focus {
    border-color: var(--ec-primary-light);
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
}

.ec-form-control {
    border: 1px solid var(--ec-gray-300);
    border-radius: var(--ec-radius);
    padding: 0.75rem 1rem;
    font-size: var(--ec-fs-sm);
}

.ec-form-control:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.ec-footer {
    background: linear-gradient(180deg, var(--ec-dark) 0%, #0D0D1A 100%);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
    padding-bottom: 0;
    margin-top: 4rem;
}

.ec-footer h5 {
    color: var(--ec-white);
    font-weight: 700;
    font-size: var(--ec-fs-base);
    margin-bottom: 1.5rem;
    position: relative;
}

.ec-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--ec-primary);
    border-radius: 1px;
}

.ec-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--ec-fs-sm);
}


.ec-footer ul li {
    margin-bottom: 0.65rem;
}

.ec-footer .ec-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
}


.ec-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--ec-fs-sm);
}

/* ============================================
   PAGINATION
   ============================================ */
.ec-pagination .page-item .page-link {
    border: none;
    border-radius: var(--ec-radius-sm);
    margin: 0 3px;
    color: var(--ec-gray-700);
    font-weight: 600;
    font-size: var(--ec-fs-sm);
    padding: 0.5rem 0.85rem;
}


.ec-pagination .page-item.active .page-link {
    background: var(--ec-primary);
    color: var(--ec-white);
    box-shadow: var(--ec-shadow-primary);
}

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

.ec-empty-state i {
    font-size: 2rem;
    color: var(--ec-gray-300);
    margin-right: 0.5rem;
    display: block;
}

.ec-empty-state h4 {
    font-weight: 700;
    color: var(--ec-gray-700);
    margin-bottom: 0.5rem;
}

.ec-empty-state p {
    color: var(--ec-gray-500);
    margin-bottom: 1.5rem;
}

/* ============================================
   ADDRESS CARD
   ============================================ */
.address-card {
    border-width: 2px !important;
    border-radius: var(--ec-radius) !important;
    border-color: var(--ec-gray-300) !important;
}


.address-card.border-primary {
    border-color: var(--ec-primary) !important;
    background-color: rgba(108, 92, 231, 0.05) !important;
}

.address-card h6 {
    color: var(--ec-gray-900);
}

.address-card p {
    color: var(--ec-gray-700);
}

/* ============================================
   ORDER STATUS BADGES
   ============================================ */
.ec-status-badge {
    padding: 5px 14px;
    border-radius: var(--ec-radius-pill);
    font-size: var(--ec-fs-xs);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ============================================
   ANIMATIONS
   ============================================ */





/* Fade-up on scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-up:nth-child(1) {}

.stagger-children .fade-up:nth-child(2) {}

.stagger-children .fade-up:nth-child(3) {}

.stagger-children .fade-up:nth-child(4) {}

.stagger-children .fade-up:nth-child(5) {}

.stagger-children .fade-up:nth-child(6) {}

.stagger-children .fade-up:nth-child(7) {}

.stagger-children .fade-up:nth-child(8) {}

/* ============================================
   NESTED DROPDOWN (preserve existing logic)
   ============================================ */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

@media (min-width: 992px) {
    .dropdown-menu .dropdown-toggle:after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
    }

    .dropdown-menu .dropdown-menu {
        margin-left: 0;
        margin-right: 0;
    }

    .dropdown-menu li {
        position: relative;
    }

    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .ec-hero h1 {
        font-size: var(--ec-fs-3xl);
    }

    .ec-search-form {
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .ec-navbar .navbar-collapse {
        background: var(--ec-dark);
        border-radius: var(--ec-radius);
        padding: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .ec-hero {
        padding: 3rem 0;
    }

    .ec-hero h1 {
        font-size: var(--ec-fs-2xl);
    }

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

    .ec-section-header h2 {
        font-size: var(--ec-fs-2xl);
    }
}

/* ============================================
   COUPON INPUT
   ============================================ */
.ec-coupon-input .form-control {
    border-radius: var(--ec-radius-pill) 0 0 var(--ec-radius-pill);
    border: 2px solid var(--ec-gray-300);
    padding: 0.6rem 1rem;
    font-size: var(--ec-fs-sm);
}

.ec-coupon-input .btn {
    border-radius: 0 var(--ec-radius-pill) var(--ec-radius-pill) 0;
    background: var(--ec-primary);
    color: var(--ec-white);
    border: 2px solid var(--ec-primary);
    font-weight: 600;
    font-size: var(--ec-fs-sm);
    padding: 0.6rem 1.2rem;
}


/* ============================================
   SORT SELECT
   ============================================ */
.ec-sort-select {
    border: 2px solid var(--ec-gray-300);
    border-radius: var(--ec-radius-pill);
    padding: 0.4rem 1rem;
    font-size: var(--ec-fs-sm);
    font-weight: 500;
    color: var(--ec-gray-700);
    background: var(--ec-white);
}

.ec-sort-select:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* ============================================
   TOOLTIPS & MISC
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--ec-gray-300);
    border-radius: 4px;
}


/* Toast notifications */
.ec-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* ============================================
   HERO SLIDER / CAROUSEL
   ============================================ */
.ec-slider-section {
    margin-bottom: 2rem;
}

.ec-slide {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.ec-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(108, 92, 231, 0.5) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.ec-slide .container {
    position: relative;
    z-index: 2;
}

.ec-slide-content {
    max-width: 620px;
}

/* Smooth horizontal slide transition */
#heroCarousel .carousel-item {}

.ec-slide-title {
    font-family: var(--ec-font);
    font-size: 3rem;
    font-weight: 800;
    color: var(--ec-white);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ec-slide-desc {
    font-family: var(--ec-font);
    font-size: var(--ec-fs-lg);
    color: var(--ec-white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.ec-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 2rem;
    background: var(--ec-primary);
    color: var(--ec-white);
    font-family: var(--ec-font);
    font-weight: 600;
    font-size: var(--ec-fs-base);
    border-radius: var(--ec-radius-pill);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}


/* Carousel Arrows */
.ec-carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-white);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 1;
    transition: var(--ec-transition);
}

.carousel-control-prev:hover .ec-carousel-arrow,
.carousel-control-next:hover .ec-carousel-arrow {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    transform: scale(1.1);
}


/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    margin-bottom: 1.5rem;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    opacity: 0.7;
    margin: 0 5px;
}

#heroCarousel .carousel-indicators button.active {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* Carousel Animation */

.carousel-item.active .ec-slide-content {}

/* Responsive */
@media (max-width: 991.98px) {
    .ec-slide {
        height: 420px;
    }

    .ec-slide-title {
        font-size: 2.25rem;
    }

    .ec-slide-desc {
        font-size: var(--ec-fs-base);
    }
}

@media (max-width: 767.98px) {
    .ec-slide {
        height: 360px;
    }

    .ec-slide-title {
        font-size: 1.75rem;
    }

    .ec-slide-content {
        text-align: center;
        max-width: 100%;
    }

    .ec-slide-desc {
        max-width: 100%;
        font-size: var(--ec-fs-sm);
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.ec-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.ec-toast {
    background: var(--ec-white);
    color: var(--ec-gray-900);
    min-width: 300px;
    padding: 1rem 1.25rem;
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--ec-primary);
    transition: all 0.3s ease;
}

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

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

.ec-toast.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.ec-toast i {
    font-size: 1.25rem;
}

.ec-toast-success i {
    color: var(--ec-secondary);
}

.ec-toast-error i {
    color: var(--ec-danger);
}

.ec-toast-content {
    flex: 1;
}

.ec-toast-title {
    font-weight: 700;
    font-size: var(--ec-fs-sm);
    margin-bottom: 0.1rem;
    display: block;
}

.ec-toast-message {
    font-size: var(--ec-fs-xs);
    color: var(--ec-gray-500);
}

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

/* ============================================
   GLOBAL MODAL
   ============================================ */
.ec-modal-content {
    border-radius: var(--ec-radius-lg);
    border: none;
    box-shadow: var(--ec-shadow-xl);
    overflow: hidden;
}

.ec-modal-header .modal-title {
    font-weight: 700;
    font-size: var(--ec-fs-lg);
    width: 100%;
    text-align: center;
    margin: 0;
}

/* Small improvement to center title properly */
.ec-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem 1.5rem 0.5rem;
}

.ec-modal-header .btn-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    margin: 0;
    z-index: 10;
}

.ec-modal-message {
    font-size: var(--ec-fs-base);
    line-height: 1.6;
}

/* ============================================
   PAYMENT TABS
   ============================================ */
.nav-pills.ec-payment-tabs {
    background: var(--ec-gray-50) !important;
    padding: 0.5rem;
    border-radius: var(--ec-radius);
    border: 1px solid var(--ec-gray-200);
}

.nav-pills.ec-payment-tabs .nav-link {
    color: var(--ec-gray-700);
    font-weight: 600;
    border-radius: var(--ec-radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-pills.ec-payment-tabs .nav-link:hover:not(.active) {
    background: var(--ec-gray-200);
    color: var(--ec-gray-900);
}

.nav-pills.ec-payment-tabs .nav-link.active {
    background: var(--ec-primary) !important;
    color: var(--ec-white) !important;
    box-shadow: var(--ec-shadow-primary);
    border-color: transparent;
}

.nav-pills.ec-payment-tabs .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* Bank Options */
.bank-option {
    border: 2px solid var(--ec-gray-200) !important;
    border-radius: var(--ec-radius);
    padding: 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bank-option:hover {
    border-color: var(--ec-primary-light) !important;
}

.bank-option.selected {
    border-color: var(--ec-primary) !important;
    background: rgba(108, 92, 231, 0.05) !important;
    /* ec-primary with low opacity */
}

.bank-option .bank-radio i {
    font-size: 1.25rem;
}