/* assets/css/style.css */
/* ==========================================================================
   GymBeem Shop - Premium Theme
   Mobile First Architecture - FINAL VERSION
   ========================================================================== */

/* Root Variables */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Grayscale */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #020617;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    
    /* Z-index */
    --z-header: 1000;
    --z-bottom-nav: 1050;
    --z-dropdown: 1100;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 0; /* Default untuk desktop */
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 1rem; }
small { font-size: 0.875rem; }

/* ==========================================================================
   Header Top - Search Always Visible
   ========================================================================== */
.header-top {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding: var(--space-2) 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.logo:hover {
    background: var(--gray-100);
}

.logo i {
    font-size: 1.2rem;
}

.logo span {
    display: none;
}

@media (min-width: 480px) {
    .logo span {
        display: inline;
    }
}

/* Search Bar - ALWAYS VISIBLE */
.header-search {
    flex: 1;
    min-width: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all 0.2s;
    height: 40px;
}

.search-form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-form input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 var(--space-3);
    font-size: 0.85rem;
    color: var(--gray-700);
    outline: none;
    min-width: 0;
}

.search-form input::placeholder {
    color: var(--gray-400);
}

.search-form button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-form button:hover {
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-cart {
    position: relative;
    color: var(--gray-600);
    text-decoration: none;
    padding: var(--space-2);
    border-radius: var(--radius-full);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header-cart:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.header-cart i {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

/* User Avatar */
.header-user {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Login Button */
.header-login {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.header-login:hover {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.header-login i {
    font-size: 0.9rem;
}

.header-login span {
    display: none;
}

@media (min-width: 480px) {
    .header-login span {
        display: inline;
    }
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: var(--space-2);
    margin-top: var(--space-2);
    min-width: 200px;
}

.dropdown-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.dropdown-item i {
    width: 18px;
    color: var(--gray-500);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-divider {
    margin: var(--space-2) 0;
    border-color: var(--gray-200);
}

/* ==========================================================================
   Bottom Navigation - Mobile Only
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-2) 0 var(--space-1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: var(--z-bottom-nav);
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.7rem;
    padding: var(--space-1) 0;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    color: var(--primary);
}

.bottom-nav-item .cart-count {
    position: absolute;
    top: 0;
    right: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-5);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--gray-200);
}

.btn-light:hover {
    background: var(--gray-100);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    background: transparent;
}

.card-body {
    padding: var(--space-4);
}

.card-footer {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--gray-200);
    background: transparent;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-5);
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 2;
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.badge {
    padding: var(--space-1) var(--space-2);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--white);
    letter-spacing: 0.3px;
}

.badge-new {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.badge-discount {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.badge-member {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

/* Product Actions */
.product-actions {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Product Info */
.product-info {
    padding: var(--space-2);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.6rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.product-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.2rem;
}

.product-title:hover {
    color: var(--primary);
}

.product-price {
    margin-top: auto;
}

.current-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.old-price {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-decoration: line-through;
    display: inline-block;
    margin-right: var(--space-1);
}

.member-price-tag {
    font-size: 0.6rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-1);
    color: var(--gray-700);
}

.form-control, .form-select {
    font-size: 0.85rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control-sm, .form-select-sm {
    font-size: 0.8rem;
    padding: var(--space-1) var(--space-2);
}

.input-group-text {
    font-size: 0.85rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: var(--space-4);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--info);
    color: var(--gray-700);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    color: var(--gray-700);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--gray-700);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--gray-700);
}

/* ==========================================================================
   Category Grid
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--space-4);
    }
}

.category-item {
    text-align: center;
    text-decoration: none;
}

.category-circle {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-1);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-item:hover .category-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.category-circle i {
    font-size: 1.3rem;
    color: var(--gray-600);
    transition: all 0.3s;
}

.category-item:hover .category-circle i {
    color: var(--primary);
}

.category-item span {
    font-size: 0.7rem;
    color: var(--gray-600);
    display: block;
}

/* ==========================================================================
   Checkout Steps
   ========================================================================== */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: var(--success);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-1);
    font-weight: 600;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.65rem;
    color: var(--gray-500);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.cart-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.cart-item-content {
    display: flex;
    gap: var(--space-3);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--white);
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--gray-200);
    padding-top: var(--space-3);
    margin-top: var(--space-2);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    pointer-events: none;
}

@media (min-width: 640px) {
    .toast-container {
        left: auto;
        right: var(--space-4);
        width: 360px;
    }
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: slideInRight 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid transparent;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
}

.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--danger); }
.toast.warning .toast-icon { background: var(--warning); }

.toast-message {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Badge Colors
   ========================================================================== */
.badge-pending { background-color: var(--warning) !important; }
.badge-processing { background-color: var(--info) !important; }
.badge-shipped { background-color: var(--primary) !important; }
.badge-delivered { background-color: var(--success) !important; }
.badge-cancelled { background-color: var(--danger) !important; }
.badge-paid { background-color: var(--success) !important; }
.badge-unpaid { background-color: var(--warning) !important; }

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: var(--space-6) var(--space-3);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.empty-state h5 {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--gray-400);
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   Footer - Enhanced
   ========================================================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-6) 0 var(--space-4);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}

.footer-widget-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.footer-widget-title i {
    color: var(--primary);
    font-size: 1rem;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    color: var(--gray-400);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-list li i {
    width: 16px;
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.footer-list li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-list li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* Subsections */
.footer-subsection {
    margin-bottom: var(--space-4);
}

.footer-subtitle {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.payment-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-300);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* App Buttons */
.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.app-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.copyright a {
    color: var(--gray-400);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--white);
}

.footer-stats {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-stats span {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.footer-stats i {
    color: var(--primary);
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: var(--z-dropdown);
}

@media (min-width: 992px) {
    .floating-wa {
        bottom: 30px;
    }
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.floating-wa i {
    font-size: 1.5rem;
}

.back-to-top {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: var(--z-dropdown);
}

@media (min-width: 992px) {
    .back-to-top {
        bottom: 90px;
    }
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================================================
   Mobile Responsive Fixes
   ========================================================================== */
@media (max-width: 991px) {
    main {
        padding-bottom: 80px;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .floating-wa {
        bottom: 100px;
    }
    
    .back-to-top {
        bottom: 160px;
    }
}

@media (max-width: 480px) {
    main {
        padding-bottom: 85px;
    }
    
    .floating-wa {
        bottom: 100px;
        width: 45px;
        height: 45px;
    }
    
    .floating-wa i {
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 155px;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in { animation: fadeIn 0.5s; }
.slide-up { animation: slideUp 0.5s; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }

.bg-white { background: var(--white); }
.bg-light { background: var(--gray-100); }

.shadow-hover { transition: box-shadow 0.3s; }
.shadow-hover:hover { box-shadow: var(--shadow-lg); }

.cursor-pointer { cursor: pointer; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}


/* assets/css/style.css - Tambahkan di bagian Product Card */

/* Product Image - Konsisten di semua halaman */
.product-image {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: var(--gray-100);
}

/* Untuk cart, ukuran khusus */
.cart-item-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Untuk thumbnail di detail produk */
.thumbnail-item {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (min-width: 768px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
}