/* =========================================================================
   IT Next — bản thiết kế lại (2026)
   Định hướng: cửa hàng linh kiện máy tính. Ngôn ngữ hình ảnh mượn từ chính
   sản phẩm đang bán — bo mạch, nhãn linh kiện, mã số — thay vì một theme
   thương mại điện tử chung chung.
   Type: Space Grotesk (tiêu đề) + Inter (nội dung) + JetBrains Mono (mã SP/giá)
   ========================================================================= */

:root {
    --ink: #0B1220;
    --ink-2: #121C30;
    --paper: #F3F6FC;
    --surface: #FFFFFF;
    --line: #E1E7F1;
    --text: #10162A;
    --text-soft: #5B6780;
    --signal: #2657FF;
    --signal-dark: #1A3FC4;
    --socket: #FF7A29;
    --good: #1FAA59;
    --danger: #E1483F;
    --radius: 10px;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .detail-title, .label-login, .logo, .btn, .sqaure_bt {
    font-family: var(--font-display);
}

a { text-decoration: none; }

/* ---------- Header ---------- */
.header_top {
    background: var(--ink);
    color: #fff;
    padding: 9px 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header_top .btn, .make_appo .btn {
    background: var(--signal);
    color: #fff;
    border-radius: 4px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    transition: background .15s;
}
.header_top .btn:hover { background: var(--signal-dark); color:#fff; }
.top-actions { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.cart-link { color: #cfd8ee; font-weight: 600; font-family: var(--font-body); display:inline-flex; align-items:center; gap:6px; }
.cart-link:hover { color: #fff; }
.user-line { margin-left: 15px; color: #8290ad; }
.top-search .input-group { max-width: 420px; }
.stylish-input-group .form-control {
    border: none;
    border-radius: 999px 0 0 999px;
    padding-left: 18px;
    background: #fff;
    height: 38px;
}
.stylish-input-group .input-group-addon button {
    border: none;
    background: var(--signal);
    color: #fff;
    height: 38px;
    width: 44px;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
}
.stylish-input-group .input-group-addon button:hover { background: var(--signal-dark); }

.header_bottom {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 40;
}
.logo a { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo img { max-height: 60px; width: auto; object-fit: contain; }

.menu_side #navbar_menu > ul.first-ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.menu_side .first-ul > li { position: relative; }
.menu_side .first-ul > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.menu_side .first-ul > li > a:hover,
.menu_side .first-ul > li > a.active {
    background: var(--paper);
    color: var(--signal);
}
.menu_side .first-ul > li > ul {
    position: absolute;
    left: 0; top: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(11,18,32,.12);
    list-style: none;
    margin: 6px 0 0; padding: 6px;
    min-width: 190px;
    display: none;
    z-index: 50;
}
.menu_side .first-ul > li:hover > ul { display: block; }
.menu_side .first-ul > li ul li a {
    display: block;
    padding: 8px 10px;
    color: var(--text-soft);
    font-size: 13.5px;
    border-radius: 6px;
    font-weight: 500;
}
.menu_side .first-ul > li ul li a:hover { background: var(--paper); color: var(--signal); }

/* ---------- Hero ---------- */
.hero-lite { background: var(--ink); padding: 0; }
.hero-card { border-radius: 0; overflow: hidden; background: var(--ink); position: relative; }
.hero-card img { width: 100%; display: block; object-fit: cover; max-height: 380px; opacity: .82; }
.hero-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.35) 55%, rgba(11,18,32,.1) 100%);
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-title {
    display: flex; justify-content: space-between; align-items: center;
    margin: 8px 0 22px; padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}
.section-title h3 {
    margin: 0; font-weight: 700; font-size: 19px; letter-spacing: .02em;
    color: var(--ink); text-transform: uppercase;
    display:flex; align-items:center; gap:10px;
}
.section-title h3::before { content:""; width:8px; height:8px; background:var(--socket); display:inline-block; border-radius:1px; }
.section-title a { color: var(--signal); font-weight: 600; font-size: 13.5px; }
.section-title a:hover { color: var(--signal-dark); }
.section-title span { font-family: var(--font-mono); color: var(--text-soft); font-size: 13px; }

/* ---------- Product card ---------- */
.product-card {
    height: 100%; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; position: relative; overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(16,22,42,.1);
    border-color: var(--signal);
}
.product-card .product_img {
    height: 168px; display: flex; align-items: center; justify-content: center;
    background: var(--paper); border-radius: 8px; margin-bottom: 4px;
}
.product-card img { max-height: 150px; max-width: 100%; object-fit: contain; }
.product-card h4 {
    font-size: 14.5px; min-height: 52px; line-height: 1.35; margin: 12px 0 6px;
    color: var(--text); font-weight: 600; font-family: var(--font-body);
}
.price {
    color: var(--socket); font-size: 17px; font-weight: 700; font-family: var(--font-mono);
}
.badge-code {
    position: absolute; top: 12px; left: 12px;
    background: var(--ink); color: #cfe0ff;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
    padding: 3px 7px; border-radius: 3px;
    border: 1px dashed rgba(207,224,255,.35);
}

/* ---------- Pagination ---------- */
.pagination-wrap { margin-top: 28px; display: flex; justify-content: center; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; }
.pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 6px;
    color: var(--text); font-family: var(--font-mono); font-size: 13px; background: #fff;
}
.pagination .page-item.active .page-link { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .page-item.disabled .page-link { color: #b7c0d4; }

/* ---------- Sidebar ---------- */
.side-box {
    background: #fff; border: 1px solid var(--line);
    padding: 20px; border-radius: var(--radius); margin-bottom: 18px;
}
.side-box h4 { font-size: 13.5px; letter-spacing: .06em; color: var(--ink); margin: 0 0 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box ul li a { display: block; padding: 7px 0; color: var(--text-soft); font-weight: 500; font-size: 14px; border-bottom: 1px dashed var(--line); }
.side-box ul li:last-child a { border-bottom: none; }
.side-box ul li a:hover { color: var(--signal); }

/* ---------- Buttons / forms ---------- */
.btn, .sqaure_bt {
    font-weight: 600; border-radius: 6px; font-size: 14px; letter-spacing: .01em;
}
.sqaure_bt {
    display: inline-block; background: var(--signal); color: #fff;
    padding: 11px 24px; border: none; cursor: pointer; transition: background .15s;
}
.sqaure_bt:hover { background: var(--signal-dark); color:#fff; }
.btn-primary { background: var(--signal); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.form-control {
    border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px;
}
.form-control:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(38,87,255,.12); outline: none; }
.form-group label { font-weight: 600; font-size: 13px; color: var(--text-soft); margin-bottom: 5px; display:block; }

/* ---------- Product detail ---------- */
.product_list_main, .product_detail { }
.detail-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.detail-img img { max-height: 400px; max-width: 100%; object-fit: contain; }
.detail-title { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.qty-input { width: 90px; display: inline-block; font-family: var(--font-mono); }
.comment-item { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ---------- Auth ---------- */
.lock-wrapper { max-width: 460px; margin: 0 auto; }
.lock-box { padding: 32px; background:#fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(16,22,42,.06); }
.label-login { font-weight: 700; color: var(--ink); text-align: center; font-size: 20px; letter-spacing: -.01em; }
.registration { color: var(--text-soft); font-size: 14px; }
.registration a { color: var(--signal); font-weight: 600; }

/* ---------- Cart / checkout ---------- */
.cart-table { background:#fff; border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.cart-table th { background: var(--paper); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--text-soft); }
.cart-table img { width: 84px; height: 66px; object-fit: contain; }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checkout-summary h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.lite-footer { background: var(--ink); color: #93a0bc; padding: 40px 0 30px; margin-top: 10px; }
.lite-footer h2 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.lite-footer p { font-size: 14px; line-height: 1.6; }

/* ---------- Install notice ---------- */
.install-box { max-width: 960px; margin: 40px auto; background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16,22,42,.08); }
.install-box code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .menu_side #navbar_menu > ul.first-ul { justify-content: flex-start; }
    .header_bottom { position: static; }
}
@media (max-width: 768px) {
    .top-actions { justify-content: flex-start; margin-top: 10px; }
    .product-card .product_img { height: 140px; }
    .detail-title { font-size: 21px; }
    .logo img { max-height: 48px; }
    .hero-card img { max-height: 220px; }
    .section { padding: 30px 0; }
}
