:root {
    --tk-primary: #6d5cf6;
    --tk-primary-600: #5a48e3;
    --tk-primary-soft: rgba(109, 92, 246, 0.12);
    --tk-accent: #22d3ee;
    --tk-accent-soft: rgba(34, 211, 238, 0.12);
    --tk-bg: #f6f7fb;
    --tk-surface: #ffffff;
    --tk-card: #ffffff;
    --tk-text: #0f172a;
    --tk-muted: #64748b;
    --tk-border: #e6e8f0;
    --tk-nav-bg: rgba(255, 255, 255, 0.85);
    --tk-hero-start: #eef1ff;
    --tk-hero-mid: #f6f7fb;
    --tk-hero-end: #ecfdff;
    --tk-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
    --tk-shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.06);
    --tk-radius: 18px;
    --tk-radius-sm: 12px;
}

[data-bs-theme="dark"] {
    --tk-bg: #0b1120;
    --tk-surface: #111a2e;
    --tk-card: #141f36;
    --tk-text: #e6ebf5;
    --tk-muted: #8fa0bd;
    --tk-border: #243049;
    --tk-nav-bg: rgba(11, 17, 32, 0.82);
    --tk-hero-start: #121a30;
    --tk-hero-mid: #0b1120;
    --tk-hero-end: #10222b;
    --tk-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
    --tk-shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--tk-bg);
    color: var(--tk-text);
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.footer-brand, .brand-text {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}

.text-muted { color: var(--tk-muted) !important; }
.text-primary { color: var(--tk-primary) !important; }
.bg-primary { background-color: var(--tk-primary) !important; }
.btn-primary {
    --bs-btn-bg: var(--tk-primary);
    --bs-btn-border-color: var(--tk-primary);
    --bs-btn-hover-bg: var(--tk-primary-600);
    --bs-btn-hover-border-color: var(--tk-primary-600);
    --bs-btn-active-bg: var(--tk-primary-600);
    --bs-btn-active-border-color: var(--tk-primary-600);
}
.btn-outline-primary {
    --bs-btn-color: var(--tk-primary);
    --bs-btn-border-color: var(--tk-primary);
    --bs-btn-hover-bg: var(--tk-primary);
    --bs-btn-hover-border-color: var(--tk-primary);
}

.navbar-custom {
    background: var(--tk-nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--tk-border);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}
.navbar-custom .nav-link {
    color: var(--tk-muted);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    transition: color 0.2s, background-color 0.2s;
}
.navbar-custom .nav-link:hover { color: var(--tk-primary); }
.navbar-custom .nav-link.active { color: var(--tk-primary); background: var(--tk-primary-soft); }
.brand-text {
    font-weight: 800;
    color: var(--tk-text);
    letter-spacing: 0.3px;
    font-size: 1.15rem;
}
.navbar-toggler { border-color: var(--tk-border); }
.navbar-toggler:focus { box-shadow: none; }
.cart-badge.d-none { display: none !important; }
.theme-toggle .theme-icon-dark { display: none; }
.theme-toggle .theme-icon-light { display: inline; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-dark { display: inline; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
.lang-switch .btn { border-radius: 8px !important; }

.hero-section {
    background: linear-gradient(160deg, var(--tk-hero-start) 0%, var(--tk-hero-mid) 50%, var(--tk-hero-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 6rem;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--tk-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--tk-border) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}
.hero-blob-1 { width: 420px; height: 420px; background: var(--tk-primary); top: -120px; right: -80px; }
.hero-blob-2 { width: 320px; height: 320px; background: var(--tk-accent); bottom: -120px; left: -60px; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    color: var(--tk-muted);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--tk-shadow-sm);
}
.hero-title {
    font-weight: 800;
    line-height: 1.12;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    color: var(--tk-text);
    letter-spacing: -0.5px;
}
.hero-title .gradient-text, .gradient-text {
    background: linear-gradient(90deg, var(--tk-primary), var(--tk-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-sub {
    max-width: 620px;
    font-size: 1.08rem;
    color: var(--tk-muted);
}
.hero-search {
    max-width: 560px;
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: var(--tk-shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tk-text);
    padding: 0.5rem 0;
}
.hero-stats { gap: 2.5rem; }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--tk-text); }
.hero-stat-label { font-size: 0.85rem; color: var(--tk-muted); }
.hero-visual {
    position: relative;
    z-index: 1;
}
.hero-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    box-shadow: var(--tk-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14); }
.hero-card-img { border-radius: var(--tk-radius); overflow: hidden; }

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tk-primary);
}
.section-title { font-weight: 800; letter-spacing: -0.4px; color: var(--tk-text); }

.category-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-sm);
    padding: 1.1rem;
    text-decoration: none;
    color: var(--tk-text);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tk-shadow);
    border-color: var(--tk-primary);
    color: var(--tk-text);
}
.category-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--tk-primary);
    background: var(--tk-primary-soft);
}
.category-card:hover .category-icon { background: var(--tk-primary); color: #fff; }
.category-name { font-weight: 700; }
.category-count { font-size: 0.82rem; color: var(--tk-muted); }

.product-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tk-shadow);
    border-color: var(--tk-primary);
}
.product-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tk-primary-soft), var(--tk-accent-soft));
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.product-quick {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.product-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.78rem; font-weight: 700; color: var(--tk-primary); text-transform: uppercase; letter-spacing: 0.6px; }
.product-title { font-size: 1.02rem; font-weight: 700; color: var(--tk-text); }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--tk-primary); }
.product-tech { font-size: 0.78rem; color: var(--tk-muted); }
.product-price { font-weight: 800; color: var(--tk-primary); font-size: 1.05rem; }
.product-price-old { font-size: 0.82rem; color: var(--tk-muted); text-decoration: line-through; }
.product-actions .btn { border-radius: 10px; font-size: 0.85rem; font-weight: 600; }

.section-padding { padding: 4.5rem 0; }
.section-alt { background: var(--tk-surface); border-top: 1px solid var(--tk-border); border-bottom: 1px solid var(--tk-border); }

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--tk-primary);
    background: var(--tk-primary-soft);
}

.step-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    padding: 1.5rem;
    height: 100%;
    position: relative;
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tk-primary);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.cta-banner {
    background: linear-gradient(120deg, var(--tk-primary), #4f8df9 55%, var(--tk-accent));
    border-radius: 24px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.cta-banner h2 { color: #fff; font-weight: 800; }

.site-footer {
    background: var(--tk-surface);
    border-top: 1px solid var(--tk-border);
}
.footer-title { font-weight: 800; color: var(--tk-text); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--tk-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--tk-primary); }
.footer-contact li { color: var(--tk-muted); margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-brand { font-weight: 800; color: var(--tk-text); font-size: 1.2rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--tk-muted);
    background: var(--tk-bg);
    border: 1px solid var(--tk-border);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}
.social-link:hover { color: #fff; background: var(--tk-primary); border-color: var(--tk-primary); }

.page-header {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(160deg, var(--tk-hero-start), var(--tk-hero-mid));
    border-bottom: 1px solid var(--tk-border);
}

.filter-panel {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    padding: 1.2rem;
}
.filter-title { font-weight: 700; font-size: 0.95rem; color: var(--tk-text); }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 0.3rem; }
.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 9px;
    color: var(--tk-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.filter-list a:hover { color: var(--tk-primary); background: var(--tk-primary-soft); }
.filter-list a.active { color: var(--tk-primary); background: var(--tk-primary-soft); font-weight: 600; }
.filter-list .count { font-size: 0.78rem; color: var(--tk-muted); }
.form-control, .form-select {
    background-color: var(--tk-card);
    border-color: var(--tk-border);
    color: var(--tk-text);
}
.form-control:focus, .form-select:focus,
.form-check-input:focus {
    border-color: var(--tk-primary);
    box-shadow: 0 0 0 0.2rem var(--tk-primary-soft);
}
.form-check-input:checked { background-color: var(--tk-primary); border-color: var(--tk-primary); }
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--tk-text); }

.product-detail-gallery img {
    border-radius: var(--tk-radius);
    border: 1px solid var(--tk-border);
    width: 100%;
}
.gallery-thumb {
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--tk-primary); }

.info-box {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    padding: 1.2rem;
}
.info-box .info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--tk-muted); font-weight: 700; }
.info-box .info-value { font-weight: 700; color: var(--tk-text); }

.feature-check li { margin-bottom: 0.55rem; color: var(--tk-text); }
.feature-check .bi-check-circle-fill { color: var(--tk-primary); }

.auth-card {
    max-width: 460px;
    margin: 3rem auto;
}
.form-check-input:focus { box-shadow: none; }

.table-area {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    overflow: hidden;
}
.table-area .table { margin-bottom: 0; color: var(--tk-text); }
.table thead th {
    background: var(--tk-surface);
    color: var(--tk-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom-color: var(--tk-border);
    white-space: nowrap;
}
.table td { vertical-align: middle; border-color: var(--tk-border); }
.table-area .table-hover tbody tr:hover { background: var(--tk-primary-soft); }

.breadcrumb { font-size: 0.88rem; }
.breadcrumb a { color: var(--tk-primary); text-decoration: none; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--tk-muted); }

.toast { border-radius: 12px; box-shadow: var(--tk-shadow); }

.pagination .page-link {
    background: var(--tk-card);
    border-color: var(--tk-border);
    color: var(--tk-muted);
    border-radius: 10px;
    margin: 0 0.15rem;
}
.pagination .page-link:hover { color: var(--tk-primary); border-color: var(--tk-primary); }
.pagination .page-item.active .page-link { background: var(--tk-primary); border-color: var(--tk-primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--tk-card); color: var(--tk-muted); opacity: 0.6; }

.card-template {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-sm);
}

.payment-group-title { font-weight: 800; color: var(--tk-text); font-size: 0.95rem; }
.payment-option {
    display: block;
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-sm);
    padding: 0.9rem 1rem;
    background: var(--tk-card);
    cursor: pointer;
    transition: all 0.2s;
}
.payment-option:hover { border-color: var(--tk-primary); }
.payment-option.selected { border-color: var(--tk-primary); box-shadow: 0 0 0 3px var(--tk-primary-soft); }
.payment-option .pm-name { font-weight: 700; color: var(--tk-text); }
.payment-option .pm-detail { font-size: 0.8rem; color: var(--tk-muted); }

.order-status-badge { font-size: 0.78rem; font-weight: 700; }
.whatsapp-btn {
    --bs-btn-color: #fff;
    --bs-btn-bg: #25d366;
    --bs-btn-border-color: #25d366;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1ebe5b;
    --bs-btn-hover-border-color: #1ebe5b;
}

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.2rem;
    font-size: 2.2rem;
    color: var(--tk-primary);
    background: var(--tk-primary-soft);
}

.lazy { background: var(--tk-border); }

.testimonial-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    padding: 1.4rem;
    height: 100%;
}
.stars { color: #fbbf24; }

@media (max-width: 991.98px) {
    .hero-section { padding: 4rem 0 4.5rem; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-search { margin-inline: auto; }
    .hero-stats { justify-content: center; }
    .navbar-custom .d-flex { margin-top: 0.6rem; width: 100%; justify-content: flex-end; }
}
@media (max-width: 575.98px) {
    .section-padding { padding: 3.2rem 0; }
    .hero-stat-value { font-size: 1.2rem; }
    .hero-stats { gap: 1.5rem; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* WhatsApp float button */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tk-shadow);
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}
.wa-float:hover {
    background: #1ebe5b;
    color: #fff;
    transform: scale(1.06);
}
.wa-float .bi-whatsapp { transform: scale(1.05); }
.wa-float-label {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    background: var(--tk-card);
    color: var(--tk-text);
    border: 1px solid var(--tk-border);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: var(--tk-shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.wa-float:hover .wa-float-label,
.wa-float:focus .wa-float-label { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 575.98px) {
    .wa-float { right: 1rem; bottom: 1rem; }
}