/* =========================================================
   Baladi Heritage Theme (Bootstrap-friendly) - Brand Level
========================================================= */

:root {
    --paper: #f6f1e7;
    --paper-2: #f3eadc;

    --ink: #1d2b36;
    --ink-2: #2a3b4a;

    --tile: #0f5a7a;
    --tile-2: #0b3e55;

    --gold: #c79b48;
    --border: rgba(29, 43, 54, 0.12);
    --shadow: rgba(29, 43, 54, 0.14);

    --r-sm: 14px;
    --r-md: 18px;
    --r-lg: 22px;
    --r-xl: 24px;
}

.fw-black {
    font-weight: 900;
}

/* =========================================================
   Page Background (Heritage Paper + Texture + Vignette)
========================================================= */

.baladi-body {
    font-family: "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", Arial;
    color: var(--ink);
    position: relative;

    background:
        radial-gradient(1100px 420px at 18% 5%, rgba(15, 90, 122, 0.10), transparent 60%),
        radial-gradient(900px 380px at 85% 10%, rgba(199, 155, 72, 0.12), transparent 55%),
        radial-gradient(900px 420px at 45% 95%, rgba(15, 90, 122, 0.08), transparent 60%),
        linear-gradient(180deg, #f7f1e6 0%, var(--paper-2) 35%, #f7f1e6 100%);
}

.baladi-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(circle at 10px 10px, rgba(29, 43, 54, 0.22) 1px, transparent 1px),
        radial-gradient(circle at 2px 2px, rgba(29, 43, 54, 0.12) 1px, transparent 1px);
    background-size: 18px 18px, 42px 42px;
}

.baladi-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 50% 20%, transparent 60%, rgba(0, 0, 0, 0.08));
    opacity: 0.35;
}

/* =========================================================
   Navbar
========================================================= */

.baladi-nav {
    background: rgba(246, 241, 231, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.baladi-divider {
    height: 3px;
    background: linear-gradient(90deg,
            rgba(15, 90, 122, 0),
            rgba(15, 90, 122, 0.35),
            rgba(199, 155, 72, 0.35),
            rgba(15, 90, 122, 0));
}

.baladi-brand-text {
    letter-spacing: 0.2px;
}

.baladi-brand-sub {
    font-size: 12px;
    color: rgba(29, 43, 54, 0.65);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.baladi-toggler {
    border: 1px solid rgba(29, 43, 54, 0.14) !important;
    border-radius: var(--r-sm) !important;
}

/* Header Logo (small frame in navbar) */
.baladi-logo-frame {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(29, 43, 54, 0.14);
    box-shadow: 0 10px 26px rgba(29, 43, 54, 0.14);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.baladi-logo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 999px;
    background: conic-gradient(from 210deg,
            rgba(199, 155, 72, 0),
            rgba(199, 155, 72, 0.55),
            rgba(15, 90, 122, 0.35),
            rgba(199, 155, 72, 0.55),
            rgba(199, 155, 72, 0));
    filter: blur(10px);
    opacity: 0.55;
}

.baladi-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}

.navbar-brand:hover .baladi-logo-frame {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(29, 43, 54, 0.16);
}

/* =========================================================
   Buttons
========================================================= */

.btn-baladi {
    background: linear-gradient(180deg, var(--tile), var(--tile-2));
    color: #fff;
    border: 0;
    font-weight: 900;
    border-radius: 16px;
}

.btn-baladi:hover {
    filter: brightness(0.97);
    color: #fff;
}

.btn-baladi-outline {
    background: transparent;
    border: 1px solid rgba(15, 90, 122, 0.25);
    color: var(--ink);
    font-weight: 900;
    border-radius: 16px;
}

.btn-baladi-outline:hover {
    background: rgba(15, 90, 122, 0.06);
    border-color: rgba(15, 90, 122, 0.35);
}

/* =========================================================
   Hero
========================================================= */

.baladi-hero {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background:
        radial-gradient(1000px 260px at 30% 0%, rgba(15, 90, 122, 0.16), transparent 60%),
        radial-gradient(900px 260px at 95% 10%, rgba(199, 155, 72, 0.16), transparent 55%),
        #fff;
    box-shadow: 0 18px 40px rgba(29, 43, 54, 0.08);
    position: relative;
    overflow: hidden;
}

.baladi-hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    background-image: radial-gradient(circle at 10px 10px, rgba(29, 43, 54, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.30;
    pointer-events: none;
}

.baladi-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 90, 122, 0.18);
    background: rgba(246, 241, 231, 0.65);
    color: var(--ink-2);
    font-weight: 800;
}

.baladi-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 90, 122, 0.25);
    background: rgba(255, 255, 255, 0.55);
    min-width: 220px;
}

.trust-item i {
    color: var(--tile);
    margin-top: 2px;
}

/* Hero Search Card */
.baladi-hero-card {
    border-radius: var(--r-lg);
    border: 1px solid rgba(29, 43, 54, 0.10);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 34px rgba(29, 43, 54, 0.10);
}

.baladi-stamp {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 90, 122, 0.08);
    border: 1px solid rgba(15, 90, 122, 0.16);
    color: var(--tile);
}

.baladi-input {
    border-radius: 16px !important;
    border-color: rgba(29, 43, 54, 0.16) !important;
}

.baladi-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 90, 122, 0.12) !important;
    border-color: rgba(15, 90, 122, 0.28) !important;
}

/* =========================================================
   Brand Diamond Center (Perfect Center)
========================================================= */
/* === Center logo with side lines (Heritage Style) === */
.baladi-logo-center-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    /* المسافة بين الشعار والخطوط */
    margin: 36px 0 44px;
    position: relative;
}

/* الخطوط الجانبية */
.baladi-logo-center-wrap::before,
.baladi-logo-center-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 320px;
    background: linear-gradient(to right,
            transparent,
            rgba(15, 90, 122, .35),
            rgba(199, 155, 72, .45),
            rgba(15, 90, 122, .35),
            transparent);
}

/* عكس الاتجاه للخط الأيسر */
.baladi-logo-center-wrap::after {
    transform: scaleX(-1);
}

/* مركز الشعار */
.baladi-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* يمنع الخطوط من ضغط الشعار */
}

/* حجم الشعار (التحكم هنا) */
.baladi-logo-center .seal {
    width: 180px;
    /* 🔥 غيّر الحجم من هنا */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* صورة الشعار داخل الدايموند */
.baladi-logo-center .seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    /* قللها = الشعار أكبر */
}


/* =========================================================
   Category Cards (Luxury)
========================================================= */

.baladi-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--r-xl);
    border: 1px solid rgba(29, 43, 54, 0.14);
    background:
        radial-gradient(900px 260px at 18% 0%, rgba(199, 155, 72, 0.18), transparent 60%),
        radial-gradient(900px 260px at 90% 20%, rgba(15, 90, 122, 0.14), transparent 55%),
        rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 44px rgba(29, 43, 54, 0.10);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.baladi-cat-card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(18deg);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.45s ease;
}

.baladi-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(29, 43, 54, 0.14);
    filter: saturate(1.05);
}

.baladi-cat-card:hover::after {
    opacity: 0.8;
    transform: translateX(260px) rotate(18deg);
}

.baladi-cat-card .icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 90, 122, 0.10);
    border: 1px solid rgba(15, 90, 122, 0.18);
    color: #0f5a7a;
    font-size: 22px;
    box-shadow: inset 0 0 0 6px rgba(199, 155, 72, 0.08);
}

.baladi-cat-card .pill {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(199, 155, 72, 0.28);
    background: rgba(199, 155, 72, 0.10);
    font-weight: 900;
    font-size: 12px;
}

.baladi-cat-card .title {
    font-weight: 1000;
    margin-top: 14px;
    font-size: 19px;
    letter-spacing: 0.1px;
}

.baladi-cat-card .desc {
    color: rgba(29, 43, 54, 0.72);
    margin-top: 7px;
    line-height: 1.75;
    font-weight: 800;
}

.baladi-cat-card .cta {
    margin-top: 14px;
    font-weight: 1000;
    color: #0f5a7a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.baladi-cat-card .cta i {
    transition: transform 0.18s ease;
}

.baladi-cat-card:hover .cta i {
    transform: translateX(-3px);
}

.baladi-cat-rest::before,
.baladi-cat-home::before,
.baladi-cat-hand::before {
    content: "";
    position: absolute;
    inset: -2px;
    opacity: 0.22;
    pointer-events: none;
}

.baladi-cat-rest::before {
    background: radial-gradient(700px 220px at 10% 0%, rgba(199, 155, 72, 0.35), transparent 60%);
}

.baladi-cat-home::before {
    background: radial-gradient(700px 220px at 10% 0%, rgba(34, 197, 94, 0.26), transparent 60%);
}

.baladi-cat-hand::before {
    background: radial-gradient(700px 220px at 10% 0%, rgba(124, 58, 237, 0.28), transparent 60%);
}

/* =========================================================
   Product Cards
========================================================= */

.baladi-product-card {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 14px 34px rgba(29, 43, 54, 0.08);
    overflow: hidden;
}

.baladi-product-card .top {
    height: 140px;
    position: relative;
    background:
        radial-gradient(900px 220px at 30% 0%, rgba(15, 90, 122, 0.18), transparent 60%),
        radial-gradient(900px 220px at 90% 20%, rgba(199, 155, 72, 0.18), transparent 55%),
        rgba(15, 90, 122, 0.05);
}

.baladi-product-card .stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 90, 122, 0.22);
    background: rgba(246, 241, 231, 0.75);
    font-weight: 900;
    color: var(--tile);
    font-size: 12px;
}

.baladi-product-card .orn {
    position: absolute;
    inset: auto 0 0 0;
    height: 22px;
    background: linear-gradient(90deg,
            rgba(15, 90, 122, 0),
            rgba(15, 90, 122, 0.18),
            rgba(199, 155, 72, 0.18),
            rgba(15, 90, 122, 0));
}

.baladi-tags .tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(29, 43, 54, 0.14);
    background: rgba(246, 241, 231, 0.45);
    font-size: 12px;
    font-weight: 800;
    color: rgba(29, 43, 54, 0.80);
}

/* =========================================================
   Footer
========================================================= */

.baladi-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Motion (Scroll Reveal)
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.is-visible {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* =========================
   Footer (Brand Level)
========================= */

.baladi-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
    position: relative;
    overflow: hidden;
}

.baladi-footer::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(circle at 10px 10px, rgba(29, 43, 54, .18) 1px, transparent 1px);
    background-size: 18px 18px;
}

.baladi-footer-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 43, 54, .14);
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 12px 26px rgba(29, 43, 54, .12);
    overflow: hidden;
    flex-shrink: 0;
}

.baladi-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.baladi-footer-title {
    font-size: 18px;
    letter-spacing: .2px;
}

.baladi-footer-sub {
    font-size: 12px;
    font-weight: 800;
    color: rgba(29, 43, 54, .65);
}

.baladi-footer-desc {
    font-weight: 700;
    line-height: 1.8;
    max-width: 38ch;
}

.baladi-footer-head {
    font-weight: 1000;
    margin-bottom: 12px;
    color: var(--ink);
}

.baladi-footer-links li {
    margin: 8px 0;
}

.baladi-footer-links a {
    text-decoration: none;
    color: rgba(29, 43, 54, .78);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .18s ease, color .18s ease;
}

.baladi-footer-links a i {
    color: rgba(15, 90, 122, .90);
}

.baladi-footer-links a:hover {
    color: var(--ink);
    transform: translateX(-2px);
}

.baladi-footer-contact {
    display: grid;
    gap: 10px;
}

.baladi-contact-item {
    text-decoration: none;
    color: rgba(29, 43, 54, .78);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 90, 122, .22);
    background: rgba(246, 241, 231, .55);
}

.baladi-contact-item i {
    color: rgba(15, 90, 122, .90);
}

.baladi-social {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(29, 43, 54, .14);
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 10px 22px rgba(29, 43, 54, .10);
    color: rgba(15, 90, 122, .95);
    transition: transform .18s ease, filter .18s ease;
}

.baladi-social:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
}

.baladi-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(29, 43, 54, .14);
    background: rgba(246, 241, 231, .65);
    font-weight: 900;
    font-size: 12px;
    color: rgba(29, 43, 54, .82);
}

.baladi-chip i {
    color: rgba(15, 90, 122, .92);
}

.baladi-footer-bottom {
    border-top: 1px solid rgba(29, 43, 54, .10);
    background: rgba(246, 241, 231, .55);
}

.baladi-footer-mini {
    text-decoration: none;
    color: rgba(29, 43, 54, .70);
    font-weight: 900;
}

.baladi-footer-mini:hover {
    color: rgba(29, 43, 54, .95);
}

/* =========================
   Products Page (Brand Level)
========================= */

.baladi-page-head{
  padding: 14px 0 4px;
}

.baladi-filter-card{
  border-radius: 22px;
  border: 1px solid rgba(29,43,54,.12);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 40px rgba(29,43,54,.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.baladi-filter-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  opacity:.18;
  pointer-events:none;
  background-image: radial-gradient(circle at 10px 10px, rgba(29,43,54,.10) 1px, transparent 1px);
  background-size: 16px 16px;
}

.baladi-check .form-check-input{
  border-color: rgba(29,43,54,.18);
}
.baladi-check .form-check-input:checked{
  background-color: var(--tile);
  border-color: var(--tile);
}

.baladi-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29,43,54,.14);
  background: rgba(246,241,231,.65);
  font-weight: 900;
  font-size: 12px;
  color: rgba(29,43,54,.82);
}

.baladi-qpill{
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,90,122,.18);
  background: rgba(255,255,255,.70);
  font-weight: 1000;
  font-size: 12px;
  color: rgba(29,43,54,.82);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.baladi-qpill:hover{
  transform: translateY(-1px);
  background: rgba(15,90,122,.06);
  border-color: rgba(15,90,122,.28);
}
.baladi-qpill.active{
  background: rgba(15,90,122,.10);
  border-color: rgba(15,90,122,.32);
  color: rgba(29,43,54,.95);
}

/* Empty state */
.baladi-empty{
  border-radius: 22px;
  border: 1px dashed rgba(15,90,122,.22);
  background: rgba(255,255,255,.72);
  padding: 22px;
  text-align: center;
}
.baladi-empty .icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,90,122,.08);
  border: 1px solid rgba(15,90,122,.14);
  color: rgba(15,90,122,.95);
}
.baladi-empty .title{
  font-weight: 1000;
  font-size: 18px;
}
.baladi-empty .sub{
  margin-top: 6px;
  color: rgba(29,43,54,.70);
  font-weight: 800;
}

/* Mini badges reused */
.badge-sm{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(29,43,54,.14);
  background: rgba(246,241,231,.55);
  font-size: 12px;
  font-weight: 900;
  color: rgba(29,43,54,.85);
}
.badge-sm-outline{
  background: transparent;
  border-color: rgba(199,155,72,.35);
}

.baladi-mini-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baladi-stock{
  font-weight: 900;
  font-size: 12px;
  color: rgba(29,43,54,.72);
}
