/* =========================================================
   Triple Network - Unified Style
   الشبكة الثلاثية التجارية
   ========================================================= */

:root {
    --navy: #071a33;
    --navy-2: #0b2b54;
    --blue: #1479ff;
    --cyan: #20c5ed;
    --bg: #f5f8fc;
    --white: #fff;
    --text: #132238;
    --muted: #6d7b8e;
    --border: #e5eaf1;
    --border-2: #edf1f6;
    --danger: #ef4444;
    --success: #16a34a;
    --shadow: 0 18px 50px rgba(10, 36, 70, .10);
    --shadow-sm: 0 4px 18px rgba(7, 26, 51, .05);
    --radius: 16px;
}

/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    box-shadow: 0 2px 18px rgba(7, 26, 51, .06);
}

/* الشريط العلوي */

.top-strip {
    background: var(--navy);
    color: #d8e5f5;
    font-size: 12px;
}

.top-strip-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* إذا كان هناك نص في الشريط العلوي */
.top-strip-inner > span,
.top-strip-inner > div:first-child {
    color: #d8e5f5;
}

/* =========================================================
   Main Navigation
   ========================================================= */

.nav,
.main-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* =========================================================
   Logo
   ========================================================= */

.logo,
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 900;
}

.brand-logo {
    min-width: 215px;
}

.logo {
    color: #fff;
    font-size: 20px;
    white-space: nowrap;
}

.brand-logo .brand-mark,
.logo span,
.admin-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--blue), var(--cyan));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(20, 121, 255, .25);
}

.brand-logo b {
    display: block;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.2;
}

.brand-logo small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   Search
   ========================================================= */

.search-box,
.search {
    display: flex;
    align-items: stretch;
    flex: 1;
    max-width: 650px;
    height: 50px;
    margin-inline: auto;
    background: #f4f7fb;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    overflow: hidden;
}

.search-box .search-icon {
    display: grid;
    place-items: center;
    padding: 0 12px;
    color: #7f8da0;
    font-size: 24px;
}

.search-box input,
.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 10px;
    color: var(--text);
    font-size: 14px;
}

.search-box button,
.search button {
    height: 100%;
    border: 0;
    padding: 0 24px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.search input {
    padding: 14px 18px;
    background: #fff;
}

.search button {
    border-radius: 0 10px 10px 0;
}

/* =========================================================
   Navigation Actions
   الحساب + السلة
   ========================================================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/*
   عند وضع nav-actions داخل .main-nav،
   يتم إخفاؤها من مكانها الطبيعي ونضعها بصريًا
   في الشريط العلوي.
*/

.main-nav > .nav-actions {
    position: absolute;
    top: -40px;
    right: 0;
    height: 38px;
    z-index: 30;
}

/* الحساب */

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d8e5f5;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link span:first-child {
    font-size: 17px;
}

.nav-link:hover {
    color: #fff;
}

/* السلة */

.nav-cart,
.cart {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d8e5f5;
    font-weight: 800;
    white-space: nowrap;
    font-size: 12px;
}

.nav-cart:hover,
.cart:hover {
    color: #fff;
}

.nav-cart b,
.cart b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
}

.top .cart {
    color: #fff;
}

.top .cart b {
    background: #fff;
    color: var(--navy);
}

/* =========================================================
   Category Navigation
   ========================================================= */

.category-nav {
    background: #fff;
    border-top: 1px solid #f0f3f7;
}

.category-nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    padding: 13px 2px;
    color: #536174;
    font-size: 13px;
    transition: .2s;
}

.category-nav a:hover {
    color: var(--blue);
}

.category-nav .all-products {
    color: var(--navy);
    font-weight: 900;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
.primary-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 11px;
    padding: 12px 22px;
    font-weight: 900;
    transition: .2s ease;
}

.btn,
.primary-btn {
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    box-shadow: 0 12px 28px rgba(20, 121, 255, .20);
}

.btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
}

.btn.small {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}

.outline-btn {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.05);
    color: #fff;
}

.primary-btn.light {
    background: #fff;
    color: var(--navy);
}

/* =========================================================
   Hero
   ========================================================= */

.hero,
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #06152b 0%,
        #0b2b54 58%,
        #0b3766 100%
    );
    color: #fff;
}

.hero-inner,
.hero-grid {
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 35px;
}

.hero-copy {
    padding: 60px 0;
}

.hero-kicker,
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(80,198,255,.35);
    border-radius: 999px;
    background: rgba(32,197,237,.08);
    color: #68d7f5;
    font-size: 12px;
    font-weight: 800;
}

.hero-copy h1,
.hero h1 {
    margin: 18px 0 15px;
    color: #fff;
    font-size: 46px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.hero-copy h1 strong,
.hero h1 strong {
    color: #5ed8f6;
}

.hero-copy p,
.hero p {
    max-width: 620px;
    margin: 0 0 25px;
    color: #c8d8ea;
    font-size: 15px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
}

.hero-trust div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b9c9da;
    font-size: 12px;
}

.hero-trust b {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #164a79;
    color: #66dcf5;
}

.hero-visual {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
}

.hero-ring {
    position: absolute;
    border: 1px solid rgba(80,200,255,.16);
    border-radius: 50%;
}

.ring-one {
    width: 390px;
    height: 390px;
}

.ring-two {
    width: 285px;
    height: 285px;
    border-color: rgba(80,200,255,.25);
}

/* =========================================================
   Camera Illustration
   ========================================================= */

.camera-device {
    position: relative;
    width: 230px;
    height: 250px;
    transform: rotate(-7deg);
    filter: drop-shadow(0 35px 35px rgba(0,0,0,.35));
}

.camera-body {
    position: absolute;
    top: 55px;
    right: 15px;
    width: 180px;
    height: 115px;
    border-radius: 55px 32px 32px 55px;
    background: linear-gradient(145deg,#f9fbfd,#a9b8c7);
    box-shadow: inset -10px -12px 25px rgba(25,45,70,.18);
}

.camera-body::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 18px;
    width: 72px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(145deg,#25384e,#081524);
    box-shadow: inset 0 0 0 9px #526477;
}

.camera-lens {
    position: absolute;
    left: 1px;
    top: 80px;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0a1626;
    box-shadow: inset 0 0 0 7px #657487;
}

.camera-lens span {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #40c9ed;
    box-shadow: 0 0 20px #35c9f4;
}

.camera-base {
    position: absolute;
    right: 60px;
    bottom: 24px;
    width: 105px;
    height: 26px;
    border-radius: 50%;
    background: #73859a;
    transform: rotate(5deg);
}

.camera-status {
    position: absolute;
    z-index: 4;
    top: 72px;
    right: 45px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27d3ef;
    box-shadow: 0 0 12px #27d3ef;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 35px rgba(0,0,0,.18);
}

.floating-card > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(32,197,237,.13);
    color: #66dff8;
    font-size: 18px;
}

.floating-card b,
.floating-card small {
    display: block;
}

.floating-card b {
    font-size: 12px;
}

.floating-card small {
    margin-top: 3px;
    color: #b7c9dc;
    font-size: 10px;
}

.card-top {
    top: 85px;
    right: 10px;
}

.card-bottom {
    bottom: 70px;
    left: 0;
}

/* =========================================================
   Services
   ========================================================= */

.service-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.service-grid {
    min-height: 90px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    border-left: 1px solid var(--border-2);
}

.service-item:last-child {
    border-left: 0;
}

.service-item > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef7ff;
    font-size: 20px;
}

.service-item b,
.service-item small {
    display: block;
}

.service-item b {
    color: var(--navy);
    font-size: 13px;
}

.service-item small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   Sections
   ========================================================= */

.section,
.page-section {
    padding-top: 60px;
    padding-bottom: 10px;
}

.section-heading,
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading > div > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.section-heading h2,
.section h2 {
    margin: 5px 0 0;
    color: var(--navy);
    font-size: 27px;
}

.section-heading > a,
.section-head > a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.section-note {
    color: var(--muted);
    font-size: 11px;
}

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

/* =========================================================
   Categories
   ========================================================= */

.category-grid,
.category-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category,
.category-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15,35,60,.025);
    transition: .2s ease;
}

.category {
    padding: 22px;
}

.category:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-art {
    position: relative;
    height: 145px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,#eef7ff,#f8fbff);
}

.category-art::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(20,121,255,.12);
    border-radius: 50%;
}

.category-art::after {
    content: "";
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(20,121,255,.08);
}

.category-art span {
    position: relative;
    z-index: 2;
    font-size: 55px;
    filter: drop-shadow(0 12px 14px rgba(15,70,120,.14));
}

.category-art.recorders {
    background: linear-gradient(135deg,#eefaf8,#f7fcfb);
}

.category-art.wireless-network {
    background: linear-gradient(135deg,#eef5ff,#f7f9ff);
}

.category-art.accessories {
    background: linear-gradient(135deg,#fff7ed,#fffaf5);
}

.category-info {
    padding: 15px;
}

.category-info h3,
.category h3 {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
}

.category-info span,
.category span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.category-info b {
    display: block;
    margin-top: 12px;
    color: var(--blue);
    font-size: 11px;
}

.cat-icon {
    color: var(--blue);
    font-size: 35px;
}

/* =========================================================
   Promo Cards
   ========================================================= */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.promo-card {
    position: relative;
    min-height: 210px;
    display: block;
    overflow: hidden;
    padding: 28px;
    border-radius: 20px;
    transition: .2s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
}

.promo-card.primary {
    color: #fff;
    background: linear-gradient(135deg,#082650,#1479ff);
}

.promo-card.light-orange {
    color: var(--navy);
    background: linear-gradient(135deg,#fff4e7,#fff9f3);
}

.promo-card.light-blue {
    color: var(--navy);
    background: linear-gradient(135deg,#eaf7ff,#f5fbff);
}

.promo-copy {
    position: relative;
    z-index: 2;
    max-width: 75%;
}

.promo-copy small {
    font-size: 10px;
    font-weight: 900;
}

.promo-card.primary .promo-copy small {
    color: #6ddaf5;
}

.promo-copy h2 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.5;
}

.promo-copy p {
    margin: 0;
    font-size: 11px;
    line-height: 1.9;
}

.promo-card.primary .promo-copy p {
    color: #d1e1f1;
}

.promo-card.light-orange .promo-copy p,
.promo-card.light-blue .promo-copy p {
    color: var(--muted);
}

.promo-link {
    display: inline-block;
    margin-top: 17px;
    font-size: 11px;
    font-weight: 900;
}

.promo-card.primary .promo-link {
    color: #fff;
}

.promo-card.light-orange .promo-link,
.promo-card.light-blue .promo-link {
    color: var(--blue);
}

.promo-symbol {
    position: absolute;
    left: 25px;
    bottom: -25px;
    font-size: 150px;
    line-height: 1;
    font-weight: 900;
    opacity: .08;
}

/* =========================================================
   Offers
   ========================================================= */

.offer-grid,
.offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.offer-card,
.offer {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 25px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg,#082650,#1479ff);
}

.offer-card:nth-child(2) {
    background: linear-gradient(135deg,#0b3547,#10a6c7);
}

.offer-card:nth-child(3) {
    background: linear-gradient(135deg,#202b54,#4d69d9);
}

.offer-copy {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.offer-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 10px;
    font-weight: 900;
}

.offer-card h3,
.offer h3 {
    margin: 14px 0 7px;
    font-size: 20px;
}

.offer-card p,
.offer p {
    color: #d8e6f5;
    font-size: 11px;
    line-height: 1.8;
}

.offer-pattern {
    position: absolute;
    left: -5px;
    bottom: -40px;
    color: rgba(255,255,255,.08);
    font-size: 170px;
    font-weight: 900;
    line-height: 1;
}

/* =========================================================
   Products
   ========================================================= */

.product-grid,
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.store-product,
.product {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(7,26,51,.035);
    transition: .2s ease;
}

.store-product:hover,
.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-media,
.product-img {
    position: relative;
    height: 235px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #eef2f6;
    background: #f7f9fc;
}

.product-media img,
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .3s;
}

.store-product:hover .product-media img,
.product:hover .product-img img {
    transform: scale(1.04);
}

.product-placeholder {
    opacity: .45;
    font-size: 65px;
}

.discount-badge,
.stock-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
}

.discount-badge {
    right: 12px;
    background: var(--danger);
    color: #fff;
}

.stock-badge {
    left: 12px;
    background: #eef0f3;
    color: #6b7280;
}

.product-info,
.product-body {
    padding: 16px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #8290a2;
    font-size: 9px;
}

.product-info h3,
.product-body h3 {
    min-height: 47px;
    margin: 8px 0;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.7;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
}

.product-price strong,
.price {
    color: var(--navy);
    font-weight: 900;
}

.product-price strong {
    font-size: 17px;
}

.product-price del,
.price del {
    display: block;
    margin-top: 3px;
    color: #9aa5b4;
    font-size: 10px;
}

.price {
    margin: 12px 0;
    font-size: 18px;
}

.price.big {
    font-size: 28px;
}

.price.big del {
    display: inline-block;
    margin-right: 10px;
}

.add-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #eaf4ff;
    color: var(--blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.add-btn:hover {
    background: var(--blue);
    color: #fff;
}

.empty-store,
.empty {
    padding: 45px;
    border: 1px dashed #cfd8e4;
    border-radius: 16px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   Product Details
   ========================================================= */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 45px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.detail-img {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg,#f7f9fc,#eef3f8);
}

.detail-img::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(20,121,255,.08);
    border-radius: 50%;
}

.detail-img::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(20,121,255,.035);
}

.detail-img img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 450px;
    padding: 25px;
    object-fit: contain;
}

.detail > div:last-child {
    padding: 10px 5px;
}

.detail > div:last-child > small {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.detail h1 {
    margin: 12px 0;
    color: var(--navy);
    font-size: 30px;
    line-height: 1.5;
}

.detail p {
    color: var(--muted);
    line-height: 1.9;
}

.buy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.buy input {
    width: 85px;
    height: 46px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    text-align: center;
}

.description {
    color: #536174;
    line-height: 2;
    font-size: 14px;
}

/* =========================================================
   Brand Section
   ========================================================= */

.brand-section {
    margin-top: 70px;
    padding: 45px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.brand-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-pill {
    min-width: 140px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfe;
    color: #516174;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-banner {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    overflow: hidden;
    margin-top: 60px;
    padding: 35px 42px;
    border-radius: 24px;
    background: linear-gradient(110deg,#06182f,#0d3a6c);
    color: #fff;
}

.cta-banner::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -160px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(90,213,245,.2);
    border-radius: 50%;
}

.cta-banner > div {
    position: relative;
    z-index: 2;
}

.cta-banner span {
    color: #67d8f5;
    font-size: 11px;
    font-weight: 900;
}

.cta-banner h2 {
    margin: 9px 0;
    font-size: 25px;
}

.cta-banner p {
    margin: 0;
    color: #bcd0e5;
    font-size: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 70px;
    background: #06162d;
    color: #d6e2f0;
}

.footer-grid,
.footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    padding: 55px 0;
}

.footer h4,
.site-footer h4 {
    margin: 4px 0 18px;
    color: #fff;
    font-size: 13px;
}

.footer p,
.footer a,
.site-footer p,
.site-footer a,
.site-footer span {
    color: #94a8bf;
    font-size: 11px;
    line-height: 2;
}

.footer-copy,
.copy {
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #71869e;
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   Cart
   ========================================================= */

.cart-row {
    display: grid;
    grid-template-columns: 2fr 80px 150px 60px;
    gap: 10px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.cart-row button {
    border: 0;
    background: none;
    color: #dc2626;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    background: #fff;
}

/* =========================================================
   Checkout / Login
   ========================================================= */

.checkout {
    width: min(650px, 100%);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.checkout label,
.login label {
    display: block;
    margin: 15px 0;
    color: var(--text);
    font-weight: 700;
}

.checkout input,
.checkout select,
.login input,
.grid-form input,
.grid-form select,
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkout input:focus,
.checkout select:focus,
.login input:focus,
.grid-form input:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(20,121,255,.08);
}

.alert {
    padding: 12px;
    border-radius: 9px;
    background: #fee2e2;
    color: #991b1b;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login {
    width: min(420px, calc(100% - 30px));
    padding: 35px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

/* =========================================================
   Success
   ========================================================= */

.success-page {
    min-height: 50vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.success {
    padding: 50px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

/* =========================================================
   Admin
   ========================================================= */

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
}

.admin-layout aside {
    padding: 20px;
    background: var(--navy);
    color: #fff;
}

.admin-logo {
    margin-bottom: 30px;
}

.admin-layout aside a {
    display: block;
    margin: 5px 0;
    padding: 13px 15px;
    border-radius: 9px;
    color: #ccd8e7;
}

.admin-layout aside a:hover,
.admin-layout aside a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-main {
    min-width: 0;
    padding: 30px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin: 25px 0;
}

.stats > div,
.panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
}

.stats small {
    display: block;
    color: var(--muted);
}

.stats strong {
    display: block;
    margin-top: 10px;
    color: var(--navy);
    font-size: 28px;
}

.panel {
    margin-top: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    white-space: nowrap;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}

.grid-form .check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-form .check input {
    width: auto;
    margin: 0;
}

.danger {
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
}

.secondary {
    background: #64748b !important;
}

.thumb {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

/* =========================================================
   Misc
   ========================================================= */

.product-info a,
.product-body a {
    text-decoration: none;
}

.category-card,
.store-product,
.offer-card,
.cta-banner {
    will-change: transform;
}

/* =========================================================
   Responsive - Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .container {
        width: min(100% - 32px, 1080px);
    }

    .category-grid,
    .category-cards {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .product-grid,
    .products {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .hero-copy h1,
    .hero h1 {
        font-size: 40px;
    }

    .brand-logo {
        min-width: 185px;
    }

    .main-nav,
    .nav {
        gap: 15px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* =========================================================
   Responsive - Mobile
   ========================================================= */

@media (max-width: 720px) {

    .container {
        width: calc(100% - 24px);
    }

    .top-strip-inner {
        justify-content: center;
        text-align: center;
    }

    .main-nav,
    .nav {
        min-height: 120px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px 0;
    }

    .brand-logo {
        min-width: 0;
    }

    .search-box {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
    }

    /*
       على الجوال نعيد الحساب والسلة إلى مكان واضح
       داخل منطقة الهيدر العلوية.
    */

    .main-nav > .nav-actions {
        position: absolute;
        top: -38px;
        right: 0;
        height: 38px;
        gap: 10px;
    }

    .nav-link {
        display: flex;
        font-size: 11px;
    }

    .nav-cart {
        font-size: 11px;
    }

    .category-nav-inner {
        gap: 18px;
    }

    .hero-inner,
    .hero-grid {
        min-height: 540px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-copy {
        padding: 48px 0 10px;
    }

    .hero-copy h1,
    .hero h1 {
        max-width: 100%;
        font-size: 34px;
    }

    .hero-copy p,
    .hero p {
        font-size: 14px;
    }

    .hero-visual {
        min-height: 270px;
    }

    .camera-device {
        transform: scale(.72) rotate(-7deg);
    }

    .card-top {
        top: 15px;
        right: 0;
    }

    .card-bottom {
        bottom: 10px;
        left: 0;
    }

    .ring-one {
        width: 280px;
        height: 280px;
    }

    .ring-two {
        width: 210px;
        height: 210px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .service-item {
        padding: 14px 8px;
    }

    .category-grid,
    .category-cards {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .offer-grid,
    .offers,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .products {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 12px;
    }

    .product-media,
    .product-img {
        height: 190px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-note {
        display: none;
    }

    .cta-banner {
        display: block;
        padding: 28px;
    }

    .cta-banner .primary-btn {
        margin-top: 20px;
    }

    .footer-grid,
    .footer {
        grid-template-columns: 1fr 1fr;
    }

    .detail {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 18px;
    }

    .detail-img {
        min-height: 320px;
    }

    .detail h1 {
        font-size: 24px;
    }

    .cart-row {
        grid-template-columns: 1fr 50px 120px 50px;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-layout aside {
        position: static;
    }

    .admin-main {
        padding: 16px;
    }
}

/* =========================================================
   Responsive - Small Mobile
   ========================================================= */

@media (max-width: 460px) {

    .container {
        width: calc(100% - 18px);
    }

    .brand-logo .brand-mark,
    .logo span {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 20px;
    }

    .brand-logo b {
        font-size: 15px;
    }

    .brand-logo small {
        font-size: 9px;
    }

    .nav-cart span:not(.cart-icon) {
        display: none;
    }

    .category-cards {
        gap: 10px;
    }

    .category-art {
        height: 120px;
    }

    .category-art span {
        font-size: 45px;
    }

    .category-info {
        padding: 12px;
    }

    .category-info h3 {
        font-size: 13px;
    }

    .product-info,
    .product-body {
        padding: 12px;
    }

    .product-media,
    .product-img {
        height: 165px;
    }

    .product-info h3,
    .product-body h3 {
        font-size: 12px;
    }

    .product-price strong {
        font-size: 15px;
    }

    .hero-copy h1,
    .hero h1 {
        font-size: 29px;
        line-height: 1.35;
    }

    .hero-trust {
        gap: 12px;
    }

    .service-item small {
        font-size: 9px;
    }

    .service-item b {
        font-size: 11px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-buttons a {
        flex: 1;
        min-width: 140px;
    }

    .floating-card {
        padding: 9px 11px;
    }

    .floating-card small {
        display: none;
    }

    .detail-img {
        min-height: 260px;
    }

    .detail-img img {
        padding: 15px;
    }

    .detail h1 {
        font-size: 21px;
    }

    .buy {
        align-items: stretch;
    }

    .buy input {
        width: 70px;
    }

    .buy .btn {
        flex: 1;
    }

    .footer-grid,
    .footer {
        grid-template-columns: 1fr;
    }
}