/* =========================================================
   KANEEZA MOSLEM WEAR — CSS khusus Beranda (index.php)
   Berisi elemen yang HANYA ada di homepage: hero, kategori,
   promo strip, dan carousel produk (New Arrival/Best Seller).
   Style yang dipakai bersama (header, footer, bottom-nav,
   topbar, features) ada di assets/css/style.css.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
    background: var(--cream);
    border-radius: 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 440px;
    position: relative;
}

.hero-text {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 12.5px;
    letter-spacing: 3px;
    color: var(--maroon);
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.14;
    color: var(--maroon-dark);
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-text p {
    max-width: 390px;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.hero-visual {
    position: relative;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #efe6d8, #e6dac8);
}

.hero-visual .big-k {
    position: absolute;
    right: -40px;
    font-family: 'Playfair Display', serif;
    font-size: 420px;
    font-weight: 700;
    color: #00000008;
    line-height: 1;
}

.hero-figures {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.hero-figure {
    width: 150px;
    height: 340px;
    border-radius: 75px 75px 20px 20px;
    background: var(--maroon);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 34px;
    box-shadow: 0 20px 40px rgba(77, 18, 32, .25);
}

.hero-figure.light {
    background: var(--cream-light);
    border: 1px solid var(--border);
}

.hero-figure .icon {
    color: #fff;
}

.hero-figure.light .icon {
    color: var(--maroon);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 26px;
}

.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9cdbb;
}

.hero-dots span.active {
    background: var(--maroon);
    width: 20px;
    border-radius: 4px;
}

/* ---------- Section heading ---------- */
.section {
    padding: 56px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.section-head h2 {
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-head .view-all {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- Categories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cat-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    transition: .25s;
    border: 1px solid transparent;
}

.cat-item:hover .cat-circle {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

.cat-item span {
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Promo strip ---------- */
.promo-strip {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 22px;
    padding: 0 0 8px;
}

.promo-card {
    border-radius: var(--radius);
    padding: 34px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
}

.promo-card.big {
    background: var(--maroon);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card.big .promo-eyebrow {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: .9;
}

.promo-card.big .promo-num {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-card.big p {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 18px;
}

.promo-card.mid {
    background: var(--cream-light);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card.mid h3 {
    font-size: 19px;
    color: var(--maroon-dark);
    margin-bottom: 8px;
}

.promo-card.mid p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.promo-card.mid .link {
    font-size: 13px;
    font-weight: 600;
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-card.dark {
    background: var(--maroon-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.promo-card.dark .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-card.dark h3 {
    font-size: 17px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.promo-card.dark p {
    font-size: 13px;
    opacity: .85;
}

.chip {
    display: inline-block;
    background: #fff;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 9px 20px;
    border-radius: 2px;
    width: fit-content;
}

/* ---------- Product carousel row (New Arrival / Best Seller) ---------- */
.p-row-wrap {
    position: relative;
}

.p-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.p-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: .25s;
}

.p-card:hover {
    box-shadow: 0 14px 30px rgba(43, 35, 32, .08);
    transform: translateY(-3px);
}

.p-thumb {
    background: var(--cream);
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    box-shadow: 0 6px 16px rgba(77, 18, 32, .08);
}

.p-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 10px;
    border-radius: 2px;
    color: #fff;
    z-index: 2;
}

.p-badge.new {
    background: var(--maroon-dark);
}

.p-badge.sale {
    background: #b5342f;
}

.p-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    z-index: 2;
}

.p-info {
    padding: 16px 16px 18px;
}

.p-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.p-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.p-swatches {
    display: flex;
    gap: 6px;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
}

.row-arrow {
    position: absolute;
    top: 38%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
}

.row-arrow.left {
    left: -19px;
}

.row-arrow.right {
    right: -19px;
}

/* ---------- Responsive (khusus elemen beranda) ---------- */
@media(max-width:1080px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .p-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-strip {
        grid-template-columns: 1fr;
    }
}

@media(max-width:720px) {
    /* Hero: teks center, visual disembunyikan */
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 30px 18px 26px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 13.5px;
    }

    .hero-text .btn {
        display: none;
    }

    .hero-dots {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Kategori: scroll horizontal */
    .section {
        padding: 36px 0;
    }

    .cat-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .cat-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-item {
        flex: 0 0 auto;
    }

    .cat-circle {
        width: 72px;
        height: 72px;
    }

    .cat-item span {
        font-size: 12px;
    }

    /* Produk: scroll horizontal, kartu mengintip */
    .p-row-wrap {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .p-row {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .p-row::-webkit-scrollbar {
        display: none;
    }

    .p-card {
        flex: 0 0 62%;
        scroll-snap-align: start;
    }

    .row-arrow.left {
        display: none;
    }

    .row-arrow.right {
        right: 4px;
        top: 32%;
        width: 32px;
        height: 32px;
    }

    /* Promo: 3 kolom sekaligus, tanpa geser */
    .promo-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .promo-card {
        padding: 14px 10px;
        min-height: 150px;
        border-radius: 10px;
    }

    .promo-card.big .promo-eyebrow {
        font-size: 9px;
        letter-spacing: .5px;
    }

    .promo-card.big .promo-num {
        font-size: 26px;
    }

    .promo-card.big p {
        font-size: 9.5px;
        margin-bottom: 10px;
    }

    .promo-card.mid h3 {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .promo-card.mid p {
        font-size: 9.5px;
        margin-bottom: 8px;
    }

    .promo-card.mid .link {
        font-size: 10px;
        gap: 4px;
    }

    .promo-card.dark h3 {
        font-size: 11.5px;
    }

    .promo-card.dark p {
        font-size: 9.5px;
    }

    .promo-card.dark .icon-wrap {
        width: 32px;
        height: 32px;
    }

    .promo-card.dark .icon-wrap .icon {
        width: 16px;
        height: 16px;
    }

    .chip {
        font-size: 9px;
        padding: 7px 10px;
    }
}