/* ===== PRODUCT DISCOVERY & FILTERS CSS ===== */

html {
    scroll-behavior: smooth;
}

/* Promo Cards (Homepage) */
.promo-card {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.promo-image { height: 220px; overflow: hidden; background: #f6f7fb; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 22px; }
.promo-badge {
    display: inline-block;
    background: #d10024;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.promo-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.promo-title a { color: #2b2d42; }
.promo-title a:hover { color: #d10024; }
.promo-desc { color: #596275; font-size: 15px; line-height: 1.8; min-height: 80px; }
.promo-meta { margin-top: 16px; font-size: 14px; color: #8d99ae; border-top: 1px solid #edf1f5; padding-top: 14px; }
.promo-btn { margin-top: 18px; display: inline-block; background: #d10024; color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; }
.promo-btn:hover { color: #fff; background: #b4001f; }

/* Hot Deal Hero Section */
.hotdeal-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 210, 82, 0.24), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(86, 64, 214, 0.32), transparent 28%),
        linear-gradient(135deg, #3d0710 0%, #8d0018 34%, #c92a14 68%, #e76f19 100%);
    box-shadow: 0 26px 58px rgba(91, 13, 23, 0.28);
}
.hotdeal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 9, 13, 0.62) 0%, rgba(42, 9, 18, 0.36) 52%, rgba(20, 9, 13, 0.18) 100%);
    pointer-events: none;
}
.hotdeal-hero-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: 26px;
    padding: 34px 34px 8px;
}
.hotdeal-hero-copy { min-width: 0; }
.hotdeal-hero-kicker {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff8e8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hotdeal-hero-title {
    max-width: 680px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    margin: 0;
    text-transform: uppercase;
    color: #fffdf8;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
    letter-spacing: 0;
}
.hotdeal-hero-title span {
    display: block;
    font-size: clamp(36px, 5.3vw, 62px);
    line-height: 1.08;
    color: #ffe082;
    text-shadow: 0 3px 12px rgba(66, 22, 0, 0.48);
}
.hotdeal-hero-desc {
    max-width: 600px;
    margin: 16px 0 20px;
    font-size: 16px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}
.hotdeal-hero-countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hotdeal-hero-countdown-label {
    flex-basis: 100%;
    color: #fff7df;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hotdeal-hero-time {
    min-width: 68px;
    padding: 12px 8px 10px;
    border-radius: 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 12, 14, 0.96), rgba(47, 18, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(36, 9, 12, 0.2);
}
.hotdeal-hero-time strong { display: block; font-size: 28px; line-height: 1; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.38); }
.hotdeal-hero-time span { display: block; margin-top: 5px; font-size: 11px; text-transform: uppercase; color: rgba(255, 244, 225, 0.86); }
.hotdeal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hotdeal-hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: all 0.2s; white-space: nowrap; }
.hotdeal-hero-btn-primary { background: linear-gradient(180deg, #fff7e7 0%, #ffd468 100%); color: #591000; box-shadow: 0 12px 24px rgba(42, 13, 0, 0.28); }
.hotdeal-hero-btn-secondary { background: rgba(20, 10, 12, 0.24); border: 1px solid rgba(255, 255, 255, 0.38); color: #fff; }
.hotdeal-hero-board {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.hotdeal-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px;
    min-height: 138px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 0 16px 26px rgba(35, 7, 10, 0.24);
}
.hotdeal-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 70%);
    pointer-events: none;
}
.hotdeal-hero-card > * {
    position: relative;
    z-index: 1;
}
.hotdeal-hero-card-primary { background: linear-gradient(135deg, #6b0618 0%, #d80d25 100%); }
.hotdeal-hero-card-secondary { background: linear-gradient(135deg, #1e126f 0%, #5d2bd6 52%, #21106d 100%); }
.hotdeal-hero-card-kicker {
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.hotdeal-hero-card-title {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(26px, 3.1vw, 40px);
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hotdeal-hero-card-highlight {
    display: block;
    color: #ffe082;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.hotdeal-hero-card-title small {
    display: block;
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.32);
}

/* MODERN SIDEBAR FILTER & LAYOUT */
.tiki-layout-wrapper {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    align-items: flex-start;
}
.tiki-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}
.tiki-main-content { flex: 1; min-width: 0; }
.filter-group { padding: 20px; border-bottom: 1px solid #f2f2f0; }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: 15px; font-weight: 600; color: #38383d; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-item { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #38383d; cursor: pointer; transition: all 0.2s; }
.filter-item:hover { color: #0b74e5; }
.filter-checkbox {
    width: 18px; height: 18px; border: 1.5px solid #dddde3; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; flex-shrink: 0;
}
.filter-item.active .filter-checkbox { background: #0b74e5; border-color: #0b74e5; }
.filter-item.active .filter-checkbox::after { content: '\f00c'; font-family: FontAwesome; color: #fff; font-size: 10px; }
.filter-item.active span { color: #0b74e5; font-weight: 500; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.price-input { width: 100%; padding: 8px 12px; border: 1px solid #dddde3; border-radius: 6px; font-size: 13px; outline: none; transition: border-color 0.2s; }
.price-input:focus { border-color: #0b74e5; }
.price-apply-btn {
    margin-top: 16px; width: 100%; padding: 10px; background: #fff; border: 1px solid #0b74e5;
    color: #0b74e5; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.price-apply-btn:hover { background: #0b74e5; color: #fff; }
.quick-filter-bar {
    background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.quick-chip {
    padding: 8px 16px; border: 1px solid #dddde3; border-radius: 8px; font-size: 14px;
    background: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.quick-chip:hover { border-color: #0b74e5; }
.quick-chip.active { border-color: #0b74e5; color: #0b74e5; background: #f0f8ff; font-weight: 500; }
.results-info-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.results-count { font-size: 15px; color: #38383d; }
.tiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* Breadcrumb & Header */
.tiki-breadcrumb { padding: 12px 0; font-size: 13px; color: #808089; }
.tiki-breadcrumb a { color: #808089; text-decoration: none; }
.tiki-breadcrumb span { margin: 0 8px; color: #ccc; }
.search-summary-header { font-size: 20px; font-weight: 500; margin: 0 0 16px; color: #38383d; }

/* Flash Sale Timers */
.fs-timer-container,
.fs-timer {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}
.fs-timer-container > li,
.fs-timer > li {
    min-width: 54px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff7f8;
    border: 1px solid rgba(209, 0, 36, 0.14);
}
.fs-timer-container > li > div,
.fs-timer > li > div {
    display: grid;
    justify-items: center;
    gap: 2px;
    line-height: 1;
}
.mr-2px { margin-right: 0; }
.fs-timer-val {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    font-weight: 800;
    color: #D10024;
}
.fs-timer-unit {
    display: block;
    font-size: 9px;
    line-height: 1;
    color: #8D99AE;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Product Tags & Ratings */
.hotdeal-end-tag { 
    margin-top: 8px; 
    color: #D10024; 
    font-size: 12px; 
    font-weight: 500; 
    min-height: 18px; /* Maintain height even if empty */
}
.star-rating-yellow { color: #ffc107; }
.star-rating-label { font-size: 13px; margin-left: 4px; color: #38383d; }

/* Empty States */
.empty-results-wrapper {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.empty-results-icon { 
    font-size: 64px; 
    color: #ddd; 
    margin-bottom: 20px; 
    display: block;
}
.empty-results-img { display: none; }
.empty-results-title { font-size: 18px; color: #38383d; margin-bottom: 8px; font-weight: 600; }
.empty-results-desc { color: #808089; margin-bottom: 24px; font-size: 14px; }
.btn-rounded-8 { border-radius: 8px !important; }

/* Layout Utilities */
.flex-align-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sort-select-refined { width: auto; padding: 6px 12px; }
.quick-filter-label { font-size: 14px; color: #808089; margin-right: 4px; }
.sort-label { font-size: 14px; color: #808089; }

@media (max-width: 991px) {
    .hotdeal-hero-body {
        grid-template-columns: 1fr;
        padding: 34px 34px 8px;
        gap: 26px;
    }
    .hotdeal-hero-title,
    .hotdeal-hero-title span {
        max-width: 100%;
    }
    .hotdeal-hero-desc {
        max-width: 100%;
    }
    .hotdeal-hero-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tiki-sidebar { display: none; }
    .tiki-layout-wrapper { flex-direction: column; }
}

@media (max-width: 767px) {
    .hotdeal-hero {
        border-radius: 16px;
    }
    .hotdeal-hero-body {
        padding: 34px 22px 8px;
    }
    .hotdeal-hero-title {
        font-size: 34px;
        line-height: 1.1;
    }
    .hotdeal-hero-title span {
        font-size: 36px;
    }
    .hotdeal-hero-desc {
        font-size: 14px;
        line-height: 1.65;
    }
    .hotdeal-hero-time {
        min-width: 62px;
        padding: 10px 7px 9px;
    }
    .hotdeal-hero-time strong {
        font-size: 24px;
    }
    .hotdeal-hero-board {
        grid-template-columns: 1fr;
    }
    .hotdeal-hero-card {
        min-height: 138px;
        padding: 22px;
    }
    .hotdeal-hero-card-title {
        font-size: 30px;
    }
    .fs-header {
        align-items: flex-start;
        gap: 12px;
    }
    .fs-timer-container,
    .fs-timer {
        flex-wrap: wrap;
    }
    .fs-timer-container > li,
    .fs-timer > li {
        min-width: 50px;
    }
}
/* Flex Grid for standard Bootstrap rows */
.tiki-flex-grid {
    display: flex !important;
    flex-wrap: wrap;
}
.tiki-flex-grid > [class*="col-"] {
    display: flex !important;
    flex-direction: column;
}
.tiki-flex-grid .product {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Slick Carousel Equal Height */
.slick-track { display: flex !important; }
.slick-slide { height: auto !important; display: flex !important; }
.slick-slide > div { width: 100%; display: flex; }
.slick-slide .product { flex: 1; margin-bottom: 30px !important; }

/* Ensure consistent body spacing */
.product .product-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product .product-btns {
    margin-top: auto; /* Push wishlist and cart button down */
}
