/* ============================================
   TERASI NUSANTARA SHOP - Main Stylesheet
   Design: Warm Earthy Premium Indonesian
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #c84b11;
    --primary-dark: #9e3a0c;
    --primary-light: #e8651a;
    --secondary: #f5a623;
    --accent: #d4860a;
    --dark: #1a0a00;
    --dark-2: #2d1500;
    --text: #3d2010;
    --text-light: #7a5030;
    --bg: #fdf6f0;
    --bg-2: #fff9f5;
    --border: #e8d4c0;
    --white: #ffffff;
    --success: #22a35e;
    --danger: #dc3545;
    --warning: #f5a623;
    --info: #17a2b8;
    --shadow: 0 4px 20px rgba(200, 75, 17, 0.12);
    --shadow-lg: 0 10px 40px rgba(200, 75, 17, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--dark);
}

/* === TOPBAR === */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar-left, .topbar-right { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar span { color: rgba(255,255,255,0.75); transition: var(--transition); }
.topbar a:hover { color: var(--secondary); }
.topbar i { margin-right: 0.35rem; color: var(--secondary); }

/* === HEADER === */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(200,75,17,0.1);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(200,75,17,0.2); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon { font-size: 2.2rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    max-width: 540px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}
.search-bar input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(200,75,17,0.1);
}
.search-bar button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); transform: scale(1.05); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}
.action-btn:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }
.action-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-admin:hover { background: var(--primary); color: white; }

.btn-seller {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-seller:hover { background: var(--accent); color: white; }
.btn-seller-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.4rem 0.9rem;
}
.btn-seller-outline:hover { background: var(--primary); color: white; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* === NAVBAR === */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--secondary); background: rgba(255,255,255,0.1); }
.nav-menu > li > a i:last-child { font-size: 0.75rem; }

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--bg); color: var(--primary); padding-left: 1.5rem; }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown .view-all { color: var(--primary); font-weight: 600; }

/* === FLASH MESSAGES === */
.flash-message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    font-weight: 500;
    animation: slideInRight 0.4s ease;
}
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.flash-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.flash-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.flash-close { margin-left: auto; background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }
.flash-close:hover { opacity: 1; }

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 85vh;
    min-height: 85dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1500 50%, #6b2800 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23c84b11' fill-opacity='0.05'%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");
    opacity: 0.5;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.4;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}
.hero-text { color: white; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.4);
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    color: var(--secondary);
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 480px; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-product-showcase {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-product-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(245,166,35,0.3);
    box-shadow: 0 0 80px rgba(245,166,35,0.3);
    animation: heroFloat 4s ease-in-out infinite;
    background: linear-gradient(135deg, #c84b11, #f5a623);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-15px) rotate(3deg)} }
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(245,166,35,0.2);
    animation: spin linear infinite;
}
.hero-ring-1 { width: 320px; height: 320px; animation-duration: 20s; }
.hero-ring-2 { width: 360px; height: 360px; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-float-badges {
    position: absolute;
    top: 40px;
    right: -20px;
}
.hero-float-badge {
    background: white;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    animation: floatBadge 3s ease-in-out infinite;
}
.hero-float-badge:nth-child(2) { animation-delay: 1s; }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-float-badge i { color: var(--primary); }

/* === TRUST BADGES & ORIGIN GRID (previously inline, now responsive) === */
.trust-badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.origin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,75,17,0.35); }
.btn-secondary { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-dark { background: var(--dark); color: white; border-color: var(--dark); }
.btn-dark:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* === SECTION STYLES === */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-2); }
.section-dark { background: var(--dark); color: white; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1rem;
}
.section-dark .section-title { color: white; }
.section-subtitle { color: var(--text-light); max-width: 560px; margin: 0 auto; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* === CATEGORIES GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}
.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}
.category-card:hover .category-icon { background: rgba(200,75,17,0.1); transform: scale(1.1); }
.category-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.category-count { font-size: 0.75rem; color: var(--text-light); }

/* === PRODUCT CARDS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-badge-area {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 2;
}
.badge-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--primary); color: white; }
.badge-featured { background: var(--secondary); color: var(--dark); }
.product-wishlist {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-wishlist:hover, .product-wishlist.active { color: var(--danger); transform: scale(1.1); }
.product-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #fff3e6, #ffe0c0);
}
.product-quick-add {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(200,75,17,0.95);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}
.product-card:hover .product-quick-add { bottom: 0; }
.product-body { padding: 1.25rem; }
.product-origin {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.product-origin i { color: var(--primary); }
.product-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.stars { color: var(--secondary); font-size: 0.85rem; }
.rating-count { font-size: 0.75rem; color: var(--text-light); }
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.product-price { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.product-price-old { font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; }
.product-add-btn {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.product-add-btn:hover { background: var(--primary-dark); transform: scale(1.1) rotate(90deg); }

/* === PROMO BANNER === */
.promo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.promo-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}
.promo-card-1 { background: linear-gradient(135deg, #c84b11, #ff8a4c); color: white; }
.promo-card-2 { background: linear-gradient(135deg, #1a0a00, #6b2800); color: white; }
.promo-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.promo-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; margin-bottom: 0.5rem; }
.promo-title { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.promo-emoji { font-size: 5rem; position: relative; z-index: 1; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(200,75,17,0.1);
    line-height: 1;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.testimonial-rating { color: var(--secondary); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--text); font-size: 0.95rem; font-style: italic; margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--dark); }
.author-location { font-size: 0.8rem; color: var(--text-light); }

/* === WHY US === */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(200,75,17,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); transform: scale(1.1) rotate(10deg); }
.feature-title { font-family: var(--font-heading); font-size: 1.1rem; color: white; margin-bottom: 0.75rem; }
.feature-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* === CART PAGE === */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-table { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 1rem 1.25rem; text-align: left; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); background: var(--bg); border-bottom: 2px solid var(--border); }
.cart-table td { padding: 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; flex-shrink: 0; }
.cart-item-info { display: flex; align-items: center; gap: 1rem; }
.cart-item-name { font-weight: 600; color: var(--dark); margin-bottom: 0.25rem; }
.cart-item-weight { font-size: 0.8rem; color: var(--text-light); }
.quantity-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; background: var(--bg); border: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: white; }
.qty-input { width: 50px; text-align: center; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; padding: 0.4rem; outline: none; }
.cart-summary { background: white; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); position: sticky; top: 120px; }
.cart-summary h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--dark); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.coupon-form { display: flex; gap: 0.5rem; margin: 1rem 0; }
.coupon-form input { flex: 1; padding: 0.65rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); outline: none; }
.coupon-form input:focus { border-color: var(--primary); }

/* === CHECKOUT === */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.checkout-form-card, .order-summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}
.checkout-section-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--dark); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.checkout-section-title i { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--dark); margin-bottom: 0.4rem; }
.form-group label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}
.form-control:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(200,75,17,0.08); }
.form-control.error { border-color: var(--danger); }
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:hover, .payment-option.selected { border-color: var(--primary); background: rgba(200,75,17,0.04); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-icon { font-size: 1.5rem; }
.payment-label { font-weight: 600; font-size: 0.9rem; }
.payment-desc { font-size: 0.8rem; color: var(--text-light); }

/* === PRODUCT DETAIL === */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.product-gallery { position: sticky; top: 120px; }
.gallery-main {
    height: 460px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 8rem;
    border: 2px solid var(--border);
}
.gallery-thumbs { display: flex; gap: 0.75rem; }
.gallery-thumb {
    width: 75px;
    height: 75px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.product-detail-info { }
.product-category-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(200,75,17,0.1); color: var(--primary); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 50px; margin-bottom: 1rem; }
.product-detail-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--dark); margin-bottom: 1rem; line-height: 1.2; }
.product-detail-rating { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.product-detail-price { margin-bottom: 1.5rem; }
.price-current { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: var(--primary); }
.price-original { font-size: 1.1rem; color: var(--text-light); text-decoration: line-through; margin-left: 0.75rem; }
.price-save { display: inline-block; background: var(--danger); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 50px; margin-left: 0.75rem; }
.product-short-desc { color: var(--text); font-size: 0.975rem; line-height: 1.8; margin-bottom: 2rem; padding: 1.25rem; background: var(--bg); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.product-meta { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.meta-row { display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; }
.meta-label { font-weight: 700; color: var(--text-light); min-width: 100px; }
.meta-value { color: var(--text); }
.stock-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.stock-badge.in-stock { background: #d4edda; color: #155724; }
.stock-badge.low-stock { background: #fff3cd; color: #856404; }
.stock-badge.out-stock { background: #f8d7da; color: #721c24; }
.add-to-cart-section { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.add-to-cart-section .quantity-control { border-radius: var(--radius-sm); }
.add-to-cart-section .qty-btn { width: 44px; height: 50px; font-size: 1.3rem; }
.add-to-cart-section .qty-input { width: 60px; height: 50px; font-size: 1rem; }
.product-tabs { margin-top: 3rem; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.tab-btn { padding: 0.75rem 1.5rem; background: none; border: none; border-bottom: 3px solid transparent; font-family: var(--font-body); font-weight: 600; color: var(--text-light); cursor: pointer; transition: var(--transition); margin-bottom: -2px; }
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === FORM STYLES === */
.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-icon { font-size: 3rem; margin-bottom: 1rem; }
.auth-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; color: var(--dark); }
.auth-subtitle { color: var(--text-light); margin-top: 0.5rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-light); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-light); }
.auth-link a { color: var(--primary); font-weight: 600; }

/* === ACCOUNT PAGE === */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.account-sidebar { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); position: sticky; top: 120px; }
.account-profile { padding: 2rem; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.account-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; margin: 0 auto 1rem; }
.account-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.account-email { font-size: 0.8rem; opacity: 0.8; margin-top: 0.25rem; }
.account-nav { padding: 0.5rem; }
.account-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.account-nav a:hover, .account-nav a.active { background: rgba(200,75,17,0.08); color: var(--primary); }
.account-nav a i { width: 20px; color: var(--primary); }
.account-content { background: white; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); min-height: 400px; }

/* === ORDER LIST === */
.order-list { display: flex; flex-direction: column; gap: 1.25rem; }
.order-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: var(--transition); }
.order-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-number { font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.order-status { padding: 0.35rem 0.9rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-paid { background: #d4edda; color: #155724; }
.status-failed { background: #f8d7da; color: #721c24; }

/* === BREADCRUMB === */
.breadcrumb { padding: 1rem 0; }
.breadcrumb-nav { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--primary); }
.breadcrumb-nav span { color: var(--text-light); }
.breadcrumb-nav i { font-size: 0.7rem; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: white;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === FILTER SIDEBAR === */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filter-sidebar { background: white; border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); position: sticky; top: 120px; }
.filter-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.filter-section { margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-section-title { font-weight: 700; font-size: 0.875rem; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.875rem; }
.filter-option { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; cursor: pointer; }
.filter-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option label { font-size: 0.9rem; color: var(--text); cursor: pointer; flex: 1; display: flex; justify-content: space-between; }
.filter-count { color: var(--text-light); font-size: 0.8rem; }
.price-range { display: flex; gap: 0.75rem; align-items: center; }
.price-range input { flex: 1; padding: 0.5rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; outline: none; }
.price-range input:focus { border-color: var(--primary); }

/* === SORT BAR === */
.sort-bar { display: flex; align-items: center; justify-content: space-between; background: white; border-radius: var(--radius); padding: 1rem 1.5rem; border: 1px solid var(--border); margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.sort-bar-left { font-size: 0.9rem; color: var(--text-light); }
.sort-bar-left strong { color: var(--dark); }
.sort-select { padding: 0.5rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.875rem; color: var(--text); outline: none; cursor: pointer; }
.sort-select:focus { border-color: var(--primary); }

/* === FOOTER === */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer-wave { line-height: 0; margin-bottom: -1px; background: var(--bg); }
.footer-main { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-about .footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 0.3rem; }
.footer-col ul li a i { font-size: 0.65rem; }
.contact-list li { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.contact-list li i { color: var(--secondary); margin-top: 0.15rem; flex-shrink: 0; }
.footer-newsletter { background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 2rem 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-text h3 { font-family: var(--font-heading); font-size: 1.4rem; color: white; margin-bottom: 0.25rem; }
.newsletter-text p { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.newsletter-form { display: flex; gap: 0.5rem; flex: 1; max-width: 480px; }
.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: white;
    font-family: var(--font-body);
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--secondary); }
.newsletter-form button { padding: 0.8rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 50px; font-family: var(--font-body); font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-payment { padding: 1.5rem 0; }
.payment-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.payment-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); padding: 0.3rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 2s infinite;
    z-index: -1;
}
.whatsapp-float:hover { background: #1da851; color: white; transform: scale(1.1); }
@keyframes pulse { 0%{transform:scale(1); opacity:0.6} 100%{transform:scale(1.6); opacity:0} }
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    z-index: 998;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.5; }
.empty-state h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--dark); margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-light); margin-bottom: 2rem; }

/* === LOADING SPINNER === */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

/* === ALERT === */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.alert i { margin-top: 0.1rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-content { gap: 2rem; }
    .hero-product-showcase { width: 280px; height: 280px; }
    .hero-product-img { width: 200px; height: 200px; font-size: 5rem; }
    .trust-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .origin-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery { position: static; }
    .account-layout { grid-template-columns: 220px 1fr; }
    .shop-layout { grid-template-columns: 220px 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        z-index: 999;
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.2); }
    .header-inner { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; flex: 0 0 100%; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    /* Pindah logo/produk mengambang ke ATAS-TENGAH, bukan disembunyikan */
    .hero-content { display: flex; flex-direction: column; }
    .hero-text { order: 2; }
    .hero-visual {
        order: 1;
        display: flex;
        justify-content: center;
        margin: 0 auto 1.5rem;
        position: static;
    }
    .hero-product-showcase { width: 200px; height: 200px; }
    .hero-product-img { width: 140px; height: 140px; font-size: 3.5rem; }
    .hero-ring-1 { width: 220px; height: 220px; }
    .hero-ring-2 { width: 250px; height: 250px; }
    .hero-float-badges { position: static; margin-top: 0.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .hero-float-badge { margin-bottom: 0; font-size: 0.7rem; padding: 0.5rem 0.75rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 1.25rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-banners { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .topbar-left { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .trust-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .origin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .trust-badges-grid { grid-template-columns: 1fr; }
    .origin-grid { grid-template-columns: 1fr; }
    .hero-product-showcase { width: 160px; height: 160px; }
    .hero-product-img { width: 110px; height: 110px; font-size: 2.75rem; }
    .hero-ring-1 { width: 180px; height: 180px; }
    .hero-ring-2 { width: 210px; height: 210px; }
    .hero-title { font-size: 2rem; }
    .cart-table { overflow-x: auto; }
    .btn-seller span,
    .btn-admin span { display: none; }
    .btn-seller, .btn-admin { padding: 0.5rem 0.7rem; }
}
