/* 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; }
body {
    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%;
    height: 480px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.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: 1;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.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; }

/* ── 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; }

/* ── 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(auto-fill, minmax(240px, 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;
}

/* 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); }

/* 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(--red);
}

/* 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); }

/* ── 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(--red); }
.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;
    padding: 24px 20px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--green); }

/* ── 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; }

/* ── 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; }
    .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; }
}

@media (max-width: 600px) {
    .header-inner { gap: 12px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .cart-table-header { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .video-hero { max-height: 260px; }
    .video-hero video { max-height: 260px; }
}
