/* ============================================================
   OTAK-OTAK WARAS SOLO - PROFESSIONAL CATALOG STYLES
   Clean, Modern, Natural UI & Direct WhatsApp Ordering
   ============================================================ */

:root {
    --oow-red: #C81D11;
    --oow-red-dark: #A5150B;
    --oow-red-light: #FFF2F1;
    --oow-gold: #FFA000;
    --oow-gold-light: #FFF8E1;
    --oow-dark: #221815;
    --oow-muted: #6B7280;
    --oow-bg: #FCFBF9;
    --oow-card-bg: #FFFFFF;
    --oow-wa: #25D366;
    --oow-wa-hover: #1EBE5D;
    --oow-shopee: #EE4D2D;
    --oow-shopee-hover: #D73211;
    --oow-radius: 14px;
    --oow-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --oow-shadow-hover: 0 16px 36px rgba(200, 29, 17, 0.12);
}

/* 1. Global Reset & Fix Blank Animation Bug */
.jk-animate {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

body {
    background-color: var(--oow-bg) !important;
    color: var(--oow-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* 2. Clean Sticky Header */
#jk-header {
    position: sticky !important;
    top: 0;
    z-index: 1020;
    background: #FFFFFF !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #ECE7DE;
    transition: all 0.3s ease;
}

.top-announcement-bar {
    background: #1C120C !important;
    color: #FFFFFF;
    font-size: 13px;
    border-bottom: 2px solid var(--oow-red);
}

.top-announcement-bar a {
    transition: opacity 0.2s;
}
.top-announcement-bar a:hover {
    opacity: 0.85;
}

.jk-nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jk-nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.jk-nav-links li a {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.jk-nav-links li a:hover,
.jk-nav-links li a.active {
    color: var(--oow-red) !important;
}

.jk-nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--oow-red);
    border-radius: 2px;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 25px;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-header-user:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.btn-header-wa {
    background: var(--oow-wa);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 25px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.2s;
}

.btn-header-wa:hover {
    background: var(--oow-wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-header-shopee {
    background: var(--oow-shopee);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 25px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
    transition: all 0.2s;
}

.btn-header-shopee:hover {
    background: var(--oow-shopee-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 77, 45, 0.35);
}

/* 3. Hero Section (Warm, Authentic & Tasteful) */
.jk-hero {
    padding: 50px 0 60px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--oow-bg) 100%);
    border-bottom: 1px solid #EBE7DF;
}

.jk-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.jk-hero-badge {
    background: var(--oow-red-light);
    color: var(--oow-red);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(200, 29, 17, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.jk-hero-title {
    font-size: 44px;
    font-weight: 900;
    color: #1A120B;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.jk-hero-title span {
    color: var(--oow-red);
}

.jk-hero-desc {
    font-size: 17px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 30px;
}

.jk-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-cta-wa {
    background: var(--oow-wa);
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s;
}

.btn-cta-wa:hover {
    background: var(--oow-wa-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-cta-shopee {
    background: var(--oow-shopee);
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.35);
    transition: all 0.25s;
}

.btn-cta-shopee:hover {
    background: var(--oow-shopee-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(238, 77, 45, 0.45);
}

.btn-cta-catalog {
    background: #FFFFFF;
    color: #221815 !important;
    border: 2px solid #D1D5DB;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-cta-catalog:hover {
    border-color: var(--oow-red);
    color: var(--oow-red) !important;
    background: var(--oow-red-light);
}

.jk-hero-stats {
    display: flex;
    align-items: center;
    gap: 36px;
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
}

.jk-stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--oow-red);
}

.jk-stat-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

/* 4. Product Catalog Grid */
.catalog-section {
    padding: 70px 0;
}

.catalog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    background: #FFF3E0;
    color: #D97706;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 34px;
    font-weight: 900;
    color: #1A120B;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #6B7280;
    max-width: 650px;
    margin: 0 auto;
}

/* Catalog Grid Card */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.catalog-card {
    background: #FFFFFF;
    border-radius: var(--oow-radius);
    border: 1px solid #F0ECE4;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--oow-shadow-hover);
    border-color: rgba(200, 29, 17, 0.2);
}

.catalog-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background: #F9F7F2;
    overflow: hidden;
}

.catalog-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card-img-wrap img {
    transform: scale(1.05);
}

.catalog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-terlaris {
    background: var(--oow-red);
    color: #FFFFFF;
}

.badge-grosir {
    background: #D97706;
    color: #FFFFFF;
}

.badge-fresh {
    background: #059669;
    color: #FFFFFF;
}

.catalog-card-shopee-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(238, 77, 45, 0.95);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-wishlist-heart {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    padding: 0;
}

.btn-wishlist-heart:hover {
    background: #FFF5F5;
    color: #C81D11;
    transform: scale(1.15);
    border-color: #FECACA;
    box-shadow: 0 6px 14px rgba(200, 29, 17, 0.22);
}

.btn-wishlist-heart:hover i {
    color: #C81D11;
}

.btn-wishlist-heart.active {
    background: #FFF0F0;
    color: #DC2626 !important;
    border-color: #F87171;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-wishlist-heart.active i {
    color: #DC2626 !important;
}

.catalog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.catalog-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A120B;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 44px;
}

.catalog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-card-title a:hover {
    color: var(--oow-red);
}

.catalog-card-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-price-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.catalog-card-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--oow-red);
}

.catalog-card-unit {
    font-size: 12px;
    color: #9CA3AF;
}

/* Card Action Buttons */
.catalog-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.btn-card-buy {
    flex: 1;
    background: linear-gradient(135deg, #00529C 0%, #003366 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 82, 156, 0.25);
    white-space: nowrap;
}

.btn-card-buy:hover {
    background: linear-gradient(135deg, #003d75 0%, #002244 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 156, 0.35);
}

.btn-card-cart {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #C81D11;
    background: #FFF5F5;
    color: #C81D11 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.btn-card-cart:hover {
    background: #C81D11;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(200, 29, 17, 0.3);
}

.btn-card-wa {
    background: var(--oow-wa);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-card-wa:hover {
    background: var(--oow-wa-hover);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-card-detail {
    background: #F3F4F6;
    color: #374151 !important;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-card-detail:hover {
    background: #E5E7EB;
    color: #111827 !important;
}

/* 5. Floating WhatsApp Button */
.wa-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: #25D366;
    color: #FFFFFF !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 8px;
    animation: wa-pulse 2.5s infinite;
}

.wa-floating-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    color: #FFFFFF !important;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 6. Product Detail Custom Styles */
.detail-clean-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid #F0ECE4;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.qty-counter-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
}

.qty-counter-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #F9FAFB;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-counter-btn:hover {
    background: #E5E7EB;
}

.qty-counter-input {
    width: 60px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    outline: none;
}

/* Responsive Rules & Mobile Polish */
@media (max-width: 991px) {
    .jk-nav-container {
        padding: 10px 16px;
    }
    .jk-nav-links {
        display: none;
    }
    .jk-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .jk-hero-actions {
        justify-content: center;
    }
    .jk-hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .jk-hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-announcement-bar {
        font-size: 11.5px;
        padding: 6px 0;
    }
    .jk-hero {
        padding: 30px 0 40px;
    }
    .jk-hero-title {
        font-size: 32px;
        line-height: 1.25;
    }
    .jk-hero-desc {
        font-size: 14.5px;
        margin-bottom: 24px;
    }
    .section-title {
        font-size: 26px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .catalog-section {
        padding: 40px 0;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .catalog-card-body {
        padding: 15px;
    }
    .catalog-card-title {
        font-size: 15px;
        min-height: auto;
    }
    .catalog-card-price {
        font-size: 19px;
    }
}

@media (max-width: 576px) {
    .top-announcement-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    .top-announcement-bar .d-flex {
        justify-content: center !important;
        text-align: center;
    }
    .jk-nav-container {
        padding: 8px 12px;
    }
    .jk-hero-title {
        font-size: 26px;
    }
    .jk-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-cta-wa, .btn-cta-shopee, .btn-cta-catalog {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 14.5px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .catalog-card-actions {
        flex-wrap: wrap;
    }
    .btn-card-buy {
        width: 100%;
        padding: 10px;
    }
    .btn-card-detail {
        flex: 1;
    }
    .wa-floating-btn span {
        display: none;
    }
    .wa-floating-btn {
        padding: 14px;
        border-radius: 50%;
        bottom: 18px;
        right: 18px;
    }
}

/* Global Device Table and Layout Resets */
@media (max-width: 768px) {
    .table-responsive {
        border: none !important;
        margin-bottom: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .card-header.flex-wrap,
    .d-flex.flex-wrap {
        row-gap: 10px;
    }
}
