/* =============================================
   KERIPIK PISANG TEMBILAHAN - Main Stylesheet
   Palette: Banana Gold, Deep Green, Warm Cream
   ============================================= */

:root {
    --gold:       #E8A800;
    --gold-dark:  #C48F00;
    --gold-light: #FFF0B3;
    --green:      #2D5016;
    --green-mid:  #4A7C2A;
    --green-light:#EBF5E1;
    --cream:      #FFFBF0;
    --brown:      #8B4513;
    --text-dark:  #1A1A1A;
    --text-mid:   #4A4A4A;
    --text-light: #888;
    --border:     #E5E0D0;
    --red:        #DC2626;
    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
    --transition: all 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== TOPBAR ==================== */
.topbar {
    background: var(--green);
    color: rgba(255,255,255,0.85);
    font-size: 12.5px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold); }
.topbar span i, .topbar a i { margin-right: 5px; }

/* ==================== HEADER ==================== */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--green);
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    background: var(--green-light);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(232,168,0,0.1);
}
.search-bar input {
    flex: 1;
    padding: 11px 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar button {
    padding: 11px 22px;
    background: var(--gold);
    color: white;
    font-size: 15px;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--gold-dark); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-mid);
    font-size: 13px;
    position: relative;
    transition: var(--transition);
}
.nav-btn:hover { background: var(--green-light); color: var(--green); }
.nav-btn i { font-size: 20px; }
.btn-label { font-size: 11px; font-weight: 600; }
.cart-btn { background: var(--gold); color: white !important; }
.cart-btn:hover { background: var(--gold-dark) !important; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px; height: 2.5px;
    background: var(--green);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== NAVIGATION ==================== */
.main-nav { background: var(--green); }
.main-nav .container { padding: 0 20px; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.12);
    color: var(--gold);
}
.nav-menu > li > a i { font-size: 13px; }

/* Dropdown */
.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--gold);
    z-index: 999;
    padding: 8px 0;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-mid);
    font-size: 13.5px;
    transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--green-light); color: var(--green); padding-left: 28px; }

/* ==================== FLASH MESSAGES ==================== */
.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.3s ease;
}
.flash-success { background: #D1FAE5; color: #065F46; border-bottom: 3px solid #10B981; }
.flash-error   { background: #FEE2E2; color: #991B1B; border-bottom: 3px solid #EF4444; }
.flash-info    { background: #DBEAFE; color: #1E3A8A; border-bottom: 3px solid #3B82F6; }
.flash-message button {
    margin-left: auto;
    font-size: 20px;
    opacity: 0.6;
    line-height: 1;
}
.flash-message button:hover { opacity: 1; }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative;
    background: var(--green);
    overflow: hidden;
    min-height: 500px;
}
.hero-slide {
    display: none;
    min-height: 500px;
    position: relative;
    align-items: center;
}
.hero-slide.active { display: flex; }
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--gold-light);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: var(--transition);
}
.slider-arrow:hover { background: var(--gold); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
    cursor: pointer;
    border: 2.5px solid transparent;
}
.btn-primary { background: var(--gold); color: white; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,168,0,0.4); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: white; color: var(--green); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ==================== SECTIONS ==================== */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--green);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-subtitle { color: var(--text-light); font-size: 15px; max-width: 500px; margin: 0 auto; }

/* ==================== PRODUCT CARDS ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--green-light);
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-sale    { background: var(--red); color: white; }
.badge-new     { background: var(--green); color: white; }
.badge-featured{ background: var(--gold); color: white; }
.product-actions {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-mid);
}
.action-btn:hover { background: var(--gold); color: white; }
.product-info { padding: 16px; }
.product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--green-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a:hover { color: var(--green); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.review-count { color: var(--text-light); font-size: 12px; }
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.price-current {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
}
.price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.price-discount {
    font-size: 11px;
    font-weight: 700;
    background: #FEE2E2;
    color: var(--red);
    padding: 2px 8px;
    border-radius: 50px;
}
.product-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}
.product-add-cart:hover { background: var(--gold); }

/* ==================== FEATURE BARS ==================== */
.features-bar {
    background: white;
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--green-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: var(--green);
}
.feature-text strong { display: block; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.feature-text span { font-size: 12px; color: var(--text-light); }

/* ==================== CATEGORY CARDS ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-card:hover .cat-icon { background: var(--gold); }
.cat-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    transition: var(--transition);
}
.category-card h4 { font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--text-light); }

/* ==================== PROMO BANNER ==================== */
.promo-banner {
    background: linear-gradient(135deg, var(--green) 0%, #1a3a0a 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
    color: white;
}
.promo-banner::before {
    content: '🍌';
    position: absolute;
    right: -20px; top: -20px;
    font-size: 200px;
    opacity: 0.06;
    transform: rotate(-20deg);
}
.promo-text { position: relative; z-index: 1; }
.promo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}
.promo-text h2 span { color: var(--gold); }
.promo-text p { opacity: 0.85; font-size: 15px; margin-bottom: 24px; }
.promo-timer { display: flex; gap: 12px; position: relative; z-index: 1; flex-shrink: 0; }
.timer-box {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    min-width: 70px;
    backdrop-filter: blur(10px);
}
.timer-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.timer-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ==================== TESTIMONIAL ==================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: var(--gold-light);
    position: absolute;
    top: 8px; left: 20px;
    line-height: 1;
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.testimonial-text { color: var(--text-mid); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 14px; }
.author-location { font-size: 12px; color: var(--text-light); }

/* ==================== PRODUCT DETAIL ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text-mid); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--green-light);
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-list { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbnail {
    width: 70px; height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail:hover, .thumbnail.active { border-color: var(--gold); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info .product-name { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-light); margin-bottom: 16px; flex-wrap: wrap; }
.product-detail-price { margin: 20px 0; }
.detail-price { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--green); }
.detail-original { font-size: 18px; color: var(--text-light); text-decoration: line-through; margin-top: 4px; }
.stock-info { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 20px; }
.in-stock { color: #059669; }
.low-stock { color: #D97706; }
.out-stock { color: var(--red); }

.qty-selector { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.qty-btn {
    width: 40px; height: 44px;
    border: 2px solid var(--border);
    background: white;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: var(--green-light); border-color: var(--green); }
.qty-input {
    width: 60px; height: 44px;
    border: 2px solid var(--border);
    border-left: none; border-right: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    outline: none;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tabs */
.tabs { margin-top: 48px; }
.tab-buttons { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 4px; }
.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    background: none;
    border-radius: 4px 4px 0 0;
    font-family: inherit;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--gold); background: var(--green-light); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== CART ==================== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 700; color: var(--green); }
.cart-item { display: flex; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--green-light); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; margin-bottom: 4px; }
.cart-item-price { color: var(--green); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-total { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cart-remove { color: var(--red); font-size: 18px; padding: 4px 8px; transition: var(--transition); }
.cart-remove:hover { opacity: 0.7; }

.order-summary {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 80px;
}
.order-summary h3 { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--text-mid); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--green); border-top: 2px solid var(--border); padding-top: 12px; margin-top: 12px; }
.coupon-input { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 13px; outline: none; }
.coupon-input input:focus { border-color: var(--gold); }
.coupon-input button { padding: 10px 16px; background: var(--green); color: white; border-radius: var(--radius); font-size: 13px; font-weight: 600; }

/* ==================== FORMS ==================== */
.form-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--cream) 100%);
}
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}
.form-header { text-align: center; margin-bottom: 32px; }
.form-header .logo { justify-content: center; margin-bottom: 20px; }
.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 8px;
}
.form-subtitle { color: var(--text-light); font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-label span { color: var(--red); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    background: white;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,168,0,0.1); }
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider { text-align: center; margin: 20px 0; color: var(--text-light); font-size: 13px; position: relative; }
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%; width: 40%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-footer { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-mid); }
.form-footer a { color: var(--green); font-weight: 600; }

/* ==================== CHECKOUT ==================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-section { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 17px; font-weight: 700; color: var(--green); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step-num {
    width: 28px; height: 28px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.payment-option { display: flex; flex-direction: column; gap: 12px; }
.payment-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-item:hover { border-color: var(--gold); background: var(--gold-light); }
.payment-item input[type="radio"] { accent-color: var(--green); }
.payment-item.selected { border-color: var(--green); background: var(--green-light); }
.bank-info {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    font-size: 14px;
}
.bank-info strong { color: var(--green); display: block; margin-bottom: 4px; }

/* ==================== ADMIN ==================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--green);
    color: white;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.admin-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px;
    font-size: 18px;
    font-weight: 800;
}
.admin-nav { padding: 16px 0; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 8px 20px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
    border-left-color: var(--gold);
}
.admin-nav a i { width: 18px; text-align: center; font-size: 14px; }
.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #F0F2F5;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0; z-index: 50;
}
.admin-page { padding: 28px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-page-title { font-size: 22px; font-weight: 800; color: var(--text-dark); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-icon.gold   { background: var(--gold-light); color: var(--gold-dark); }
.stat-icon.blue   { background: #DBEAFE; color: #2563EB; }
.stat-icon.red    { background: #FEE2E2; color: var(--red); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-light); }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat-change.up { color: #059669; }

/* Admin Table */
.admin-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #F8F9FA;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }
.table-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-confirmed  { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #EDE9FE; color: #5B21B6; }
.status-shipped    { background: #D1FAE5; color: #065F46; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }
.status-paid       { background: #D1FAE5; color: #065F46; }
.status-unpaid     { background: #FEE2E2; color: #991B1B; }
.table-actions { display: flex; gap: 8px; }
.table-actions a, .table-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}
.btn-edit   { background: #DBEAFE; color: #2563EB; }
.btn-delete { background: #FEE2E2; color: var(--red); }
.btn-view   { background: var(--green-light); color: var(--green); }
.btn-edit:hover   { background: #2563EB; color: white; }
.btn-delete:hover { background: var(--red); color: white; }
.btn-view:hover   { background: var(--green); color: white; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 20px; }
.page-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--text-mid);
    transition: var(--transition);
    background: white;
    text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--green); color: white; border-color: var(--green); }

/* ==================== FOOTER ==================== */
.footer { background: var(--green); color: rgba(255,255,255,0.85); margin-top: auto; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo-icon-lg { font-size: 44px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; color: white; }
.footer-brand-sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.footer-col p { font-size: 13.5px; line-height: 1.8; opacity: 0.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: white;
    transition: var(--transition);
}
.social-btn.whatsapp { background: #25D366; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.facebook { background: #1877F2; }
.social-btn.tiktok { background: #000; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 13.5px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 10px; font-size: 13px; }
.contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; width: 14px; }

.footer-newsletter { background: rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 28px 0; }
.newsletter-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.newsletter-content h4 { color: white; font-size: 17px; margin-bottom: 4px; }
.newsletter-content p { font-size: 13px; opacity: 0.75; }
.newsletter-form { display: flex; gap: 8px; flex-shrink: 0; }
.newsletter-form input {
    padding: 12px 18px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 14px;
    width: 260px;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button { padding: 12px 24px; background: var(--gold); color: white; border-radius: 50px; font-weight: 700; font-size: 14px; transition: var(--transition); }
.newsletter-form button:hover { background: var(--gold-dark); }

.footer-payment { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-payment .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.payment-info, .delivery-info { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: white; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.footer-bottom { padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; opacity: 0.7; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }

/* ==================== FLOATING ELEMENTS ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 80px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.wa-tooltip {
    position: absolute;
    right: 64px;
    background: var(--text-dark);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--green);
    color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* ==================== EMPTY STATES ==================== */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-icon { font-size: 72px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 24px; }

/* ==================== MISC ==================== */
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.font-playfair { font-family: 'Playfair Display', serif; }
.mt-48 { margin-top: 48px; }
.bg-green-light { background: var(--green-light); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; background: var(--red); color: white; border-radius: 50px; font-size: 11px; font-weight: 700; padding: 0 5px; }
.image-placeholder { width: 100%; height: 100%; background: var(--green-light); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--green-mid); font-size: 40px; gap: 8px; }
.image-placeholder span { font-size: 13px; font-weight: 600; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header .container { padding: 12px 16px; flex-wrap: wrap; }
    .search-bar { order: 3; flex-basis: 100%; }
    .mobile-menu-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-menu { flex-direction: column; gap: 0; padding: 8px 0; }
    .nav-menu > li > a { padding: 12px 20px; }
    .promo-banner { flex-direction: column; text-align: center; }
    .promo-timer { justify-content: center; }
    .newsletter-content { flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; flex-direction: column; }
    .newsletter-form input { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-slider { min-height: 360px; }
    .hero-slide { min-height: 360px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pulse { animation: pulse 2s infinite; }
