/*
Theme Name: PaperDoll Shop
Theme URI: https://example.com/paperdoll-shop
Author: PaperDoll Store Yogyakarta
Author URI: https://example.com
Description: Tema toko online PWA bergaya Tokopedia Mobile untuk jualan Paperdoll. Lengkap dengan slider banner, grid produk, keranjang belanja via WhatsApp, dan navigasi bottom bar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paperdoll-shop
Tags: e-commerce, mobile-first, pwa, whatsapp, shopping
*/

/* ============================================================
   PAPERDOLL SHOP - MAIN STYLESHEET
   WordPress Theme for Mobile-First Paperdoll Store
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:        #00aa5b;
    --primary-light:  #e6f6ec;
    --orange:         #ff6000;
    --text-main:      #212121;
    --text-sub:       #6d7588;
    --bg-gray:        #f0f3f7;
    --border-color:   #e5e7e9;
    --red-badge:      #f94d63;
    --purple:         #5d3ebc;
    --wa-green:       #25d366;
    --star-yellow:    #ffc400;
    --shadow-card:    0 1px 6px 0 rgba(49,53,59,0.12);
    --radius-card:    8px;
    --radius-sheet:   16px;
    --transition:     0.2s ease;
    --font-main:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-gray);
    color: var(--text-main);
    padding-bottom: 70px;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-main); }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
}

.app-screen {
    display: none;
}

.app-screen.active {
    display: block;
}

/* ============================================================
   HEADER (STICKY TOP BAR)
   ============================================================ */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 10px 16px;
}

.header-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Bar */
.search-bar-wrapper {
    flex: 1;
    position: relative;
}

.search-bar-wrapper input[type="text"],
.search-bar-wrapper input[type="search"] {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    outline: none;
    font-size: 13px;
    background-color: var(--bg-gray);
    color: var(--text-main);
    transition: border-color var(--transition);
}

.search-bar-wrapper input:focus {
    border-color: var(--primary);
    background-color: #fff;
}

.search-bar-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 16px;
    pointer-events: none;
}

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

.header-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.header-btn i,
.header-btn .ti {
    font-size: 22px;
}

/* Badge Notifikasi */
.badge-red {
    position: absolute;
    top: -5px;
    right: -6px;
    background: var(--red-badge);
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 1px solid white;
    line-height: 1;
}

/* ============================================================
   BANNER SLIDER / CAROUSEL
   ============================================================ */
.slider-section {
    padding: 12px 16px 4px 16px;
    background: #ffffff;
}

.slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1000 / 365;
    cursor: pointer;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.slide:hover img {
    transform: scale(1.02);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 50%;
    transition: width 0.2s, background 0.2s;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* ============================================================
   PILL FILTER BUTTONS
   ============================================================ */
.pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pills-scroll::-webkit-scrollbar {
    display: none;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    user-select: none;
}

.pill-item i,
.pill-item .ti {
    font-size: 14px;
}

.pill-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pill-item.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
}

.pill-item .pill-orange i,
.pill-item .pill-orange .ti {
    color: var(--orange);
}

/* ============================================================
   KATEGORI ICONS (HORIZONTAL SCROLL)
   ============================================================ */
.categories-container {
    background: #ffffff;
    padding: 8px 0 16px 0;
    border-bottom: 6px solid var(--bg-gray);
}

.categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 64px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.cat-item:hover { opacity: 0.8; }

.cat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: box-shadow var(--transition), background var(--transition);
}

.cat-icon-wrapper i,
.cat-icon-wrapper .ti {
    font-size: 22px;
}

.cat-item:nth-child(2n) .cat-icon-wrapper  { background: #eef9f1; color: var(--primary); }
.cat-item:nth-child(3n) .cat-icon-wrapper  { background: #fff5ed; color: var(--orange); }
.cat-item:nth-child(4n) .cat-icon-wrapper  { background: #f0f3ff; color: #4b66f7; }

.cat-item.active .cat-icon-wrapper {
    box-shadow: 0 0 0 2px var(--primary);
}

.cat-item span {
    font-size: 10px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 26px;
    overflow: hidden;
}

/* ============================================================
   SECTION TITLES & TABS
   ============================================================ */
.section-title {
    padding: 12px 16px 8px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    background: #ffffff;
}

.tab-menu {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-menu::-webkit-scrollbar { display: none; }

.tab-item {
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition);
}

.tab-item:hover { color: var(--primary); }

.tab-item.active { color: var(--primary); }

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.tab-tag-promo {
    display: inline-block;
    background: var(--purple);
    color: white;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: bold;
}

/* ============================================================
   HORIZONTAL SCROLL PRODUK KECIL (Lanjut cek ini)
   ============================================================ */
.scroll-products {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px 16px 16px;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 6px solid var(--bg-gray);
}

.scroll-products::-webkit-scrollbar { display: none; }

.scroll-card {
    min-width: 110px;
    width: 110px;
    background: #ffffff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.scroll-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.scroll-card-img {
    width: 100%;
    height: 110px;
    background: #f8f8f8;
    object-fit: cover;
}

.scroll-card-info {
    padding: 6px;
}

.scroll-card-tag {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-card-sub {
    font-size: 9px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   PRODUCT GRID (KATALOG UTAMA)
   ============================================================ */
.for-you-section {
    background: #ffffff;
    padding-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 16px;
}

/* Kartu Produk Gaya Tokopedia */
.tokopedia-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
}

.tokopedia-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tokopedia-card:hover .card-img-wrapper img {
    transform: scale(1.04);
}

/* Label Badge pada gambar */
.card-label {
    position: absolute;
    top: 8px;
    left: 8px;
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}

.card-label.label-official { background: var(--purple); }
.card-label.label-promo    { background: var(--orange); }
.card-label.label-new      { background: var(--primary); }

.card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 12px;
    color: var(--text-main);
    line-height: 16px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}

.card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.card-discount-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.discount-badge {
    background: #ffeae1;
    color: var(--orange);
    font-size: 9px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
}

.original-price {
    font-size: 9px;
    color: var(--text-sub);
    text-decoration: line-through;
}

.shop-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.shop-badge i,
.shop-badge .ti {
    color: var(--primary);
    font-size: 12px;
}

.shop-badge.mall-badge i,
.shop-badge.mall-badge .ti {
    color: var(--purple);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-sub);
    margin-top: auto;
}

.card-meta i,
.card-meta .ti {
    color: var(--star-yellow);
    font-size: 11px;
}

/* Tombol Tambah ke Keranjang di Kartu */
.add-to-cart-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    font-size: 11px;
    padding: 6px 0;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background var(--transition), color var(--transition);
    font-family: var(--font-main);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-light);
}

.add-to-cart-btn.mall {
    border-color: var(--purple);
    color: var(--purple);
}

.add-to-cart-btn.mall:hover {
    background: #f4f0ff;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-sub);
    font-weight: 500;
    cursor: pointer;
    gap: 3px;
    position: relative;
    flex: 1;
    transition: color var(--transition);
    padding: 4px 0;
    font-family: var(--font-main);
}

.nav-item:hover { color: var(--primary); }

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-item i,
.nav-item .ti {
    font-size: 20px;
}

/* ============================================================
   DETAIL PRODUK BOTTOM SHEET
   ============================================================ */
.detail-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.detail-sheet.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-top-left-radius: var(--radius-sheet);
    border-top-right-radius: var(--radius-sheet);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.detail-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.detail-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background var(--transition);
}

.detail-header .close-btn:hover { background: var(--bg-gray); }

.detail-header .close-btn i,
.detail-header .close-btn .ti {
    font-size: 22px;
}

.detail-body {
    overflow-y: auto;
    padding: 16px;
    flex-grow: 1;
}

.detail-img-show {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f7f7f7;
    margin-bottom: 16px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.detail-discount-tag {
    background: #ffeae1;
    color: var(--orange);
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.detail-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.detail-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 16px;
}

.stat-divider {
    width: 1px;
    height: 14px;
    background: var(--border-color);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-sub);
}

.stat-box i,
.stat-box .ti {
    color: var(--star-yellow);
    font-size: 14px;
}

.stat-box strong { color: var(--text-main); }

.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-section-title .see-all {
    font-size: 11px;
    color: var(--primary);
    font-weight: normal;
    cursor: pointer;
}

.detail-desc {
    font-size: 13px;
    line-height: 18px;
    color: #4a4a4a;
    margin-bottom: 20px;
}

/* ============================================================
   ULASAN / REVIEWS
   ============================================================ */
.reviews-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.review-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.review-item:last-child { border-bottom: none; }

.review-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.review-username {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.review-stars {
    color: var(--star-yellow);
    font-size: 11px;
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.review-comment {
    font-size: 12px;
    line-height: 16px;
    color: #4a4a4a;
}

.review-date {
    font-size: 10px;
    color: var(--text-sub);
}

/* Footer Tombol Detail Sheet */
.detail-footer-btn-row {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   SHOPPING CART BOTTOM SHEET
   ============================================================ */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.bottom-sheet.active {
    opacity: 1;
    pointer-events: auto;
}

.sheet-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-top-left-radius: var(--radius-sheet);
    border-top-right-radius: var(--radius-sheet);
    padding: 20px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sheet-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.sheet-body {
    overflow-y: auto;
    margin: 16px 0;
    flex-grow: 1;
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    color: var(--text-sub);
    padding: 40px 0;
    font-size: 13px;
}

.cart-empty i,
.cart-empty .ti {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 10px;
    display: block;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f7f7f7;
    flex-shrink: 0;
}

.cart-item-details { flex-grow: 1; min-width: 0; }

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    font-size: 12px;
    color: var(--orange);
    font-weight: 700;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: background var(--transition), border-color var(--transition);
}

.qty-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    color: var(--primary);
}

.qty-value {
    font-size: 13px;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

/* Cart Footer */
.sheet-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-main);
}

/* ============================================================
   TOMBOL UMUM (SHARED BUTTONS)
   ============================================================ */

/* Tombol Hijau Utama */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-card);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition);
    width: 100%;
    font-family: var(--font-main);
}

.btn-primary:hover { background: #009951; }
.btn-primary:active { transform: scale(0.98); }

/* Tombol WhatsApp */
.btn-whatsapp,
.whatsapp-btn {
    background: var(--wa-green);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-card);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition);
    width: 100%;
    font-family: var(--font-main);
}

.btn-whatsapp:hover,
.whatsapp-btn:hover { background: #1db954; }

.btn-whatsapp:active,
.whatsapp-btn:active { transform: scale(0.98); }

/* Tombol Detail Sheet */
.btn-sheet-add-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-card);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition);
    font-family: var(--font-main);
}

.btn-sheet-add-cart:hover { background: #009951; }

.btn-sheet-whatsapp {
    flex: 1;
    background: var(--wa-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-card);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition);
    font-family: var(--font-main);
}

.btn-sheet-whatsapp:hover { background: #1db954; }

/* ============================================================
   LAYAR DUMMY (Feed, Mall, Transaksi, Akun)
   ============================================================ */
.dummy-screen-content {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-sub);
}

.dummy-screen-content i,
.dummy-screen-content .ti {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.dummy-screen-content h2 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.dummy-screen-content p {
    font-size: 13px;
    line-height: 18px;
    max-width: 280px;
    margin: 0 auto;
}

/* Profil Card Akun */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.profile-info-card {
    text-align: left;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 12px;
    font-size: 13px;
    margin-bottom: 20px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-info-row:last-child { border-bottom: none; }

.profile-info-row strong { font-weight: 600; }

.profile-info-row .highlight { color: var(--orange); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(33, 33, 33, 0.92);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8           { gap: 8px; }
.gap-12          { gap: 12px; }
.gap-16          { gap: 16px; }
.mt-8            { margin-top: 8px; }
.mt-16           { margin-top: 16px; }
.mt-20           { margin-top: 20px; }
.mb-8            { margin-bottom: 8px; }
.mb-16           { margin-bottom: 16px; }
.pt-12           { padding-top: 12px; }
.pb-16           { padding-bottom: 16px; }
.text-center     { text-align: center; }
.text-primary    { color: var(--primary); }
.text-orange     { color: var(--orange); }
.text-sub        { color: var(--text-sub); }
.text-bold       { font-weight: 700; }
.text-sm         { font-size: 12px; }
.text-xs         { font-size: 10px; }
.text-nowrap     { white-space: nowrap; }
.border-top      { border-top: 1px solid var(--border-color); }
.border-bottom   { border-bottom: 1px solid var(--border-color); }
.w-full          { width: 100%; }
.bg-section-sep  { border-bottom: 6px solid var(--bg-gray); }

/* ============================================================
   SCROLLBAR GLOBAL HIDE
   ============================================================ */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ============================================================
   RESPONSIVE — TABLET ENHANCEMENT
   ============================================================ */
@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-title { font-size: 13px; }
    .card-price { font-size: 15px; }
}

@media (min-width: 600px) {
    body { background: #dde1e7; }

    .app-container {
        border-left:  1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 24px rgba(0,0,0,0.08);
    }
}

/* ============================================================
   DARK MODE SUPPORT (opsional — aktifkan jika dibutuhkan)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* Dibiarkan kosong — tema ini mengutamakan tampilan terang */
    /* Tambahkan override di sini jika perlu dark mode */
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .bottom-nav,
    .detail-sheet,
    .bottom-sheet,
    .toast { display: none !important; }

    body { padding-bottom: 0; background: white; }
    .app-container { box-shadow: none; }
}
