:root {
    --navy: #0e1b2b;
    --navy-2: #16283e;
    --navy-3: #1e3550;
    --gold: #c8a24a;
    --gold-2: #e0bf6f;
    --paper: #f7f5f0;
    --ink: #1a1f2a;
    --muted: #6b7280;
    --line: #e4e0d7;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(14, 27, 43, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: #b3261e; color: #fff; }

/* topbar */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.topbar-links a:hover { color: var(--gold-2); }

.lang-menu { position: relative; }
.lang-menu summary {
    cursor: pointer;
    list-style: none;
    color: var(--gold-2);
    font-weight: 700;
    padding: .2rem .7rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    transition: border-color .15s ease, background .15s ease;
}
.lang-menu summary::after { content: " ▾"; font-size: .75em; }
.lang-menu summary:hover { border-color: var(--gold-2); background: rgba(255, 255, 255, .06); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { color: var(--white); border-color: var(--gold-2); }
.lang-list {
    position: absolute;
    right: 0;
    top: 1.6rem;
    background: var(--white);
    color: var(--ink);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: .5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: .15rem;
    z-index: 60;
    max-height: 320px;
    overflow: auto;
}
/* Keep the language switcher pinned to the top-right in every language.
   English/Arabic layout stays RTL inside the page; only the topbar row is LTR. */
[dir="rtl"] .topbar-inner { direction: ltr; }
[dir="rtl"] .topbar-note { direction: rtl; }
[dir="rtl"] .topbar-links { direction: ltr; }
[dir="rtl"] .topbar-links a[href^="mailto"] { direction: ltr; }
.lang-list a { padding: .4rem .6rem; border-radius: 6px; font-size: .85rem; }
.lang-list a:hover { background: var(--paper); }
.lang-list a.active { background: var(--navy); color: var(--white); }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--navy); color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem;
}
.logo-text { font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-size: .55rem; letter-spacing: .38em; color: var(--gold); margin-top: .3rem; font-weight: 700; }
.main-nav { display: flex; gap: 1.5rem; margin-inline-start: auto; font-weight: 600; font-size: .95rem; }
.main-nav a { padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--gold); border-color: var(--gold); }
.header-cta { flex: none; }

/* flash */
.flash {
    margin: 1rem 0;
    padding: .85rem 1.2rem;
    border-radius: 12px;
    background: #eef8ef;
    border: 1px solid #bfe3c3;
    color: #1d5b27;
}

/* hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, var(--navy-3), var(--navy) 60%); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); margin-bottom: 1rem; }
.hero-sub { color: rgba(255, 255, 255, .75); max-width: 34rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 360px; }
.hero-card {
    position: absolute;
    width: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-card-1 { top: 0; left: 6%; transform: rotate(-6deg); z-index: 3; }
.hero-card-2 { top: 14%; right: 0; transform: rotate(5deg); z-index: 2; width: 210px; }
.hero-card-3 { bottom: 0; left: 30%; transform: rotate(2deg); z-index: 1; width: 190px; }

/* trust */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.6rem 0; }
.trust-grid div { display: flex; flex-direction: column; align-items: center; text-align: center; border-inline-end: 1px solid var(--line); }
.trust-grid div:last-child { border: 0; }
.trust-grid strong { font-size: 1.5rem; color: var(--navy); }
.trust-grid span { font-size: .85rem; color: var(--muted); }

/* sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-tint { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 .3rem; }
.section-head p { color: var(--muted); margin: 0; }
.link-arrow { font-weight: 700; color: var(--navy); white-space: nowrap; }
.link-arrow:hover { color: var(--gold); }
.block-title { font-size: 1.6rem; margin-bottom: 1.2rem; }

/* categories */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.category-card {
    position: relative;
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .3rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.category-count { position: absolute; top: 1rem; right: 1rem; font-size: .75rem; color: var(--muted); background: var(--paper); border-radius: 999px; padding: .1rem .55rem; }
[dir="rtl"] .category-count { right: auto; left: 1rem; }
.category-name { font-weight: 700; font-size: 1.02rem; }
.category-cta { font-size: .82rem; color: var(--gold); font-weight: 600; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-thumb { background: var(--paper); }
.product-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-cat { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product-body h3 { font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-body p { font-size: .85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; }
.product-meta .price { font-weight: 800; color: var(--navy); }
.product-meta .moq { color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.about-band h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.prose { color: #333a46; }
.prose p:last-child { margin-bottom: 0; }
.prose-wide { max-width: 820px; font-size: 1.02rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stats div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.about-stats strong { display: block; font-size: 1.7rem; color: var(--navy); }
.about-stats span { font-size: .82rem; color: var(--muted); }

/* cta */
.cta-band { background: var(--navy); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.2rem 0; }
.cta-inner p { color: rgba(255, 255, 255, .7); margin: 0; }

/* page head */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2.6rem 0; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .6rem 0 .4rem; }
.page-head p { color: var(--muted); margin: 0; }
.page-head-compact { padding: 1.4rem 0; }
.breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }

/* filters */
.filter-bar { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
    padding: .45rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .85rem;
    background: var(--white);
}
.chip span { color: var(--muted); font-size: .75rem; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.active span { color: rgba(255, 255, 255, .7); }
.search-form { display: flex; gap: .5rem; }
.search-form input {
    padding: .6rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-width: 220px;
    font: inherit;
}

/* pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-weight: 600;
}
.pagination a:hover { border-color: var(--gold); }
.pagination a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.product-main-image { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.product-main-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.product-short { color: var(--muted); font-size: 1.02rem; }
.info-table { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.info-table div { display: flex; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.info-table span { color: var(--muted); }
.product-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* inquiry */
.inquiry-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.inquiry-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.inquiry-form label, .contact-info li { display: block; }
.inquiry-form label { margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inquiry-form input, .inquiry-form textarea {
    width: 100%;
    margin-top: .35rem;
    padding: .75rem .9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.inquiry-form button { margin-top: .5rem; }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-info li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.contact-info li span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-info a:hover { color: var(--gold); }
.contact-note { color: var(--muted); }

/* 404 */
.not-found { padding: 6rem 0; }
.not-found-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--line); line-height: 1; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0; }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: .1em; margin-bottom: .8rem; }
.footer-company { color: var(--gold-2); font-size: .85rem; }
.site-footer h4 { color: var(--white); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a, .site-footer span { display: block; font-size: .88rem; padding: .2rem 0; }
.site-footer a:hover { color: var(--gold-2); }
.footer-langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-langs a { padding: .2rem .55rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }
.footer-langs a.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0; font-size: .8rem; }

/* responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { padding: 4rem 0; }
}
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; gap: 1rem; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; margin-inline-start: 0; gap: 1.1rem; padding-bottom: .2rem; }
    .header-cta { margin-inline-start: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 300px; margin-top: 1rem; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .trust-grid div:nth-child(2) { border: 0; }
    .product-detail, .inquiry-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .product-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-note { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .section { padding: 3rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; min-width: 0; }
}
