/* CSS khusus project SuryaPersinar2026, dimuat di SEMUA halaman toko oleh _Layout.cshtml (hook: hanya bila berkas ini ada dan tidak kosong).
   Berkas per project (wwwroot/AssetAssist, di luar TFVC). Tidak memengaruhi project lain. master-assist.min.css hanya untuk blok wizard. */

/* ---------- Thumbnail artikel (daftar artikel, kategori artikel, artikel terkait) ---------- */
/* Gambar artikel project ini 1200x630 (banner promo, rasio 1,9:1); kotak bawaan 3:2 memotong sisi kiri dan kanannya. */
.article-cards .article-image .ratio {
    --bs-aspect-ratio: 52.5%;
}

/* ---------- Kartu produk halaman kategori / daftar produk (Tampilan Toko: gaya Garis, 2 kolom, rasio 16:9) ---------- */
/* Bingkai dan sudut seperti situs lama (suryapersinar.com). */
.responsive .product-card.for-category-product.type-default.card-style-line .card-wrapper.primary {
    border-color: #909090;
    border-radius: 10px;
}

/* Semua isi kartu rata tengah: judul, deskripsi, harga / teks harga, swatch, tombol ukuran, tombol WhatsApp. */
.responsive .product-card.for-category-product.type-default.card-style-line .card-wrapper,
.responsive .product-card.for-category-product.type-default.card-style-line .product-text,
.responsive .product-card.for-category-product.type-default.card-style-line .product-price,
.responsive .product-card.for-category-product.type-default.card-style-line .product-price .textprice {
    text-align: center;
}

.responsive .product-card.for-category-product.type-default.card-style-line .product-price > * {
    justify-content: center !important;
    align-items: center !important;
}

.responsive .product-card.for-category-product.type-default.card-style-line .product-price .price-wrapper > * {
    margin-left: auto;
    margin-right: auto;
}

/* Jarak rapat antara judul, deskripsi, dan harga: tanpa tinggi cadangan dua baris dan tanpa margin bawah besar. */
.responsive .product-card.for-category-product.type-default.card-style-line .product-text {
    margin-bottom: .85rem !important;
}

.responsive .product-card.for-category-product.type-default.card-style-line .product-text .title {
    min-height: 0;
    margin-bottom: .4rem;
}

/* Jarak harga ke tombol WhatsApp (minimal; tombol tetap sejajar di dasar kartu lewat margin-top otomatis tema). */
.responsive .product-card.for-category-product.type-default.card-style-line .product-cta {
    padding-top: 1rem;
}

.responsive .product-card.for-category-product.type-default.card-style-line .product-text .desc {
    min-height: 0;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.responsive .product-card.for-category-product.type-default.card-style-line .product-text .desc p {
    margin: 0;
}

/* ---------- Varian di kartu ---------- */
/* Swatch "warna" di project ini bukan warna (kode paket 0/1, tanpa kode warna sungguhan), jadi tidak ditampilkan sebagai kotak angka. */
.responsive .product-card.for-category-product.card-style-line .product-swatches:has(.swatch-color-empty) {
    display: none !important;
}

/* Swatch warna sungguhan (bila ada) di tengah, bulat, bingkai tema. */
.responsive .product-card.for-category-product.card-style-line .product-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin: .25rem 0;
}

.responsive .product-card.for-category-product.card-style-line .product-swatches .swatch {
    border-radius: 50%;
    border: 1px solid var(--line, #e3e7ec);
    overflow: hidden;
}

/* Tombol "N ukuran": kapsul garis warna utama, ikon penggaris kecil. */
.responsive .product-card.for-category-product.card-style-line .product-sizes-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: .35rem 0 .5rem;
}

.responsive .product-card.for-category-product.card-style-line .product-sizes-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .9rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand, #f9673b);
    background: #fff;
    border: 1px solid var(--brand, #f9673b);
    border-radius: 50rem;
    transition: color .2s ease, background-color .2s ease;
}

.responsive .product-card.for-category-product.card-style-line .product-sizes-btn i {
    font-size: .75rem;
}

.responsive .product-card.for-category-product.card-style-line .product-sizes-btn:hover,
.responsive .product-card.for-category-product.card-style-line .product-sizes-btn:focus-visible,
.responsive .product-card.for-category-product.card-style-line .product-sizes-btn[aria-expanded="true"] {
    color: var(--brand-contrast, #fff);
    background: var(--brand, #f9673b);
}

/* Popup ukuran: kapsul kecil berbingkai tema, di tengah. */
.responsive .product-card.for-category-product.card-style-line .product-sizes {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    z-index: 5;
    justify-content: center !important;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line, #e3e7ec);
    border-radius: .6rem;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
}

.responsive .product-card.for-category-product.card-style-line .product-size-chip {
    padding: .2rem .65rem;
    font-size: .75rem;
    color: var(--ink, #1c2e49);
    background: #fff;
    border: 1px solid var(--line, #e3e7ec);
    border-radius: 50rem;
}

/* ---------- Footer tipe 2: situs lama tidak menampilkan kategori & pencarian populer di footer, jadi disembunyikan (datanya tetap di /cms/kategori-populer). ---------- */
.foot2 .foot2-popular { display: none; }

/* ---------- Wizard blok gambar + teks (About) di HP / tablet kecil: kolom bertumpuk satu per satu ---------- */
/* Blok picture-left-text-right / picture-right-text-left memakai dua kolom 41,67% di semua lebar; di bawah 768px teks jadi sempit dan gambar kosong. */
@media (max-width: 767.98px) {
    .responsive .wizard .surya-persinar[class*="picture-"][class*="-text-"] .col-content-outer > .row > .col-content-inner {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

