/* =====================================================
   Optimism Jahit Indonesia — Custom Styles
   Palette: Deep black + Gold, premium-modern feel
===================================================== */

:root {
    --color-primary:  #0A0A0A;
    --color-accent:   #C9A961;
    --color-accent-2: #B08D45;
    --color-cream:    #F8F5F0;
    --color-gray:     #6B6B6B;
    --color-light:    #EFECE5;
    --color-wa:       #25D366;
    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.5rem); }

a { color: var(--color-primary); text-decoration: none; transition: all .2s ease; }
a:hover { color: var(--color-accent-2); }

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

.section-padding { padding: 5rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title .eyebrow {
    display: inline-block;
    color: var(--color-accent-2);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { color: var(--color-gray); max-width: 600px; margin: 0 auto; }

/* ============== TOP BAR ============== */
.topbar {
    background: var(--color-primary);
    color: var(--color-cream);
    font-size: 0.82rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}
.topbar i { color: var(--color-accent); margin-right: 0.35rem; }

/* ============== NAVBAR ============== */
.main-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-light);
    padding: 0.5rem 0;
    z-index: 1030;
}
.main-navbar .navbar-brand { padding: 0; line-height: 0; }
.main-navbar .navbar-brand img { transition: transform .25s; height: 44px; width: auto; }
.main-navbar .navbar-brand:hover img { transform: scale(1.03); }
.brand-text .brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
}
.brand-text .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--color-accent-2);
    font-weight: 500;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-primary) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--color-accent-2) !important; }
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-accent);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform .25s;
}
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.btn-wa {
    background: var(--color-wa);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.55rem 1.4rem !important;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    transition: all .25s;
}
.btn-wa:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.35);
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.dropdown-item i { color: var(--color-accent-2); width: 18px; }
.dropdown-item:hover { background: var(--color-cream); color: var(--color-primary); }

/* ============== HERO ============== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.4) 100%),
        url('../img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow {
    color: var(--color-accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: inline-block;
}
.hero .lead { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 560px; }
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-gold {
    background: var(--color-accent);
    color: var(--color-primary) !important;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-gold:hover {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201,169,97,0.4);
}
.btn-outline-light-custom {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 500;
    transition: all .25s;
}
.btn-outline-light-custom:hover {
    background: #fff;
    color: var(--color-primary) !important;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.hero-stats .stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}
.hero-stats .stat-label { font-size: 0.85rem; opacity: 0.85; margin-top: 0.25rem; }

/* ============== CATEGORY CARDS ============== */
.cat-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    height: 100%;
    color: var(--color-primary);
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary);
}
.cat-card .cat-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cat-card .cat-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}
.cat-card .cat-body { padding: 1.5rem; }
.cat-card .cat-body h5 { margin-bottom: 0.4rem; }
.cat-card .cat-body p { color: var(--color-gray); font-size: 0.9rem; margin: 0; }
.cat-card .cat-count { color: var(--color-accent-2); font-weight: 600; font-size: 0.85rem; }

/* ============== PRODUCT CARD ============== */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .product-img {
    aspect-ratio: 1/1;
    background: var(--color-light);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.product-card .badge-unggulan {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.product-card .product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .product-cat {
    color: var(--color-accent-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.product-card h5 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.product-card .product-price { color: var(--color-primary); font-weight: 600; font-size: 1.05rem; margin: auto 0 1rem 0; }
.product-card .product-price small { color: var(--color-gray); font-weight: 400; font-size: 0.8rem; display: block; }
.product-card .btn-detail {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all .25s;
}
.product-card .btn-detail:hover { background: var(--color-accent-2); color: #fff; }

/* ============== PILLARS ============== */
.pillar-section { background: var(--color-cream); }
.pillar {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform .25s;
}
.pillar:hover { transform: translateY(-4px); }
.pillar .icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    transition: all .25s;
}
.pillar:hover .icon-circle { background: var(--color-accent); color: var(--color-primary); }
.pillar h5 { margin-bottom: 0.5rem; }
.pillar p { color: var(--color-gray); font-size: 0.95rem; margin: 0; }

/* ============== CTA SECTION ============== */
.cta-section {
    background: var(--color-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
}
.cta-section h2 { color: #fff; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); position: relative; }
.cta-section .btn-gold { position: relative; }

/* ============== PRODUCT DETAIL ============== */
.breadcrumb-custom {
    background: var(--color-cream);
    padding: 1rem 0;
    font-size: 0.9rem;
}
.breadcrumb-custom a { color: var(--color-gray); }
.breadcrumb-custom .current { color: var(--color-primary); font-weight: 500; }

.product-detail-img {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-light);
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}
.product-detail-info h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.product-detail-info .kategori-tag {
    display: inline-block;
    background: var(--color-cream);
    color: var(--color-accent-2);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.product-detail-info .harga { font-size: 1.6rem; font-weight: 700; color: var(--color-accent-2); margin: 1rem 0; }
.product-detail-info .harga small { font-size: 0.9rem; color: var(--color-gray); font-weight: 400; }
.product-detail-info .deskripsi { color: var(--color-gray); margin: 1.5rem 0; line-height: 1.8; }
.product-detail-info .btn-cta { padding: 0.9rem 2rem; }

/* ============== FORMS ============== */
.form-control, .form-select {
    border: 1px solid #e0ddd5;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }
.btn-primary-custom {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all .25s;
}
.btn-primary-custom:hover {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    color: #fff;
}

/* ============== FOOTER ============== */
.site-footer {
    background: #0a0a0a;
    color: var(--color-cream);
    margin-top: 4rem;
}
.site-footer .footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
}
.site-footer .footer-sub {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    font-weight: 500;
}
.site-footer .footer-title {
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}
.site-footer .footer-list, .site-footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-list li, .site-footer .footer-contact li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}
.site-footer .footer-list a {
    color: rgba(255,255,255,0.75);
    transition: color .2s;
}
.site-footer .footer-list a:hover { color: var(--color-accent); padding-left: 4px; }
.site-footer .footer-contact i { color: var(--color-accent); margin-right: 0.5rem; }
.site-footer .footer-contact a { color: rgba(255,255,255,0.85); }
.site-footer .footer-contact a:hover { color: var(--color-accent); }

.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.social-btn:hover { background: var(--color-accent); color: var(--color-primary) !important; transform: translateY(-2px); }

.footer-bottom {
    background: #000;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    border-top: 1px solid #1a1a1a;
}

/* ============== FLOATING WA ============== */
.float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-wa);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(37,211,102,0.45);
    z-index: 999;
    transition: all .25s;
    animation: pulse-wa 2.5s infinite;
}
.float-wa:hover { transform: scale(1.1); color: #fff !important; }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.45); }
    50%      { box-shadow: 0 8px 25px rgba(37,211,102,0.85), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ============== ALERT ============== */
.alert-soft {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}
.alert-soft-success { background: #e6f7ed; color: #1e7e3e; }
.alert-soft-danger  { background: #fce8e8; color: #b03030; }

/* ============== KATALOG FILTER ============== */
.filter-pill {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e0ddd5;
    color: var(--color-primary);
    margin: 0 0.35rem 0.5rem 0;
    font-size: 0.9rem;
    transition: all .2s;
    cursor: pointer;
}
.filter-pill:hover, .filter-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .hero { min-height: 75vh; }
    .hero-stats { gap: 1.5rem; }
    .hero-stats .stat-num { font-size: 2rem; }
    .topbar { font-size: 0.75rem; }
    .topbar .container > div { font-size: 0.75rem; }
}

/* ============== ANIMATIONS ============== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
