/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */
:root {
    --nova-primary: #5e3bff;
    --nova-text-dark: #111827;
    --nova-text-light: #6b7280;
    --nova-border: #e5e7eb;
    --nova-bg-light: #f9fafb;
    --nova-green: #10b981;
    --nova-radius: 12px;
}

body.woocommerce-shop, body.archive, body.single-product {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #fafafa;
    color: var(--nova-text-dark);
}

/* Sembunyikan Bawaan WooCommerce */
.woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, h1.page-title, .woocommerce-info {
    display: none !important;
}

/* Container Utama */
.nova-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.nova-breadcrumbs {
    font-size: 13px;
    color: var(--nova-text-light);
    margin-bottom: 24px;
}
.nova-breadcrumbs a { color: var(--nova-text-light); text-decoration: none; }
.nova-breadcrumbs a:hover { color: var(--nova-primary); }
.nova-breadcrumbs span { color: var(--nova-text-dark); font-weight: 500; }

/* =========================================================
   HERO SECTION (Khusus Shop)
   ========================================================= */
.nova-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #f3f0ff 0%, #ffffff 100%);
    border-radius: 24px;
    margin-bottom: 60px;
}
.nova-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin: 0 0 16px 0; }
.nova-hero h1 span { color: var(--nova-primary); }
.nova-hero p { font-size: 16px; color: var(--nova-text-light); margin-bottom: 32px; }
.nova-search-bar {
    display: flex; max-width: 600px; margin: 0 auto; background: #fff;
    border: 1px solid var(--nova-border); border-radius: 50px; padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nova-search-bar input { flex: 1; border: none; outline: none; padding: 10px 20px; font-size: 15px; background: transparent; }
.nova-search-bar button { background: var(--nova-primary); color: #fff; border: none; border-radius: 50px; padding: 10px 24px; font-weight: 600; cursor: pointer; }

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */
.nova-archive-header { margin-bottom: 40px; }
.nova-archive-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.nova-archive-header p { font-size: 15px; color: var(--nova-text-light); }

/* =========================================================
   PRODUCT GRID & CARD
   ========================================================= */
.nova-section { margin-bottom: 60px; }
.nova-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.nova-section-title { font-size: 24px; font-weight: 700; margin: 0; }
.nova-section-desc { font-size: 14px; color: var(--nova-text-light); margin: 4px 0 0 0; }
.nova-view-all { font-size: 14px; color: var(--nova-primary); text-decoration: none; font-weight: 500; }

.nova-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .nova-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nova-grid { grid-template-columns: 1fr; } }

.nova-card {
    background: #fff; border: 1px solid var(--nova-border); border-radius: var(--nova-radius);
    padding: 16px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.nova-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.nova-card-img { width: 100%; aspect-ratio: 4/3; background-color: #f3f4f6; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.nova-card-img img { width: 100%; height: 100%; object-fit: cover; }
.nova-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.nova-card-author { font-size: 11px; color: var(--nova-text-light); margin-bottom: 12px; }
.nova-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid var(--nova-border); padding-top: 12px; }
.nova-card-price { color: var(--nova-green); font-size: 16px; font-weight: 700; }
.nova-card-sales { font-size: 11px; color: var(--nova-text-light); display: block; font-weight: 400; }
.nova-btn-preview {
    background: #fff; color: var(--nova-primary); border: 1px solid var(--nova-border);
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    text-decoration: none; display: flex; align-items: center; gap: 4px; transition: all 0.2s;
}
.nova-btn-preview:hover { border-color: var(--nova-primary); background: #f9f8ff; }

/* =========================================================
   KATEGORI GRID
   ========================================================= */
.nova-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 768px) { .nova-cat-grid { grid-template-columns: repeat(2, 1fr); } }
.nova-cat-card {
    background: #fff; border: 1px solid var(--nova-border); border-radius: var(--nova-radius);
    padding: 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nova-text-dark); transition: all 0.2s;
}
.nova-cat-card:hover { border-color: var(--nova-primary); }
.nova-cat-icon { width: 32px; height: 32px; background: #f3f0ff; color: var(--nova-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nova-cat-name { font-size: 13px; font-weight: 600; }
.nova-cat-count { font-size: 11px; color: var(--nova-text-light); }

/* =========================================================
   TESTIMONIALS & CTA (Shop)
   ========================================================= */
.nova-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .nova-testi-grid { grid-template-columns: 1fr; } }
.nova-testi-card { background: #fff; border: 1px solid var(--nova-border); border-radius: var(--nova-radius); padding: 24px; }
.nova-stars { color: #fbbf24; font-size: 14px; margin-bottom: 12px; }
.nova-testi-text { font-size: 14px; font-style: italic; margin-bottom: 16px; line-height: 1.5; }
.nova-testi-user { display: flex; align-items: center; gap: 12px; }
.nova-testi-avatar { width: 32px; height: 32px; background: #e5e7eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.nova-testi-name { font-size: 13px; font-weight: 600; margin: 0; }
.nova-testi-role { font-size: 11px; color: var(--nova-text-light); margin: 0; }

.nova-cta-banner {
    background: linear-gradient(135deg, #5e3bff 0%, #4a2cd6 100%);
    border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 60px;
}
.nova-cta-content h2 { font-size: 32px; font-weight: 700; margin: 0 0 12px 0; }
.nova-cta-content p { font-size: 14px; opacity: 0.8; margin: 0 0 24px 0; max-width: 400px; }
.nova-cta-buttons { display: flex; gap: 12px; }
.nova-btn-white { background: #fff; color: var(--nova-primary); padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nova-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nova-cta-features { list-style: none; padding: 0; margin: 0; }
.nova-cta-features li { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; opacity: 0.9; }

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.nova-sp-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 992px) { .nova-sp-grid { grid-template-columns: 1fr; } }

.nova-sp-tabs { display: flex; border-bottom: 1px solid var(--nova-border); margin-bottom: 24px; gap: 24px; }
.nova-sp-tab { padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--nova-text-light); cursor: pointer; border-bottom: 2px solid transparent; }
.nova-sp-tab.active { color: var(--nova-primary); border-bottom-color: var(--nova-primary); }

.nova-sp-image-box { position: relative; border: 1px solid var(--nova-border); border-radius: var(--nova-radius); overflow: hidden; margin-bottom: 24px; background: var(--nova-bg-light); }
.nova-sp-image-box img { width: 100%; display: block; }
.nova-sp-image-actions { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.nova-sp-img-btn { background: var(--nova-primary); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.nova-sp-img-btn.grey { background: #4b5563; }

.nova-sp-desc h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px 0; }
.nova-sp-desc p { font-size: 14px; line-height: 1.6; color: var(--nova-text-dark); margin-bottom: 16px; }

.nova-sp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.nova-box { border: 1px solid var(--nova-border); border-radius: var(--nova-radius); padding: 24px; background: #fff; }

.nova-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.nova-license-select { padding: 8px 12px; border: 1px solid var(--nova-border); border-radius: 6px; font-size: 13px; width: 60%; }
.nova-price { font-size: 24px; font-weight: 700; color: var(--nova-green); }
.nova-feature-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.nova-feature-list li { font-size: 13px; color: var(--nova-text-light); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.nova-feature-list li::before { content: '✓'; color: var(--nova-green); font-weight: bold; }

.nova-extend-support { border: 1px solid var(--nova-border); border-radius: 8px; padding: 16px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
.nova-extend-support input { margin-top: 3px; }
.nova-extend-support-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.nova-extend-support-desc { font-size: 12px; color: var(--nova-text-light); }
.nova-extend-price { font-size: 12px; color: var(--nova-green); margin-top: 4px; font-weight: 600; }
.nova-extend-price del { color: var(--nova-text-light); font-weight: 400; margin-right: 4px; }

.nova-qty-wrapper { display: flex; gap: 12px; margin-bottom: 20px; }
.nova-qty-box { display: flex; align-items: center; border: 1px solid var(--nova-border); border-radius: 6px; width: 100px; }
.nova-qty-box input { width: 40px; text-align: center; border: none; outline: none; font-size: 14px; font-weight: 500; }
.nova-qty-btn { background: transparent; border: none; padding: 8px 12px; cursor: pointer; color: var(--nova-text-light); }

.nova-btn-add-cart { background: var(--nova-green); color: #fff; width: 100%; padding: 14px; border-radius: 6px; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; border: none; cursor: pointer; }
.nova-btn-add-cart:hover { background: #059669; color: #fff; }
.nova-price-info { font-size: 11px; color: var(--nova-text-light); text-align: center; margin-bottom: 16px; }

.nova-secondary-actions { display: flex; gap: 12px; }
.nova-btn-outline-action { flex: 1; border: 1px solid var(--nova-border); background: #fff; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--nova-text-dark); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; }
.nova-btn-outline-action:hover { border-color: var(--nova-primary); }

.nova-author-box { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.nova-author-avatar { width: 48px; height: 48px; background: var(--nova-bg-light); border-radius: 50%; border: 1px solid var(--nova-border); }
.nova-author-info h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px 0; }
.nova-author-info p { font-size: 13px; color: var(--nova-text-light); margin: 0; }

.nova-attr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nova-attr-table tr { border-bottom: 1px solid var(--nova-border); }
.nova-attr-table tr:last-child { border-bottom: none; }
.nova-attr-table td { padding: 12px 0; }
.nova-attr-table td:first-child { font-weight: 600; width: 40%; color: var(--nova-text-dark); }
.nova-attr-table td:last-child { color: var(--nova-text-light); text-align: right; }
.nova-attr-more { display: block; text-align: center; font-size: 13px; color: var(--nova-primary); text-decoration: none; margin-top: 16px; font-weight: 500; }