/* =============================================
   ArangKelapa - Main Stylesheet
   Theme: Coklat & Hitam (Charcoal & Earth)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
    --black: #0d0d0d;
    --charcoal: #1a1a1a;
    --dark: #252525;
    --dark-mid: #2e2e2e;
    --brown-dark: #3d2b1f;
    --brown: #6b3a2a;
    --brown-mid: #8b4513;
    --brown-light: #a0522d;
    --amber: #c17f24;
    --amber-light: #d4943a;
    --cream: #f5e6d3;
    --cream-light: #fdf6ee;
    --white: #ffffff;
    --gray: #888;
    --gray-light: #ccc;
    --red: #e53e3e;
    --green: #38a169;
    --orange: #dd6b20;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);
    --transition: all 0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream-light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === LAYOUT === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.6rem,3vw,2.4rem); }
h3 { font-size: 1.4rem; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: var(--brown-dark); margin-bottom: 10px; }
.section-title p { color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-title .divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--brown));
    margin: 15px auto;
    border-radius: 3px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 14px; transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brown), var(--amber));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107,58,42,0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber), var(--brown));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,58,42,0.5);
}
.btn-outline {
    border-color: var(--brown);
    color: var(--brown);
    background: transparent;
}
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color: white; }

/* === BADGES === */
.badge {
    background: var(--amber); color: var(--white);
    border-radius: 50%; width: 20px; height: 20px;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: -8px; right: -8px;
}

/* === TOP BAR === */
.topbar {
    background: var(--black);
    color: var(--gray-light);
    font-size: 13px;
    padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-left span, .topbar-right a {
    color: var(--gray-light); display: flex; align-items: center; gap: 6px;
}
.topbar-right a:hover { color: var(--amber); }
.topbar i { font-size: 12px; color: var(--amber); }

/* === NAVBAR === */
.navbar {
    background: var(--charcoal);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
    display: flex; align-items: center; gap: 20px;
    padding: 15px 20px;
    max-width: 1280px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(193,127,36,0.5)); }
.logo-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.logo-name span { color: var(--amber); }
.logo-sub { display: block; font-size: 10px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }

.search-form {
    flex: 1; max-width: 500px;
    display: flex; background: var(--dark); border-radius: 50px;
    border: 1px solid var(--dark-mid);
    overflow: hidden; transition: var(--transition);
}
.search-form:focus-within { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(193,127,36,0.2); }
.search-form input {
    flex: 1; background: none; border: none; outline: none;
    padding: 10px 20px; color: var(--white); font-size: 14px; font-family: inherit;
}
.search-form input::placeholder { color: var(--gray); }
.search-form button {
    padding: 10px 20px; background: var(--amber); color: var(--white);
    border: none; transition: var(--transition);
}
.search-form button:hover { background: var(--amber-light); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
    position: relative; display: flex; align-items: center; gap: 6px;
    color: var(--white); padding: 8px 12px; border-radius: var(--radius);
    font-size: 14px; transition: var(--transition); background: none;
}
.nav-btn:hover { background: var(--dark-mid); color: var(--amber); }
.cart-btn { background: rgba(193,127,36,0.15); border: 1px solid rgba(193,127,36,0.3); }
.cart-btn:hover { background: rgba(193,127,36,0.3); }

.user-menu { position: relative; }
.user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--charcoal); border: 1px solid var(--dark-mid);
    border-radius: var(--radius-lg); min-width: 200px;
    box-shadow: var(--shadow); padding: 8px 0;
    display: none; z-index: 999;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: var(--gray-light); font-size: 14px;
}
.user-dropdown a:hover { background: var(--dark-mid); color: var(--amber); }
.user-dropdown hr { border-color: var(--dark-mid); margin: 4px 0; }
.text-danger { color: var(--red) !important; }

.hamburger { display: none; color: var(--white); font-size: 1.3rem; padding: 8px; }

.mobile-menu {
    display: none; background: var(--dark);
    padding: 10px 20px;
}
.mobile-menu a {
    display: block; color: var(--gray-light);
    padding: 12px 0; border-bottom: 1px solid var(--dark-mid); font-size: 15px;
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu.open { display: block; }

.nav-links {
    background: var(--brown-dark);
    overflow-x: auto;
}
.nav-links .container { display: flex; gap: 0; white-space: nowrap; }
.nav-links a {
    color: rgba(255,255,255,0.8); padding: 12px 18px;
    font-size: 13.5px; font-weight: 500; transition: var(--transition);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--amber); background: rgba(255,255,255,0.05);
}
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--amber);
}

/* === FLASH MESSAGES === */
.flash-msg {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 20px;
    border-left: 4px solid; font-size: 14px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.flash-success { background: #f0fff4; border-color: var(--green); color: #276749; }
.flash-error { background: #fff5f5; border-color: var(--red); color: #9b2c2c; }
.flash-warning { background: #fffbeb; border-color: var(--orange); color: #7b341e; }
.flash-msg button { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.5; }
.flash-msg button:hover { opacity: 1; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--brown-dark) 50%, var(--charcoal) 100%);
    min-height: 90vh; display: flex; align-items: center;
    position: relative; 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='%23ffffff' fill-opacity='0.02'%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");
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(193,127,36,0.2); border: 1px solid rgba(193,127,36,0.4);
    color: var(--amber); padding: 8px 16px; border-radius: 50px;
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
    letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--amber); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--amber); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual {
    z-index: 1; display: flex; justify-content: center; align-items: center;
}
.hero-img-wrap {
    position: relative; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(193,127,36,0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10rem;
    animation: float 4s ease-in-out infinite;
}
.hero-img-wrap::before {
    content: '';
    position: absolute; inset: -10px;
    border: 2px solid rgba(193,127,36,0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === CATEGORIES === */
.categories { background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.cat-card {
    background: var(--cream-light); border: 2px solid transparent;
    border-radius: var(--radius-lg); padding: 28px 20px;
    text-align: center; transition: var(--transition); cursor: pointer;
}
.cat-card:hover {
    border-color: var(--brown); background: var(--white);
    transform: translateY(-5px); box-shadow: var(--shadow);
}
.cat-icon { font-size: 3rem; margin-bottom: 12px; }
.cat-name { font-weight: 600; color: var(--brown-dark); font-size: 14px; }
.cat-count { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* === PRODUCT CARDS === */
.products { background: var(--cream-light); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.product-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img {
    aspect-ratio: 1; overflow: hidden; position: relative;
    background: linear-gradient(135deg, var(--cream), var(--cream-light));
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; background: linear-gradient(135deg, #f0e0d0, #e8d5c0);
}
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge-featured { background: var(--amber); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-sale { background: var(--red); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-out { background: var(--gray); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.product-actions {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; }
.action-btn {
    width: 36px; height: 36px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--dark); box-shadow: var(--shadow);
    transition: var(--transition); border: none; cursor: pointer;
}
.action-btn:hover { background: var(--brown); color: white; }
.action-btn.active { background: var(--red); color: white; }

.product-body { padding: 16px; }
.product-cat { font-size: 11px; color: var(--brown); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 15px; line-height: 1.4; }
.product-name a:hover { color: var(--brown); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--amber); font-size: 13px; }
.rating-count { font-size: 12px; color: var(--gray); }
.product-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.price-original { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--brown); }
.price-old { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.product-footer { display: flex; gap: 8px; }
.product-footer .btn { flex: 1; font-size: 13px; padding: 9px; }
.sold-count { font-size: 11px; color: var(--gray); margin-top: 6px; }

/* === FEATURED / BANNER === */
.banner-section { background: linear-gradient(135deg, var(--brown-dark), var(--black)); padding: 80px 0; }
.banner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.banner-content h2 { color: var(--white); margin-bottom: 16px; }
.banner-content p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.banner-features { list-style: none; margin-bottom: 36px; }
.banner-features li {
    color: rgba(255,255,255,0.8); padding: 8px 0;
    display: flex; align-items: center; gap: 12px; font-size: 15px;
}
.banner-features li::before { content: '✓'; color: var(--amber); font-weight: 700; font-size: 1rem; }
.banner-visual { text-align: center; font-size: 8rem; }

/* === WHY US === */
.why-us { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.why-card { text-align: center; padding: 36px 24px; border-radius: var(--radius-lg); transition: var(--transition); }
.why-card:hover { background: var(--cream-light); transform: translateY(-4px); }
.why-icon {
    width: 72px; height: 72px; background: linear-gradient(135deg, var(--brown), var(--amber));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px; color: white;
}
.why-card h3 { color: var(--brown-dark); margin-bottom: 10px; font-size: 1.1rem; }
.why-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* === TESTIMONIALS === */
.testimonials { background: var(--cream-light); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px; border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 14px; }
.testi-text { color: var(--dark); font-size: 14px; line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brown), var(--amber));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: white; font-family: var(--font-display);
}
.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--gray); }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--dark); }
.form-label span { color: var(--red); }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #ddd; border-radius: var(--radius);
    font-family: inherit; font-size: 14px; color: var(--dark);
    background: white; transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(107,58,42,0.1); }
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint { font-size: 12px; color: var(--gray); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }

/* === AUTH PAGES === */
.auth-page {
    min-height: 100vh; background: linear-gradient(135deg, var(--black), var(--brown-dark));
    display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
    background: white; border-radius: var(--radius-lg);
    padding: 48px; width: 100%; max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon { font-size: 3rem; margin-bottom: 8px; }
.auth-logo h2 { color: var(--brown-dark); }
.auth-logo p { color: var(--gray); font-size: 14px; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--gray); font-size: 14px; position: relative; }
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #eee;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.auth-links a { color: var(--brown); font-weight: 600; }
.auth-links a:hover { color: var(--amber); }

/* === PRODUCT DETAIL === */
.product-detail { padding: 60px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.detail-gallery { position: sticky; top: 100px; }
.main-img {
    aspect-ratio: 1; background: var(--cream-light);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
    border: 2px solid #eee;
}
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.main-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.thumb-row { display: flex; gap: 10px; }
.thumb {
    width: 80px; height: 80px; border-radius: var(--radius);
    border: 2px solid transparent; overflow: hidden; cursor: pointer;
    transition: var(--transition);
}
.thumb:hover, .thumb.active { border-color: var(--brown); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info .product-cat { font-size: 13px; color: var(--brown); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.detail-info h1 { font-size: 2rem; color: var(--dark); margin-bottom: 16px; }
.detail-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.detail-price-box {
    background: var(--cream-light); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 24px;
}
.detail-price { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--brown); }
.detail-price-old { font-size: 1rem; color: var(--gray); text-decoration: line-through; margin-left: 12px; }
.detail-discount { background: var(--red); color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-left: 10px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid #ddd; border-radius: var(--radius); overflow: hidden; width: fit-content; margin-bottom: 20px; }
.qty-btn { width: 44px; height: 44px; background: var(--cream-light); border: none; font-size: 1.3rem; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--brown); color: white; }
.qty-input { width: 60px; height: 44px; text-align: center; border: none; outline: none; font-size: 16px; font-weight: 700; border-left: 1.5px solid #ddd; border-right: 1.5px solid #ddd; }
.detail-meta { border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.detail-meta-item { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.detail-meta-label { color: var(--gray); min-width: 100px; }
.detail-meta-value { color: var(--dark); font-weight: 500; }
.stock-ok { color: var(--green); font-weight: 600; }
.stock-low { color: var(--orange); font-weight: 600; }
.stock-out { color: var(--red); font-weight: 600; }

/* === BREADCRUMB === */
.breadcrumb { padding: 16px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--gray); margin-left: 8px; }
.breadcrumb-list a { color: var(--brown); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li:last-child { color: var(--gray); }

/* === CART PAGE === */
.cart-page { padding: 60px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.cart-table { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--brown-dark); color: white; padding: 14px 20px; text-align: left; font-size: 14px; font-weight: 600; }
.cart-table td { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-img { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; background: var(--cream-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-weight: 600; font-size: 14px; }
.cart-product-cat { font-size: 12px; color: var(--gray); }
.remove-btn { color: var(--red); background: none; border: none; cursor: pointer; font-size: 18px; transition: var(--transition); }
.remove-btn:hover { transform: scale(1.2); }
.cart-summary {
    background: white; border-radius: var(--radius-lg);
    padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky; top: 100px; height: fit-content;
}
.cart-summary h3 { color: var(--brown-dark); margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid #eee; padding-top: 14px; margin-top: 8px; color: var(--brown); }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 1.5px solid #ddd; border-radius: var(--radius); font-family: inherit; font-size: 14px; outline: none; }
.coupon-form input:focus { border-color: var(--brown); }

/* === ORDERS === */
.order-card {
    background: white; border-radius: var(--radius-lg); margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06); overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.order-header { background: var(--cream-light); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.order-code { font-weight: 700; color: var(--brown-dark); }
.order-date { font-size: 13px; color: var(--gray); }
.order-body { padding: 20px 24px; }
.order-items { margin-bottom: 16px; }
.order-item { display: flex; gap: 14px; margin-bottom: 12px; align-items: center; }
.order-item-img { width: 60px; height: 60px; border-radius: var(--radius); background: var(--cream-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-footer { border-top: 1px solid #f0f0f0; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.order-total { font-size: 1.1rem; font-weight: 700; color: var(--brown); }

/* STATUS BADGES */
.status-badge { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-menunggu_pembayaran { background: #fffbeb; color: #92400e; border: 1px solid #fbbf24; }
.status-pembayaran_dikonfirmasi { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.status-diproses { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.status-dikirim { background: #faf5ff; color: #7c3aed; border: 1px solid #c4b5fd; }
.status-selesai { background: #f0fdf4; color: #065f46; border: 1px solid #6ee7b7; }
.status-dibatalkan { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* === ADMIN === */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--charcoal); min-height: 100vh;
    position: sticky; top: 0;
}
.sidebar-brand {
    padding: 24px 20px; background: var(--black);
    font-family: var(--font-display); font-size: 1.2rem;
    color: white; border-bottom: 1px solid var(--dark-mid);
}
.sidebar-brand span { color: var(--amber); }
.sidebar-nav { padding: 20px 0; }
.sidebar-section { padding: 8px 20px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); font-weight: 600; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: rgba(255,255,255,0.6);
    font-size: 14px; transition: var(--transition); position: relative;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(193,127,36,0.1); color: var(--amber); }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); }
.sidebar-link i { width: 20px; text-align: center; }
.admin-content { flex: 1; background: #f8f9fa; }
.admin-topbar {
    background: white; padding: 16px 30px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100;
}
.admin-topbar h4 { color: var(--brown-dark); font-size: 1.1rem; }
.admin-body { padding: 30px; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: white; border-radius: var(--radius-lg);
    padding: 24px; border-left: 4px solid var(--amber);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-card.blue { border-color: #3b82f6; }
.stat-card.green { border-color: var(--green); }
.stat-card.red { border-color: var(--red); }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--dark); }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.admin-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 24px; }
.admin-card h3 { color: var(--brown-dark); margin-bottom: 20px; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--cream-light); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--brown-dark); border-bottom: 2px solid #eee; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius); }
.action-btns { display: flex; gap: 6px; }
.btn-edit { background: #eff6ff; color: #1d4ed8; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.btn-edit:hover { background: #1d4ed8; color: white; }
.btn-delete { background: #fef2f2; color: var(--red); padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.btn-delete:hover { background: var(--red); color: white; }
.form-page { max-width: 800px; }

/* === PAGINATION === */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); border: 1.5px solid #ddd; font-size: 14px;
    color: var(--dark); transition: var(--transition);
}
.page-btn:hover { border-color: var(--brown); color: var(--brown); }
.page-btn.active { background: var(--brown); border-color: var(--brown); color: white; }

/* === PROFILE === */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 50px 0; }
.profile-sidebar { background: white; border-radius: var(--radius-lg); padding: 28px; height: fit-content; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--brown), var(--amber)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; color: white; font-family: var(--font-display); margin: 0 auto 16px; }
.profile-name { text-align: center; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.profile-email { text-align: center; font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.profile-menu { border-top: 1px solid #eee; padding-top: 16px; }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--dark); font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.profile-menu a:hover, .profile-menu a.active { color: var(--brown); font-weight: 600; }
.profile-content { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--brown-dark), var(--charcoal));
    padding: 50px 0; margin-bottom: 0;
}
.page-header h1 { color: white; margin-bottom: 8px; font-size: 2rem; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 15px; }

/* === MISC === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-brown { color: var(--brown); }
.text-amber { color: var(--amber); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray); }
.empty-state .icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { color: var(--dark); margin-bottom: 10px; }
.divider-line { border: none; border-top: 1px solid #eee; margin: 24px 0; }

/* === FOOTER === */
.footer { background: var(--black); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 16px; }
.footer-logo span { color: var(--amber); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; background: var(--dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gray-light); transition: var(--transition);
}
.footer-social a:hover { background: var(--amber); color: white; transform: translateY(-3px); }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--amber); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul a:hover { color: var(--amber); padding-left: 5px; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; display: flex; gap: 10px; }
.footer-contact i { color: var(--amber); margin-top: 3px; }
.footer-contact a { color: var(--amber); }
.footer-payment { margin-top: 20px; }
.footer-payment small { display: block; color: var(--gray); margin-bottom: 8px; font-size: 12px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icons span { background: var(--dark); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--dark-mid); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-cert { display: flex; gap: 16px; }

/* === FLOAT BUTTONS === */
.wa-float {
    position: fixed; bottom: 80px; right: 24px;
    width: 58px; height: 58px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.8rem; z-index: 1000;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
.wa-tooltip {
    position: absolute; right: 70px; background: var(--dark);
    color: white; padding: 6px 12px; border-radius: 6px;
    font-size: 13px; white-space: nowrap; display: none;
}
.wa-float:hover .wa-tooltip { display: block; }
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; background: var(--brown);
    border-radius: 50%; color: white; font-size: 14px;
    display: none; align-items: center; justify-content: center;
    z-index: 999; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(107,58,42,0.4);
}
.back-to-top:hover { background: var(--amber); transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(3,1fr); }
    .why-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: repeat(2,1fr); }
    .admin-sidebar { width: 220px; }
    .hero-img-wrap { width: 300px; height: 300px; font-size: 7rem; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .search-form { display: none; }
    .nav-links { display: none; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; min-height: auto; position: static; }
    .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2,1fr); }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .banner-inner { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2,1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 30px 20px; }
    .stat-cards { grid-template-columns: 1fr; }
}