/* ==========================================================================
   HUNTERS MODERN — World-Class B2B E-Commerce & Portal Design System
   Tailored for Pastry Chefs, Bakeries, Food Factories & Equipment
   Compliant with Apple-grade craft and CloudPastry Marketplace Standards
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --hn-navy: #0B2545;
  --hn-navy-dark: #07192F;
  --hn-slate: #134074;
  --hn-blue: #1D4E89;
  --hn-emerald: #00A86B;
  --hn-emerald-glow: rgba(0, 168, 107, 0.25);
  --hn-gold: #D4AF37;
  --hn-bg-light: #F8FAFC;
  --hn-card-bg: #FFFFFF;
  --hn-border: rgba(11, 37, 69, 0.08);
  --hn-border-subtle: rgba(11, 37, 69, 0.04);
  --hn-text-primary: #0F172A;
  --hn-text-secondary: #334155;
  --hn-text-muted: #64748B;
  --hn-font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --hn-font-ar: 'Cairo', 'Tajawal', sans-serif;
  --hn-shadow-sm: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(11,37,69,0.03);
  --hn-shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 14px 28px -4px rgba(11,37,69,0.08);
  --hn-shadow-lg: 0 6px 10px rgba(0,0,0,0.05), 0 24px 44px -8px rgba(11,37,69,0.12);
  --hn-radius-sm: 8px;
  --hn-radius-md: 14px;
  --hn-radius-lg: 20px;
  --hn-radius-pill: 999px;
  --hn-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Typography & Smooth Scroll */
html {
  font-family: var(--hn-font-en);
  color: var(--hn-text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html[dir='rtl'], html[lang^='ar'] {
  font-family: var(--hn-font-ar);
}

html[dir='rtl'] body, html[lang^='ar'] body {
  font-family: var(--hn-font-ar) !important;
  line-height: 1.75;
}

#wrapwrap {
  background-color: var(--hn-bg-light) !important;
}

/* Hide Odoo Demo, Backend Configurator & Floating Clutter */
#oe_main_menu_navbar,
.o_frontend_to_backend_nav,
.o_website_preview_btn,
.o_debug_manager,
.tp-back-to-top {
  display: none !important;
}

/* ==========================================================================
   1. LUXURY HEADER & NAVIGATION
   ========================================================================== */
header#top .navbar {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--hn-border) !important;
  box-shadow: var(--hn-shadow-sm) !important;
}

header#top .navbar-nav .nav-link {
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  color: var(--hn-navy) !important;
  padding: 8px 16px !important;
  border-radius: var(--hn-radius-sm) !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.18s var(--hn-ease-out) !important;
}

header#top .navbar-nav .nav-link:hover {
  background: rgba(11, 37, 69, 0.05) !important;
  color: var(--hn-navy) !important;
}

header#top .navbar-nav .nav-link.active {
  background: rgba(11, 37, 69, 0.08) !important;
  color: var(--hn-navy) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   2. CATEGORY FILMSTRIP (Single, Clean Strip)
   ========================================================================== */
.o_wsale_filmstip_container {
  padding: 10px 0 16px !important;
  border-bottom: 1px solid var(--hn-border) !important;
  margin-bottom: 22px !important;
}

.o_wsale_filmstip li a {
  text-decoration: none !important;
}

.o_wsale_filmstip li div.btn {
  border-radius: var(--hn-radius-pill) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(11, 37, 69, 0.12) !important;
  background: #FFFFFF !important;
  color: var(--hn-navy) !important;
  box-shadow: var(--hn-shadow-sm) !important;
  transition: all 0.2s var(--hn-ease-out) !important;
}

.o_wsale_filmstip li div.btn:hover,
.o_wsale_filmstip li.active div.btn,
.o_wsale_filmstip li div.btn.border-primary {
  background: var(--hn-navy) !important;
  color: #FFFFFF !important;
  border-color: var(--hn-navy) !important;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25) !important;
}

.o_wsale_filmstip .o_image_40_cover {
  border-radius: 50% !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
  margin-left: 6px !important;
}

/* ==========================================================================
   3. PRODUCT CARDS & IMAGES (1:1 Ratio, Never Collapses)
   ========================================================================== */
.oe_product_cart {
  background: #FFFFFF !important;
  border: 1px solid var(--hn-border) !important;
  border-radius: var(--hn-radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--hn-shadow-sm) !important;
  transition: transform 0.24s var(--hn-ease-out), box-shadow 0.24s var(--hn-ease-out), border-color 0.24s !important;
}

.oe_product_cart:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--hn-shadow-md) !important;
  border-color: rgba(19, 64, 116, 0.24) !important;
}

/* Mandatory Image Container Dimensions */
.oe_product_cart .oe_product_image {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  background: #FFFFFF !important;
  padding: 12px !important;
  border-radius: 14px 14px 0 0 !important;
  overflow: hidden !important;
}

.oe_product_cart .oe_product_image .oe_product_image_link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.oe_product_cart .oe_product_image .oe_product_image_img_wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.oe_product_cart .oe_product_image img,
.oe_product_cart .oe_product_image .oe_product_image_img_wrapper img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 6px !important;
  transition: transform 0.3s var(--hn-ease-out) !important;
}

.oe_product_cart:hover .oe_product_image img {
  transform: scale(1.06) !important;
}

/* Product Info & Pricing */
.oe_product_cart .o_wsale_product_information {
  padding: 14px 16px !important;
  background: #FFFFFF !important;
  border-top: 1px solid var(--hn-border-subtle) !important;
}

.o_wsale_product_information .o_wsale_products_item_title a {
  color: var(--hn-navy-dark) !important;
  font-weight: 700 !important;
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.oe_price, .o_wsale_product_sub {
  color: var(--hn-slate) !important;
  font-weight: 800 !important;
  font-size: 1.08rem !important;
}

/* Add to Cart Button */
.o_wsale_product_btn .btn,
.o_wsale_product_btn a.a-submit {
  background: var(--hn-emerald) !important;
  border-color: var(--hn-emerald) !important;
  color: #FFFFFF !important;
  border-radius: var(--hn-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 8px var(--hn-emerald-glow) !important;
  transition: all 0.18s var(--hn-ease-out) !important;
}

.o_wsale_product_btn .btn:hover,
.o_wsale_product_btn a.a-submit:hover {
  background: #00935D !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 14px rgba(0, 168, 107, 0.4) !important;
}

/* ==========================================================================
   4. CART & CHECKOUT PAGES
   ========================================================================== */
#cart_products {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  overflow: visible !important;
  box-shadow: none !important;
}

#o_cart_summary {
  background: #FFFFFF !important;
  border-radius: var(--hn-radius-md) !important;
  border: 1px solid var(--hn-border) !important;
  padding: 24px !important;
  box-shadow: var(--hn-shadow-sm) !important;
}

.btn-primary,
a[href*="/shop/checkout"],
a[href*="/shop/confirm_order"] {
  background: var(--hn-navy) !important;
  border-color: var(--hn-navy) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: var(--hn-radius-sm) !important;
  padding: 10px 22px !important;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.2) !important;
  transition: all 0.18s var(--hn-ease-out) !important;
}

.btn-primary:hover,
a[href*="/shop/checkout"]:hover,
a[href*="/shop/confirm_order"]:hover {
  background: var(--hn-slate) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3) !important;
}

/* ==========================================================================
   5. FOOTER POLISH
   ========================================================================== */
footer#bottom, footer.o_footer {
  background: var(--hn-navy-dark) !important;
  color: #CBD5E1 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding-top: 48px !important;
}

footer#bottom h5, footer.o_footer h5 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  margin-bottom: 18px !important;
}

footer#bottom a, footer.o_footer a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  transition: color 0.18s var(--hn-ease-out);
}

footer#bottom a:hover, footer.o_footer a:hover {
  color: #FFFFFF !important;
}

footer .o_footer_copyright {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 20px 0 !important;
  font-size: 0.85rem !important;
  color: #64748B !important;
}

/* ==========================================================================
   6. UNIFIED LUXURY HEADER & WALY NAVBAR (.o_header_waly)
   ========================================================================== */
.o_header_waly {
  background: rgba(11, 37, 69, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 68px !important;
}
.o_header_waly #o_main_nav {
  max-width: 1360px !important;
  width: 95% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: .6rem 0 !important;
}
.o_header_waly .navbar-brand.logo,
.o_header_waly .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  margin-inline-end: 2.2rem !important;
  padding: 0 !important;
}
.o_header_waly .navbar-brand.logo img,
.o_header_waly .o_main_nav .navbar-brand img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain !important;
}
.o_header_waly .top_menu,
.o_header_waly .navbar-nav.me-auto,
.o_header_waly #top_menu {
  display: flex !important;
  align-items: center !important;
  gap: .35rem !important;
  margin: 0 !important;
  margin-inline-end: auto !important;
  margin-inline-start: 0 !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
}
.o_header_waly ul.navbar-nav.align-items-center,
.o_header_waly .navbar-nav:last-child {
  margin: 0 !important;
  margin-inline-start: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}
.o_header_waly .nav-item {
  display: inline-flex !important;
  flex-shrink: 0 !important;
}
.o_header_waly .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  transition: all .18s ease !important;
  text-decoration: none !important;
}
.o_header_waly .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.o_header_waly .nav-link.active {
  background: var(--hn-emerald) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0, 168, 107, 0.4) !important;
}
.o_header_waly .btn--emerald-header {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 7px 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: var(--hn-emerald) !important;
  border: 1px solid var(--hn-emerald) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0, 168, 107, 0.4) !important;
  text-decoration: none !important;
  transition: all .18s ease !important;
}
.o_header_waly .btn--emerald-header:hover {
  background: #00C27D !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.o_header_waly .cp-logout-link {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  transition: all .18s ease !important;
  text-decoration: none !important;
}
.o_header_waly .cp-logout-link:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

/* Round icon buttons for Cart & Wishlist */
.o_header_waly a[href*="/shop/cart"],
.o_header_waly a[href*="/shop/wishlist"],
.o_header_waly button[data-bs-target*="search"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #EAEEF6 !important;
  position: relative !important;
  transition: background .18s ease, color .18s ease !important;
}
.o_header_waly a[href*="/shop/cart"]:hover,
.o_header_waly a[href*="/shop/wishlist"]:hover,
.o_header_waly button[data-bs-target*="search"]:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
}
.o_header_waly a[href*="/shop/cart"] sup,
.o_header_waly a[href*="/shop/cart"] .badge,
.o_header_waly a[href*="/shop/wishlist"] .badge {
  background: var(--hn-emerald) !important;
  color: #ffffff !important;
  border: 2px solid var(--hn-navy-dark) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 5px !important;
}

/* Clean Language Pill */
.o_header_waly .js_language_selector {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  padding: 2px !important;
}
.o_header_waly .js_language_selector a.js_change_lang {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: all .18s ease !important;
}
.o_header_waly .js_language_selector a.js_change_lang.active {
  background: var(--hn-emerald) !important;
  color: #ffffff !important;
}

/* Hide Odoo Backend Bar & Frontend Floating Clutter */
#oe_main_menu_navbar,
.o_frontend_to_backend_nav,
.o_website_edit_in_backend,
.tp-theme-config-btn,
.tp-config-btn,
a[href*="/theme_prime/config"] {
  display: none !important;
}
