/* ============================================================
   RESET & GLOBAL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

button:focus, a:focus, input:focus, textarea:focus {
    outline: none;
}

:root {
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
    --radius: 16px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-light: #eeeeee;
    --badge-new: #2ecc71;
    --badge-discount: #e74c3c;
    --badge-promo: #f39c12;
    --badge-po: #8e44ad;
    --badge-hot: #e67e22;
    --stock-available: #27ae60;
    --stock-po: #8e44ad;
    --btn-bg: #1a1a1a;
    --btn-hover: #333333;
    --btn-text: #ffffff;
    --kaki-bg: #0a0a0a;
    --kaki-text: #e0e0e0;
    --kaki-text-muted: #999999;
    --kaki-border: #2a2a2a;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: #f5f5f7;
    color: var(--text-primary);
}

/* Background global tetap gelap untuk hero, tapi kita timpa untuk shop */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1626721105368-a69248e93b32?w=1400&auto=format&fit=crop&q=60') center/cover;
    z-index: -2;
}
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

/* ============================================================
   NAVBAR (tetap gelap)
   ============================================================ */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.nav-logo-icon {
    width: 40px;
    height: 40px;
}
.nav-logo-icon svg {
    width: 100%;
    height: 100%;
}
.logo {
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: -1px;
}
.logo span {
    color: #fff;
}
.desktop-menu {
    display: flex;
    gap: 30px;
}
.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.desktop-menu a:hover {
    color: #aaa;
}
.desktop-menu a[href="shop.html"] {
    font-weight: 700;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.4s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px;
    gap: 20px;
    transition: 0.4s;
    z-index: 999;
}
.mobile-menu.active {
    right: 0;
}
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}
.mobile-socials {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-bottom: 20px;
}
.mobile-socials img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ============================================================
   SHOP PAGE — TEMA PUTIH
   ============================================================ */
.shop-page {
    padding-top: 80px;
    min-height: 100vh;
    background: #f5f5f7; /* latar putih abu */
}

.shop-hero {
    background: #ffffff;
    padding: 40px 20px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.shop-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
}
.shop-hero h1 span {
    color: #888;
}
.shop-hero p {
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 8px auto 0;
}
.shop-hero .search-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.shop-hero .search-wrap input {
    background: #f5f5f7;
    border: 1px solid #ddd;
    border-radius: 60px;
    padding: 12px 22px;
    width: min(100%, 400px);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}
.shop-hero .search-wrap input:focus {
    border-color: #aaa;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.shop-hero .search-wrap button {
    background: var(--text-primary);
    border: none;
    border-radius: 60px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.shop-hero .search-wrap button:hover {
    background: #333;
}

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    padding: 18px 16px 10px;
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
    position: sticky;
    top: 72px;
    z-index: 50;
    backdrop-filter: blur(8px);
}
.shop-categories .cat-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 4px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.shop-categories .cat-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    transform: translateX(-50%);
}
.shop-categories .cat-btn.active {
    color: var(--text-primary);
    font-weight: 700;
}
.shop-categories .cat-btn.active::after {
    width: 100%;
}

.shop-grid-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ============================================================
   KARTU PRODUK — PUTIH BERSIH
   ============================================================ */
.shop-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    border: 1px solid var(--border-light);
}
.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: #ddd;
}

.shop-card:nth-child(1) { animation-delay: 0.02s; }
.shop-card:nth-child(2) { animation-delay: 0.05s; }
.shop-card:nth-child(3) { animation-delay: 0.08s; }
.shop-card:nth-child(4) { animation-delay: 0.11s; }
.shop-card:nth-child(5) { animation-delay: 0.14s; }
.shop-card:nth-child(6) { animation-delay: 0.17s; }
.shop-card:nth-child(7) { animation-delay: 0.20s; }
.shop-card:nth-child(8) { animation-delay: 0.23s; }
.shop-card:nth-child(9) { animation-delay: 0.26s; }
.shop-card:nth-child(10) { animation-delay: 0.29s; }
.shop-card:nth-child(11) { animation-delay: 0.32s; }
.shop-card:nth-child(12) { animation-delay: 0.35s; }
.shop-card:nth-child(13) { animation-delay: 0.38s; }
.shop-card:nth-child(14) { animation-delay: 0.41s; }
.shop-card:nth-child(15) { animation-delay: 0.44s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* BADGE */
.shop-card .badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.shop-card .badge-wrap .badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.badge.discount { background: var(--badge-discount); }
.badge.new { background: var(--badge-new); }
.badge.promo { background: var(--badge-promo); }
.badge.po { background: var(--badge-po); }
.badge.hot { 
    background: var(--badge-hot);
    animation: pulseHot 1.5s ease infinite;
}
@keyframes pulseHot {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* GAMBAR — FIT & PROPORSIONAL */
.shop-card .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}
.shop-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.shop-card:hover .img-wrap img {
    transform: scale(1.04);
}

/* INFO */
.shop-card .info {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
}
.shop-card .info .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.shop-card .info .desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.shop-card .info .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.shop-card .info .price-row .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary); /* hitam */
}
.shop-card .info .price-row .price-old {
    font-size: 0.7rem;
    color: #aaa;
    text-decoration: line-through;
}
.shop-card .info .price-row .discount-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: #e74c3c;
    background: #fde8e8;
    padding: 2px 12px;
    border-radius: 30px;
}
.shop-card .info .stock {
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 2px;
    padding: 2px 14px;
    border-radius: 30px;
    display: inline-block;
    width: fit-content;
}
.stock.ready {
    color: var(--stock-available);
    background: #eafaf1;
}
.stock.po {
    color: var(--stock-po);
    background: #f4ecf7;
}

/* TOMBOL BELI */
.shop-card .btn-buy-now {
    margin: 0 16px 16px;
    padding: 11px 0;
    border: none;
    border-radius: 40px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.shop-card .btn-buy-now:hover {
    background: var(--btn-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.shop-card .btn-buy-now:active {
    transform: scale(0.96);
}

/* WARNA AKSEN PER KATEGORI (opsional) */
.shop-card[data-category="raket"] .btn-buy-now {
    background: #3498db;
}
.shop-card[data-category="raket"] .btn-buy-now:hover {
    background: #2980b9;
}
.shop-card[data-category="shuttlecock"] .btn-buy-now {
    background: #2ecc71;
}
.shop-card[data-category="shuttlecock"] .btn-buy-now:hover {
    background: #27ae60;
}
.shop-card[data-category="apparel"] .btn-buy-now {
    background: #e74c3c;
}
.shop-card[data-category="apparel"] .btn-buy-now:hover {
    background: #c0392b;
}
.shop-card[data-category="aksesoris"] .btn-buy-now {
    background: #9b59b6;
}
.shop-card[data-category="aksesoris"] .btn-buy-now:hover {
    background: #8e44ad;
}

/* ADMIN CARDS */
.shop-card.admin-add-card {
    background: #fafafa;
    border: 2px dashed #ccc;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}
.shop-card.admin-add-card .img-wrap {
    background: transparent;
    border: none;
    width: 70%;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto 16px;
}
.shop-card.admin-add-card .img-wrap i {
    font-size: 3rem;
    color: #bbb;
}
.shop-card.admin-add-card .img-wrap p {
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
}

.shop-card.admin-logout-card {
    background: #fef0f0;
    border: 2px solid #e74c3c;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}
.shop-card.admin-logout-card .img-wrap {
    background: transparent;
    border: none;
    width: 70%;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto 16px;
}
.shop-card.admin-logout-card .img-wrap i {
    font-size: 3rem;
    color: #e74c3c;
}
.shop-card.admin-logout-card .img-wrap p {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
}

.shop-card .admin-actions {
    padding: 0 16px 10px;
    display: flex;
    gap: 6px;
}
.shop-card .admin-actions button {
    flex: 1;
    padding: 7px 0;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}
.shop-card .admin-actions .edit-btn {
    background: #f39c12;
    color: #fff;
}
.shop-card .admin-actions .edit-btn:hover {
    background: #e08e0b;
}
.shop-card .admin-actions .delete-btn {
    background: #e74c3c;
    color: #fff;
}
.shop-card .admin-actions .delete-btn:hover {
    background: #c0392b;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.shop-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

/* ============================================================
   POPUP PILIHAN (tetap gelap agar kontras)
   ============================================================ */
.choice-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.choice-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.choice-popup {
    background: #ffffff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 24px 20px 20px;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}
.choice-popup-overlay.active .choice-popup {
    transform: scale(1) translateY(0);
}
.choice-popup .popup-product {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    text-align: left;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #eee;
}
.choice-popup .popup-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}
.choice-popup .popup-product .popup-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.choice-popup h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.choice-popup .sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.choice-popup .wa-top {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.choice-popup .btn-wa-choice {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.choice-popup .btn-wa-choice:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.choice-popup .choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.choice-popup .choice-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
    font-family: 'Poppins', sans-serif;
}
.choice-popup .btn-shopee-choice {
    background: #ee4d2d;
    color: #fff;
}
.choice-popup .btn-shopee-choice:hover {
    background: #d43d1f;
    transform: scale(1.02);
}
.choice-popup .btn-tokped-choice {
    background: #42b549;
    color: #fff;
}
.choice-popup .btn-tokped-choice:hover {
    background: #369e3d;
    transform: scale(1.02);
}
.choice-popup .btn-cancel-choice {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 12px 0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    margin-top: 4px;
}
.choice-popup .btn-cancel-choice:hover {
    background: #f5f5f5;
    color: #333;
}

/* ============================================================
   MODAL DETAIL — PUTIH BERSIH
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.04);
    color: #666;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(0,0,0,0.08);
}

.modal-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: #fafafa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-body {
    padding: 18px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.modal-body .modal-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.modal-body .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    min-width: 140px;
}
.modal-body .modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.modal-body .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.modal-body .modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.modal-body .modal-meta i {
    color: #aaa;
    width: 16px;
}
.modal-body .modal-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-body .modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary); /* hitam */
}
.modal-body .modal-price-old {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
}
.modal-body .modal-discount-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 14px;
    border-radius: 30px;
    border: none;
}

/* BADGE DI MODAL — TETAP RAPIH */
.modal-badge {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.modal-badge.badge-new { background: var(--badge-new); }
.modal-badge.badge-discount { background: var(--badge-discount); }
.modal-badge.badge-promo { background: var(--badge-promo); }
.modal-badge.badge-po { background: var(--badge-po); }
.modal-badge.badge-hot { background: var(--badge-hot); }

/* TOMBOL MODAL */
.modal-body .modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    align-items: center;
}
.modal-body .modal-actions .btn-main {
    flex: 1;
    min-width: 120px;
    padding: 11px 16px;
    border-radius: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.modal-body .modal-actions .btn-shopee {
    background: #ee4d2d;
    color: #fff;
}
.modal-body .modal-actions .btn-shopee:hover {
    background: #d43d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.2);
}
.modal-body .modal-actions .btn-tokped {
    background: #42b549;
    color: #fff;
}
.modal-body .modal-actions .btn-tokped:hover {
    background: #369e3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 181, 73, 0.2);
}
.modal-body .modal-actions .btn-wa-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    flex: 0 0 44px;
    cursor: pointer;
}
.modal-body .modal-actions .btn-wa-icon:hover {
    background: #1da851;
    transform: scale(1.08);
}
.modal-body .modal-actions .btn-close-modal {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 11px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    min-width: 100px;
}
.modal-body .modal-actions .btn-close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ============================================================
   FOOTER (tetap gelap)
   ============================================================ */
.kaki-footer {
    background: var(--kaki-bg);
    color: var(--kaki-text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid var(--kaki-border);
    position: relative;
    overflow: hidden;
    padding: 3rem 1.8rem 0;
}
.kaki-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff40, #ffffff, #ffffff40, transparent);
}
.kaki-container {
    max-width: var(--kaki-max-width);
    margin: 0 auto;
}
.kaki-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
    gap: 2.2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--kaki-border);
}
.kaki-brand {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.kaki-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}
.kaki-logo-wrap:hover {
    opacity: 0.8;
}
.kaki-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.2));
}
.kaki-nama {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.kaki-nama span {
    color: #bbbbbb;
    font-weight: 500;
}
.kaki-deskripsi {
    font-size: 0.85rem;
    color: var(--kaki-text-muted);
    line-height: 1.6;
    max-width: 300px;
}
.kaki-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}
.kaki-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}
.kaki-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.kaki-list a {
    color: var(--kaki-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.25s ease;
    display: inline-block;
}
.kaki-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}
.kaki-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.kaki-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--kaki-text-muted);
    font-size: 0.85rem;
}
.kaki-info-list li i {
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}
.kaki-info-list a {
    color: inherit;
    text-decoration: none;
}
.kaki-info-list a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kaki-medsos-wrap {
    margin-top: 0.8rem;
}
.kaki-sublabel {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.kaki-medsos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}
.kaki-medsos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    text-decoration: none;
    transition: 0.25s ease;
}
.kaki-medsos a i {
    font-size: 1rem;
    transition: 0.25s ease;
}
.kaki-ig i { color: #E4405F; }
.kaki-wa i { color: #25D366; }
.kaki-medsos a:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 255, 255, 0.08);
}
.kaki-medsos a:hover i {
    transform: scale(1.15);
}
.kaki-shopping-wrap {
    margin-top: 0.9rem;
}
.kaki-shopping {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}
.kaki-shopping a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: 0.25s ease;
}
.kaki-tokped i { color: #42B549; }
.kaki-shopee i { color: #EE4D2D; }
.kaki-tokped:hover {
    background: #42B549;
    border-color: #42B549;
    color: #fff;
}
.kaki-tokped:hover i { color: #fff; }
.kaki-shopee:hover {
    background: #EE4D2D;
    border-color: #EE4D2D;
    color: #fff;
}
.kaki-shopee:hover i { color: #fff; }

.kaki-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--kaki-text-muted);
}
.kaki-bottom a {
    color: var(--kaki-text-muted);
    text-decoration: none;
}
.kaki-bottom a:hover {
    color: #ffffff;
}
.kaki-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
}

/* ============================================================
   ADMIN MODAL (tetap gelap agar fokus)
   ============================================================ */
#adminModalOverlay .modal-content {
    max-width: 500px;
    padding: 20px;
    flex-direction: column;
    background: #1a1a1a;
}
#adminModalOverlay .modal-content h3 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
#adminForm label {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 2px;
}
#adminForm input,
#adminForm textarea,
#adminForm select {
    padding: 8px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    outline: none;
    font-size: 0.85rem;
}
#adminForm input:focus,
#adminForm textarea:focus,
#adminForm select:focus {
    border-color: #555;
}
.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.admin-form-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.admin-form-actions button[type="submit"] {
    background: #42b549;
    color: #fff;
}
.admin-form-actions button[type="submit"]:hover {
    background: #369e3d;
}
.admin-form-actions button[type="button"] {
    background: #333;
    color: #fff;
}
.admin-form-actions button[type="button"]:hover {
    background: #444;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .desktop-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .shop-card .info {
        padding: 12px 12px 8px;
    }
    .shop-card .info .name {
        font-size: 0.75rem;
    }
    .shop-card .info .desc {
        font-size: 0.62rem;
    }
    .shop-card .info .price-row .price {
        font-size: 0.85rem;
    }
    .shop-card .btn-buy-now {
        margin: 0 12px 12px;
        padding: 9px 0;
        font-size: 0.7rem;
    }
    .shop-categories {
        gap: 4px 10px;
        padding: 12px 10px 8px;
        top: 68px;
    }
    .shop-categories .cat-btn {
        font-size: 0.65rem;
        padding: 6px 2px;
    }
    .kaki-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.6rem;
    }
    .kaki-brand {
        grid-column: 1 / -1;
    }
    .choice-popup {
        padding: 20px 16px 16px;
    }
    .choice-popup .popup-product img {
        width: 50px;
        height: 50px;
    }
    .choice-popup .popup-product .popup-name {
        font-size: 0.75rem;
    }
    .choice-popup .btn-wa-choice {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
    .choice-popup .choice-buttons a {
        font-size: 0.8rem;
        padding: 10px 0;
    }
    .modal-content {
        max-width: 100%;
        border-radius: 16px;
    }
    .modal-img-wrap {
        aspect-ratio: 4/3;
        padding: 12px;
    }
    .modal-body {
        padding: 14px 14px 18px;
    }
    .modal-body .modal-title {
        font-size: 1rem;
    }
    .modal-body .modal-price {
        font-size: 1.3rem;
    }
    .modal-body .modal-actions .btn-main {
        min-width: 80px;
        font-size: 0.7rem;
        padding: 9px 12px;
        flex: 1 1 100px;
    }
    .modal-body .modal-actions .btn-wa-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex: 0 0 40px;
    }
    .modal-body .modal-actions .btn-close-modal {
        font-size: 0.7rem;
        padding: 9px 12px;
        min-width: 80px;
    }
    .modal-body .modal-header-top {
        flex-wrap: wrap;
    }
    .modal-badge {
        font-size: 0.6rem;
        padding: 3px 12px;
    }
    .admin-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 400px) {
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .shop-card .info .name {
        font-size: 0.68rem;
    }
    .shop-card .info .price-row .price {
        font-size: 0.75rem;
    }
    .shop-card .btn-buy-now {
        font-size: 0.62rem;
        padding: 6px 0;
    }
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        max-width: 720px;
        max-height: 80vh;
    }
    .modal-img-wrap {
        width: 42%;
        aspect-ratio: 1/1.2;
        min-height: 100%;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }
    .modal-body {
        width: 58%;
        padding: 22px 24px 24px;
    }
    .modal-close {
        top: 14px;
        right: 14px;
    }
    .modal-body .modal-title {
        padding-right: 0;
    }
    .modal-body .modal-actions .btn-main {
        min-width: 130px;
    }
    .modal-body .modal-actions .btn-wa-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        font-size: 1.5rem;
    }
}