/* =============================================================
   Cartify Theme — Custom Design System
   100% Original • Bootstrap 5 Based • Responsive
   ============================================================= */

/* === Design Tokens === */
:root {
    --ct-primary: #2E7D32;
    --ct-primary-light: #43A047;
    --ct-primary-lighter: #66BB6A;
    --ct-primary-dark: #1B5E20;
    --ct-secondary: #A67C00;
    --ct-secondary-light: #C49B30;
    --ct-secondary-dark: #7A5C00;
    --ct-success: #2E7D32;
    --ct-success-dark: #1B5E20;
    --ct-danger: #ef4444;
    --ct-info: #388E3C;
    --ct-info-light: #E8F5E9;
    --ct-dark: #1a2e1a;
    --ct-dark-light: #2d3e2d;
    --ct-gray-50: #f8faf8;
    --ct-gray-100: #f1f5f1;
    --ct-gray-200: #e2e8e2;
    --ct-gray-300: #cbd5cb;
    --ct-gray-400: #94a894;
    --ct-gray-500: #647864;
    --ct-gray-600: #475647;
    --ct-gray-700: #334133;
    --ct-gray-800: #1e2b1e;
    --ct-white: #ffffff;
    --ct-body-bg: #f8faf8;
    --ct-hero-bg-1: #E8F5E9;
    --ct-hero-bg-2: #C8E6C9;
    --ct-hero-bg-3: #A5D6A7;
    --ct-auth-bg-1: #f0f5f0;
    --ct-auth-bg-2: #e0ece0;
    --ct-auth-bg-3: #d0e0d0;
    --ct-newsletter-bg-1: #1a2e1a;
    --ct-newsletter-bg-2: #1B5E20;
    --ct-newsletter-bg-3: #2E7D32;
    --ct-toast-success-1: #2E7D32;
    --ct-toast-success-2: #43A047;
    --ct-toast-error-1: #dc3545;
    --ct-toast-error-2: #e66570;
    --ct-avatar-gradient-1: #43A047;
    --ct-avatar-gradient-2: #1B5E20;
    --ct-sidebar-active: #1B5E20;
    --ct-font-sans: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    --ct-font-heading: 'Inter', 'Raleway', system-ui, sans-serif;
    --ct-radius-sm: 8px;
    --ct-radius: 12px;
    --ct-radius-lg: 16px;
    --ct-radius-xl: 24px;
    --ct-radius-pill: 50rem;
    --ct-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ct-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --ct-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
    --ct-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --ct-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ct-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Bootstrap Variable Overrides === */
:root {
    --bs-primary: var(--ct-primary);
    --bs-secondary: var(--ct-secondary);
    --bs-body-font-family: var(--ct-font-sans);
    --bs-body-bg: var(--ct-body-bg);
    --bs-body-color: var(--ct-dark);
}

/* === Base Styles === */
body {
    font-family: var(--ct-font-sans);
    color: var(--ct-dark);
    background: var(--ct-body-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ct-font-heading);
    font-weight: 700;
    color: var(--ct-dark);
    line-height: 1.3;
}

a {
    color: var(--ct-primary);
    text-decoration: none;
    transition: color var(--ct-transition);
}

a:hover {
    color: var(--ct-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Spinner === */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0s linear 0.4s;
    z-index: 99999;
    background: var(--ct-white);
}

#spinner.show {
    transition: opacity 0.6s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.ct-spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--ct-gray-200);
    border-top-color: var(--ct-primary);
    border-radius: 50%;
    animation: ct-spin 0.8s linear infinite;
}

@keyframes ct-spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Buttons === */
.btn {
    font-family: var(--ct-font-sans);
    font-weight: 600;
    border-radius: var(--ct-radius-sm);
    padding: 0.5rem 1.25rem;
    transition: all var(--ct-transition);
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--ct-shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--ct-primary);
    border-color: var(--ct-primary);
    color: var(--ct-white);
}

.btn-primary:hover {
    background: var(--ct-primary-dark);
    border-color: var(--ct-primary-dark);
}

.btn-secondary {
    background: var(--ct-secondary);
    border-color: var(--ct-secondary);
    color: var(--ct-dark);
}

.btn-secondary:hover {
    background: var(--ct-secondary-dark);
    border-color: var(--ct-secondary-dark);
}

.btn-outline-primary {
    color: var(--ct-primary);
    border-color: var(--ct-primary);
}

.btn-outline-primary:hover {
    background: var(--ct-primary);
    color: var(--ct-white);
}

.btn-pill {
    border-radius: var(--ct-radius-pill);
    padding: 0.625rem 1.75rem;
}

.btn-pill-lg {
    border-radius: var(--ct-radius-pill);
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-primary-light));
    border: none;
    color: var(--ct-white);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--ct-primary-dark), var(--ct-primary));
    color: var(--ct-white);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

/* Icon button squares */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

.btn-icon-lg {
    width: 48px;
    height: 48px;
}

/* === Topbar === */
.ct-topbar {
    background: var(--ct-dark);
    color: var(--ct-gray-400);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
}

.ct-topbar a {
    color: var(--ct-gray-300);
    transition: color var(--ct-transition);
}

.ct-topbar a:hover {
    color: var(--ct-secondary);
}

/* === Navbar === */
.ct-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    transition: all var(--ct-transition);
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
    z-index: 1030;
}

.ct-navbar.scrolled {
    box-shadow: var(--ct-shadow);
    border-bottom: 1px solid var(--ct-gray-200);
    padding: 0.5rem 0;
}

.ct-navbar .navbar-brand {
    font-family: var(--ct-font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--ct-primary);
    letter-spacing: -0.03em;
}

.ct-navbar .navbar-brand:hover {
    color: var(--ct-primary-dark);
}

.ct-navbar .nav-link {
    font-weight: 500;
    color: var(--ct-gray-600);
    padding: 0.5rem 1rem !important;
    transition: color var(--ct-transition);
    font-size: 0.9375rem;
    position: relative;
}

.ct-navbar .nav-link:hover,
.ct-navbar .nav-link.active {
    color: var(--ct-primary);
}

.ct-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--ct-primary);
    border-radius: 2px;
}

.ct-navbar .dropdown-menu {
    border: 1px solid var(--ct-gray-200);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-md);
    padding: 0.5rem;
    min-width: 200px;
}

.ct-navbar .dropdown-item {
    border-radius: var(--ct-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ct-gray-600);
    transition: all var(--ct-transition);
}

.ct-navbar .dropdown-item:hover {
    background: var(--ct-gray-100);
    color: var(--ct-primary);
}

/* Nav actions (search, cart, user icons) */
.ct-nav-actions .btn-icon {
    color: var(--ct-gray-600);
    background: transparent;
    border: none;
    position: relative;
}

.ct-nav-actions .btn-icon:hover {
    color: var(--ct-primary);
    background: var(--ct-gray-100);
}

.ct-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--ct-secondary);
    color: var(--ct-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile nav toggle */
.ct-navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--ct-dark);
}

.ct-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* === Inline Search Bar (Desktop) === */
.ct-nav-search {
    flex: 1 1 auto;
    max-width: 640px;
    margin: 0 2rem;
}

.ct-search-form {
    position: relative;
}

.ct-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ct-search-icon {
    position: absolute;
    left: 14px;
    color: var(--ct-gray-400);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.ct-search-input {
    width: 100%;
    padding: 0.55rem 5.5rem 0.55rem 2.5rem;
    border: 2px solid var(--ct-gray-200);
    border-radius: var(--ct-radius-pill);
    font-size: 0.875rem;
    color: var(--ct-dark);
    background: var(--ct-gray-50);
    outline: none;
    transition: all 0.25s ease;
}

.ct-search-input::placeholder {
    color: var(--ct-gray-400);
}

.ct-search-input:focus {
    border-color: var(--ct-primary);
    background: var(--ct-white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.ct-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1rem;
    border-radius: var(--ct-radius-pill);
    border: none;
    background: var(--ct-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ct-search-btn:hover {
    background: var(--ct-primary-dark);
}

/* Live Search Results Dropdown */
.ct-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-lg);
    border: 1px solid var(--ct-gray-200);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.ct-search-dropdown.active {
    display: block;
    animation: ct-dropdown-in 0.2s ease;
}

@keyframes ct-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Result Item */
.ct-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--ct-dark);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--ct-gray-100);
}

.ct-search-item:last-of-type {
    border-bottom: none;
}

.ct-search-item:hover,
.ct-search-item.ct-search-item-active {
    background: var(--ct-gray-50);
    color: var(--ct-dark);
}

.ct-search-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--ct-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ct-gray-100);
    border: 1px solid var(--ct-gray-200);
}

.ct-search-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-search-item-info {
    flex: 1;
    min-width: 0;
}

.ct-search-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-search-item-price {
    font-size: 0.8rem;
    color: var(--ct-primary);
    font-weight: 700;
}

.ct-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.ct-search-item-cat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ct-gray-500);
    background: var(--ct-gray-100);
    padding: 1px 8px;
    border-radius: var(--ct-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ct-search-item-arrow {
    color: var(--ct-gray-300);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.ct-search-item:hover .ct-search-item-arrow,
.ct-search-item.ct-search-item-active .ct-search-item-arrow {
    color: var(--ct-primary);
    transform: translateX(2px);
}

/* Empty State */
.ct-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 14px;
    color: var(--ct-gray-400);
    font-size: 0.875rem;
}

.ct-search-empty i {
    font-size: 1.25rem;
}

/* View All Link */
.ct-search-view-all {
    display: block;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ct-primary);
    text-decoration: none;
    border-top: 1px solid var(--ct-gray-200);
    transition: background 0.15s ease;
}

.ct-search-view-all:hover {
    background: var(--ct-gray-50);
    color: var(--ct-primary-dark);
}

/* Mobile search dropdown positioning */
.ct-mobile-search .ct-search-wrapper {
    position: relative;
}

.ct-mobile-search .ct-search-dropdown {
    left: 0;
    right: 0;
}

/* === Mobile Search Bar (Slides Down) === */
.ct-mobile-search {
    background: var(--ct-white);
    border-bottom: 1px solid var(--ct-gray-200);
    padding: 0.75rem 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ct-mobile-search.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-mobile-search .ct-search-input {
    padding-right: 2.5rem;
}

.ct-search-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ct-gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.ct-search-close:hover {
    color: var(--ct-dark);
}

/* === Nav Highlight (Deals) === */
.ct-nav-highlight {
    color: var(--ct-danger) !important;
    font-weight: 600 !important;
}

.ct-nav-highlight:hover {
    color: var(--ct-primary) !important;
}

/* === Offcanvas Enhancements === */
.ct-offcanvas-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ct-gray-400);
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    padding-left: 0.5rem;
}

.ct-offcanvas-sub a {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
}


/* === Hero Section === */
.ct-hero {
    background: linear-gradient(135deg, var(--ct-hero-bg-1) 0%, var(--ct-hero-bg-2) 50%, var(--ct-hero-bg-3) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.ct-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ct-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.ct-hero-subtitle {
    color: var(--ct-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.ct-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ct-dark);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.ct-hero h1 span {
    color: var(--ct-primary);
}

.ct-hero-search {
    position: relative;
    max-width: 480px;
}

.ct-hero-search .form-control {
    border-radius: var(--ct-radius-pill);
    padding: 0.875rem 1.5rem;
    padding-right: 120px;
    border: 2px solid var(--ct-gray-200);
    background: var(--ct-white);
    font-size: 0.9375rem;
    box-shadow: var(--ct-shadow);
}

.ct-hero-search .form-control:focus {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), var(--ct-shadow);
}

.ct-hero-search .btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: var(--ct-radius-pill);
    padding: 0 1.5rem;
}

.ct-hero-carousel .carousel-item img {
    border-radius: var(--ct-radius-lg);
    box-shadow: var(--ct-shadow-lg);
}

.ct-hero-carousel .carousel-control-prev,
.ct-hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--ct-white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: var(--ct-shadow);
}

.ct-hero-carousel .carousel-control-prev {
    left: -20px;
}

.ct-hero-carousel .carousel-control-next {
    right: -20px;
}

.ct-hero-carousel .carousel-control-prev-icon,
.ct-hero-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(0);
    width: 16px;
    height: 16px;
}

/* === Page Header (Inner Pages) === */
.ct-page-header {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-light) 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ct-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ct-page-header h1 {
    color: var(--ct-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.ct-page-header .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
    position: relative;
}

.ct-page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.ct-page-header .breadcrumb-item a:hover {
    color: var(--ct-white);
}

.ct-page-header .breadcrumb-item.active {
    color: var(--ct-white);
}

.ct-page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* === Features Section === */
.ct-features {
    padding: 4rem 0;
}

.ct-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--ct-radius);
    background: var(--ct-white);
    border: 1px solid var(--ct-gray-100);
    transition: all var(--ct-transition);
}

.ct-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ct-shadow-md);
    border-color: transparent;
}

.ct-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--ct-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--ct-transition);
}

.ct-feature-icon.icon-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--ct-primary);
}

.ct-feature-icon.icon-secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--ct-secondary-dark);
}

.ct-feature-icon.icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ct-success);
}

.ct-feature-icon.icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ct-danger);
}

.ct-feature-card h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ct-feature-card p {
    color: var(--ct-gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* === Section Headings === */
.ct-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.ct-section-subtitle {
    color: var(--ct-gray-500);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* === Product Card === */
.ct-product-card {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    overflow: hidden;
    border: 1px solid var(--ct-gray-100);
    transition: all var(--ct-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ct-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ct-shadow-lg);
    border-color: transparent;
}

.ct-product-card .ct-product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.ct-product-card .ct-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ct-transition-slow);
}

.ct-product-card:hover .ct-product-img img {
    transform: scale(1.08);
}

.ct-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ct-primary);
    color: var(--ct-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--ct-radius-pill);
    z-index: 2;
}

.ct-product-badge.badge-sale {
    background: var(--ct-danger);
}

.ct-product-card .ct-product-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ct-product-card .ct-product-category {
    font-size: 0.75rem;
    color: var(--ct-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.ct-product-card .ct-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ct-product-card .ct-product-title a {
    color: var(--ct-dark);
    transition: color var(--ct-transition);
}

.ct-product-card .ct-product-title a:hover {
    color: var(--ct-primary);
}

.ct-product-card .ct-product-desc {
    font-size: 0.85rem;
    color: var(--ct-gray-500);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ct-product-card .ct-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.ct-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ct-dark);
}

.ct-product-price .ct-price-old {
    font-size: 0.85rem;
    color: var(--ct-gray-400);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.25rem;
}

.ct-add-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-gray-100);
    color: var(--ct-primary);
    border: none;
    transition: all var(--ct-transition);
    cursor: pointer;
    font-size: 1rem;
}

.ct-add-cart-btn:hover {
    background: var(--ct-primary);
    color: var(--ct-white);
    transform: scale(1.1);
}

/* === Category Tabs (Home) === */
.ct-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ct-category-tabs .nav-link {
    background: var(--ct-gray-100);
    color: var(--ct-gray-600);
    border-radius: var(--ct-radius-pill);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: all var(--ct-transition);
}

.ct-category-tabs .nav-link:hover {
    background: var(--ct-gray-200);
    color: var(--ct-dark);
}

.ct-category-tabs .nav-link.active {
    background: var(--ct-primary);
    color: var(--ct-white);
}

/* === CTA Banner === */
.ct-cta-banner {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-light) 100%);
    border-radius: var(--ct-radius-lg);
    padding: 4rem 3rem;
    color: var(--ct-white);
    position: relative;
    overflow: hidden;
}

.ct-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ct-cta-banner h2 {
    color: var(--ct-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ct-cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ct-cta-banner .btn {
    background: var(--ct-white);
    color: var(--ct-primary);
    font-weight: 700;
    border: none;
}

.ct-cta-banner .btn:hover {
    background: var(--ct-secondary);
    color: var(--ct-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* === Stats / Counters === */
.ct-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-sm);
    transition: all var(--ct-transition);
}

.ct-stat-card:hover {
    box-shadow: var(--ct-shadow);
    transform: translateY(-2px);
}

.ct-stat-card i {
    font-size: 2.5rem;
    color: var(--ct-primary);
    margin-bottom: 0.75rem;
}

.ct-stat-card .ct-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ct-dark);
    line-height: 1.2;
}

.ct-stat-card .ct-stat-label {
    color: var(--ct-gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Testimonials === */
.ct-testimonials {
    background: var(--ct-gray-50);
}

.ct-testimonial-card {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    padding: 2rem;
    box-shadow: var(--ct-shadow-sm);
    border: 1px solid var(--ct-gray-100);
    height: 100%;
}

.ct-testimonial-card .ct-quote-icon {
    color: var(--ct-primary);
    opacity: 0.2;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ct-testimonial-card p {
    color: var(--ct-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ct-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ct-testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ct-testimonial-author h6 {
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.ct-testimonial-author small {
    color: var(--ct-gray-400);
    font-size: 0.8125rem;
}

.ct-testimonial-stars i {
    color: var(--ct-secondary);
    font-size: 0.8125rem;
}

.ct-testimonial-stars i.empty {
    color: var(--ct-gray-300);
}

/* === Sidebar Filters === */
.ct-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem;
    align-self: start;
}

@media (max-width: 991.98px) {
    .ct-sidebar-sticky {
        position: static;
    }
}

.ct-sidebar-card {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    border: 1px solid var(--ct-gray-100);
    margin-bottom: 0.75rem;
}

.ct-sidebar-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color var(--ct-transition);
}

.ct-sidebar-card h5:hover {
    color: var(--ct-primary);
}

.ct-sidebar-card h5 .ct-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ct-sidebar-card h5 .ct-filter-toggle {
    font-size: 0.7rem;
    color: var(--ct-gray-400);
    transition: transform 0.3s ease;
}

.ct-sidebar-card.collapsed h5 .ct-filter-toggle {
    transform: rotate(-90deg);
}

.ct-sidebar-card .ct-filter-body {
    padding: 0 1.25rem 1rem;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}

.ct-sidebar-card.collapsed .ct-filter-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* === Mobile Filter Offcanvas === */
.ct-filter-offcanvas {
    max-width: 320px;
}

.ct-filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--ct-gray-200);
    padding: 1rem 1.25rem;
}

.ct-filter-offcanvas .offcanvas-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ct-dark);
}

.ct-filter-offcanvas .offcanvas-body {
    padding: 0.75rem;
}

.ct-filter-offcanvas .ct-sidebar-card {
    border: none;
    border-bottom: 1px solid var(--ct-gray-100);
    border-radius: 0;
    margin-bottom: 0;
}

.ct-filter-offcanvas .ct-sidebar-card:last-child {
    border-bottom: none;
}

.ct-filter-toggle-btn {
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Active filter badge */
.ct-filter-badge {
    background: var(--ct-primary);
    color: var(--ct-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--ct-radius-pill);
    margin-left: 0.5rem;
}

/* Active Filters Bar */
.ct-active-filters {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    border: 1px solid var(--ct-gray-100);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.ct-active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ct-active-filters-header span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ct-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ct-active-filters-header a {
    font-size: 0.75rem;
    color: var(--ct-danger);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--ct-transition);
}

.ct-active-filters-header a:hover {
    opacity: 0.7;
}

.ct-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.ct-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--ct-gray-100);
    color: var(--ct-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--ct-radius-pill);
    text-decoration: none;
    transition: all var(--ct-transition);
    border: 1px solid var(--ct-gray-200);
}

.ct-filter-chip:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--ct-danger);
    color: var(--ct-danger);
}

.ct-filter-chip .ct-chip-remove {
    font-size: 0.6rem;
    opacity: 0.6;
}

.ct-filter-chip:hover .ct-chip-remove {
    opacity: 1;
}

/* Price Range Slider */
.ct-price-slider {
    padding: 0.5rem 0 0.25rem;
}

.ct-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ct-price-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ct-primary);
    background: rgba(79, 70, 229, 0.06);
    padding: 0.25rem 0.625rem;
    border-radius: var(--ct-radius-sm);
}

.ct-price-separator {
    color: var(--ct-gray-400);
    font-size: 0.75rem;
}

.ct-price-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--ct-gray-200);
    border-radius: 4px;
    outline: none;
    margin: 0.5rem 0;
}

.ct-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ct-primary);
    cursor: pointer;
    border: 3px solid var(--ct-white);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    transition: transform 0.15s ease;
}

.ct-price-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.ct-price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ct-primary);
    cursor: pointer;
    border: 3px solid var(--ct-white);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.ct-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-category-list li {
    margin-bottom: 0.25rem;
}

.ct-category-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--ct-gray-600);
    border-radius: var(--ct-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--ct-transition);
}

.ct-category-list li a:hover,
.ct-category-list li a.active {
    background: var(--ct-gray-100);
    color: var(--ct-primary);
}

.ct-category-list li a i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Brand Checkbox List */
.ct-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-brand-list li {
    margin-bottom: 0.125rem;
}

.ct-brand-list label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0.75rem;
    color: var(--ct-gray-600);
    border-radius: var(--ct-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--ct-transition);
}

.ct-brand-list label:hover {
    background: var(--ct-gray-50);
    color: var(--ct-primary);
}

.ct-brand-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--ct-gray-300);
    accent-color: var(--ct-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.ct-brand-list input[type="checkbox"]:checked+span {
    color: var(--ct-primary);
    font-weight: 600;
}

/* === Sort Bar === */
.ct-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    border: 1px solid var(--ct-gray-100);
    margin-bottom: 1.5rem;
}

/* View Toggle */
.ct-view-toggle {
    display: inline-flex;
    border: 1px solid var(--ct-gray-200);
    border-radius: var(--ct-radius-sm);
    overflow: hidden;
}

.ct-view-btn {
    background: var(--ct-white);
    border: none;
    padding: 0.35rem 0.6rem;
    color: var(--ct-gray-400);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1;
}

.ct-view-btn+.ct-view-btn {
    border-left: 1px solid var(--ct-gray-200);
}

.ct-view-btn.active,
.ct-view-btn:hover {
    color: var(--ct-primary);
    background: rgba(79, 70, 229, 0.06);
}

/* List View Layout */
.ct-list-view .ct-product-card {
    display: flex;
    flex-direction: row;
}

.ct-list-view .ct-product-img {
    width: 200px;
    min-width: 200px;
    aspect-ratio: 1;
}

.ct-list-view .ct-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-list-view .ct-product-desc {
    -webkit-line-clamp: 3;
    max-height: none;
}

.ct-sort-select {
    border: 1px solid var(--ct-gray-200);
    border-radius: var(--ct-radius-sm);
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--ct-gray-600);
    background-color: var(--ct-white);
}

/* === Pagination === */
.ct-pagination {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.ct-pagination a,
.ct-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ct-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--ct-gray-600);
    background: var(--ct-white);
    border: 1px solid var(--ct-gray-200);
    transition: all var(--ct-transition);
}

.ct-pagination a:hover {
    border-color: var(--ct-primary);
    color: var(--ct-primary);
    background: rgba(79, 70, 229, 0.05);
}

.ct-pagination a.active,
.ct-pagination span.active {
    background: var(--ct-primary);
    color: var(--ct-white);
    border-color: var(--ct-primary);
}

/* === Product Detail === */
.ct-product-gallery img {
    border-radius: var(--ct-radius);
    cursor: pointer;
}

.ct-product-gallery .ct-thumb-grid {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.ct-product-gallery .ct-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--ct-radius-sm);
    border: 2px solid var(--ct-gray-200);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--ct-transition);
}

.ct-product-gallery .ct-thumb:hover,
.ct-product-gallery .ct-thumb.active {
    border-color: var(--ct-primary);
}

.ct-product-gallery .ct-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-product-info .ct-product-title-detail {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ct-product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ct-product-meta span {
    font-size: 0.875rem;
    color: var(--ct-gray-500);
}

.ct-product-meta span a {
    color: var(--ct-primary);
    font-weight: 500;
}

.ct-product-detail-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ct-primary);
    margin-bottom: 1.5rem;
}

.ct-product-detail-price .ct-price-old {
    font-size: 1.1rem;
    color: var(--ct-gray-400);
    text-decoration: line-through;
    font-weight: 400;
}

.ct-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--ct-gray-200);
    border-radius: var(--ct-radius-sm);
    overflow: hidden;
}

.ct-quantity-control .btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: var(--ct-gray-50);
    color: var(--ct-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ct-quantity-control .btn:hover {
    background: var(--ct-gray-200);
    transform: none;
    box-shadow: none;
}

.ct-quantity-control input {
    width: 52px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 1px solid var(--ct-gray-200);
    border-right: 1px solid var(--ct-gray-200);
}

.ct-quantity-control input:focus {
    outline: none;
}

/* Tab content for description/reviews */
.ct-detail-tabs .nav-tabs {
    border-bottom: 2px solid var(--ct-gray-100);
}

.ct-detail-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--ct-gray-500);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.ct-detail-tabs .nav-tabs .nav-link.active {
    color: var(--ct-primary);
    background: none;
}

.ct-detail-tabs .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ct-primary);
}

/* === Cart Page === */
.ct-cart-table {
    border-radius: var(--ct-radius);
    overflow: hidden;
    background: var(--ct-white);
    border: 1px solid var(--ct-gray-100);
}

.ct-cart-table table {
    margin-bottom: 0;
}

.ct-cart-table thead {
    background: var(--ct-gray-50);
}

.ct-cart-table thead th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ct-gray-500);
    padding: 1rem;
    border-bottom: 1px solid var(--ct-gray-100);
}

.ct-cart-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ct-gray-100);
}

.ct-cart-table .ct-cart-img {
    width: 64px;
    height: 64px;
    border-radius: var(--ct-radius-sm);
    object-fit: cover;
}

.ct-cart-summary {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    border: 1px solid var(--ct-gray-100);
    padding: 1.5rem;
}

.ct-cart-summary h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ct-gray-100);
}

.ct-cart-summary .ct-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    font-size: 0.95rem;
}

.ct-cart-summary .ct-summary-total {
    border-top: 2px solid var(--ct-gray-200);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Checkout === */
.ct-checkout-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ct-gray-700);
}

.ct-checkout-form .form-control,
.ct-checkout-form .form-select {
    border-radius: var(--ct-radius-sm);
    border: 1px solid var(--ct-gray-200);
    padding: 0.625rem 0.875rem;
    transition: all var(--ct-transition);
}

.ct-checkout-form .form-control:focus,
.ct-checkout-form .form-select:focus {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ct-payment-option {
    border: 2px solid var(--ct-gray-200);
    border-radius: var(--ct-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--ct-transition);
}

.ct-payment-option:hover {
    border-color: var(--ct-gray-300);
}

.ct-payment-option.selected {
    border-color: var(--ct-primary);
    background: rgba(79, 70, 229, 0.03);
}

.ct-payment-option .form-check-input:checked~.form-check-label {
    color: var(--ct-primary);
}

/* === Order Confirmation === */
.ct-confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--ct-success);
    margin-bottom: 1.5rem;
    animation: ct-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes ct-pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* === Auth Pages (Login / Register) === */
.ct-auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, var(--ct-auth-bg-1) 0%, var(--ct-auth-bg-2) 50%, var(--ct-auth-bg-3) 100%);
    position: relative;
}

.ct-auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-primary-light));
    border-radius: 0 0 2rem 2rem;
}

.ct-auth-card {
    background: var(--ct-white);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ct-auth-card .ct-auth-header {
    padding: 1.5rem 1.75rem 0.5rem;
    text-align: center;
}

.ct-auth-card .ct-auth-header .ct-auth-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.ct-auth-card .ct-auth-header .ct-auth-icon i {
    font-size: 1.1rem;
    color: var(--ct-white);
}

.ct-auth-card .ct-auth-header h3 {
    color: var(--ct-dark);
    margin-bottom: 0.125rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.ct-auth-card .ct-auth-header p {
    color: var(--ct-gray-500);
    margin-bottom: 0;
    font-size: 0.85rem;
}

.ct-auth-card .ct-auth-body {
    padding: 1.25rem 1.75rem 1.75rem;
}

.ct-auth-card .ct-auth-body .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ct-gray-600);
    margin-bottom: 0.375rem;
}

.ct-auth-card .ct-auth-body .form-control {
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    border: 1.5px solid var(--ct-gray-200);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: var(--ct-gray-50);
}

.ct-auth-card .ct-auth-body .form-control:focus {
    border-color: var(--ct-primary);
    background: var(--ct-white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ct-auth-card .ct-auth-body .form-control::placeholder {
    color: var(--ct-gray-400);
}

.ct-auth-card .ct-auth-body .btn-primary {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    letter-spacing: 0.01em;
}

.ct-auth-card .ct-auth-footer {
    text-align: center;
    padding-top: 0.625rem;
    border-top: 1px solid var(--ct-gray-100);
    margin-top: 0.75rem;
}

.ct-auth-card .ct-auth-footer a {
    color: var(--ct-primary);
    font-weight: 600;
    text-decoration: none;
}

.ct-auth-card .ct-auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .ct-auth-wrapper::before {
        height: 35%;
    }

    .ct-auth-card .ct-auth-header {
        padding: 1.5rem 1.25rem 0.5rem;
    }

    .ct-auth-card .ct-auth-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

/* === Footer === */
.ct-footer {
    background: var(--ct-dark);
    color: var(--ct-gray-400);
    padding-top: 4rem;
}

.ct-footer h5 {
    color: var(--ct-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.ct-footer-brand {
    font-family: var(--ct-font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ct-white);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.ct-footer-brand:hover {
    color: var(--ct-secondary);
}

.ct-footer p {
    color: var(--ct-gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ct-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-footer-links li {
    margin-bottom: 0.5rem;
}

.ct-footer-links a {
    color: var(--ct-gray-400);
    font-size: 0.9rem;
    transition: all var(--ct-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ct-footer-links a:hover {
    color: var(--ct-white);
    padding-left: 4px;
}

.ct-footer-newsletter .form-control {
    background: var(--ct-dark-light);
    border: 1px solid var(--ct-gray-700);
    border-radius: var(--ct-radius-pill);
    color: var(--ct-white);
    padding: 0.75rem 1.25rem;
}

.ct-footer-newsletter .form-control::placeholder {
    color: var(--ct-gray-500);
}

.ct-footer-newsletter .form-control:focus {
    border-color: var(--ct-primary);
    box-shadow: none;
}

.ct-footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ct-dark-light);
    color: var(--ct-gray-400);
    transition: all var(--ct-transition);
    font-size: 0.875rem;
}

.ct-footer-social a:hover {
    background: var(--ct-primary);
    color: var(--ct-white);
    transform: translateY(-2px);
}

.ct-footer-bottom {
    border-top: 1px solid var(--ct-gray-700);
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-size: 0.8125rem;
    color: var(--ct-gray-500);
}

/* === Back to Top === */
.ct-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ct-primary);
    color: var(--ct-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ct-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--ct-transition);
    z-index: 999;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.ct-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ct-back-to-top:hover {
    background: var(--ct-primary-dark);
    transform: translateY(-2px);
}

/* === Orders Page === */
.ct-orders-table {
    border-radius: var(--ct-radius);
    overflow: hidden;
    background: var(--ct-white);
    border: 1px solid var(--ct-gray-100);
}

.ct-orders-table .table {
    margin-bottom: 0;
}

.ct-orders-table thead {
    background: var(--ct-gray-50);
}

.ct-orders-table th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ct-gray-500);
    border-bottom: 1px solid var(--ct-gray-100);
}

.ct-orders-table td {
    vertical-align: middle;
}

.ct-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--ct-radius-pill);
}

/* === Empty State === */
.ct-empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.ct-empty-state i {
    font-size: 3.5rem;
    color: var(--ct-gray-300);
    margin-bottom: 1.25rem;
}

.ct-empty-state h4 {
    color: var(--ct-gray-600);
    margin-bottom: 0.5rem;
}

.ct-empty-state p {
    color: var(--ct-gray-400);
    margin-bottom: 1.5rem;
}

/* === Form Elements === */
.form-control,
.form-select {
    border-radius: var(--ct-radius-sm);
    border: 1px solid var(--ct-gray-200);
    transition: all var(--ct-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* === Responsive Adjustments === */
@media (max-width: 991.98px) {
    .ct-hero h1 {
        font-size: 2.25rem;
    }

    .ct-cta-banner {
        padding: 3rem 2rem;
    }

    .ct-cta-banner h2 {
        font-size: 1.75rem;
    }

    .ct-navbar .collapse.show,
    .ct-navbar .collapsing {
        background: var(--ct-white);
        border-radius: var(--ct-radius);
        box-shadow: var(--ct-shadow-md);
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .ct-navbar .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .ct-hero {
        padding: 3rem 0 2rem;
    }

    .ct-hero h1 {
        font-size: 1.75rem;
    }

    .ct-hero-carousel .carousel-control-prev,
    .ct-hero-carousel .carousel-control-next {
        display: none;
    }

    .ct-page-header {
        padding: 2rem 0;
    }

    .ct-page-header h1 {
        font-size: 1.5rem;
    }

    .ct-section-title {
        font-size: 1.5rem;
    }

    .ct-cta-banner {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .ct-cta-banner h2 {
        font-size: 1.5rem;
    }

    .ct-footer {
        text-align: center;
    }

    .ct-footer-social {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .ct-cart-table {
        overflow-x: auto;
    }

    .ct-sort-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* === Utility Classes === */
.text-ct-primary {
    color: var(--ct-primary) !important;
}

.text-ct-secondary {
    color: var(--ct-secondary) !important;
}

.text-ct-gray {
    color: var(--ct-gray-500) !important;
}

.bg-ct-primary {
    background-color: var(--ct-primary) !important;
}

.bg-ct-light {
    background-color: var(--ct-gray-50) !important;
}

.gap-ct-1 {
    gap: 0.5rem;
}

.gap-ct-2 {
    gap: 1rem;
}

.gap-ct-3 {
    gap: 1.5rem;
}

/* =====================================================
   HERO SLIDER (Full-width)
   ===================================================== */
.ct-hero-slider {
    position: relative;
    overflow: hidden;
}

.ct-slide {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.ct-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.ct-slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    animation: ctSlideIn 0.8s ease-out;
}

@keyframes ctSlideIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-slide-content .ct-slide-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: var(--ct-white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.375rem 1rem;
    border-radius: var(--ct-radius-pill);
    margin-bottom: 1rem;
}

.ct-slide-content h1 {
    color: var(--ct-white);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ct-slide-content h1 span {
    color: var(--ct-secondary-light);
}

.ct-slide-btn {
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
}

.ct-slider-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-white);
    font-size: 1rem;
    transition: all var(--ct-transition);
}

.ct-slider-arrow:hover {
    background: var(--ct-primary);
}

.ct-hero-slider .carousel-control-prev,
.ct-hero-slider .carousel-control-next {
    width: auto;
    opacity: 1;
    padding: 0 1.5rem;
    z-index: 3;
}

.ct-hero-slider .carousel-indicators {
    z-index: 3;
    margin-bottom: 1.5rem;
}

.ct-hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--ct-white);
    background: transparent;
    opacity: 0.6;
    transition: all var(--ct-transition);
}

.ct-hero-slider .carousel-indicators .active {
    background: var(--ct-white);
    opacity: 1;
    width: 28px;
    border-radius: var(--ct-radius-pill);
}

/* Fallback hero (no sliders) */
.ct-hero-fallback {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-light) 60%, var(--ct-primary-lighter) 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.ct-hero-fallback::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ct-hero-fallback .ct-slide-content h1 {
    font-size: 3rem;
}

/* =====================================================
   OFF-CANVAS MOBILE MENU
   ===================================================== */
.ct-offcanvas {
    max-width: 320px;
    border-right: none !important;
}

.ct-offcanvas .offcanvas-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ct-gray-100);
}

.ct-offcanvas-brand {
    font-family: var(--ct-font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ct-primary);
}

.ct-offcanvas-brand:hover {
    color: var(--ct-primary-dark);
}

.ct-offcanvas .offcanvas-body {
    padding: 1.5rem;
}

.ct-offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-offcanvas-nav li {
    margin-bottom: 0.25rem;
}

.ct-offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ct-radius-sm);
    color: var(--ct-gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--ct-transition);
}

.ct-offcanvas-nav a:hover,
.ct-offcanvas-nav a.active {
    background: var(--ct-gray-100);
    color: var(--ct-primary);
}

.ct-offcanvas-nav a i {
    width: 20px;
    text-align: center;
    color: var(--ct-gray-400);
    font-size: 0.875rem;
}

.ct-offcanvas-nav a:hover i {
    color: var(--ct-primary);
}

/* =====================================================
   CATEGORY BROWSE CARDS
   ===================================================== */
.ct-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--ct-radius-lg);
    background: var(--ct-white);
    border: 1px solid var(--ct-gray-100);
    transition: all var(--ct-transition);
    text-decoration: none;
    color: var(--ct-dark);
}

.ct-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ct-shadow-md);
    border-color: var(--ct-primary);
    color: var(--ct-primary);
}

.ct-category-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--ct-transition);
}

.ct-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ct-category-icon i {
    font-size: 1.5rem;
    color: var(--ct-primary);
}

.ct-category-card:hover .ct-category-icon {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-light) 100%);
}

.ct-category-card:hover .ct-category-icon i {
    color: var(--ct-white);
}

.ct-category-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* =====================================================
   RESPONSIVE — HERO SLIDER & OFF-CANVAS
   ===================================================== */
@media (max-width: 991.98px) {
    .ct-slide {
        min-height: 400px;
    }

    .ct-slide-content h1 {
        font-size: 2rem;
    }

    .ct-slide-overlay {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.4) 100%);
    }

    .ct-slide-content {
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }

    .ct-hero-slider .carousel-control-prev,
    .ct-hero-slider .carousel-control-next {
        display: none;
    }

    .ct-hero-fallback .ct-slide-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .ct-slide {
        min-height: 340px;
    }

    .ct-slide-content h1 {
        font-size: 1.625rem;
    }

    .ct-category-icon {
        width: 56px;
        height: 56px;
    }

    .ct-category-card {
        padding: 1rem 0.5rem;
    }
}

/* =====================================================
   WOW FACTOR — SCROLL REVEAL ANIMATIONS
   ===================================================== */
.ct-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal.ct-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child items */
.ct-reveal-stagger>*:nth-child(1) {
    transition-delay: 0ms;
}

.ct-reveal-stagger>*:nth-child(2) {
    transition-delay: 80ms;
}

.ct-reveal-stagger>*:nth-child(3) {
    transition-delay: 160ms;
}

.ct-reveal-stagger>*:nth-child(4) {
    transition-delay: 240ms;
}

.ct-reveal-stagger>*:nth-child(5) {
    transition-delay: 320ms;
}

.ct-reveal-stagger>*:nth-child(6) {
    transition-delay: 400ms;
}

.ct-reveal-stagger>*:nth-child(7) {
    transition-delay: 480ms;
}

.ct-reveal-stagger>*:nth-child(8) {
    transition-delay: 560ms;
}

/* Stagger items start hidden */
.ct-reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal-stagger.ct-revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* Fade from left / right variants */
.ct-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal-left.ct-revealed,
.ct-reveal-right.ct-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up reveal */
.ct-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal-scale.ct-revealed {
    opacity: 1;
    transform: scale(1);
}

/* =====================================================
   WOW FACTOR — ENHANCED SECTION TITLES
   ===================================================== */
.ct-section-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--ct-dark) 0%, var(--ct-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ct-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--ct-primary), var(--ct-secondary));
    border-radius: 2px;
}

.text-center .ct-section-title::after,
.ct-section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =====================================================
   WOW FACTOR — ENHANCED PRODUCT CARD HOVER
   ===================================================== */
.ct-product-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ct-product-img {
    overflow: hidden;
    position: relative;
}

.ct-product-img img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-product-card:hover .ct-product-img img {
    transform: scale(1.08);
}

/* Quick-view overlay */
.ct-product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ct-product-card:hover .ct-product-img::after {
    opacity: 1;
}

/* Quick-view button */
.ct-product-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ct-primary);
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ct-product-card:hover .ct-product-quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ct-product-quick-view:hover {
    background: var(--ct-primary);
    color: white;
}

/* Wishlist heart button */
.ct-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-8px);
}

.ct-product-card:hover .ct-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.ct-wishlist-btn:hover {
    color: var(--ct-danger);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Add-to-cart button pulse */
.ct-add-cart-btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-add-cart-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* =====================================================
   WOW FACTOR — ANIMATED STATS
   ===================================================== */
.ct-stats-section {
    background: linear-gradient(135deg, var(--ct-dark) 0%, var(--ct-dark-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ct-stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    animation: ct-pulse-glow 8s ease-in-out infinite;
}

@keyframes ct-pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.ct-stat-card {
    position: relative;
    z-index: 1;
}

.ct-stats-section .ct-stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ct-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-stats-section .ct-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.ct-stats-section .ct-stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ct-stats-section .ct-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--ct-white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ct-stats-section .ct-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =====================================================
   WOW FACTOR — PROMO TICKER STRIP
   ===================================================== */
.ct-promo-ticker {
    background: linear-gradient(90deg, var(--ct-primary) 0%, var(--ct-primary-lighter) 50%, var(--ct-primary) 100%);
    background-size: 200% 100%;
    animation: ct-gradient-shift 6s ease infinite;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

@keyframes ct-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ct-ticker-track {
    display: inline-flex;
    animation: ct-ticker-scroll 30s linear infinite;
}

.ct-promo-ticker:hover .ct-ticker-track {
    animation-play-state: paused;
}

@keyframes ct-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ct-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 2.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.ct-ticker-item i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.ct-ticker-separator {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.5rem;
}

/* =====================================================
   WOW FACTOR — NEWSLETTER SECTION
   ===================================================== */
.ct-newsletter {
    background: linear-gradient(135deg, var(--ct-newsletter-bg-1) 0%, var(--ct-newsletter-bg-2) 50%, var(--ct-newsletter-bg-3) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ct-newsletter::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: ct-float 6s ease-in-out infinite;
}

.ct-newsletter::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    animation: ct-float 8s ease-in-out infinite reverse;
}

@keyframes ct-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.ct-newsletter-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ct-radius-xl, 16px);
    padding: 3rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.ct-newsletter-card h2 {
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    color: var(--ct-white);
}

.ct-newsletter-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.ct-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto;
}

.ct-newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.ct-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ct-newsletter-form input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ct-newsletter-form button {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-lighter) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ct-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

@media (max-width: 575.98px) {
    .ct-newsletter-card {
        padding: 2rem 1.5rem;
    }

    .ct-newsletter-form {
        flex-direction: column;
    }

    .ct-newsletter-form button {
        width: 100%;
    }
}

/* =====================================================
   WOW FACTOR — ENHANCED CTA BANNER
   ===================================================== */
.ct-cta-banner {
    position: relative;
    overflow: hidden;
}

.ct-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: ct-float 8s ease-in-out infinite;
}

.ct-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: ct-float 6s ease-in-out infinite reverse;
}

/* =====================================================
   WOW FACTOR — ENHANCED TESTIMONIALS
   ===================================================== */
.ct-testimonial-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.ct-quote-icon {
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-primary-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

/* =====================================================
   WOW FACTOR — FEATURE CARD ENHANCEMENTS
   ===================================================== */
.ct-feature-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.ct-feature-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-feature-card:hover .ct-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =====================================================
   WOW FACTOR — SMOOTH CATEGORY TAB TRANSITIONS
   ===================================================== */
.ct-category-tabs .nav-link {
    position: relative;
    overflow: hidden;
}

.ct-category-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ct-primary), var(--ct-primary-lighter));
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%);
}

.ct-category-tabs .nav-link:hover::before,
.ct-category-tabs .nav-link.active::before {
    width: 100%;
}

/* =====================================================
   WOW FACTOR — USER DROPDOWN STYLING
   ===================================================== */
.ct-user-dropdown {
    min-width: 220px;
    padding: 0.5rem 0;
    border: 1px solid var(--ct-gray-100);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: var(--ct-radius-lg);
    animation: ct-dropdown-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ct-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ct-user-dropdown .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.ct-user-dropdown .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--ct-primary);
    padding-left: 1.5rem;
}

.ct-user-dropdown .dropdown-header {
    padding: 0.75rem 1.25rem 0.25rem;
}

/* =====================================================
   PRODUCT DETAIL — COMPACT BREADCRUMB STRIP
   ===================================================== */
.ct-breadcrumb-strip {
    background: var(--ct-gray-50);
    border-bottom: 1px solid var(--ct-gray-100);
    padding: 0.75rem 0;
}

.ct-breadcrumb-strip .breadcrumb {
    font-size: 0.85rem;
    margin: 0;
}

.ct-breadcrumb-strip .breadcrumb-item a {
    color: var(--ct-gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ct-breadcrumb-strip .breadcrumb-item a:hover {
    color: var(--ct-primary);
}

.ct-breadcrumb-strip .breadcrumb-item.active {
    color: var(--ct-dark);
    font-weight: 600;
}

.ct-breadcrumb-strip .breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    color: var(--ct-gray-300);
}

/* =====================================================
   PRODUCT DETAIL — IMAGE GALLERY
   ===================================================== */
.ct-gallery {
    position: relative;
}

.ct-gallery-main {
    position: relative;
    border-radius: var(--ct-radius-lg);
    overflow: hidden;
    background: var(--ct-gray-50);
    cursor: zoom-in;
    aspect-ratio: 1;
}

.ct-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    display: block;
}

.ct-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.04);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.1);
}

.ct-gallery-expand {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--ct-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ct-gallery-expand:hover {
    background: var(--ct-primary);
    color: white;
    transform: scale(1.1);
}

.ct-gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Thumbnails */
.ct-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.ct-gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--ct-radius);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--ct-gray-50);
    padding: 0;
}

.ct-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-gallery-thumb.active,
.ct-gallery-thumb:hover {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* =====================================================
   PRODUCT DETAIL — LIGHTBOX
   ===================================================== */
.ct-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.ct-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
}

.ct-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 85vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: grab;
    transition: transform 0.3s ease;
    user-select: none;
}

.ct-lightbox-img:active {
    cursor: grabbing;
}

.ct-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.ct-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ct-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.ct-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.ct-lightbox-prev {
    left: 24px;
}

.ct-lightbox-next {
    right: 24px;
}

.ct-lightbox-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.ct-lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.ct-lightbox-dot.active {
    background: white;
    transform: scale(1.3);
}

/* =====================================================
   PRODUCT DETAIL — TITLE & INFO
   ===================================================== */
.ct-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--ct-dark);
}

/* =====================================================
   PRODUCT DETAIL — TRUST BADGES
   ===================================================== */
.ct-trust-badges {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ct-gray-100);
}

.ct-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ct-gray-600);
    font-weight: 500;
}

.ct-trust-badge i {
    color: var(--ct-primary);
    font-size: 1rem;
}

/* =====================================================
   PRODUCT DETAIL — RELATED PRODUCTS CAROUSEL
   ===================================================== */
.ct-carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.ct-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ct-gray-200);
    background: white;
    color: var(--ct-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.ct-carousel-btn:hover {
    background: var(--ct-primary);
    border-color: var(--ct-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.ct-related-carousel {
    overflow: hidden;
    position: relative;
}

.ct-related-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-related-slide {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .ct-related-slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 767.98px) {
    .ct-related-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .ct-trust-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .ct-gallery-main {
        aspect-ratio: auto;
    }

    .ct-gallery-thumb {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 575.98px) {
    .ct-related-slide {
        flex: 0 0 calc(80%);
    }

    .ct-detail-title {
        font-size: 1.375rem;
    }

    .ct-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .ct-lightbox-prev {
        left: 12px;
    }

    .ct-lightbox-next {
        right: 12px;
    }
}

/* ========== AJAX Add-to-Cart Animations ========== */

/* Badge bounce on count update */
.ct-badge-bounce {
    animation: ctBadgeBounce .5s cubic-bezier(.36, .07, .19, .97);
}

@keyframes ctBadgeBounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.6);
    }

    50% {
        transform: scale(0.85);
    }

    70% {
        transform: scale(1.2);
    }
}

/* Button busy state */
.ct-add-cart-btn.ct-adding {
    pointer-events: none;
    opacity: 0.65;
}

/* Toast notification */
.ct-cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ct-white);
    z-index: 99999;
    opacity: 0;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ct-cart-toast-success {
    background: linear-gradient(135deg, var(--ct-toast-success-1), var(--ct-toast-success-2));
}

.ct-cart-toast-error {
    background: linear-gradient(135deg, var(--ct-toast-error-1), var(--ct-toast-error-2));
}

.ct-cart-toast.ct-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}