/* =====================================================
   FASHION CATALOG STORE - STYLE MODULAR
   Tema: Modern Minimalis, fokus foto produk, white space cukup
   ===================================================== */

:root {
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --primary: #111827;
    --secondary: #6B7280;
    --accent: #2563EB;
    --success: #22C55E;
    --danger: #EF4444;
    --border: #E5E7EB;
    --radius: 14px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER / NAVBAR ===== */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--primary) !important;
}
.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--primary) !important; }
.search-form { position: relative; }
.search-form .form-control {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding-right: 2.5rem;
    background: var(--bg);
}
.search-form .btn-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary);
}
.nav-wishlist-link { margin-left: 1rem; color: var(--primary); display: inline-flex; }

/* ===== HERO ===== */
.hero-section { padding: 2rem 0; }
.hero-carousel img { border-radius: var(--radius); max-height: 480px; object-fit: cover; }
.hero-placeholder {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 5rem 2rem;
}
.hero-placeholder h1 { font-weight: 800; font-size: 2.5rem; margin-bottom: 0.5rem; }

/* ===== SECTIONS ===== */
.section-kategori, .section-produk, .section-brand, .section-testimoni, .section-cta {
    padding: 3rem 0;
}
.bg-light-alt { background: #F1F5F9; }
.section-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

/* ===== KATEGORI ===== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(17,24,39,0.08); }
.category-card img { width: 48px; height: 48px; object-fit: contain; }

/* ===== PRODUCT CARD ===== */
.product-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(17,24,39,0.10); }
.product-card-img { position: relative; aspect-ratio: 3/4; background: #F1F5F9; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--secondary); font-size: 0.85rem; }
.badge-diskon {
    position: absolute; top: 10px; left: 10px;
    background: var(--danger); color: #fff;
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
}
.badge-habis {
    position: absolute; top: 10px; right: 10px;
    background: rgba(17,24,39,0.85); color: #fff;
    font-size: 0.7rem; font-weight: 600;
    padding: 3px 8px; border-radius: 999px;
}
.wishlist-btn {
    position: absolute; bottom: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.95); border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary); opacity: 0; transition: opacity 0.2s, color 0.2s;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn.active { color: var(--danger); opacity: 1; }
.wishlist-btn svg { fill: none; }
.wishlist-btn.active svg { fill: var(--danger); }
.quickview-btn {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(17,24,39,0.85); color: #fff; border: none;
    font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
    opacity: 0; transition: opacity 0.2s;
}
.product-card:hover .quickview-btn { opacity: 1; }
.product-card-body { padding: 0.9rem 1rem 1.1rem; }
.product-name {
    font-size: 0.92rem; font-weight: 600; margin: 0 0 0.4rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.4em;
}
.product-price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-final { font-weight: 800; color: var(--primary); font-size: 1.02rem; }
.price-old { font-size: 0.8rem; color: var(--secondary); text-decoration: line-through; }

/* ===== BRAND STRIP ===== */
.brand-strip { display: flex; flex-wrap: wrap; gap: 1rem; }
.brand-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.5rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
    min-width: 140px;
}
.brand-item img { max-height: 40px; object-fit: contain; }

/* ===== TESTIMONI ===== */
.testimoni-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.stars { color: #F59E0B; margin-bottom: 0.6rem; }

/* ===== CTA ===== */
.section-cta { background: var(--primary); color: #fff; border-radius: var(--radius); margin: 2rem auto; max-width: 1140px; }
.section-cta h2 { font-weight: 800; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: #D1D5DB; padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer h5, .site-footer h6 { color: #fff; font-weight: 700; }
.footer-brand { font-size: 1.3rem; font-weight: 800; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: #9CA3AF; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}
.site-footer hr { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 1050;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--success);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(34,197,94,0.4);
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 2rem 0 4rem; }
.page-title { font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; }
.breadcrumb { font-size: 0.85rem; }

/* ===== PRODUCT DETAIL ===== */
.product-gallery .gallery-main {
    aspect-ratio: 1/1; background: #F1F5F9; border-radius: var(--radius); overflow: hidden; margin-bottom: 0.8rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gallery-thumb {
    width: 70px; height: 70px; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; opacity: 0.7;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.product-price-detail .price-final { font-size: 1.7rem; }
.product-price-detail .price-old { font-size: 1rem; }

.option-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.option-pill input { display: none; }
.option-pill span {
    display: inline-block; padding: 0.4rem 1rem; border: 1px solid var(--border);
    border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 500;
}
.option-pill input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-specs { list-style: none; padding: 0; margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.product-specs li { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--secondary); }

/* ===== FILTER SIDEBAR ===== */
.filter-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.filter-box h6 { font-weight: 700; margin-top: 0.5rem; }

/* ===== FORMS ===== */
.form-control, .form-select { border-radius: 10px; border-color: var(--border); padding: 0.6rem 0.9rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.btn { border-radius: 10px; font-weight: 600; padding: 0.6rem 1.4rem; }
.btn-dark { background: var(--primary); border-color: var(--primary); }
.btn-success { background: var(--success); border-color: var(--success); }

/* ===== ADMIN LOGIN ===== */
.admin-login-body { background: var(--primary); }
.admin-login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.admin-login-card { background: var(--card); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 400px; }
.admin-login-title { font-weight: 800; font-size: 1.5rem; }

/* ===== ARTICLE CARD (Blog) ===== */
.article-card {
    display: block; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,24,39,0.08); }
.article-card-img { aspect-ratio: 16/9; background: #F1F5F9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 1.1rem; }
.article-card-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0; }
.article-badge { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.content-page { line-height: 1.8; }
.content-page img { max-width: 100%; height: auto; border-radius: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-placeholder h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.3rem; }
}
