:root {
    --primary: #d97706;
    --primary-hover: #b45309;
    --primary-light: #fef3c7;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --slate: #334155;
    --muted: #64748b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --gold: #f59e0b;
    --gold-dark: #b45309;
    --ml-yellow: #ffe600;
    --ml-blue: #2d3277;
    --radius: 14px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Top Announcement Bar */
.top-bar {
    background: #090e1a;
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-badges {
    display: flex;
    gap: 16px;
}
.top-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}
.top-badge-item i {
    color: var(--gold);
}

/* Header */
.main-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 0;
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.logo-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
}
.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.logo-text h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.logo-text span {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 540px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border-radius: 9999px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.header-search input:focus {
    border-color: var(--gold);
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.header-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
}

/* Header Links */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.btn-header {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-header:hover {
    background: #1e293b;
    color: #ffffff;
}
.btn-header-admin {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.btn-header-admin:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #090e1a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}
.hero-content h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.hero-content h2 span {
    color: var(--gold);
}
.hero-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--gold);
    padding: 14px 18px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.7;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f1f5f9;
}
.hero-image-box {
    text-align: center;
    position: relative;
}
.hero-photo-wrapper {
    position: relative;
    display: inline-block;
}
.hero-photo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(245, 158, 11, 0.3);
    object-fit: cover;
}
.hero-floating-card {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: #ffffff;
    color: var(--dark);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.hero-floating-card i {
    font-size: 24px;
    color: var(--gold);
}
.hero-floating-card strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}
.hero-floating-card span {
    font-size: 11px;
    color: var(--muted);
}

/* Category Filter Navigation */
.categories-nav-section {
    padding: 25px 0 10px;
    position: sticky;
    top: 78px;
    z-index: 90;
    background: var(--light-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.categories-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}
.categories-pills::-webkit-scrollbar {
    height: 4px;
}
.categories-pills::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.cat-pill {
    padding: 9px 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--slate);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.cat-pill.active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.section-title-group h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.section-title-group p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 3px;
}
.sort-select {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--slate);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Product Card Image */
.card-media {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .card-media img {
    transform: scale(1.08);
}

/* Badges on Card */
.platform-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.platform-ml {
    background: var(--ml-yellow);
    color: var(--ml-blue);
}
.platform-amazon {
    background: #232f3e;
    color: #ff9900;
}
.platform-shopee {
    background: #ee4d2d;
    color: #ffffff;
}
.platform-other {
    background: #0f172a;
    color: #ffffff;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* Card Body */
.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}
.card-rating i {
    color: #f59e0b;
}

.card-pricing {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.price-old-val {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
}
.price-main-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.price-installments {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    margin-top: 2px;
}

/* Card Buttons */
.card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 15px;
}
.btn-buy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}
.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.35);
    color: #ffffff;
}
.btn-details {
    background: #f1f5f9;
    color: var(--slate);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-details:hover {
    background: #e2e8f0;
    color: var(--dark);
}

/* Trust Features Section */
.features-section {
    background: #ffffff;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.feature-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.feature-text p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: #090e1a;
    color: #94a3b8;
    padding: 50px 0 25px;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}
.footer-about p {
    line-height: 1.7;
    margin-bottom: 15px;
}
.affiliate-disclaimer {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    color: #cbd5e1;
}
.footer-col h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

/* Quick View Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
    transition: all 0.2s;
    z-index: 10;
}
.modal-close:hover {
    background: #ef4444;
    color: #fff;
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    padding: 35px;
}
.modal-img-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}
.modal-img-box img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}
.modal-info h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 12px;
}
.modal-info p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal-notice {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    color: #1e40af;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}
.no-results i {
    font-size: 44px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-quote { border-left: none; border-top: 3px solid var(--gold); border-radius: 12px; }
    .hero-badges { justify-content: center; }
    .hero-image-box { margin-top: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .modal-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .header-wrapper { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; }
    .hero-content h2 { font-size: 28px; }
    .products-grid { grid-template-columns: 1fr; }
}
