/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* HEADER */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon { font-size: 32px; }
.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
}
.logo-tagline {
    font-size: 11px;
    color: #64748b;
}
.nav-menu {
    display: flex;
    gap: 24px;
}
.nav-menu a {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: #6366f1;
}
.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: all 0.2s;
}
.cart-icon:hover {
    background: #6366f1;
    color: white;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #6366f1 100%);
    color: white;
    padding: 60px 0;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p {
    font-size: 16px;
    margin-bottom: 28px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-image {
    text-align: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: #6366f1;
    color: white;
}
.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background: white;
    color: #6366f1;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}
.btn-block { width: 100%; }
.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
}
.btn-success {
    background: #10b981;
    color: white;
}
.btn-success:hover { background: #059669; }
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-soft-primary {
    background: #eef2ff;
    color: #6366f1;
    border: 1.5px solid #c7d2fe;
    font-weight: 700;
    transition: all 0.25s ease;
}
.btn-soft-primary:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99,102,241,0.25);
}

/* FEATURES */
.features {
    padding: 50px 0;
    background: white;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-icon { font-size: 42px; margin-bottom: 12px; }
.feature-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: #64748b; }

/* SECTIONS */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}
.section-title p { color: #64748b; font-size: 14px; }

/* KATEGORI */
.kategori-section {
    padding: 60px 0;
}
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.kategori-card {
    background: white;
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.kategori-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.15);
    border-color: #6366f1;
}
.kategori-icon { font-size: 36px; margin-bottom: 10px; }
.kategori-nama {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}
.kategori-count {
    font-size: 11px;
    color: #64748b;
}

/* PRODUK */
.produk-section {
    padding: 60px 0;
    background: white;
}
.produk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.produk-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.produk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #6366f1;
}
.produk-image {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.produk-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}
.produk-info {
    padding: 14px;
}
.produk-kategori {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.produk-nama {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
    min-height: 40px;
    line-height: 1.4;
}
.produk-nama:hover { color: #6366f1; }
.produk-harga {
    font-size: 18px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
}
.produk-stok {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
}

/* FOOTER */
.footer {
    background: #1e1b4b;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.footer h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #a5b4fc;
}
.footer p {
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5e1;
}
.footer i { margin-right: 6px; }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Layout */
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 14px; padding: 0 10px; }
    .hero-image { display: none; }
    .nav-menu { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .produk-grid { grid-template-columns: repeat(2, 1fr); }
    .kategori-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 22px; }
    
    /* ═══════════════════════════════════════
       HERO BUTTONS: FULL WIDTH & CENTER
       ═══════════════════════════════════════ */
    .hero-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Tetap 2 kolom di mobile (bukan 1 kolom) */
    .produk-content .produk-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .produk-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Kurangi ukuran font produk di mobile */
    .produk-info { padding: 10px; }
    .produk-nama { 
        font-size: 12px; 
        min-height: 34px;
        margin-bottom: 6px;
    }
    .produk-harga { 
        font-size: 14px; 
        margin-bottom: 6px;
    }
    .produk-stok { 
        font-size: 10px; 
        margin-bottom: 8px;
    }
    .produk-kategori { font-size: 10px; }
    .produk-image { height: 130px; }
    .produk-image div { font-size: 36px !important; }
    
    /* Tombol cart lebih kecil */
    .produk-card .btn-primary {
        padding: 7px 10px;
        font-size: 11px;
        gap: 4px;
    }
    .produk-card .btn-primary i {
        font-size: 11px;
    }
    
    /* Page title */
    .page-title-wrap h1 { font-size: 22px; }
    .produk-detail-nama { font-size: 22px; }
    .produk-detail-harga { font-size: 28px; }
    
    /* Gap antar produk lebih rapat */
    .produk-grid { gap: 12px !important; }
}

/* Mobile sangat kecil (<360px) - tetap 2 kolom tapi lebih compact */
@media (max-width: 360px) {
    .produk-info { padding: 8px; }
    .produk-nama { font-size: 11px; min-height: 30px; }
    .produk-harga { font-size: 13px; }
    .produk-stok { font-size: 9.5px; }
    .produk-image { height: 110px; }
    .produk-image div { font-size: 32px !important; }
    .produk-card .btn-primary {
        padding: 6px 8px;
        font-size: 10px;
    }
    /* Sembunyikan text di tombol, hanya icon */
    .produk-card .btn-primary i { font-size: 13px; }
    .produk-grid { gap: 10px !important; }
}

/* ============================================
   MOBILE: TOMBOL TAMBAH KERANJANG
   ============================================ */
@media (max-width: 480px) {
    .produk-card .btn-primary {
        /* Versi ringkas - hanya tampilkan icon + kata pendek */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    /* Ubah teks tombol di mobile (via CSS) */
    .produk-card .btn-primary {
        font-size: 0; /* Sembunyikan teks asli */
    }
    .produk-card .btn-primary i {
        font-size: 13px;
    }
    .produk-card .btn-primary::after {
        content: "Beli";
        font-size: 12px;
        font-weight: 600;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-wrap {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}
.breadcrumb-nav a {
    color: #6366f1;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav i { font-size: 9px; color: #cbd5e1; }
.breadcrumb-nav span { color: #1e293b; font-weight: 500; }

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title-wrap {
    margin-bottom: 30px;
    text-align: center;
}
.page-title-wrap h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.page-title-wrap p { color: #64748b; }

/* ============================================
   KATALOG LAYOUT
   ============================================ */
.katalog-section { padding: 40px 0 60px; }

.katalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* SIDEBAR FILTER */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.filter-block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}
.filter-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.search-box {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.search-box input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}
.search-box button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 9px 14px;
    cursor: pointer;
}

.filter-list {
    list-style: none;
}
.filter-list li { margin-bottom: 4px; }
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    transition: all 0.2s;
}
.filter-list a:hover { background: #f1f5f9; color: #6366f1; }
.filter-list a.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 700;
}
.filter-list .count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.filter-list a.active .count {
    background: #6366f1;
    color: white;
}

.info-toko {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}
.info-toko p {
    font-size: 12px;
    color: #166534;
    margin-bottom: 12px;
}

/* PRODUK CONTENT */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}
.sort-info { font-size: 13px; color: #64748b; }
.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-form label { font-size: 13px; color: #475569; }
.sort-form select {
    padding: 7px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: white;
    cursor: pointer;
}

.produk-content .produk-grid {
    grid-template-columns: repeat(3, 1fr);
}

.empty-katalog {
    background: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.empty-katalog h3 {
    margin: 20px 0 10px;
    font-size: 20px;
    color: #1e293b;
}
.empty-katalog p {
    color: #64748b;
    margin-bottom: 20px;
}

/* ============================================
   DETAIL PRODUK
   ============================================ */
.produk-detail-section { padding: 30px 0 60px; }

.produk-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.produk-detail-image {
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.produk-detail-kategori {
    display: inline-block;
    background: #eef2ff;
    color: #6366f1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.produk-detail-nama {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}
.produk-detail-kode {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    margin-bottom: 20px;
}
.produk-detail-harga {
    font-size: 36px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 16px;
}

.produk-detail-stok-wrap { margin-bottom: 20px; }
.stok-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.stok-badge.aman { background: #d1fae5; color: #065f46; }
.stok-badge.menipis { background: #fef3c7; color: #92400e; }
.stok-badge.habis { background: #fee2e2; color: #991b1b; }

.produk-detail-deskripsi {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.produk-detail-deskripsi h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.produk-detail-deskripsi p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.qty-selector label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.qty-control button {
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.qty-control button:hover { background: #6366f1; color: white; }
.qty-control input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    padding: 8px;
    outline: none;
}
.qty-info {
    font-size: 11px;
    color: #94a3b8;
}

.produk-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.info-box-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}
.trust-item i {
    font-size: 24px;
    color: #6366f1;
}
.trust-item strong {
    display: block;
    font-size: 12px;
    color: #1e293b;
}
.trust-item small {
    font-size: 10px;
    color: #94a3b8;
}

/* ============================================
   KERANJANG
   ============================================ */
.keranjang-section { padding: 30px 0 60px; }

.keranjang-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.keranjang-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 80px 1fr auto auto 40px;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}
.cart-item:hover { border-color: #6366f1; }
.cart-item.item-warning { background: #fef2f2; border-color: #fca5a5; }

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.cart-item-info { min-width: 0; }
.cart-item-nama {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.cart-item-nama:hover { color: #6366f1; }
.cart-item-harga {
    font-size: 12px;
    color: #64748b;
}
.stock-warning {
    background: #fef2f2;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin-top: 6px;
    display: inline-block;
}

.cart-item-qty .qty-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.cart-item-qty button {
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.cart-item-qty button:hover { background: #6366f1; color: white; }
.cart-item-qty input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    padding: 7px;
    outline: none;
}

.cart-item-subtotal {
    text-align: right;
    min-width: 100px;
}
.subtotal-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}
.subtotal-value {
    font-size: 15px;
    font-weight: 800;
    color: #059669;
    margin-top: 2px;
}

.btn-hapus {
    width: 36px;
    height: 36px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-hapus:hover {
    background: #dc2626;
    color: white;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.cart-actions .btn-light {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.cart-actions .btn-light:hover { background: #f8fafc; }

/* SUMMARY */
.keranjang-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.keranjang-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px dashed #e2e8f0;
}
.summary-row.total {
    border-bottom: none;
    border-top: 2px solid #1e293b;
    padding: 16px 0;
    margin-top: 6px;
    font-size: 16px;
}
.total-amount {
    color: #059669;
    font-size: 22px;
    font-weight: 800;
}

.checkout-info {
    background: #eff6ff;
    color: #1e40af;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    margin: 14px 0;
    line-height: 1.5;
}

.checkout-form { margin: 16px 0; }
.checkout-form h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    color: #1e293b;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #6366f1; }

.payment-methods {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: #94a3b8;
}
.payment-icons { font-size: 13px; margin-top: 4px; }

/* EMPTY CART */
.empty-cart {
    background: white;
    padding: 80px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.empty-cart h2 {
    margin: 20px 0 10px;
    font-size: 24px;
    color: #1e293b;
}
.empty-cart p {
    color: #64748b;
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .katalog-layout { grid-template-columns: 1fr; }
    .filter-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .filter-block { flex: 1; min-width: 250px; }
    .produk-content .produk-grid { grid-template-columns: repeat(3, 1fr); }
    
    .produk-detail-layout { grid-template-columns: 1fr; gap: 24px; }
    
    .keranjang-layout { grid-template-columns: 1fr; }
    .keranjang-summary { position: static; }
}

@media (max-width: 768px) {
    .produk-content .produk-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    .cart-item-qty,
    .cart-item-subtotal {
        grid-column: 2;
        text-align: left;
    }
    .cart-item-action {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    .cart-item { position: relative; }
    .trust-badges { grid-template-columns: 1fr; }
    .produk-detail-actions { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .produk-content .produk-grid { grid-template-columns: 1fr; }
    .page-title-wrap h1 { font-size: 22px; }
    .produk-detail-nama { font-size: 22px; }
    .produk-detail-harga { font-size: 28px; }
}

/* ============================================
   IMAGE STYLING
   ============================================ */

/* Produk image di card */
.produk-image {
    overflow: hidden;
    position: relative;
}
.produk-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.produk-card:hover .produk-image img {
    transform: scale(1.05);
}

/* Detail produk image */
.produk-detail-image {
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.produk-detail-image img {
    transition: transform 0.3s ease;
}
.produk-detail-image:hover img {
    transform: scale(1.05);
}

/* Cart item image */
.cart-item-image {
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}