/* ==============================================
   Adomeez Unified Design System
   Global CSS for all pages
   ============================================== */

:root {
  --cream: #FBF6EE;
  --cream-2: #F4EADB;
  --sand: #EBDBC4;
  --ink: #3B312A;
  --ink-soft: #6E6055;
  --honey: #D99A5B;
  --honey-deep: #B5742F;
  --blue: #9CC9D6;
  --blush: #F2C4B3;
  --mint: #C6DCC9;
  --white: #ffffff;
  --radius: 26px;
  --radius-lg: 40px;
  --shadow-soft: 0 18px 40px -22px rgba(59,49,42,.45);
  --shadow-lift: 0 40px 80px -30px rgba(59,49,42,.55);
  --shadow-clay: 0 22px 38px -18px rgba(150,110,60,.5), inset 0 -6px 14px rgba(150,110,60,.18), inset 0 6px 12px rgba(255,255,255,.7);
  --font-display: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
}

/* ===== GLOBAL BASE ===== */
body {
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--cream) !important;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-display) !important;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink) !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== HIDE ORIGINAL THEME HEADER/FOOTER ===== */
#ip-header,
.ip-header,
#masthead,
.site-header:not(.adomeez-header),
.header-area,
.ideapark-header,
#ip-top-bar,
.ip-top-bar,
.ideapark-topbar,
.tm-footer,
.site-footer:not(.adomeez-footer),
#colophon:not(.adomeez-footer),
.ip-footer,
.footer-area:not(.adomeez-footer),
.ideapark-footer { display: none !important; }

/* ===== ANIMATED BACKGROUND BLOBS ===== */
.adm-bg-scene {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.adm-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: adm-float 18s ease-in-out infinite;
}
.adm-blob.b1 { width: 46vw; height: 46vw; background: var(--blue); top: -12vw; right: -8vw; }
.adm-blob.b2 { width: 40vw; height: 40vw; background: var(--blush); bottom: -12vw; left: -10vw; animation-delay: -6s; }
.adm-blob.b3 { width: 30vw; height: 30vw; background: var(--mint); top: 38%; left: 30%; animation-delay: -11s; opacity: .4; }
@keyframes adm-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(2vw,-3vw) scale(1.08); }
}
.adm-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== TOP ANNOUNCEMENT BAR ===== */
.adm-topbar {
  background: var(--ink); color: var(--cream); font-size: 13px; text-align: center;
  padding: 8px 12px; letter-spacing: .2px; font-family: var(--font-body);
}
.adm-topbar b { color: var(--honey); }

/* ===== HEADER ===== */
.adomeez-header {
  position: sticky !important; top: 0; z-index: 999 !important; padding: 12px 0;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(251,246,238,.72) !important;
  border-bottom: 1px solid rgba(150,110,60,.12);
  transition: padding .3s, box-shadow .3s;
}
.adomeez-header.shrunk { padding: 6px 0; box-shadow: 0 10px 30px -20px rgba(59,49,42,.5); }
.adm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px,4vw,40px); }
.adm-nav { display: flex; align-items: center; gap: 18px; }
.adm-logo { height: 54px; width: auto; transition: height .3s; }
.adomeez-header.shrunk .adm-logo { height: 44px; }
.adm-menu {
  display: flex; align-items: center; gap: 26px;
  margin-inline-start: 18px; font-weight: 500; font-size: 15.5px; list-style: none !important;
  padding: 0 !important; margin-bottom: 0 !important;
}
.adm-menu a {
  position: relative; padding: 4px 0; transition: color .25s;
  font-family: var(--font-body) !important; font-weight: 500;
}
.adm-menu a::after {
  content: ""; position: absolute; bottom: -2px; right: 0; height: 2.5px; width: 0;
  background: var(--honey); border-radius: 2px; transition: width .3s;
}
.adm-menu a:hover { color: var(--honey-deep); }
.adm-menu a:hover::after { width: 100%; }
.adm-nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.adm-icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid rgba(150,110,60,.14); color: var(--ink);
  transition: transform .2s, background .2s, box-shadow .2s; position: relative; text-decoration: none;
}
.adm-icon-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-soft); color: var(--ink); }
.adm-icon-btn svg { width: 20px; height: 20px; }
.adm-cart-dot {
  position: absolute; top: -2px; left: -2px; background: var(--honey-deep); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.adm-lang {
  font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream); cursor: pointer; transition: transform .2s;
  text-decoration: none !important;
}
.adm-lang:hover { transform: translateY(-2px); color: var(--cream) !important; }
.adm-burger {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border-radius: 14px;
  background: var(--ink); align-items: center; justify-content: center; cursor: pointer; border: none;
}
.adm-burger span { width: 20px; height: 2.4px; background: var(--cream); border-radius: 2px; transition: .3s; }

/* ===== MOBILE MENU ===== */
.adm-mobile-panel {
  position: fixed; inset: 0; z-index: 9999; background: rgba(59,49,42,.55); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.adm-mobile-panel.open { opacity: 1; pointer-events: auto; }
.adm-mobile-inner {
  position: absolute; top: 0; right: 0; height: 100%; width: min(82%, 340px);
  background: var(--cream); padding: 28px 24px; transform: translateX(100%); transition: transform .35s;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); overflow-y: auto;
}
.adm-mobile-panel.open .adm-mobile-inner { transform: none; }
.adm-mobile-inner a {
  padding: 14px 8px; border-bottom: 1px solid rgba(150,110,60,.12);
  font-weight: 700; font-size: 17px; font-family: var(--font-body); display: block;
}
.adm-mobile-close {
  align-self: flex-start; background: var(--ink); color: var(--cream); border: none;
  width: 42px; height: 42px; border-radius: 12px; font-size: 22px; cursor: pointer; margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.adomeez-footer {
  background: var(--ink) !important; color: var(--cream); padding: clamp(46px,6vw,72px) 0 28px;
  margin-top: clamp(50px,7vw,90px);
}
.adm-foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.adm-foot-logo { height: 56px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.adm-foot-about p { color: rgba(251,246,238,.7); font-size: 14.5px; max-width: 300px; }
.adm-foot-contact { margin-top: 18px; font-size: 14.5px; color: rgba(251,246,238,.85); line-height: 2; }
.adomeez-footer h4 {
  font-family: var(--font-display) !important; font-size: 18px; margin-bottom: 18px; color: #fff !important;
}
.adomeez-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.adomeez-footer ul li { margin-bottom: 11px; }
.adomeez-footer ul a { color: rgba(251,246,238,.72) !important; font-size: 14.5px; transition: color .2s; }
.adomeez-footer ul a:hover { color: var(--honey) !important; }
.adm-socials { display: flex; gap: 12px; margin-top: 18px; }
.adm-socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: .25s; border: 1px solid rgba(255,255,255,.12);
}
.adm-socials a:hover { background: var(--honey); transform: translateY(-3px); }
.adm-socials svg { width: 19px; height: 19px; color: #fff; }
.adm-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px;
  text-align: center; color: rgba(251,246,238,.55); font-size: 13.5px;
}

/* ===== WooCommerce Overrides ===== */
.woocommerce .products .product,
.woocommerce ul.products li.product {
  background: #fff !important; border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft) !important; overflow: hidden;
  padding: 14px !important; transition: box-shadow .3s, transform .3s;
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-lift) !important; transform: translateY(-4px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body) !important; font-weight: 500; font-size: 14.5px !important;
  color: var(--ink) !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display) !important; color: var(--honey-deep) !important;
}
.woocommerce ul.products li.product .price del {
  color: var(--ink-soft) !important; opacity: .7;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce button.button.alt {
  background: var(--ink) !important; color: var(--cream) !important;
  font-family: var(--font-body) !important; font-weight: 700;
  border-radius: 14px !important; border: none !important; padding: 11px 22px !important;
  transition: .25s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover {
  background: var(--honey-deep) !important;
}
.woocommerce .onsale {
  background: var(--honey-deep) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 700;
}

/* ===== Elementor Overrides ===== */
.elementor-section { background-color: transparent !important; }
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display) !important; color: var(--ink) !important;
}
.elementor-widget-text-editor { font-family: var(--font-body) !important; color: var(--ink-soft) !important; }
.elementor-button {
  font-family: var(--font-body) !important; border-radius: 999px !important;
  font-weight: 700 !important;
}

/* ===== MAIN CONTENT AREA ===== */
.site-content, .site-main, #primary, #content, .entry-content,
.elementor, .page-content {
  background: transparent !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .adm-foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .adm-menu { display: none !important; }
  .adm-burger { display: flex !important; }
  .adm-lang { display: none !important; }
  .adm-nav-actions .hide-sm { display: none !important; }
}
@media (max-width: 440px) {
  .adm-foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-blob { animation: none !important; }
}

/* ===== RTL Support ===== */
[dir="rtl"] .adm-menu { margin-inline-start: 18px; }
[dir="rtl"] .adm-nav-actions { margin-inline-start: auto; }
[dir="rtl"] .adm-mobile-inner { right: 0; left: auto; transform: translateX(100%); }
[dir="rtl"] .adm-mobile-panel.open .adm-mobile-inner { transform: none; }

/* LTR fallback */
[dir="ltr"] .adm-mobile-inner { left: 0; right: auto; transform: translateX(-100%); }
[dir="ltr"] .adm-mobile-panel.open .adm-mobile-inner { transform: none; }
