/* ==========================================================================
   BAHR STORE - MAIN STYLESHEET
   HyperOne (https://www.hyperone.com.eg/ar/) Inspired Design System
   Strictly compliant with DESIGN_RULES.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.container,
.bahr-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  box-sizing: border-box;
}

.bahr-main-content {
  padding-top: 24px;
  padding-bottom: 60px;
  min-height: 55vh;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.site-main {
  flex: 1 0 auto;
}

.section {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: 40px;
  padding: 0 var(--space-20);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-base);
  color: #ffffff;
  border-color: var(--accent-base);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--grey-300);
  color: var(--grey-800);
}

.btn-secondary:hover {
  background-color: var(--grey-100);
  border-color: var(--grey-400);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. EXECUTIVE STYLE HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  background-color: #ffffff;
}

.header-main-bg {
  background-color: #ffffff;
  color: var(--grey-900);
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.header-brand-group,
.header-right-section {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-shrink: 0;
}

/* Department / Categories Trigger Button & Dropdown */
.header-categories-wrap {
  position: relative;
}

.header-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background-color: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
  margin-right: 4px;
  white-space: nowrap;
}

.header-categories-btn:hover,
.header-categories-wrap.open .header-categories-btn {
  background-color: #e2e8f0;
  color: var(--accent-base);
  border-color: #cbd5e1;
}

.cat-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-base);
}

.cat-btn-chevron {
  color: #94a3b8;
  transition: transform 140ms ease;
}

.header-categories-wrap:hover .cat-btn-chevron,
.header-categories-wrap.open .cat-btn-chevron {
  transform: rotate(180deg);
}

/* Categories Desktop Dropdown with Images */
.bahr-categories-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 480px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  padding: 16px;
}

.bahr-categories-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  transform: rotate(-45deg);
}

.header-categories-wrap:hover .bahr-categories-dropdown-menu,
.header-categories-wrap.open .bahr-categories-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cat-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cat-dropdown-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.cat-dropdown-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-base);
  text-decoration: none;
  transition: color 120ms ease;
}

.cat-dropdown-all-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.cat-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
}

.cat-dropdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  transition: all 140ms ease;
}

.cat-dropdown-card:hover {
  background: #ffffff;
  border-color: var(--accent-base);
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.08);
  transform: translateY(-2px);
}

.cat-dropdown-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.cat-dropdown-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.cat-dropdown-card:hover .cat-dropdown-img img {
  transform: scale(1.08);
}

.cat-dropdown-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--grey-900);
  text-decoration: none;
}

.site-logo img,
.bahr-main-logo,
.custom-logo {
  height: 38px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}

/* Natural brand colors - remove forced white inversion */
.header-main-bg .bahr-main-logo {
  filter: none !important;
}

.site-logo:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.footer-logo-img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

/* Search Bar (Real-world Modern Search Console) */
.header-search {
  flex: 1;
  max-width: 580px;
  margin: 0 24px;
  position: relative;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: all 150ms ease;
}

.search-input-wrap:focus-within {
  background-color: #ffffff;
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.12);
}

.search-hint-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 150ms ease;
}

.search-input-wrap:focus-within .search-hint-icon {
  color: var(--accent-base);
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0 42px 0 40px;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  outline: none;
  font-family: inherit;
  text-align: right;
}

.search-input::placeholder {
  color: #94a3b8;
}

/* Clear button */
.search-clear-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
  padding: 0;
  z-index: 2;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* Live Spinner */
.search-spinner {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--accent-base);
  border-radius: 50%;
  animation: bahrSearchSpin 0.6s linear infinite;
  z-index: 2;
}

@keyframes bahrSearchSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.search-submit-btn,
.search-btn-label {
  display: none !important;
}

/* Live AJAX Search Dropdown */
.bahr-ajax-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 35px -4px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  z-index: 1100;
  overflow: hidden;
}

.ajax-search-header {
  padding: 9px 14px;
  background-color: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ajax-search-list {
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ajax-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: background-color 120ms ease;
}

.ajax-search-item:last-child {
  border-bottom: none;
}

.ajax-search-item:hover,
.ajax-search-item.active {
  background-color: #f8fafc;
}

.search-item-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.search-match {
  background: transparent;
  color: var(--accent-base);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(29, 76, 161, 0.3);
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-item-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-base);
}

.search-item-price del {
  color: #94a3b8;
  font-weight: 500;
  font-size: 11px;
  margin-right: 4px;
}

.search-item-price ins {
  text-decoration: none;
  color: #e11d48;
}

.search-item-stock {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
}

.search-item-stock.in-stock {
  background-color: #ecfdf5;
  color: #059669;
}

.search-item-stock.out-of-stock {
  background-color: #fef2f2;
  color: #dc2626;
}

.ajax-search-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-base);
  text-decoration: none;
  transition: background-color 120ms ease;
}

.ajax-search-footer:hover {
  background-color: #f1f5f9;
  color: var(--accent-hover);
}

.ajax-search-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ajax-search-empty svg {
  color: #94a3b8;
}

.ajax-search-empty p {
  margin: 0;
  font-size: 13px;
}

/* User Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Currency Switcher Hub ([x-currency-switcher id=139]) */
.bahr-header-currency {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 2px;
}

.bahr-currency-switcher-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: inherit;
}

.bahr-currency-switcher-wrap.bahr-currency-header {
  height: 38px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0 12px;
  transition: border-color 140ms ease, background-color 140ms ease;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
}

.bahr-currency-switcher-wrap.bahr-currency-header:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.bahr-currency-fallback-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.bahr-currency-fallback-pill .currency-flag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

/* Normalization for currency switcher plugin selects, lists & forms */
.bahr-currency-switcher-wrap select,
.bahr-currency-switcher-wrap .dd-select,
.bahr-currency-switcher-wrap .wmc-currency {
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.bahr-currency-switcher-wrap select:focus {
  outline: none !important;
}

.bahr-currency-switcher-wrap select option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 6px 10px;
}

.bahr-currency-switcher-wrap img {
  vertical-align: middle;
  border-radius: 2px;
  margin-left: 4px;
}

/* Mobile Drawer Currency Switcher */
.drawer-currency-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 14px 0;
}

.drawer-currency-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.bahr-drawer-currency {
  display: inline-flex;
  align-items: center;
}

.bahr-currency-switcher-wrap.bahr-currency-drawer {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.header-divider {
  display: none !important;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--grey-800, #1e293b);
  background: transparent !important;
  border: none !important;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
  line-height: 1;
  font-family: inherit;
  user-select: none;
  position: relative;
  flex-shrink: 0;
  box-shadow: none !important;
  outline: none;
}

.action-link:hover {
  background: transparent !important;
  color: var(--accent-base);
  transform: translateY(-1px);
}

.action-link:active {
  transform: scale(0.94);
}

.action-link.wishlist-link:hover {
  color: #ef4444;
}

/* Standout Cart Button - Clean Transparent Icon Button without background box */
.action-link.cart-link {
  background: transparent !important;
  color: var(--grey-800, #1e293b) !important;
  border: none !important;
  box-shadow: none !important;
}

.action-link.cart-link:hover {
  background: transparent !important;
  color: var(--accent-base) !important;
  border: none !important;
  transform: translateY(-1px);
}

.action-link.cart-link:active {
  transform: scale(0.94);
}

.action-link.cart-link .cart-count-badge {
  background-color: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* Notifications Dropdown */
.bahr-notifications-dropdown-wrap {
  position: relative;
}

.bahr-notification-badge {
  background-color: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.bahr-notifications-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  padding: 0;
  overflow: hidden;
}

.bahr-notifications-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 14px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  transform: rotate(45deg);
  z-index: 1;
}

.bahr-notifications-dropdown-wrap:hover .bahr-notifications-dropdown-menu,
.bahr-notifications-dropdown-wrap.open .bahr-notifications-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.notif-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.notif-header-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background-color: #ef4444;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1;
  font-family: inherit;
}

.notif-mark-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-base);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 120ms ease;
  font-family: inherit;
}

.notif-mark-read-btn:hover {
  background-color: rgba(29, 76, 161, 0.08);
  color: var(--accent-hover);
}

.dropdown-notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 290px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 140ms ease-out;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background-color: #f8fafc;
}

.notif-item.unread {
  background-color: rgba(29, 76, 161, 0.03);
}

.notif-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-icon.promo {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.notif-item-icon.delivery {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
}

.notif-item-icon.welcome {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
}

.notif-item-icon.profile {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--accent-base);
}

.notif-action-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-base);
  text-decoration: none;
  margin-right: 6px;
  transition: color 120ms ease;
}

.notif-action-chip:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.notif-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2563eb;
  flex-shrink: 0;
}

.notif-item:not(.unread) .notif-unread-dot {
  display: none;
}

.notif-item-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.notif-code-chip {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed #f59e0b;
  font-size: 11px;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.notif-item-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.dropdown-notif-footer {
  padding: 10px 16px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.notif-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-base);
  text-decoration: none;
  transition: color 120ms ease;
}

.notif-footer-link:hover {
  color: var(--accent-hover);
}

/* User Account Button & Dropdown */
.bahr-account-dropdown-wrap {
  position: relative;
}

.action-link.account-link {
  background: transparent !important;
  color: var(--grey-800, #1e293b) !important;
  border: none !important;
}

.action-link.account-link:hover {
  background: transparent !important;
  color: var(--accent-base) !important;
}

/* User Account Dropdown */
.bahr-account-dropdown-wrap {
  position: relative;
}

.dropdown-chevron {
  transition: transform 200ms ease;
  opacity: 0.7;
}

.bahr-account-dropdown-wrap.open .dropdown-chevron,
.bahr-account-dropdown-wrap:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.bahr-account-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 240px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.12);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 0;
}

.bahr-account-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.bahr-account-dropdown-wrap:hover .bahr-account-dropdown-menu,
.bahr-account-dropdown-wrap.open .bahr-account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--grey-50);
}

.dropdown-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dropdown-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grey-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-size: 11px;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-fc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-top: 4px;
  width: fit-content;
  text-decoration: none;
  line-height: 1.3;
}

.dropdown-fc-badge.verified {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.dropdown-fc-badge.pending {
  background-color: #eff6ff;
  color: var(--accent-base);
  border: 1px solid #bfdbfe;
  transition: all 120ms ease;
}

.dropdown-fc-badge.pending:hover {
  background-color: var(--accent-base);
  color: #ffffff;
}

.dropdown-guest-box {
  padding: 12px 16px;
}

.dropdown-guest-box .btn {
  height: 38px;
  font-size: 13.5px;
  font-weight: 700;
}

.dropdown-reg-note {
  font-size: 12px;
  color: var(--grey-600);
  margin: 8px 0 0;
  text-align: center;
}

.dropdown-reg-note a {
  color: var(--accent-base);
  font-weight: 700;
  text-decoration: underline;
}

.dropdown-divider,
.dropdown-divider-li {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
  list-style: none;
}

.dropdown-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-800);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu-list li a svg {
  color: var(--grey-500);
  transition: var(--transition);
}

.dropdown-menu-list li a:hover {
  background-color: var(--grey-50);
  color: var(--accent-base);
}

.dropdown-menu-list li a:hover svg {
  color: var(--accent-base);
}

.dropdown-menu-list li a.dropdown-logout-link {
  color: var(--color-destructive);
}

.dropdown-menu-list li a.dropdown-logout-link svg {
  color: var(--color-destructive);
}

.dropdown-menu-list li a.dropdown-logout-link:hover {
  background-color: var(--color-destructive-bg);
}

/* Wishlist Header Badge */
.bahr-wishlist-badge {
  background-color: #ef4444;
}

/* Wishlist Page Styling */
.bahr-wishlist-page {
  padding-bottom: 60px;
}

.bahr-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wishlist-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wishlist-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0;
  line-height: 1.2;
}

.wishlist-page-subtitle {
  font-size: 13px;
  color: var(--grey-500);
  margin: 4px 0 0;
}

.wishlist-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wishlist-count-badge {
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.bahr-clear-wishlist-btn {
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0 16px;
}

.bahr-wishlist-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-600);
}

.bahr-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--accent-base);
  border-radius: 50%;
  animation: bahrSpin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes bahrSpin {
  to { transform: rotate(360deg); }
}

.bahr-wishlist-empty {
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 60px 24px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bahr-empty-icon {
  color: #ef4444;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bahr-wishlist-empty h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 8px;
}

.bahr-wishlist-empty p {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .bahr-wishlist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .wishlist-actions-bar {
    width: 100%;
    justify-content: space-between;
  }
}

.cart-icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.cart-icon-box svg {
  display: block;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  left: auto;
  background-color: var(--color-destructive, #e22319) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: 2px solid #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
  pointer-events: none;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  z-index: 3;
}

.cart-count-badge:empty,
.cart-count-badge[data-count="0"] {
  display: none !important;
}

.bahr-wishlist-badge,
.bahr-notification-badge {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.action-link:hover .cart-count-badge {
  transform: none !important;
}

/* Sub-Navigation Bar (Bespoke Modern Pill Ribbon) */
.header-nav-bg {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 5px 0;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-links-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0;
  margin: 0;
  scrollbar-width: none;
}

.nav-links-list::-webkit-scrollbar {
  display: none;
}

.nav-links-list li {
  display: inline-flex;
}

.nav-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 140ms ease-out;
  background-color: transparent;
}

.nav-links-list a:hover {
  color: var(--accent-base);
  background-color: #f1f5f9;
}

.nav-links-list li.current-menu-item a,
.nav-links-list li.active a {
  color: var(--accent-base);
  background-color: #eff6ff;
  font-weight: 700;
}

.nav-item-highlight a,
.nav-links-list li.menu-item-deal a,
.nav-links-list .deal-link {
  color: #e11d48 !important;
  background-color: #fff1f2 !important;
  font-weight: 700 !important;
  border: 1px solid #ffe4e6;
}

.nav-item-highlight a:hover,
.nav-links-list li.menu-item-deal a:hover,
.nav-links-list .deal-link:hover {
  background-color: #ffe4e6 !important;
  color: #be123c !important;
}

/* Category Ribbon Items with Images */
.cat-ribbon-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 4px 12px 4px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 140ms ease !important;
  white-space: nowrap !important;
}

.cat-ribbon-item:hover {
  background-color: #ffffff !important;
  border-color: var(--accent-base) !important;
  color: var(--accent-base) !important;
  box-shadow: 0 2px 8px rgba(29, 76, 161, 0.08) !important;
  transform: translateY(-1px);
}

.cat-ribbon-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.cat-ribbon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-ribbon-title {
  display: inline-block;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. HYPERONE HERO SLIDER (سلايدر العروض الرئيسي بتصميم هايبر وان المعتمد)
   -------------------------------------------------------------------------- */
.bahr-hero-slider-section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.bahr-hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bahr-hero-slider-viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 0;
}

.bahr-hero-slider-track {
  display: flex;
  direction: rtl;
  gap: 16px;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  width: 100%;
}

.bahr-hero-slide {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  flex-shrink: 0;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  aspect-ratio: 1011 / 337;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bahr-hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.bahr-hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  transition: transform 250ms ease;
}

.bahr-hero-slide:hover .bahr-hero-slide-img {
  transform: scale(1.015);
}

/* Navigation Buttons - PLACED INSIDE THE IMAGE (ليس خارج الصورة) */
.bahr-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--accent-base, #1d4ca1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.bahr-slider-nav:hover {
  background: #ffffff;
  color: var(--accent-hover, #163a7d);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  transform: translateY(-50%) scale(1.08);
}

/* Arrows floating comfortably INSIDE the active banner image */
.bahr-slider-prev {
  right: 28px;
}

.bahr-slider-next {
  left: calc(90px + 28px);
}

/* Dots: Elegant Indicator */
.bahr-hero-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 9999px;
}

.bahr-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: all 220ms ease;
  padding: 0;
}

.bahr-slider-dot:hover {
  background: #ffffff;
}

.bahr-slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
}

/* Tablet Specs (768px - 991px): The second slide PEEKS IN clearly from the left */
@media (min-width: 768px) and (max-width: 991px) {
  .bahr-hero-slider-wrap {
    overflow: hidden;
  }

  .bahr-hero-slider-viewport {
    padding: 0;
    overflow: visible;
  }

  .bahr-hero-slider-track {
    gap: 16px;
  }

  .bahr-hero-slide {
    flex: 0 0 calc(100% - 90px);
    width: calc(100% - 90px);
    min-height: 280px;
    max-height: 440px;
    border-radius: 24px;
  }

  .bahr-hero-slide-link,
  .bahr-hero-slide-img {
    border-radius: 24px;
  }
}

/* Mobile Specs (< 768px): HyperOne Exact Mobile Peek */
@media (max-width: 767px) {
  .bahr-hero-slider-section {
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .bahr-hero-slider-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  .bahr-hero-slider-wrap {
    overflow: hidden;
    padding-right: 14px;
    padding-left: 0;
  }

  .bahr-hero-slider-viewport {
    padding: 0;
    overflow: visible;
  }

  .bahr-hero-slider-track {
    gap: 10px;
  }

  /* Slide takes 84% so the next slide (Slide 2 - blue banner) peeks in cleanly from the left */
  .bahr-hero-slide {
    flex: 0 0 84%;
    width: 84%;
    min-height: 120px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
  }

  .bahr-hero-slide-link,
  .bahr-hero-slide-img {
    border-radius: 18px;
  }

  /* Arrows strictly hidden on mobile like HyperOne - touch swipe enabled */
  .bahr-slider-nav {
    display: none !important;
  }

  .bahr-hero-slider-dots {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px auto 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }

  .bahr-slider-dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
  }

  .bahr-slider-dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--accent-base, #1d4ca1);
  }
}

/* ==========================================================================
   DESKTOP HERO LAYOUT: Categories Panel Next to Slider (تسوق حسب الفئة)
   ========================================================================== */
.bahr-hero-desktop-grid {
  display: block;
  width: 100%;
}

.bahr-hero-categories-panel {
  display: none;
}

@media (min-width: 992px) {
  .bahr-hero-desktop-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .bahr-hero-slider-col {
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .bahr-hero-slider-wrap {
    overflow: hidden;
    height: 100%;
  }

  .bahr-hero-slider-viewport {
    padding: 0;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
  }

  .bahr-hero-slider-track {
    gap: 16px;
    height: 100%;
  }

  .bahr-hero-desktop-grid .bahr-hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 920 / 410 !important;
    max-height: 420px !important;
    min-height: 380px !important;
    border-radius: 20px !important;
  }

  .bahr-hero-desktop-grid .bahr-hero-slide-link,
  .bahr-hero-desktop-grid .bahr-hero-slide-img {
    border-radius: 20px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Categories Sidebar Panel (Desktop) */
  .bahr-hero-categories-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    height: 100%;
    max-height: 420px;
  }

  .bahr-hero-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
  }

  .bahr-hero-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
  }

  .bahr-hero-cat-title-wrap svg {
    color: var(--accent-base, #1d4ca1);
  }

  .bahr-hero-cat-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
  }

  .bahr-hero-cat-see-all {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-base, #1d4ca1);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .bahr-hero-cat-see-all:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  .bahr-hero-cat-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .bahr-hero-cat-list::-webkit-scrollbar {
    width: 4px;
  }

  .bahr-hero-cat-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
  }

  .bahr-hero-cat-item {
    margin: 0;
    padding: 0;
  }

  .bahr-hero-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bahr-hero-cat-link:hover {
    background: #f0f5ff;
    color: var(--accent-base, #1d4ca1);
    transform: translateX(-3px);
  }

  .bahr-hero-cat-thumb {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .bahr-hero-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .bahr-hero-cat-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bahr-hero-cat-arrow {
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .bahr-hero-cat-link:hover .bahr-hero-cat-arrow {
    color: var(--accent-base, #1d4ca1);
    transform: translateX(-4px);
  }
}

/* --------------------------------------------------------------------------
   5. CATEGORIES GRID (تسوق حسب الفئة)
   -------------------------------------------------------------------------- */
.categories-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: var(--space-20);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-900);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-16);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--grey-50);
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--accent-base);
  background-color: #ffffff;
}

.category-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-900);
}

/* --------------------------------------------------------------------------
   6. PRODUCT SECTION & CARDS (HyperOne 5-Column Grid)
   -------------------------------------------------------------------------- */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-20);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.section-badge-deals {
  background-color: var(--color-destructive-bg);
  color: var(--color-destructive);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-16);
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--grey-400);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--color-destructive);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.btn-fav {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-400);
  transition: var(--transition);
  z-index: 2;
}

.btn-fav:hover, .btn-fav.active {
  color: #e11d48;
  border-color: #fca5a5;
}

.btn-fav.active svg,
.btn-fav.active svg path {
  fill: #e11d48;
  stroke: #e11d48;
}

.product-content {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  display: none !important;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-900);
  line-height: 1.4;
  margin-bottom: var(--space-12);
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title a:hover {
  color: var(--accent-base);
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-top: 6px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  margin: 0;
}

.current-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-destructive); /* HyperOne Red Price */
}

.current-price small {
  font-size: 12px;
  font-weight: 600;
}

.regular-price {
  font-size: 13px;
  color: var(--grey-400);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-add-cart span {
  display: none !important;
}

/* --------------------------------------------------------------------------
   7. SECONDARY BANNERS
   -------------------------------------------------------------------------- */
.secondary-banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.offer-card-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}

.offer-card-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. FOOTER (HyperOne Structure)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-48);
}

.footer-main-content {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-16);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-links a {
  font-size: 13px;
  color: var(--grey-600);
}

.footer-links a:hover {
  color: var(--accent-base);
}

.footer-desc {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: var(--space-12);
}

.payment-badges-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pay-badge {
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--grey-50);
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-700);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding: var(--space-16) 0;
  font-size: 13px;
  color: var(--grey-500);
  text-align: center;
}

/* --------------------------------------------------------------------------
   9. OVERLAYS (Cart Drawer & Mobile Menu)
   -------------------------------------------------------------------------- */
.bahr-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 1050;
  box-shadow: var(--shadow-overlay);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), visibility 180ms;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.bahr-cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.bahr-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease-out, visibility 140ms ease-out;
}

.bahr-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-900);
  margin: 0;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--grey-500);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background-color: var(--grey-100);
  color: var(--grey-900);
}

.bahr-drawer-cart-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

/* Drawer Header Title Wrap */
.drawer-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-base);
}

.drawer-header-title-wrap svg {
  color: var(--accent-base);
}

/* Free Shipping Motivator in Drawer */
.bahr-drawer-shipping-bar {
  background: var(--grey-100);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.bahr-drawer-shipping-bar.is-free {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}

.shipping-bar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--grey-800);
  margin-bottom: 8px;
}

.bahr-drawer-shipping-bar.is-free .shipping-bar-header {
  color: #166534;
}

.shipping-bar-progress {
  width: 100%;
  height: 6px;
  background: var(--grey-200);
  border-radius: 9999px;
  overflow: hidden;
}

.shipping-bar-fill {
  height: 100%;
  background: var(--accent-base);
  border-radius: 9999px;
  transition: width 300ms ease-out;
}

.bahr-drawer-shipping-bar.is-free .shipping-bar-fill {
  background: #16a34a;
}

/* Drawer Item Rows & Steppers */
.bahr-cart-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.bahr-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 140ms ease-out;
  background: #ffffff;
}

.bahr-cart-item:hover {
  background-color: var(--grey-50);
}

.bahr-cart-item-thumb {
  width: 62px;
  height: 62px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bahr-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bahr-cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bahr-cart-item-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.bahr-cart-item-title a {
  color: var(--grey-900);
  text-decoration: none;
}

.bahr-cart-item-title a:hover {
  color: var(--accent-base);
}

.bahr-cart-item-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bahr-cart-item-price-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bahr-cart-item-subtotal-val {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-destructive);
}

.bahr-cart-item-unit-val {
  color: var(--grey-500);
  font-size: 11px;
}

.bahr-cart-item-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bahr-drawer-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--grey-100);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 6px;
}

.bahr-drawer-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-700);
  padding: 0;
  transition: var(--transition);
}

.bahr-drawer-qty-btn:hover {
  background: var(--accent-base);
  border-color: var(--accent-base);
  color: #ffffff;
}

.bahr-drawer-qty-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-900);
  min-width: 16px;
  text-align: center;
}

.bahr-item-trash-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.bahr-item-trash-btn:hover {
  background: var(--color-destructive-bg);
  color: var(--color-destructive);
}

/* Footer Pinned At The Bottom / End */
.bahr-drawer-cart-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.bahr-drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: var(--space-8);
}

.bahr-drawer-subtotal .subtotal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-700);
}

.bahr-drawer-subtotal .subtotal-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-destructive);
}

.bahr-drawer-tax-note {
  font-size: 11px;
  color: var(--grey-500);
  margin-bottom: 14px;
  text-align: center;
}

.bahr-drawer-shipping-bar {
  display: none !important;
}

.bahr-btn-drawer-viewcart {
  height: 46px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-base);
  color: #ffffff !important;
  text-decoration: none;
  transition: var(--transition);
}

.bahr-btn-drawer-viewcart:hover {
  background-color: var(--accent-hover);
  color: #ffffff !important;
}

.bahr-btn-drawer-checkout {
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--grey-100);
  color: var(--grey-800) !important;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
}

.bahr-btn-drawer-checkout:hover {
  background-color: var(--grey-200);
  color: var(--grey-900) !important;
}

.bahr-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.bahr-drawer-cart-content .bahr-empty-cart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bahr-empty-cart {
  text-align: center;
  padding: var(--space-48) var(--space-20);
  color: var(--grey-500);
}

.bahr-empty-cart-icon {
  color: var(--grey-300);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bahr-empty-cart h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: var(--space-8);
}

/* Mobile Bottom Navigation Bar */
.bahr-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 990;
  align-items: center;
  justify-content: space-around;
}

.bahr-mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--grey-600);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bahr-mob-nav-item.active, .bahr-mob-nav-item:hover {
  color: var(--accent-base);
}

.bahr-icon-relative {
  position: relative;
  display: inline-flex;
}

.bahr-mob-count {
  position: absolute;
  top: -4px;
  left: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid #ffffff !important;
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  color: #0f172a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 140ms ease;
}

.mobile-menu-btn:hover {
  opacity: 0.8;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1200;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 180ms ease-out, visibility 180ms ease-out;
  visibility: hidden;
  pointer-events: none;
  box-shadow: -8px 0 25px rgba(15, 23, 42, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.drawer-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  transition: color 120ms ease;
}

.drawer-close-btn:hover {
  color: #0f172a;
}

.drawer-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.bahr-drawer-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background-color: #f8fafc;
  text-decoration: none;
  transition: all 140ms ease;
}

.drawer-cat-item:hover {
  background-color: #ffffff;
  border-color: var(--accent-base);
  box-shadow: 0 3px 10px rgba(29, 76, 161, 0.08);
  transform: translateX(-3px);
}

.drawer-cat-thumb {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-cat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.drawer-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.drawer-cat-count {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.drawer-cat-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 140ms ease, color 140ms ease;
}

.drawer-cat-item:hover .drawer-cat-arrow {
  color: var(--accent-base);
  transform: translateX(-2px);
}

.drawer-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 16px 0;
}

.drawer-menu-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
}

.mobile-nav-list a {
  display: block;
  padding: var(--space-8) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-800);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list .deal-link {
  color: var(--color-destructive) !important;
}

/* Toast */
.bahr-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.bahr-toast {
  background-color: var(--grey-900);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-overlay);
  border-right: 3px solid var(--accent-base);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side-banners {
    display: none;
  }
  .hero-main-banner {
    height: 260px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 58px;
  }
  .header-categories-wrap,
  .header-categories-btn,
  .bahr-categories-dropdown-menu {
    display: none !important;
  }
  .header-main-bg {
    padding: 8px 0 10px;
    border-bottom: 1px solid #e2e8f0;
  }
  .header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    row-gap: 8px;
  }
  /* Row 1 - Branding & Toggle (Right) */
  .header-brand-group {
    order: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  .mobile-menu-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    transition: color 150ms ease;
  }
  .mobile-menu-btn:hover {
    color: var(--accent-base);
  }
  .mobile-menu-btn:active {
    transform: scale(0.92);
  }
  .site-branding {
    display: flex;
    align-items: center;
  }
  .site-branding .site-logo img,
  .site-branding .bahr-main-logo,
  .site-branding .custom-logo {
    height: 30px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
    display: block;
  }
  /* Row 1 - Action Icons (Left) */
  .header-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
  }
  /* On mobile: Hide account & wishlist & header currency from top header (account & wishlist in bottom bar, currency in drawer) */
  .bahr-account-dropdown-wrap,
  .wishlist-link,
  .bahr-header-currency {
    display: none !important;
  }
  .delivery-location, .user-greeting, .cart-text, .dropdown-chevron {
    display: none !important;
  }
  /* Action buttons on mobile: pure transparent icons, NO square backgrounds */
  .action-link {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
  }
  .action-link:hover {
    background: transparent !important;
    color: var(--accent-base) !important;
  }
  .action-link:active {
    transform: scale(0.92);
  }
  .action-link.cart-link {
    background: transparent !important;
    color: #1e293b !important;
    border: none !important;
    box-shadow: none !important;
  }
  .action-link.cart-link:hover {
    background: transparent !important;
    color: var(--accent-base) !important;
  }
  .action-link .cart-count-badge {
    top: -4px;
    right: -7px;
    left: auto;
    background-color: var(--color-destructive, #e22319) !important;
    color: #ffffff !important;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    line-height: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  /* Row 2 - STANDALONE FULL WIDTH SEARCH ROW */
  .header-search {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    clear: both !important;
    display: block !important;
  }
  .search-input-wrap {
    height: 40px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    transition: all 150ms ease;
  }
  .search-input-wrap:focus-within {
    background-color: #ffffff;
    border-color: var(--accent-base);
    box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.1);
  }
  .search-input {
    font-size: 13px;
    padding: 0 38px 0 38px !important;
    height: 100%;
  }
  .search-hint-icon {
    right: 12px;
  }
  .search-clear-btn {
    left: 10px !important;
  }
  .search-spinner {
    left: 12px !important;
  }
  .search-submit-btn,
  .search-btn-label {
    display: none !important;
  }
  /* Notifications Dropdown on Mobile - Full-width clean card */
  .bahr-notifications-dropdown-menu {
    position: fixed !important;
    top: 56px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25) !important;
    z-index: 1200 !important;
  }
  .bahr-notifications-dropdown-menu::before {
    display: none;
  }
  .bahr-ajax-search-dropdown {
    top: calc(100% + 4px);
    border-radius: 10px;
    max-height: 55vh;
  }
  .header-nav-bg {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  .secondary-banners-grid {
    grid-template-columns: 1fr;
  }
  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }
  .bahr-mobile-bottom-bar {
    display: flex;
  }
}

@media (max-width: 360px) {
  .container,
  .bahr-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .site-branding .site-logo img,
  .site-branding .bahr-main-logo,
  .site-branding .custom-logo {
    max-width: 105px;
    height: 26px;
  }
  .mobile-menu-btn,
  .action-link {
    width: 34px;
    height: 34px;
  }
  .search-input {
    font-size: 12px;
  }
}

/* -------------------------------------------------------------------------
   MANDATORY BILLING DETAILS PROFILE MODAL (النافذة الإجبارية لاستكمال البيانات)
------------------------------------------------------------------------- */
@keyframes bahrModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bahrModalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bahr-mandatory-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: bahrModalFadeIn 220ms ease;
  direction: rtl;
  box-sizing: border-box;
}

.bahr-mandatory-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 410px;
  width: 100%;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25);
  padding: 22px 24px;
  position: relative;
  animation: bahrModalScaleUp 240ms cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  box-sizing: border-box;
}

.bahr-modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
}

.bahr-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bahr-modal-header {
  margin-bottom: 16px;
}

.bahr-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.bahr-modal-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.bahr-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

.bahr-modal-alert.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bahr-modal-alert.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.bahr-modal-field {
  margin-bottom: 12px;
}

.bahr-modal-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.bahr-modal-field label .bahr-req {
  color: #ef4444;
}

.bahr-modal-field label .bahr-opt {
  color: #94a3b8;
  font-size: 11px;
  font-weight: normal;
}

.bahr-modal-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: all 140ms ease;
  box-sizing: border-box;
}

.bahr-modal-field input:focus {
  background: #ffffff;
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.bahr-modal-field input[dir="ltr"] {
  text-align: right;
}

.bahr-modal-actions {
  margin-top: 18px;
}

.bahr-modal-save-btn {
  width: 100%;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
}

.bahr-modal-save-btn:hover {
  background: #1d4ed8;
}

.bahr-modal-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   DEDICATED NOTIFICATIONS PAGE (صفحة الإشعارات والتنبيهات)
------------------------------------------------------------------------- */
.bahr-notifications-page {
  padding: 24px 0 50px;
  background-color: #f8fafc;
  min-height: 70vh;
}

.bahr-notifs-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.notifs-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notifs-page-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.notifs-page-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.bahr-page-mark-read-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
}

.bahr-page-mark-read-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Filter Pills Bar */
.bahr-notifs-filter-bar {
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.notif-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
  font-family: inherit;
}

.notif-filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.notif-filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.notif-filter-pill .pill-count {
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1;
}

.notif-filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.notif-filter-pill .pill-count-unread {
  background: #ef4444;
  color: #ffffff;
}

/* Notifications Cards Grid */
.bahr-notifs-page-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bahr-notif-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
  transition: all 140ms ease;
  position: relative;
}

.bahr-notif-card:hover {
  border-color: #cbd5e1;
}

.bahr-notif-card.unread {
  border-right: 3px solid #ef4444;
  background: #fffafa;
}

.notif-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-card-icon.welcome {
  background: #ede9fe;
  color: #7c3aed;
}

.notif-card-icon.profile {
  background: #fff7ed;
  color: #ea580c;
}

.notif-card-icon.delivery {
  background: #ecfeff;
  color: #0891b2;
}

.notif-card-icon.promo {
  background: #fdf2f8;
  color: #db2777;
}

.card-content-col {
  flex: 1 1 auto;
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-time {
  font-size: 11.5px;
  color: #94a3b8;
}

.card-unread-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: #ef4444;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.card-body-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-footer-actions .btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

/* Empty State */
.bahr-notifs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 60px 24px;
}

.notifs-empty-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bahr-notifs-empty-state h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.bahr-notifs-empty-state p {
  font-size: 14px;
  color: #64748b;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .bahr-notifs-page-header {
    padding: 18px 20px;
  }
  .notifs-title-wrap {
    gap: 12px;
  }
  .notifs-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .notifs-page-title {
    font-size: 17px;
  }
  .bahr-notif-card {
    padding: 16px;
    gap: 14px;
  }
  .notif-card-icon {
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
   BAHR STORE - HIGH-CONVERTING 404 PAGE (تصميم صفحة الخطأ 404 الحديث)
   -------------------------------------------------------------------------- */
.bahr-404-page {
  padding-top: 28px;
  padding-bottom: 60px;
  background-color: #f8fafc;
}

.bahr-404-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.bahr-404-card {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 48px 36px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.bahr-404-visual-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.bahr-404-number-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.bahr-404-num {
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-base, #1d4ca1);
  letter-spacing: -2px;
  text-shadow: 0 4px 18px rgba(29, 76, 161, 0.15);
}

.bahr-404-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--accent-base, #1d4ca1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(29, 76, 161, 0.16);
  border: 2px solid #ffffff;
  animation: bahr-pulse-slow 3s infinite ease-in-out;
}

@keyframes bahr-pulse-slow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.bahr-404-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.35;
}

.bahr-404-subtext {
  font-size: 15px;
  color: #64748b;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 30px;
}

/* 404 Search Form */
.bahr-404-search-box {
  max-width: 540px;
  margin: 0 auto 28px;
}

.bahr-404-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.bahr-404-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.bahr-404-search-icon {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.bahr-404-search-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  padding: 0 44px 0 16px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  color: #1e293b;
  transition: all 180ms ease;
  outline: none;
}

.bahr-404-search-input:focus {
  background: #ffffff;
  border-color: var(--accent-base, #1d4ca1);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.12);
}

.bahr-404-submit-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background-color: var(--accent-base, #1d4ca1);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
}

.bahr-404-submit-btn:hover {
  background-color: var(--accent-hover, #163a7d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.25);
}

/* 404 CTA Actions */
.bahr-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bahr-404-btn {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 180ms ease;
}

.bahr-404-btn-primary {
  background-color: var(--accent-base, #1d4ca1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 76, 161, 0.2);
}

.bahr-404-btn-primary:hover {
  background-color: var(--accent-hover, #163a7d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 76, 161, 0.28);
  color: #ffffff;
}

.bahr-404-btn-outline {
  background-color: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.bahr-404-btn-outline:hover {
  background-color: #f8fafc;
  border-color: var(--accent-base, #1d4ca1);
  color: var(--accent-base, #1d4ca1);
  transform: translateY(-1px);
}

/* Quick Categories Pills */
.bahr-404-quick-cats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.bahr-404-cats-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.bahr-404-cats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bahr-404-cat-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease;
}

.bahr-404-cat-pill:hover {
  background-color: #e2e8f0;
  color: var(--accent-base, #1d4ca1);
  transform: translateY(-1px);
}

/* 404 Recommended Products Section */
.bahr-404-recommended-section {
  margin-top: 44px;
  margin-bottom: 40px;
}

.bahr-404-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.bahr-404-header-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bahr-404-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.bahr-404-section-badge {
  background-color: #fee2e2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.bahr-404-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-base, #1d4ca1);
  text-decoration: none;
  transition: color 150ms ease;
}

.bahr-404-more-link:hover {
  color: var(--accent-hover, #163a7d);
  text-decoration: underline;
}

.bahr-404-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Support Strip */
.bahr-404-support-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.bahr-404-support-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bahr-404-support-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #f1f5f9;
  color: var(--accent-base, #1d4ca1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.bahr-404-support-item:hover .bahr-404-support-icon {
  background-color: var(--accent-base, #1d4ca1);
  color: #ffffff;
  transform: scale(1.05);
}

.bahr-404-support-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bahr-404-support-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.bahr-404-support-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Responsive 404 */
@media (max-width: 991px) {
  .bahr-404-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bahr-404-support-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .bahr-404-card {
    padding: 32px 18px 28px;
    border-radius: 18px;
  }
  .bahr-404-num {
    font-size: 64px;
  }
  .bahr-404-icon-circle {
    width: 64px;
    height: 64px;
  }
  .bahr-404-icon-circle svg {
    width: 32px;
    height: 32px;
  }
  .bahr-404-heading {
    font-size: 19px;
  }
  .bahr-404-subtext {
    font-size: 13.5px;
    margin-bottom: 22px;
  }
  .bahr-404-search-form {
    flex-direction: column;
    gap: 8px;
  }
  .bahr-404-input-wrapper {
    width: 100%;
  }
  .bahr-404-submit-btn {
    width: 100%;
    height: 44px;
  }
  .bahr-404-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .bahr-404-btn {
    width: 100%;
  }
  .bahr-404-quick-cats {
    flex-direction: column;
  }
  .bahr-404-cats-pills {
    justify-content: center;
  }
  .bahr-404-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


