:root {
--bg: #f0f2f5;
--surface: #ffffff;
--text-primary: #111827;
--text-secondary: #6b7280;
--text-muted: #9ca3af;
--border: #e5e7eb;
--border-light: #f3f4f6;
--success: #059669;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
--radius: 12px;
--radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ===== TOP NAVBAR ===== */
.top-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.top-nav-left {
    display: flex; align-items: center; gap: 12px;
}
.top-nav-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.top-nav-logo img { width: 100%; height: 100%; object-fit: cover; }
.top-nav-logo i { font-size: 16px; color: var(--primary); }
.top-nav-brand {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
}
.top-nav-badge {
    font-size: 10px; font-weight: 700; color: var(--primary);
    background: var(--primary-light); padding: 2px 8px;
    border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
.top-nav-right {
    display: flex; align-items: center; gap: 8px;
}
.nav-btn {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.2s; cursor: pointer; border: none;
}
.nav-btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.nav-btn-outline:hover { background: var(--border-light); color: var(--text-primary); }
.nav-btn-primary {
    background: var(--primary); color: #fff;
}
.nav-btn-primary:hover { background: var(--primary-dark); }
.nav-btn-whatsapp {
    background: #25D366; color: #fff;
}
.nav-btn-whatsapp:hover { background: #1ebe5d; }

/* ===== HERO BANNER ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative; overflow: hidden;
}
.hero-section::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.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");
}
.hero-banner {
    position: relative;
    max-width: 1280px; margin: 0 auto;
    padding: 48px 32px;
}
.hero-banner-bg {
    position: absolute; inset: 0;
}
.hero-banner-bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.15;
}
.hero-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 28px;
}
.hero-logo {
    width: 110px; height: 110px; border-radius: 24px;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.15),
        0 8px 32px rgba(0,0,0,0.2),
        0 0 60px rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}
.hero-logo:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.25),
        0 12px 40px rgba(0,0,0,0.25),
        0 0 80px rgba(255,255,255,0.15);
}
@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.15), 0 8px 32px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 0 6px rgba(255,255,255,0.2), 0 8px 32px rgba(0,0,0,0.2), 0 0 80px rgba(255,255,255,0.18); }
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo i { font-size: 44px; color: var(--primary); }
.hero-info { color: #fff; }
.hero-info h1 {
    font-size: 28px; font-weight: 800; margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.hero-info .hero-desc {
    font-size: 14px; opacity: 0.8; margin-bottom: 16px;
    max-width: 500px; line-height: 1.5;
}
.hero-badges {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-badge {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; color: #fff;
    display: flex; align-items: center; gap: 6px;
}
.hero-badge i { font-size: 11px; opacity: 0.8; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.stats-bar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; gap: 0;
    overflow-x: auto;
}
.stat-item {
    padding: 20px 24px;
    display: flex; align-items: center; gap: 14px;
    border-right: 1px solid var(--border-light);
    white-space: nowrap;
    transition: all 0.25s ease;
    position: relative;
    flex: 1;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--border-light); }
.stat-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: width 0.25s ease;
}
.stat-item:hover::after { width: 40px; }
.stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
    transition: transform 0.25s ease;
}
.stat-item:hover .stat-icon { transform: scale(1.1); }

/* Colored icon variants */
.stat-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.stat-icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.stat-icon-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #059669; }
.stat-icon-red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.stat-icon-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }

.stat-text .stat-num {
    font-size: 20px; font-weight: 800; color: var(--text-primary);
    line-height: 1;
}
.stat-text .stat-num-success { color: #059669; }
.stat-text .stat-num-star { color: #d97706; }
.stat-text .stat-label {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
    margin-top: 2px;
}

/* ===== MAIN LAYOUT ===== */
.main-wrap {
    max-width: 1280px; margin: 24px auto; padding: 0 32px;
    display: grid; grid-template-columns: 280px 1fr; gap: 24px;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}
.sidebar-card-header {
    padding: 14px 16px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 8px;
}
.sidebar-card-header i { color: var(--primary); }
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border-light); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); transition: all 0.15s;
}
.cat-list a:hover {
    background: var(--primary-light); color: var(--primary);
    padding-left: 20px;
}
.cat-list a::after {
    content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 9px; opacity: 0; transition: opacity 0.15s;
}
.cat-list a:hover::after { opacity: 1; }

.contact-list { list-style: none; }
.contact-list li {
    padding: 10px 16px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 12px; flex-shrink: 0;
}
.social-links {
    display: flex; gap: 8px; padding: 12px 16px;
}
.social-link {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.2s;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-link.fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-link.ig:hover { background: #E4405F; color: #fff; border-color: #E4405F; }

/* ===== PRODUCTS ===== */
.products-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.products-header h2 {
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.products-header h2 span {
    background: var(--primary-light); color: var(--primary);
    font-size: 12px; font-weight: 700;
    padding: 2px 10px; border-radius: 20px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.product-card .card-img {
    height: 180px; background: var(--border-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.product-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-img .no-img {
    font-size: 40px; color: var(--text-muted);
}
.product-card .card-body { padding: 14px; }
.product-card .card-title {
    font-size: 13px; font-weight: 600; line-height: 1.4;
    margin-bottom: 8px; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .card-title a { color: inherit; }
.product-card .card-title a:hover { color: var(--primary); }
.product-card .card-tags {
    display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px;
}
.card-tag {
    font-size: 10px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    background: var(--border-light); color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.product-card .card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--border-light);
}
.card-price {
    font-size: 18px; font-weight: 800; color: var(--primary);
}
.card-actions .btn-detail {
    padding: 6px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    background: var(--primary-light); color: var(--primary);
    border: none; cursor: pointer; transition: all 0.15s;
}
.card-actions .btn-detail:hover {
    background: var(--primary); color: #fff;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center; padding: 80px 20px;
}
.empty-state i { font-size: 56px; color: var(--border); }
.empty-state h3 {
    margin-top: 16px; font-size: 16px; color: var(--text-muted);
    font-weight: 500;
}

/* Pagination */
.pagination-wrap {
    margin-top: 40px; padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: center;
}
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav > div:last-child { width: 100%; }
.pagination-wrap ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 6px; align-items: center;
    justify-content: center; flex-wrap: wrap;
}
.pagination-wrap li { list-style: none; }
.pagination-wrap .relative,
.pagination-wrap nav > div:last-child > div {
    display: flex; gap: 6px; align-items: center; justify-content: center;
    flex-wrap: wrap;
}
.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 6px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--border);
    background: #fff; color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination-wrap a:hover {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.pagination-wrap .active span,
.pagination-wrap span[aria-current] {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.pagination-wrap .disabled span,
.pagination-wrap span[aria-disabled] {
    opacity: 0.4; cursor: not-allowed;
    background: var(--bg);
}
.pagination-wrap a svg,
.pagination-wrap span svg {
    width: 16px; height: 16px;
}
.pagination-wrap p.text-sm { display: none; }
.pagination-wrap .hidden { display: flex !important; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ===== FOOTER ===== */
.store-footer {
    border-top: 1px solid var(--border);
    text-align: center; padding: 32px 20px;
    margin-top: 40px;
}
.store-footer p {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.store-footer a { color: var(--primary); font-weight: 700; }
.store-footer a:hover { text-decoration: underline; }

/* ===== MOBILE DRAWER ===== */
.mobile-menu-btn {
    display: none; width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-light); border: none; cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px; transition: all 0.2s;
    flex-shrink: 0;
}
.mobile-menu-btn:hover { background: var(--primary); color: #fff; }
.drawer-overlay {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s;
}
.drawer-overlay.active { display: block; opacity: 1; }
.mobile-drawer {
    position: fixed; top: 0; right: -320px; z-index: 999;
    width: 300px; max-width: 85vw; height: 100vh;
    background: var(--surface); box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-drawer.active { right: 0; }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.drawer-header-left { display: flex; align-items: center; gap: 10px; }
.drawer-header-logo {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.drawer-header-logo img { width: 100%; height: 100%; object-fit: cover; }
.drawer-header-logo i { font-size: 14px; color: var(--primary); }
.drawer-header-title { font-size: 14px; font-weight: 700; }
.drawer-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: var(--border-light); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 14px; transition: all 0.15s;
}
.drawer-close:hover { background: #fee2e2; color: #ef4444; }
.drawer-section { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.drawer-section-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.drawer-section-title i { color: var(--primary); font-size: 11px; }
.drawer-cat-list { list-style: none; }
.drawer-cat-list li { margin-bottom: 2px; }
.drawer-cat-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 8px; font-size: 13px;
    font-weight: 500; color: var(--text-secondary); transition: all 0.15s;
}
.drawer-cat-list a:hover, .drawer-cat-list a.active {
    background: var(--primary-light); color: var(--primary); font-weight: 600;
}
.drawer-cat-list a i { font-size: 10px; opacity: 0.4; }
.drawer-contact-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.drawer-contact-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    color: var(--primary); font-size: 12px; flex-shrink: 0;
}
.drawer-contact-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; word-break: break-word; }
.drawer-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; border-radius: 10px;
    background: #25D366; color: #fff; font-size: 13px;
    font-weight: 700; border: none; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.drawer-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
.drawer-wa-btn i { font-size: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .main-wrap { grid-template-columns: 1fr; padding: 0 16px; }
    .sidebar { order: 2; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-badges { justify-content: center; }
    .hero-banner { padding: 32px 20px; }
    .stats-bar-inner { padding: 0 16px; }
}
@media (max-width: 600px) {
    /* Nav */
    .top-nav { padding: 0 12px; height: 50px; }
    .top-nav-right .nav-text { display: none; }
    .top-nav-brand { font-size: 14px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-nav-badge { display: none; }
    .nav-btn { padding: 8px 10px; font-size: 12px; }
    .mobile-menu-btn { display: flex; }
    .sidebar { display: none; }

    /* Hero */
    .hero-banner { padding: 24px 16px; }
    .hero-logo { width: 72px; height: 72px; border-radius: 18px; border-width: 2px; }
    .hero-logo i { font-size: 28px; }
    .hero-info h1 { font-size: 20px; }
    .hero-info .hero-desc { font-size: 12px; margin-bottom: 12px; }
    .hero-badge { font-size: 11px; padding: 4px 10px; }

    /* Stats */
    .stats-bar-inner { padding: 0 8px; gap: 0; }
    .stat-item { padding: 10px 12px; gap: 8px; }
    .stat-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
    .stat-text .stat-num { font-size: 16px; }
    .stat-text .stat-label { font-size: 9px; }

    /* Sidebar */
    .sidebar-card { border-radius: 10px; }
    .sidebar-card-header { padding: 12px 14px; font-size: 11px; }
    .cat-list a { padding: 9px 14px; font-size: 12px; }
    .contact-list li { padding: 8px 14px; font-size: 12px; }
    .contact-list i { width: 28px; height: 28px; font-size: 11px; }

    /* Products Grid - 2 columns */
    .products-header { margin-bottom: 12px; }
    .products-header h2 { font-size: 14px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card { border-radius: 10px; }
    .product-card .card-img { height: 130px; }
    .product-card .card-body { padding: 8px 10px; }
    .product-card .card-title { font-size: 11px; margin-bottom: 4px; line-height: 1.3; }
    .product-card .card-tags { margin-bottom: 6px; gap: 3px; }
    .card-tag { font-size: 8px; padding: 1px 5px; }
    .product-card .card-footer { padding-top: 6px; }
    .card-price { font-size: 14px; }
    .card-actions .btn-detail { padding: 4px 8px; font-size: 10px; border-radius: 5px; }

    /* Pagination */
    .pagination-wrap { margin-top: 24px; padding-top: 16px; }
    .pagination-wrap a,
    .pagination-wrap span {
        min-width: 34px; height: 34px;
        padding: 4px 8px; font-size: 12px;
        border-radius: 8px;
    }

    /* Footer */
    .store-footer { padding: 24px 16px; margin-top: 24px; }
    .store-footer p { font-size: 11px; }
}

/* Extra small screens */
@media (max-width: 380px) {
    .top-nav-brand { max-width: 90px; }
    .hero-info h1 { font-size: 18px; }
    .products-grid { gap: 6px; }
    .product-card .card-img { height: 110px; }
    .product-card .card-title { font-size: 10px; -webkit-line-clamp: 1; }
    .card-price { font-size: 13px; }
    .card-actions .btn-detail { display: none; }
}
