/* Smart Tech Laptops — Shop Stylesheet */
/* Brand: Black #0d0d0d + Neon Green #39FF14 */

:root {
    --bg:           #0d0d0d;
    --surface:      #1a1a1a;
    --surface-2:    #222;
    --border:       #2a2a2a;
    --green:        #39FF14;
    --green-dim:    #2bcc0f;
    --green-glow:   rgba(57, 255, 20, 0.25);
    --red:          #e53935;
    --red-dim:      #c62828;
    --text:         #f0f0f0;
    --text-muted:   #888;
    --text-dim:     #555;
    --sale:         #ff3b00;
    --error:        #ff4444;
    --radius:       8px;
    --radius-sm:    4px;
    --transition:   0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Video Hero Banner ────────────────────────────────────────── */
.video-hero {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 480px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border-radius: var(--radius);
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-width: 100%;
    transition: opacity 1s ease;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-banner-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0 60px;
    text-align: right;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.hero-cta {
    display: inline-block;
    background: var(--green);
    color: #000;
    font-weight: 700;
    font-size: 15px;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.hero-cta:hover { background: var(--green-dim); text-decoration: none; color: #000; }

.hero-cta-group { display: flex; gap: 12px; justify-content: flex-end; }
.hero-cta-buy { background: #fff; color: #111; }
.hero-cta-buy:hover { background: #e0e0e0; color: #111; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
    background: #111;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo { flex-shrink: 0; }
.header-logo img { height: 40px; width: auto; }

.header-nav { display: flex; gap: 4px; }

.header-nav a {
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--green);
    background: rgba(57, 255, 20, 0.08);
}

.header-search {
    flex: 1;
    max-width: 480px;
    margin-left: auto;
}

.search-form {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.search-form:focus-within { border-color: var(--green); }

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
}

.search-form input::placeholder { color: var(--text-dim); }

.search-form button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 9px 14px;
    cursor: pointer;
    font-size: 16px;
    transition: color var(--transition);
}

.search-form button:hover { color: var(--green); }

.cart-btn {
    flex-shrink: 0;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
    white-space: nowrap;
}

.cart-btn:hover {
    border-color: var(--green);
    background: rgba(57, 255, 20, 0.06);
    text-decoration: none;
    color: var(--text);
}

.cart-badge {
    background: var(--green);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.hidden { display: none; }

/* ── Hamburger menu (mobile) ──────────────────────────────────── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #111;
}

.mobile-menu.open { display: flex; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--green);
    background: rgba(57, 255, 20, 0.08);
}

.mobile-search .search-form {
    width: 100%;
}

/* ── Filter toggle (mobile) ───────────────────────────────────── */
.filter-toggle-btn {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

/* ── Page layout ──────────────────────────────────────────────── */
.page-main {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    width: 100%;
}

/* 3-column: filters | grid | side banner */
.catalog-layout {
    display: grid;
    grid-template-columns: 230px 1fr 190px;
    gap: 24px;
    align-items: start;
}

/* ── Filters sidebar ──────────────────────────────────────────── */
.filters-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 80px;
}

.filter-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-clear { font-size: 12px; color: var(--green); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }

.filter-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: color var(--transition);
}

.filter-check:hover { color: var(--green); }

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
    accent-color: var(--green);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Feature filter buttons (Gaming / Touchscreen / On Sale) ──── */
.filter-feature-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-feature-btn {
    display: block;
    padding: 10px 14px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius-sm);
    background: #2a2a2a;
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.filter-feature-btn:hover {
    background: #333;
    border-color: #555;
    color: #fff;
    text-decoration: none;
}

.filter-feature-btn.active {
    background: var(--red);
    border-color: var(--red-dim);
    color: #fff;
    font-weight: 700;
}

.filter-feature-btn.active::before {
    content: '✓ ';
}

/* ── Side banner ──────────────────────────────────────────────── */
.side-banner {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-banner-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
}

.side-banner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.side-banner-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}

.side-banner-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.side-banner-card a {
    display: block;
    background: var(--green);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.side-banner-card a:hover { background: var(--green-dim); }

/* ── Results header ───────────────────────────────────────────── */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.results-count { color: var(--text-muted); font-size: 14px; }

.sort-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.sort-select:focus { border-color: var(--green); }

/* ── Product grid ─────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ── Product card ─────────────────────────────────────────────── */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
    transform: translateY(-2px);
}

.card-image-wrap {
    position: relative;
    background: #111;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-image-wrap .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 40px;
}

/* Stock count badge — shown on grouped catalogue cards */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Sale ribbon */
.sale-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    background: var(--sale);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 36px;
    transform: rotate(45deg);
    z-index: 2;
    text-transform: uppercase;
}

/* Card body */
.card-body {
    padding: 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-brand {
    font-size: 11px;
    font-weight: 700;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* Specs — line by line */
.card-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-specs li {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    line-height: 1.5;
}

.spec-key {
    color: var(--text-dim);
    font-weight: 600;
    min-width: 52px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Feature tags — below specs */
.card-feature-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.feature-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.tag-gaming { background: rgba(57,255,20,0.1); color: var(--green); border-color: rgba(57,255,20,0.4); }
.tag-touch  { background: rgba(77,184,255,0.1); color: #4db8ff; border-color: rgba(77,184,255,0.4); }
.tag-grade  { background: rgba(255,255,255,0.05); color: var(--text-muted); border-color: var(--border); }
.tag-stock  { background: rgba(0,0,0,0.78); color: #fff; border-color: rgba(0,0,0,0.78); }

/* Card footer */
.card-footer {
    padding: 11px 13px 13px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-block { display: flex; flex-direction: column; gap: 1px; }

.price-retail {
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: line-through;
}

.price-sale {
    font-size: 17px;
    font-weight: 700;
    color: var(--red);
}

.price-regular {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

/* Add to Cart — red */
.btn-cart {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), opacity var(--transition);
    flex-shrink: 0;
}

.btn-cart:hover { background: var(--red-dim); }
.btn-cart:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-cart.in-cart { background: #333; color: var(--green); border: 1px solid rgba(57,255,20,0.4); }

/* Product page cart + share row */
.product-cart-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.product-cart-row .btn-cart,
.product-cart-row .btn-whatsapp,
.product-cart-row .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    box-sizing: border-box;
}

/* ── Empty state ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* ── Product detail page ──────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-main {
    background: #111;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 68px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    background: #111;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--green); }

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { display: flex; flex-direction: column; gap: 16px; }

.detail-brand { font-size: 12px; font-weight: 700; color: #aaaaaa; text-transform: uppercase; letter-spacing: 1.5px; }

.detail-title { font-size: 22px; font-weight: 700; line-height: 1.2; }

.detail-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-price-sale { font-size: 28px; font-weight: 700; color: var(--red); }
.detail-price-regular { font-size: 28px; font-weight: 700; color: var(--text); }
.detail-price-retail { font-size: 15px; color: var(--text-dim); text-decoration: line-through; }

.sale-tag {
    background: var(--sale);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover { background: var(--red-dim); text-decoration: none; color: #fff; }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-whatsapp:hover { background: #1ebe5d; text-decoration: none; color: #fff; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr:nth-child(even) td { background: var(--surface-2); }
.spec-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; white-space: nowrap; }

.spec-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 20px 0 10px;
}

/* ── Cart page ────────────────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.cart-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 1fr 100px 120px 48px;
    padding: 10px 16px;
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr 100px 120px 48px;
    padding: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
    align-items: center;
}

.cart-item-info { display: flex; gap: 12px; align-items: center; }

.cart-item-img {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #111;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-type { font-size: 12px; color: var(--text-muted); }

.hold-timer { font-size: 11px; color: #ffaa00; margin-top: 2px; }
.hold-timer.expiring { color: var(--error); }

.qty-input {
    width: 60px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.cart-line-total { font-weight: 700; font-size: 15px; }

.btn-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    text-align: center;
}

.btn-remove:hover { color: var(--error); }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }

/* ── Delivery options (cart page) ─────────────────────────────── */
.delivery-options {
    margin: 14px 0 10px;
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.delivery-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 13px;
}

.delivery-option:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.delivery-option input[type="radio"] {
    accent-color: var(--green);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-option-label { flex: 1; color: var(--text); }
.delivery-option-price { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; }

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: background var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-checkout:hover { background: var(--red-dim); text-decoration: none; color: #fff; }

/* ── Checkout page ────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.form-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required { color: var(--error); }

.form-control {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color var(--transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus { border-color: var(--green); }
.form-control.error { border-color: var(--error); }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ── Order confirm page ───────────────────────────────────────── */
.confirm-card {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
}

.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.confirm-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: var(--green); }
.confirm-card p { color: var(--text-muted); margin-bottom: 8px; font-size: 15px; }

.pf-number {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    display: inline-block;
    margin: 12px 0;
}

.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── Software page ────────────────────────────────────────────── */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.software-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.software-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 16px var(--green-glow);
}

.software-icon { font-size: 36px; line-height: 1; }
.software-category { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; }
.software-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.software-desc { font-size: 13px; color: var(--text-muted); flex: 1; }

/* ── Page title bar ───────────────────────────────────────────── */
.page-title-bar { margin-bottom: 20px; }
.page-title-bar h1 { font-size: 22px; font-weight: 700; }
.page-title-bar p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ── Alerts / toast ───────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 3px solid;
    line-height: 1.6;
}

.alert-success { background: rgba(57,255,20,0.08); border-color: var(--green); color: var(--green); }
.alert-error   { background: rgba(255,68,68,0.08); border-color: var(--error); color: var(--error); }
.alert-warn    { background: rgba(255,170,0,0.08); border-color: #ffaa00; color: #ffaa00; }

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: toast-in 0.2s ease;
    pointer-events: auto;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--error); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
    background: #111;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    padding: 40px 20px 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo { height: 60px; width: auto; margin-bottom: 20px; object-fit: contain; }

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer-col a, .footer-col span {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.5;
}

.footer-col a:hover { color: var(--green); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-legal { font-size: 12px; color: var(--text-dim); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }

.page-link {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

.page-link:hover,
.page-link.active { border-color: var(--green); color: var(--green); text-decoration: none; }

.page-ellipsis { color: var(--text-dim); padding: 7px 6px; font-size: 14px; user-select: none; }

/* ── Utility ──────────────────────────────────────────────────── */
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .catalog-layout { grid-template-columns: 220px 1fr; }
    .side-banner { display: none; }
}

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-sidebar { position: static; display: none; }
    .filters-sidebar.open { display: block; }
    .filter-toggle-btn { display: block; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-table-header, .cart-row { grid-template-columns: 1fr 80px 100px 40px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 15px; }
    .hero-overlay { padding: 0 24px; }
    .hero-cta-group { flex-direction: column; gap: 8px; }
    .hero-cta { font-size: 13px; padding: 9px 20px; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .header-inner { gap: 12px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .hamburger-btn { display: flex; }
    .cart-table-header { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .video-hero { height: auto; max-height: none; aspect-ratio: 9 / 16; }
    .video-hero video { display: none; }
    .hero-banner-overlay { opacity: 1 !important; }
    .hero-banner-overlay img { object-fit: cover; }
    .hero-overlay {
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: 0 24px 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 30%, transparent 55%);
    }
    .hero-brand-icon { max-height: 64px !important; }
    .trust-bar-inner { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .trust-item { padding: 16px; flex-direction: row; align-items: center; gap: 14px; text-align: left; }
    .trust-icon-wrap { width: 40px; height: 40px; min-width: 40px; margin-bottom: 0; flex-shrink: 0; border-radius: 8px; }
    .trust-img { width: 26px; height: 26px; }
    .trust-icon { font-size: 22px; line-height: 1; }
    .trust-desc { display: none; }
}

/* ── Trust bar ────────────────────────────────────────────────────── */
.trust-bar {
    background: #0d0d0d;
    border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    gap: 0;
    transition: border-color 0.2s;
    text-align: center;
}
.trust-item:hover { border-color: var(--green); }
.trust-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #111;
    overflow: hidden;
}
.trust-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.trust-icon {
    font-size: 36px;
    line-height: 1;
}
.trust-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trust-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.trust-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── About page ──────────────────────────────────────────────────── */
.about-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.about-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-tagline {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.about-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.about-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--green);
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.about-card p:last-child { margin-bottom: 0; }

.about-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.about-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.about-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--green);
    color: #000;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-step strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.about-step p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.about-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    gap: 12px;
    font-size: 14px;
    align-items: baseline;
}

.contact-label {
    min-width: 80px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.contact-row a,
.contact-row span {
    color: var(--text-muted);
}

.contact-row a:hover { color: var(--green); }

@media (max-width: 700px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ── WhatsApp floating button ─────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    z-index: 9999;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* ── Product share row ────────────────────────────────────────────── */
.share-wa-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.share-wa-row > a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform .1s, box-shadow .15s, filter .15s;
    line-height: 1;
}
.btn-share-wa {
    background: #25D366;
    color: #fff !important;
    border: 1px solid #25D366;
}
.btn-share-wa:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
    text-decoration: none;
}
.btn-ask-wa {
    background: transparent;
    color: #25D366 !important;
    border: 1px solid #25D366;
}
.btn-ask-wa:hover {
    background: rgba(37,211,102,.1);
    text-decoration: none;
}
.share-wa-row svg { width: 20px; height: 20px; flex-shrink: 0; }

.share-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}
.share-icons .share-label {
    font-size: 12px;
    color: var(--text-dim, #888);
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.share-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    background: var(--surface-2, #222);
    color: var(--text-muted, #888);
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
}
.share-icon svg { width: 18px; height: 18px; }
.share-icon:hover { color: #fff; text-decoration: none; transform: translateY(-1px); }
.share-icon.share-fb:hover   { background: #1877F2; border-color: #1877F2; }
.share-icon.share-x:hover    { background: #000;    border-color: #000; }
.share-icon.share-li:hover   { background: #0A66C2; border-color: #0A66C2; }
.share-icon.share-copy:hover { background: #25D366; border-color: #25D366; }
.share-icon.copied           { background: #25D366; border-color: #25D366; color: #fff; }
.share-icon.copied svg       { display: none; }
.share-icon.copied::after    { content: 'Copied'; font-size: 11px; font-weight: 600; }

@media (max-width: 560px) {
    .share-wa-row { flex-direction: column; gap: 8px; }
    .share-wa-row > a { flex: 1 1 auto; width: 100%; }
}


/* ── Reviews ─────────────────────────────────────────────────────── */

.reviews-section {
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 0 20px 40px;
}
.reviews-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Aggregate summary */
.reviews-summary {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.reviews-avg {
    text-align: center;
    min-width: 100px;
}
.reviews-avg-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}
.reviews-avg-stars {
    margin: 6px 0 4px;
}
.reviews-avg-count {
    font-size: 13px;
    color: var(--text-muted);
}
.reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.bar-label {
    width: 36px;
    text-align: right;
    color: var(--text-muted);
    white-space: nowrap;
}
.bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.bar-count {
    width: 24px;
    font-size: 12px;
    color: var(--text-dim);
}

/* Star display */
.star { color: var(--border); font-size: 16px; }
.star.filled { color: #f5a623; }
.star.half { color: #f5a623; opacity: 0.6; }

/* Inline review link on product info */
.reviews-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin: 4px 0;
}
.reviews-link-inline:hover { color: var(--green); }
.review-stars-inline .star { font-size: 14px; }

/* Success message */
.review-success {
    background: #1a3a1a;
    color: #4caf50;
    border: 1px solid #2d5a2d;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

/* Review form */
.review-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.review-form-wrap h3 {
    font-size: 16px;
    margin-bottom: 14px;
}
.review-form-row {
    margin-bottom: 12px;
}
.review-form-row label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.review-form-row input,
.review-form-row textarea {
    width: 100%;
    padding: 8px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}
.review-form-row input:focus,
.review-form-row textarea:focus {
    outline: none;
    border-color: var(--green);
}

/* Star picker */
.star-input {
    display: flex;
    gap: 4px;
}
.star-pick {
    font-size: 28px;
    color: var(--border);
    cursor: pointer;
    transition: color 0.1s, transform 0.1s;
    user-select: none;
}
.star-pick.selected,
.star-pick.hover { color: #f5a623; }
.star-pick:hover { transform: scale(1.15); }

/* Review cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.review-stars .star { font-size: 14px; }
.review-author {
    font-weight: 600;
    font-size: 14px;
}
.review-date {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: auto;
}
.review-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.reviews-empty {
    color: var(--text-dim);
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

@media (max-width: 600px) {
    .reviews-summary { flex-direction: column; gap: 16px; }
    .reviews-avg { display: flex; align-items: center; gap: 12px; }
    .reviews-avg-number { font-size: 32px; }
}

/* ── View Transitions: catalogue filter cross-fade + per-card FLIP ──────────
   Cross-document navigation transitions on same-origin GET reloads.
   Supported: Chrome/Edge 126+ (Jun 2024), Safari 18.2+ (Dec 2024).
   Firefox: not yet — instant swap, current behaviour. No JS fallback.
   Per-card naming via attr() advanced types: Chrome 133+ / Safari 18.2+.
   Older engines drop the invalid attr() and fall back to root-only fade. */
@view-transition { navigation: auto; }

/* Each .product-card opts in via data-vt-name="pc-<unique_no>".
   Cards persisting across nav animate position (FLIP); entering/leaving cards cross-fade. */
.product-card {
    view-transition-name: attr(data-vt-name type(<custom-ident>));
}

/* Per-card movement (FLIP between old/new layout positions) */
::view-transition-group(*) {
    animation-duration: 340ms;
    animation-timing-function: ease-in-out;
}

/* Cross-fade for entering/leaving cards and the root snapshot */
::view-transition-old(*),
::view-transition-new(*) {
    animation-duration: 340ms;
    animation-timing-function: ease-in-out;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 340ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none;
    }
}
