/* =======================================================
   QickkstepBD / EcomMarce Frontend Main Stylesheet
   Design matching media_1787891819952.png
   ======================================================= */

:root {
    --primary-color: #1a56db;
    --primary-hover: #1e429f;
    --primary-light: #ebf5ff;
    --dark-navy: #0f172a;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.site-body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Typography Utilities */
.font-3xs { font-size: 0.65rem; }
.font-2xs { font-size: 0.72rem; }
.font-xs  { font-size: 0.8rem; }
.font-sm  { font-size: 0.875rem; }
.fw-extrabold { font-weight: 800; }

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Top Utility Bar */
.top-utility-bar {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
}

/* Brand Logo */
.brand-logo {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.55rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.brand-logo .logo-mark {
    color: var(--primary-color);
    font-size: 1.6rem;
}
.brand-logo .logo-text-accent {
    color: var(--primary-color);
}

/* Search Bar */
.search-category-select {
    max-width: 150px;
    border-radius: 8px 0 0 8px !important;
    border-color: #cbd5e1;
    background-color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 500;
}
.search-input {
    border-color: #cbd5e1;
    font-size: 0.875rem;
}
.search-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.search-submit-btn {
    border-radius: 0 8px 8px 0 !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Search Suggestions Box */
.search-suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
    margin-top: 4px;
}

/* Header Actions */
.action-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #334155;
    transition: all 0.2s ease;
}
.action-item-link:hover .action-icon-circle {
    background-color: var(--primary-light);
    color: var(--primary-color);
}
.action-subtext {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1;
}
.action-maintext {
    font-size: 0.85rem;
    color: #0f172a;
    line-height: 1.2;
}
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 6px;
}

/* Main Navigation */
.categories-toggle-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}
.main-nav-links .nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    transition: color 0.15s ease;
}
.main-nav-links .nav-link:hover,
.main-nav-links .nav-link.active {
    color: var(--primary-color);
}
.nav-hot-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    vertical-align: top;
    margin-left: 2px;
}

/* Today's Deal */
.bg-pink-light {
    background-color: #fff1f2;
}
.deal-box {
    background-color: #ffe4e6;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Category Sidebar */
.category-menu-list .category-menu-item {
    margin-bottom: 2px;
}
.category-menu-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.category-menu-link .cat-icon {
    width: 22px;
    margin-right: 8px;
    color: #64748b;
    font-size: 0.9rem;
}
.category-menu-link:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}
.category-menu-link:hover .cat-icon {
    color: var(--primary-color);
}

/* Hero Carousel Card (Mockup Style) */
.hero-carousel-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    min-height: 380px;
    border: none;
}
.hero-carousel-card::before {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.hero-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-dots .dot.active {
    width: 20px;
    border-radius: 10px;
    background-color: #fff;
}
.hero-devices-visual {
    position: absolute;
    right: 25px;
    bottom: 25px;
    opacity: 0.9;
}
.device-composition {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Promo Mini Cards */
.promo-mini-card {
    min-height: 105px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.promo-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.promo-card-green  { background-color: #ebfbf2; }
.promo-card-pink   { background-color: #fdecec; }
.promo-card-yellow { background-color: #fef9e7; }

/* Category Boxes */
.category-card-box {
    transition: all 0.2s ease;
    border-color: #e2e8f0;
}
.category-card-box:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.cat-img-box {
    height: 52px;
}

/* Modern Category Slider */
.category-slider-container {
    position: relative;
    padding-top: 0.75rem;
}

.category-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 0.4rem 0.4rem 0.75rem;
}

.category-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-slide {
    flex: 0 0 auto;
    width: 116px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #ebf5ff 0%, #dbeafe 100%);
    overflow: hidden;
}

.category-thumb::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 86, 219, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover .category-thumb::after {
    opacity: 1;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.08));
}

.category-card:hover .category-image {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.16));
}

.category-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

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

.category-name {
    padding: 0.85rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.25s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transition: all 0.25s ease;
}

.slider-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: -16px;
}

.slider-next {
    right: -16px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: #94a3b8;
}

.slider-dot.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, #3b71e8 100%);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(26, 86, 219, 0.3);
}

/* Responsive Category Slider */
@media (max-width: 768px) {
    .category-slide {
        width: 96px;
    }

    .slider-prev {
        left: -6px;
    }

    .slider-next {
        right: -6px;
    }

    .category-more-icon {
        font-size: 1.8rem;
    }

    .category-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0.6rem;
    }

    .category-name {
        font-size: 0.66rem;
        padding: 0.6rem;
    }
}

/* Section Header (modern) */
.section-header .section-title {
    position: relative;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.section-header .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #3b71e8 100%);
}

.section-header .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.section-header .view-all-link:hover {
    transform: translateX(3px);
}

/* Shop Filter Link */
.filter-link {
    padding: 0.4rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-link:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Mobile Filter Offcanvas */
.shop-filter-offcanvas {
    width: 300px !important;
}

.shop-filter-offcanvas .offcanvas-body {
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .shop-filter-offcanvas {
        max-width: 85vw !important;
    }
}

/* Flash Sale Widget */
.flash-sale-widget {
    border-color: #e2e8f0;
}
.timer-num {
    min-width: 32px;
}
.bg-warning-light {
    background-color: #fef3c7;
}

/* Product Card */
.product-card {
    transition: all 0.2s ease;
    border-color: #e2e8f0;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.btn-wishlist-quick {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.15s ease;
}
.btn-wishlist-quick:hover {
    background-color: #fee2e2;
    color: var(--accent-red);
}

/* Customer Auth Card */
.auth-card {
    border: 1px solid #e2e8f0;
}
.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .brand-logo { font-size: 1.3rem; }
    .hero-carousel-card { min-height: 280px; }
}
