/* kedirifans.co — Light Storefront (Shopee-inspired white/gray) */

:root {
    --kf-bg: #FFFFFF;
    --kf-grid-bg: #F5F5F5;
    --kf-surface: #FFFFFF;
    --kf-surface-2: #F5F5F5;
    --kf-border: #E5E7EB;
    --kf-accent: #D6001C;
    --kf-accent-hover: #b80018;
    --kf-sale: #7C3AED;
    --kf-sale-hover: #6D28D9;
    --kf-text: #212121;
    --kf-text-muted: #757575;
    --kf-success: #22c55e;
    --kf-warning: #f59e0b;
    --kf-radius: 8px;
    --kf-radius-lg: 16px;
    --kf-font-display: 'Space Grotesk', sans-serif;
    --kf-font-body: 'Inter', sans-serif;
    --kf-navbar-h: 72px;
    --kf-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --kf-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --kf-shadow-card-hover: 0 10px 24px rgba(0, 0, 0, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--kf-font-body);
    background: var(--kf-bg);
    color: var(--kf-text);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--kf-font-display);
    font-weight: 700;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; transition: color var(--kf-transition); }
a:hover { color: var(--kf-accent); }

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

.text-muted { color: var(--kf-text-muted) !important; }
.text-accent { color: var(--kf-accent) !important; }
.bg-surface { background: var(--kf-surface) !important; }
.bg-surface-2 { background: var(--kf-surface-2) !important; }
.border-kf { border-color: var(--kf-border) !important; }

/* Bootstrap overrides */
.btn-primary {
    --bs-btn-bg: var(--kf-accent);
    --bs-btn-border-color: var(--kf-accent);
    --bs-btn-hover-bg: var(--kf-accent-hover);
    --bs-btn-hover-border-color: var(--kf-accent-hover);
    --bs-btn-active-bg: var(--kf-accent-hover);
    --bs-btn-active-border-color: var(--kf-accent-hover);
    font-weight: 600;
    border-radius: var(--kf-radius);
    padding: 0.65rem 1.5rem;
    letter-spacing: 0.02em;
}

.btn-outline-light {
    --bs-btn-color: var(--kf-text);
    --bs-btn-border-color: var(--kf-border);
    --bs-btn-hover-bg: var(--kf-surface-2);
    --bs-btn-hover-border-color: #ccc;
    --bs-btn-hover-color: var(--kf-text);
    border-radius: var(--kf-radius);
}

.btn-outline-light:hover { color: var(--kf-text); }

.form-control, .form-select {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    color: var(--kf-text);
    border-radius: var(--kf-radius);
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--kf-surface);
    border-color: var(--kf-accent);
    color: var(--kf-text);
    box-shadow: 0 0 0 0.2rem rgba(214, 0, 28, 0.12);
}

.form-control::placeholder { color: #9e9e9e; }

.form-check-input {
    background-color: var(--kf-surface);
    border-color: var(--kf-border);
}

.form-check-input:checked {
    background-color: var(--kf-accent);
    border-color: var(--kf-accent);
}

/* Navbar */
.kf-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--kf-navbar-h);
    transition: background var(--kf-transition), backdrop-filter var(--kf-transition), border-color var(--kf-transition);
    border-bottom: 1px solid transparent;
}

.kf-navbar.is-scrolled,
.kf-navbar.is-solid {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--kf-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Transparent over hero: light text until scroll */
.kf-navbar--transparent:not(.is-scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.kf-navbar--transparent:not(.is-scrolled) .nav-link,
.kf-navbar--transparent:not(.is-scrolled) .kf-nav-icon,
.kf-navbar--transparent:not(.is-scrolled) .navbar-toggler {
    color: #fff;
}

.kf-navbar--transparent:not(.is-scrolled) .nav-link:hover,
.kf-navbar--transparent:not(.is-scrolled) .nav-link.active {
    color: #fff;
}

.kf-navbar .navbar-brand img { height: 36px; width: auto; }

.kf-navbar .nav-link {
    color: var(--kf-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    transition: color var(--kf-transition);
}

.kf-navbar .nav-link:hover,
.kf-navbar .nav-link.active { color: var(--kf-accent); }

.kf-nav-icon {
    position: relative;
    color: var(--kf-text);
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: color var(--kf-transition);
}

.kf-nav-icon:hover { color: var(--kf-accent); }

.kf-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--kf-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Category dropdown */
.kf-cat-dropdown {
    min-width: min(420px, 92vw);
    padding: 0;
    border: 1px solid var(--kf-border);
    background: #fff !important;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kf-cat-dropdown__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.35rem;
}

.kf-cat-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    color: var(--kf-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.kf-cat-dropdown__item:hover {
    background: var(--kf-bg);
    color: var(--kf-accent);
}

.kf-cat-dropdown__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kf-accent);
    flex-shrink: 0;
    font-size: 0.95rem;
    overflow: hidden;
}

.kf-cat-dropdown__icon--img {
    background: #fff;
    padding: 0;
}

.kf-cat-dropdown__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kf-cat-dropdown__footer {
    border-top: 1px solid var(--kf-border);
    padding: 0.75rem 1rem;
    background: var(--kf-bg);
}

.kf-cat-dropdown__footer a {
    color: var(--kf-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kf-cat-dropdown__footer a:hover { color: var(--kf-accent); }

.kf-navbar .dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.15em;
}

@media (max-width: 991.98px) {
    .kf-navbar .navbar-collapse {
        background: #fff;
        border: 1px solid var(--kf-border);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.75rem 1rem 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .kf-navbar--transparent:not(.is-scrolled) .navbar-collapse .nav-link,
    .kf-navbar--transparent:not(.is-scrolled) .navbar-collapse .kf-nav-icon {
        color: var(--kf-text);
    }

    .kf-cat-dropdown {
        min-width: 100%;
        position: static !important;
        transform: none !important;
        margin: 0.25rem 0 0.5rem !important;
        box-shadow: none;
    }

    .kf-cat-dropdown__grid {
        grid-template-columns: 1fr;
    }

    .kf-navbar .nav-link {
        padding: 0.75rem 0.5rem !important;
    }
}


/* Main content offset */
.kf-main { padding-top: var(--kf-navbar-h); min-height: 60vh; }
.kf-main.no-offset { padding-top: 0; }

/* Hero */
.kf-hero {
    position: relative;
    height: clamp(280px, 48vh, 480px);
    min-height: 280px;
    max-height: 480px;
    overflow: hidden;
    background: var(--kf-bg);
}

.kf-hero .swiper { height: 100%; }

.kf-hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.kf-hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.swiper-slide-active .kf-hero-slide__bg { transform: scale(1); }

.kf-hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.kf-hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 2rem;
}

.kf-hero-slide__label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--kf-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kf-hero-slide__title {
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    line-height: 1.05;
}

.kf-hero-slide__desc {
    color: var(--kf-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
    max-width: 420px;
}

.kf-hero .swiper-button-prev,
.kf-hero .swiper-button-next {
    color: var(--kf-text);
    background: rgba(26,26,26,0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--kf-border);
}

.kf-hero .swiper-button-prev::after,
.kf-hero .swiper-button-next::after { font-size: 1rem; }

.kf-hero .swiper-pagination-bullet {
    background: var(--kf-text-muted);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.kf-hero .swiper-pagination-bullet-active {
    background: var(--kf-accent);
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* Section */
.kf-section { padding: 1.75rem 0; }
.kf-section--sm { padding: 1.25rem 0; }

.kf-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kf-section-header__label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--kf-accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kf-section-header__title {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.kf-section-header__link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kf-text-muted);
    white-space: nowrap;
}

.kf-section-header__link:hover { color: var(--kf-accent); }

/* Product card — floating white card on gray shelf */
.kf-product-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--kf-transition), box-shadow var(--kf-transition);
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kf-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kf-shadow-card-hover);
    border-color: #E5E7EB;
}

/* Gray product grid area (marketplace shelf) */
.kf-product-shelf {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 20px;
}

.kf-product-shelf > .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

@media (min-width: 768px) {
    .kf-product-shelf {
        padding: 24px;
    }
    .kf-product-shelf > .row {
        --bs-gutter-x: 20px;
        --bs-gutter-y: 20px;
    }
}

.kf-product-card__image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
    margin: 0;
}

.kf-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: #FFFFFF;
    opacity: 1;
}

.kf-product-card:hover .kf-product-card__image { transform: scale(1.04); }

.kf-product-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.kf-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
}

.kf-badge--sale { background: var(--kf-sale); color: #fff; }
.kf-badge--new { background: var(--kf-accent); color: #fff; }
.kf-badge--best { background: rgba(0,0,0,0.55); color: #fff; border: none; }

.kf-product-card__actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--kf-transition), transform var(--kf-transition);
}

.kf-product-card:hover .kf-product-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.kf-product-card__body { padding: 0.65rem 0.7rem 0.85rem; }

.kf-product-card__category {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kf-text-muted);
    margin-bottom: 0.2rem;
}

.kf-product-card__name {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-product-card__price {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.kf-price { font-weight: 700; font-size: 1rem; color: var(--kf-sale); }
.kf-product-card__price .kf-price { font-size: 0.85rem; color: var(--kf-sale); }
.kf-price--sale { color: var(--kf-sale); }
.kf-price--strike {
    text-decoration: line-through;
    color: var(--kf-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}
.kf-product-card__price .kf-price--strike { font-size: 0.7rem; }

.kf-product-card__swatches {
    display: flex;
    gap: 4px;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.kf-swatch-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
}

/* Dense mobile grid */
@media (max-width: 575.98px) {
    .kf-product-shelf {
        padding: 16px;
        border-radius: 14px;
    }
    .kf-product-shelf > .row {
        --bs-gutter-x: 14px;
        --bs-gutter-y: 14px;
    }
    .kf-product-card {
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
    .kf-product-card__image-wrap { border-radius: 14px 14px 0 0; }
    .kf-product-card:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
    .kf-product-card:hover .kf-product-card__image { transform: none; }
    .kf-product-card__body { padding: 0.55rem 0.6rem 0.75rem; }
    .kf-product-card__category { display: none; }
    .kf-product-card__name { font-size: 0.72rem; margin-bottom: 0.25rem; }
    .kf-product-card__price .kf-price { font-size: 0.78rem; }
    .kf-product-card__price .kf-price--strike { font-size: 0.64rem; }
    .kf-badge { font-size: 0.55rem; padding: 2px 5px; }
    .kf-product-card__badges { top: 8px; left: 8px; }
    .kf-swatch-dot { width: 9px; height: 9px; }
    .kf-product-card__actions { display: none; }
}


/* Categories — compact Shopee-like chips */
.kf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.kf-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.35rem;
    background: var(--kf-surface);
    border: none;
    border-radius: var(--kf-radius);
    text-align: center;
    box-shadow: var(--kf-shadow-card);
    transition: box-shadow var(--kf-transition), transform var(--kf-transition);
}

.kf-category-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--kf-text);
    transform: translateY(-1px);
}

.kf-category-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--kf-accent);
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.kf-category-item__icon--img {
    background: #fff;
    padding: 0;
}

.kf-category-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kf-category-item__name {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

@media (min-width: 768px) {
    .kf-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 0.65rem;
    }
    .kf-category-item { padding: 0.75rem 0.4rem; }
    .kf-category-item__icon { width: 48px; height: 48px; font-size: 1.25rem; }
    .kf-category-item__name { font-size: 0.72rem; }
}

/* Filters */
.kf-filters {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
    padding: 1.5rem;
}

.kf-filter-group { margin-bottom: 1.25rem; }
.kf-filter-group:last-child { margin-bottom: 0; }

.kf-filter-group__title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kf-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.kf-filter-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin: 0 0.35rem 0.35rem 0;
    border: 1px solid var(--kf-border);
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--kf-transition);
    background: transparent;
    color: var(--kf-text-muted);
}

.kf-filter-chip:hover,
.kf-filter-chip.active {
    border-color: var(--kf-accent);
    color: var(--kf-accent);
    background: rgba(214, 0, 28, 0.08);
}

/* Product detail */
.kf-pdp-gallery { position: sticky; top: calc(var(--kf-navbar-h) + 1rem); }

.kf-pdp-main-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    cursor: zoom-in;
}

.kf-pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.12s ease-out;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-drag: none;
}

.kf-pdp-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kf-pdp-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kf-pdp-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid var(--kf-border);
    border-radius: var(--kf-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--kf-transition), border-color var(--kf-transition);
}

.kf-pdp-thumb.active,
.kf-pdp-thumb:hover { opacity: 1; border-color: var(--kf-accent); }

.kf-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.kf-variant-btn {
    min-width: 44px;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    background: transparent;
    color: var(--kf-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--kf-transition);
}

.kf-variant-btn:hover,
.kf-variant-btn.active {
    border-color: var(--kf-accent);
    background: rgba(214, 0, 28, 0.1);
    color: var(--kf-accent);
}

.kf-variant-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* Color swatches ala Shopee */
.kf-color-swatch {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid var(--kf-border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--kf-transition), transform var(--kf-transition);
}

.kf-color-swatch__fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--kf-bg);
    box-sizing: border-box;
}

.kf-color-swatch:hover,
.kf-color-swatch.active {
    border-color: var(--kf-accent);
    transform: scale(1.08);
}

.kf-color-swatch.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--kf-accent);
    border-radius: 50%;
    pointer-events: none;
}

.kf-color-swatch.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.kf-variant-label {
    font-size: 0.85rem;
    color: var(--kf-text);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .kf-pdp-gallery { position: static; }
    .kf-pdp-main-image { border-radius: var(--kf-radius); }
}

.kf-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    overflow: hidden;
}

.kf-qty-control button {
    background: var(--kf-surface);
    border: none;
    color: var(--kf-text);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
}

.kf-qty-control button:hover { background: var(--kf-border); }

.kf-qty-control input {
    width: 48px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--kf-border);
    border-right: 1px solid var(--kf-border);
    color: var(--kf-text);
    font-weight: 600;
}

.kf-pdp-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--kf-border);
    padding: 0.75rem 1rem;
    z-index: 1040;
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

/* Cart */
.kf-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--kf-border);
}

.kf-cart-item__image {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--kf-radius);
    overflow: hidden;
    background: var(--kf-surface-2);
}

.kf-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }

.kf-cart-summary {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--kf-navbar-h) + 1rem);
}

.kf-cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.kf-cart-summary__total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 1px solid var(--kf-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Checkout */
.kf-payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    cursor: pointer;
    transition: border-color var(--kf-transition);
    margin-bottom: 0.75rem;
}

.kf-payment-method:hover,
.kf-payment-method.active { border-color: var(--kf-accent); }

.kf-payment-method input { accent-color: var(--kf-accent); }

.kf-payment-details {
    display: none;
    padding: 1rem;
    background: var(--kf-surface-2);
    border-radius: var(--kf-radius);
    margin-top: 0.5rem;
}

.kf-payment-details.show { display: block; }

.kf-qris-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--kf-radius-lg);
    max-width: 320px;
    margin: 0 auto;
}

.kf-qris-box img { margin: 0 auto; }

/* Auth */
.kf-auth-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
}

.kf-auth-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--kf-text-muted);
}

/* Account sidebar */
.kf-account-nav .list-group-item {
    background: transparent;
    border-color: var(--kf-border);
    color: var(--kf-text-muted);
    padding: 0.85rem 1.25rem;
}

.kf-account-nav .list-group-item.active,
.kf-account-nav .list-group-item:hover {
    background: rgba(214, 0, 28, 0.08);
    border-color: var(--kf-border);
    color: var(--kf-accent);
}

/* Testimonials */
.kf-testimonial {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
    padding: 1.75rem;
    height: 100%;
}

.kf-testimonial__stars { color: var(--kf-accent); margin-bottom: 1rem; }

/* FAQ */
.kf-faq-item {
    border-bottom: 1px solid var(--kf-border);
}

.kf-faq-item .accordion-button {
    background: transparent;
    color: var(--kf-text);
    font-weight: 600;
    box-shadow: none;
    padding: 1.25rem 0;
}

.kf-faq-item .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--kf-accent);
}

.kf-faq-item .accordion-button::after { filter: none; }

.kf-faq-item .accordion-body {
    color: var(--kf-text-muted);
    padding: 0 0 1.25rem;
}

/* Footer */
.kf-footer {
    background: var(--kf-surface-2);
    border-top: 1px solid var(--kf-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.kf-footer__brand img { height: 40px; margin-bottom: 1rem; }

.kf-footer__slogan {
    color: var(--kf-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.kf-footer__title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kf-text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.kf-footer__links { list-style: none; padding: 0; margin: 0; }

.kf-footer__links li { margin-bottom: 0.6rem; }

.kf-footer__links a {
    color: var(--kf-text-muted);
    font-size: 0.9rem;
}

.kf-footer__links a:hover { color: var(--kf-text); }

.kf-footer__bottom {
    border-top: 1px solid var(--kf-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--kf-text-muted);
}

.kf-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kf-border);
    border-radius: 50%;
    color: var(--kf-text-muted);
    margin-right: 0.5rem;
    transition: all var(--kf-transition);
}

.kf-social a:hover {
    border-color: var(--kf-accent);
    color: var(--kf-accent);
}

/* Flash messages */
.kf-flash {
    position: fixed;
    top: calc(var(--kf-navbar-h) + 1rem);
    right: 1rem;
    z-index: 1100;
    min-width: 280px;
    max-width: 400px;
    animation: kfSlideIn 0.3s ease;
}

@keyframes kfSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Skeleton */
.kf-skeleton {
    background: linear-gradient(90deg, var(--kf-surface) 25%, #252525 50%, var(--kf-surface) 75%);
    background-size: 200% 100%;
    animation: kfShimmer 1.5s infinite;
    border-radius: var(--kf-radius);
}

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

.kf-skeleton--text { height: 1rem; margin-bottom: 0.5rem; }
.kf-skeleton--title { height: 1.5rem; width: 60%; margin-bottom: 1rem; }
.kf-skeleton--image { aspect-ratio: 3/4; width: 100%; }

/* Promo banner */
.kf-promo-banner {
    background: linear-gradient(135deg, var(--kf-accent) 0%, #8b0012 100%);
    border-radius: var(--kf-radius-lg);
    padding: 2.5rem;
    text-align: center;
}

/* Tabs */
.nav-tabs.kf-tabs {
    border-bottom-color: var(--kf-border);
}

.nav-tabs.kf-tabs .nav-link {
    color: var(--kf-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
}

.nav-tabs.kf-tabs .nav-link.active {
    color: var(--kf-accent);
    border-bottom-color: var(--kf-accent);
    background: transparent;
}

/* Pagination */
.pagination .page-link {
    background: var(--kf-surface);
    border-color: var(--kf-border);
    color: var(--kf-text-muted);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--kf-accent);
    border-color: var(--kf-accent);
    color: #fff;
}

/* Empty state */
.kf-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--kf-text-muted);
}

.kf-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* About teaser */
.kf-about-teaser {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
}

/* Error pages */
.kf-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

.kf-error__code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--kf-accent);
    line-height: 1;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 991.98px) {
    .kf-filters { margin-bottom: 2rem; }
    .kf-pdp-gallery { position: static; margin-bottom: 2rem; }
}

@media (max-width: 767.98px) {
    .kf-hero {
        height: clamp(240px, 42vh, 360px);
        min-height: 240px;
        max-height: 360px;
    }
    .kf-hero-slide__content { padding: 1.25rem; }
    .kf-section { padding: 2rem 0; }
    .kf-pdp-sticky-bar { display: flex; align-items: center; gap: 1rem; }
    .kf-pdp-sticky-bar .btn { flex: 1; }
    .kf-cart-item { flex-direction: column; }
    .kf-cart-item__image { width: 100%; height: 200px; }
    .kf-footer { padding: 2.5rem 0 1.5rem; }
}

@media (min-width: 768px) {
    .kf-navbar .navbar-collapse { justify-content: center; }
}

/* Utility */
.object-fit-cover { object-fit: cover; }
.lh-tight { line-height: 1.2; }
.tracking-wide { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

/* Order timeline */
.kf-order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 0.25rem;
}

.kf-order-timeline__item {
    display: flex;
    gap: 0.85rem;
    position: relative;
    padding-bottom: 1.1rem;
}

.kf-order-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--kf-border);
}

.kf-order-timeline__item.is-done:not(:last-child)::before {
    background: var(--kf-accent);
}

.kf-order-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--kf-border);
    background: var(--kf-bg);
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 1;
}

.kf-order-timeline__item.is-done .kf-order-timeline__dot {
    border-color: var(--kf-accent);
    background: var(--kf-accent);
}

.kf-order-timeline__item.is-current .kf-order-timeline__dot {
    box-shadow: 0 0 0 4px rgba(214, 0, 28, 0.25);
}

.kf-order-timeline__title {
    font-weight: 600;
    font-size: 0.9rem;
}

.kf-order-timeline__meta {
    font-size: 0.75rem;
    color: var(--kf-text-muted);
}

.kf-order-timeline__note {
    font-size: 0.8rem;
    color: var(--kf-text-muted);
    margin-top: 0.15rem;
}

.kf-account-nav .list-group-item {
    background: transparent;
    border-color: var(--kf-border);
    color: var(--kf-text-muted);
}

.kf-account-nav .list-group-item.active,
.kf-account-nav .list-group-item:hover {
    background: rgba(214, 0, 28, 0.08);
    color: var(--kf-text);
    border-color: var(--kf-border);
}

/* Event banners — stacked full-width (Kotak 1..4), Shopee light */
.kf-event-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kf-event-banner {
    display: block;
    background: var(--kf-surface);
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    box-shadow: var(--kf-shadow-card);
    color: inherit;
    transition: box-shadow var(--kf-transition), transform var(--kf-transition);
}

.kf-event-banner:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    color: inherit;
    transform: translateY(-2px);
}

.kf-event-banner__media {
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 160px;
    background: var(--kf-surface-2);
    overflow: hidden;
}

.kf-event-banner__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.kf-event-banner:hover .kf-event-banner__media > img {
    transform: scale(1.03);
}

.kf-event-banner__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #bbb;
    background: linear-gradient(145deg, #f0f0f0, #e5e5e5);
}

.kf-event-banner__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.kf-event-banner__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.15rem 1.15rem;
    color: #fff;
    z-index: 2;
}

.kf-event-banner__title {
    font-family: var(--kf-font-display);
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.kf-event-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    opacity: 0.92;
    margin-bottom: 0.35rem;
}

.kf-event-banner__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 0.45rem;
}

.kf-event-banner__cta {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fff;
    color: var(--kf-text);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
}

.kf-event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.kf-event-badge--available { background: var(--kf-success); color: #04140a; }
.kf-event-badge--sold_out { background: #6b7280; color: #fff; }
.kf-event-badge--coming_soon { background: var(--kf-sale); color: #fff; }

/* Legacy event card helpers */
.kf-event-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kf-event-card {
    display: block;
    background: var(--kf-surface);
    border: none;
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--kf-shadow-card);
}

.kf-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.kf-event-card__media {
    position: relative;
    aspect-ratio: 16/7;
    background: var(--kf-surface-2);
    overflow: hidden;
}

.kf-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kf-event-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #bbb;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
}

.kf-event-card__body { padding: 0.85rem 1rem 1.1rem; }

.kf-event-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.kf-event-card__meta {
    font-size: 0.75rem;
    color: var(--kf-text-muted);
    margin-bottom: 0.15rem;
}

.kf-event-card__price {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kf-sale);
}

.kf-event-hero-img {
    position: relative;
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    border: 1px solid var(--kf-border);
    aspect-ratio: 3/4;
    background: var(--kf-surface);
}

.kf-event-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kf-event-hero-img__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #555;
}

.kf-ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--kf-border);
}

.kf-ticket-row.is-disabled { opacity: 0.45; }

.kf-ticket-qty { width: 80px; margin-left: auto; }

@media (max-width: 767.98px) {
    .kf-event-banner__media { aspect-ratio: 16 / 9; min-height: 140px; }
    .kf-event-banner:hover { transform: none; }
    .kf-event-banner:hover .kf-event-banner__media > img { transform: none; }
    .kf-event-banner__content { padding: 0.85rem 0.95rem 1rem; }
    .kf-event-banner__title { font-size: 1rem; }
    .kf-event-card__media { aspect-ratio: 16/9; }
}
