/* سنيور لصيانة وقطع غيار LG — التصميم (RTL) */
:root {
    --navy: #0b1f3a;
    --navy-2: #12305a;
    --blue: #1565c0;
    --blue-2: #1e88e5;
    --sky: #29b6f6;
    --sky-soft: #e3f4fd;
    --bg: #f3f6fa;
    --white: #ffffff;
    --line: #dde5ef;
    --text: #1b2a3f;
    --muted: #64768d;
    --red: #e53935;
    --green: #1e9e5a;
    --wa: #25d366;
    --wa-dark: #1ebe5b;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(11, 31, 58, .08);
    --shadow-lg: 0 10px 28px rgba(11, 31, 58, .14);
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', Tahoma, 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 28px; }

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
    font-weight: 700; cursor: pointer; text-align: center; line-height: 1.4;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger-outline:hover { border-color: var(--red); color: var(--red); }
.btn-wa { background: var(--wa); color: #06361a; }
.btn-wa:hover { background: var(--wa-dark); color: #06361a; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-soft); color: var(--navy); }
.btn-lg { padding: 13px 26px; font-size: 1.08rem; }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--navy); color: #cfe3f7; font-size: .88rem; }
.topbar-inner { display: flex; gap: 22px; align-items: center; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-addr { margin-inline-start: auto; }

/* ---------- الهيدر ---------- */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { opacity: .9; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.logo-text small { font-size: .74rem; color: var(--blue); font-weight: 700; }

.search-form {
    flex: 1; display: flex; min-width: 0;
    border: 2px solid var(--blue); border-radius: 12px; overflow: hidden; background: #fff;
}
.search-form select {
    border: 0; background: var(--bg); padding: 0 12px; max-width: 170px; color: var(--navy);
    border-inline-end: 1px solid var(--line); cursor: pointer;
}
.search-form input {
    flex: 1; min-width: 0; border: 0; padding: 11px 14px; background: #fff; color: var(--text);
}
.search-form input:focus, .search-form select:focus { outline: none; }
.search-form button {
    border: 0; background: var(--blue); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.search-form button:hover { background: var(--navy-2); }

.cart-link {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 12px; background: var(--sky-soft); color: var(--navy);
    font-weight: 700; flex-shrink: 0;
}
.cart-link:hover { background: var(--sky); color: var(--navy); }
.cart-icon { font-size: 1.3rem; }
.cart-count {
    min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
    background: var(--navy); color: #fff; font-size: .82rem; display: inline-flex;
    align-items: center; justify-content: center;
}
.cart-count.has-items { background: var(--red); }

.menu-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bg);
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
}
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; }

.main-nav { background: var(--navy); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
    color: #d9e8f8; padding: 11px 14px; white-space: nowrap; font-weight: 600; font-size: .95rem;
    border-bottom: 3px solid transparent;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.active { color: #fff; border-bottom-color: var(--sky); }
.nav-offers { color: #ffd54f; }

/* ---------- الهيرو ---------- */
.hero { display: grid; grid-template-columns: 270px 1fr; gap: 16px; padding-block: 20px 6px; }
.hero-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-side h2 { margin: 0; padding: 12px 16px; background: var(--blue); color: #fff; font-size: 1.05rem; }
.hero-side li a {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--text);
    border-bottom: 1px solid var(--bg); font-weight: 600; font-size: .95rem;
}
.hero-side li a:hover { background: var(--sky-soft); color: var(--blue); }
.hs-icon { font-size: 1.25rem; width: 28px; text-align: center; }
.hs-name { flex: 1; }
.hs-count { background: var(--bg); color: var(--muted); font-size: .75rem; padding: 1px 8px; border-radius: 10px; }

.hero-banner {
    position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
    box-shadow: var(--shadow-lg); display: flex; align-items: center; min-height: 340px;
}
.hero-deco {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 12% 110%, rgba(41, 182, 246, .45) 0 140px, transparent 141px),
        radial-gradient(circle at 5% 10%, rgba(41, 182, 246, .18) 0 90px, transparent 91px),
        repeating-radial-gradient(circle at 12% 110%, transparent 0 28px, rgba(255, 255, 255, .05) 29px 30px);
}
.hero-content { position: relative; padding: 36px 40px; max-width: 640px; }
.hero-tag {
    display: inline-block; background: rgba(41, 182, 246, .22); color: #bfe9ff; border: 1px solid rgba(41, 182, 246, .5);
    padding: 3px 14px; border-radius: 20px; font-size: .85rem; font-weight: 700; margin-bottom: 12px;
}
.hero-content h1 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.hero-content p { color: #d3e6f8; font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 18px 16px; }
.hero-points { display: flex; gap: 8px 22px; flex-wrap: wrap; color: #bfe9ff; font-size: .92rem; font-weight: 600; }

/* ---------- عناوين الأقسام ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: 1.45rem; font-weight: 800; position: relative; padding-inline-start: 14px; }
.section-title::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 5px;
    border-radius: 3px; background: linear-gradient(var(--sky), var(--blue));
}
.section-more { font-weight: 700; font-size: .95rem; }
.results-count { color: var(--muted); font-weight: 600; }

/* ---------- الأقسام (بطاقات) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px;
    color: var(--navy); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sky); color: var(--navy); }
.cat-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--sky-soft);
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 6px;
}
.cat-name { font-weight: 800; }
.cat-count { color: var(--muted); font-size: .85rem; }

/* ---------- المنتجات ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pc-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #eef3f9; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-cat { font-size: .8rem; color: var(--blue); font-weight: 700; }
.pc-title { font-size: 1rem; font-weight: 700; margin: 0; min-height: 2.7em; }
.pc-title a { color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--blue); }
.pc-sku { font-size: .8rem; color: var(--muted); }
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price-now { font-size: 1.2rem; font-weight: 800; color: var(--blue); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.pc-actions { margin-top: 8px; }

.badge {
    position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 8px;
    font-size: .8rem; font-weight: 800; color: #fff; z-index: 2;
}
.badge.static { position: static; display: inline-block; }
.badge-discount { background: var(--red); }
.badge-featured { background: var(--blue); }
.badge-out { background: #6b7a8f; }

/* ---------- العروض ---------- */
.offers-wrap { background: linear-gradient(180deg, var(--sky-soft), #fff 90%); margin-block: 10px; }

/* ---------- نبذة ---------- */
.about-strip { background: var(--navy); color: #d3e6f8; margin-top: 16px; }
.about-strip h2 { color: #fff; }
.about-strip-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding-block: 36px; }

.steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.steps li b {
    width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--navy);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.steps li span { font-weight: 600; }
.steps-inline li { color: var(--text); }
.steps-inline li b { background: var(--blue); color: #fff; }

/* ---------- التواصل ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-cards-col { grid-template-columns: 1fr; align-content: start; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; color: var(--text);
}
a.contact-card:hover { border-color: var(--sky); box-shadow: var(--shadow); color: var(--text); }
.cc-icon { font-size: 2rem; }
.contact-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }

/* ---------- الفوتر ---------- */
.site-footer { background: #081528; color: #aebfd3; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 36px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-col li { padding: 3px 0; }
.footer-col a { color: #aebfd3; }
.footer-col a:hover { color: var(--sky); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 14px; text-align: center; font-size: .9rem; }

.wa-float {
    position: fixed; bottom: 18px; inset-inline-start: 18px; width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 60; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- الفلاتر ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.filter-grow { flex: 1; min-width: 220px; }
.filter-field label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.filter-field input, .filter-field select {
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.filter-actions { display: flex; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
    padding: 6px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
    color: var(--navy); font-weight: 600; font-size: .92rem;
}
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.page-link {
    min-width: 40px; padding: 7px 14px; text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; color: var(--navy); font-weight: 700;
}
a.page-link:hover { border-color: var(--blue); }
.page-link.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-gap { padding: 7px 4px; color: var(--muted); }

/* ---------- حالات عامة ---------- */
.empty-state {
    background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
    text-align: center; padding: 46px 20px;
}
.empty-state h1, .empty-state h2, .empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.empty-icon { font-size: 3rem; margin-bottom: 6px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.alert p { margin: 4px 0 8px; font-weight: 400; }
.alert-success { background: #e6f7ee; color: #14663c; border: 1px solid #b7e5cc; }
.alert-warning { background: #fff6e0; color: #8a5a00; border: 1px solid #f3dca0; }
.alert-info { background: var(--sky-soft); color: #0b4a75; border: 1px solid #b9e0f5; }
.alert-error { background: #fdeaea; color: #8f1d1d; border: 1px solid #f3bcbc; }

.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-block: 16px 0; font-size: .92rem; color: var(--muted); }
.breadcrumb a { font-weight: 600; }

.page-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.page-card h1 { font-size: 1.8rem; }
.page-card h2 { margin-top: 1.4em; font-size: 1.25rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 1em; }
.check-list li a { display: block; padding: 10px 14px; background: var(--bg); border-radius: 10px; color: var(--navy); font-weight: 700; }
.check-list li a:hover { background: var(--sky-soft); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- صفحة المنتج ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; margin-top: 14px; align-items: start; }
.pd-image { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.pd-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pd-title { font-size: 1.6rem; font-weight: 800; margin: 0; }
.pd-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .95rem; }
.stock { font-weight: 800; }
.stock.in { color: var(--green); }
.stock.out { color: var(--red); }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-block: 8px; border-block: 1px solid var(--bg); }
.pd-price .price-now { font-size: 2rem; }
.pd-price .price-old { font-size: 1.1rem; }
.price-save { background: #e6f7ee; color: #14663c; padding: 2px 10px; border-radius: 8px; font-size: .88rem; font-weight: 700; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pd-desc h2 { font-size: 1.1rem; }
.pd-desc p { color: var(--text); margin: 0; }

.qty-control { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-control button { width: 40px; border: 0; background: var(--bg); font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--navy); }
.qty-control button:hover { background: var(--sky-soft); }
.qty-control input { width: 56px; border: 0; text-align: center; font-weight: 700; padding: 8px 0; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- السلة ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row {
    display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px; gap: 14px;
    align-items: center; padding: 14px; border-bottom: 1px solid var(--bg);
}
.cart-row:last-child { border-bottom: 0; }
.cr-img { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: #eef3f9; display: block; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; }
.cr-info { display: flex; flex-direction: column; min-width: 0; }
.cr-name { font-weight: 800; color: var(--navy); }
.cr-sku, .cr-unit { font-size: .85rem; color: var(--muted); }
.cr-line { font-weight: 800; color: var(--blue); text-align: end; }
.cr-remove { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.cr-remove:hover { background: #fdeaea; }
.cart-footer-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 130px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bg); }
.sum-total { font-size: 1.25rem; color: var(--navy); font-weight: 800; border-bottom: 0; }
.sum-total b { color: var(--blue); }
.sum-note { font-size: .82rem; color: var(--muted); margin: 8px 0 14px; }

.checkout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; scroll-margin-top: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-field label { font-weight: 700; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
    padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form-field textarea { resize: vertical; }
.req { color: var(--red); }
.field-error { color: var(--red); min-height: 1em; font-weight: 600; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- إشعار ---------- */
.toast {
    position: fixed; bottom: 22px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
    background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; display: flex; gap: 16px; align-items: center;
    box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transform: translateY(20px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast a { color: var(--sky); font-weight: 800; white-space: nowrap; }

/* ---------- استجابة ---------- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .hero-banner { min-height: 300px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .contact-layout, .about-strip-inner { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .logo { margin-inline-end: auto; }
    .search-form { order: 5; flex-basis: 100%; }
    .search-form select { display: none; }
    .search-form button span { display: none; }
    .cart-label { display: none; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-inner { flex-direction: column; overflow: visible; padding-block: 6px; }
    .nav-link { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 12px 6px; }
    .topbar-addr { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pc-body { padding: 10px; }
    .price-now { font-size: 1.05rem; }
    .hero-content { padding: 26px 20px; }
    .hero-content h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info del" "img qty line"; gap: 8px 12px; }
    .cart-row .cr-img { grid-area: img; width: 72px; height: 72px; }
    .cart-row .cr-info { grid-area: info; }
    .cart-row .qty-control { grid-area: qty; justify-self: start; }
    .cart-row .cr-line { grid-area: line; text-align: end; white-space: nowrap; }
    .cart-row .cr-remove { grid-area: del; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-card { padding: 18px; }
    .pd-info { padding: 16px; }
    .pd-title { font-size: 1.3rem; }
}
@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}
