/*
Theme Name: Pozitive Store
Theme URI: https://pozitive-store.web.app/
Author: Rahim Paramata
Author URI: https://web.facebook.com/mediacreator123/
Description: Theme for Pozitive Store
Version: 1.0.1
Text Domain: pozitive-store
*/

/* Copyright Section Styles */
.copyright-section {
    background-color: #000000;
    /* Latar belakang hitam */
    color: #ffffff;
    /* Teks putih */
    padding: 20px 0;
    text-align: center;
    /* Posisi teks di tengah */
    width: 100%;
}

.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Memastikan footer selalu di bagian bawah */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#page {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    /* Memastikan footer tetap di bawah */
}

/* [KEEP ALL YOUR EXISTING STYLES] */
/* Semua style yang sudah ada dipertahankan tanpa perubahan */
.hidden-page {
    display: none;
}

.clicked {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.flash {
    animation: flashAnim 0.2s ease;
}

@keyframes flashAnim {
    0% {
        background-color: #2E3192;
    }

    50% {
        background-color: #EF244B;
    }

    100% {
        background-color: #2E3192;
    }
}

.qty-btn {
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
}

.cart-active {
    background-color: #2E3192 !important;
    color: white !important;
}

.cart-active svg {
    color: white !important;
}

.pesanan-active {
    background-color: #EF244B !important;
    color: white !important;
}

.pesanan-active svg {
    color: white !important;
}

@media (min-width: 320px) {
    .grid-responsive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .grid-responsive {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .grid-responsive {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

#popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

#popup-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    text-align: center;
}

#popup img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

#pesanan-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

#pesanan-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pesanan-header {
    background: linear-gradient(to right, #2E3192, #EF244B);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.pesanan-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.pesanan-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.pesanan-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.pesanan-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
}

.pesanan-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.pesanan-tab.active {
    background: white;
    color: #2E3192;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pesanan-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pesanan-content.active {
    display: block;
}

.order-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.order-id {
    font-weight: 600;
    color: #2E3192;
    font-size: 0.9rem;
}

.order-date {
    color: #64748b;
    font-size: 0.85rem;
}

.order-items {
    margin-bottom: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.order-item-name {
    color: #334155;
}

.order-item-price {
    color: #64748b;
}

.order-total {
    text-align: right;
    font-weight: bold;
    color: #2E3192;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.order-buyer {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
}

.buyer-name {
    font-weight: 600;
    color: #2E3192;
}

.buyer-phone {
    color: #64748b;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-info {
    border-left: 4px solid #2196F3;
}

.notification-warning {
    border-left: 4px solid #FF9800;
}

.notification-error {
    border-left: 4px solid #EF244B;
}

.notification-icon {
    font-size: 24px;
    margin-right: 10px;
}

.notification-content {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

/* ================= STYLE UNTUK POPUP PEMBAYARAN ================= */
#payment-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 60;
}

#payment-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    overflow-y: auto;
}

.payment-header {
    background: linear-gradient(to right, #2E3192, #EF244B);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
}

.payment-option {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background-color: #f8fafc;
    border-color: #2E3192;
}

.payment-option.selected {
    background-color: #2E3192;
    color: white;
    border-color: #2E3192;
}

.payment-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.payment-instruction {
    font-size: 14px;
    margin-bottom: 10px;
}

.payment-account {
    font-weight: bold;
    margin-bottom: 5px;
}

.copy-btn {
    background-color: #2E3192;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

/* ================= STYLE UNTUK GOOGLE LOGIN BUTTON ================= */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: white;
    color: #757575;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.google-login-btn:hover {
    background-color: #f5f5f5;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider-text {
    padding: 0 10px;
    color: #757575;
    font-size: 14px;
}

/* ================= STYLE UNTUK BANNER SLIDER ================= */
.banner-slide {
    display: none;
}

.banner-slide:first-child {
    display: block;
}

/* ================= STYLE UNTUK POPUP KERANJANG ================= */
#keranjang-popup,
#form-pembeli-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

#keranjang-content,
#form-pembeli-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sembunyikan halaman checkout yang asli */
#checkout,
#form-pembeli {
    display: none !important;
}

/* Styling untuk item keranjang */
.keranjang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.keranjang-item-details {
    flex: 1;
}

.keranjang-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.keranjang-item-price {
    color: #6b7280;
    font-size: 14px;
}

.keranjang-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keranjang-item-total {
    font-weight: 700;
    color: #2E3192;
    min-width: 100px;
    text-align: right;
}

/* TAMBAHKAN STYLE UNTUK SHARE BUTTON */
.share-btn:hover {
    background-color: #e5e7eb !important;
}

#popup-share-btn:hover {
    background-color: #3b82f6 !important;
}


/* ================= ANIMASI TAMBAH KE KERANJANG ================= */
.flying-product {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    opacity: 1;
    transform: scale(1);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.flying-product.animating {
    opacity: 0;
    transform: scale(0.4);
}

.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}