/* ==========================================================================
   BAHR STORE - WOOCOMMERCE STYLESHEET
   HyperOne Inspired Architecture: Single Product, Modern Cart & My Account
   Strictly compliant with DESIGN_RULES.md and inc/اوامر.ini
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. BREADCRUMBS & NOTICES
   -------------------------------------------------------------------------- */
.bahr-wc-breadcrumb-wrap,
.bahr-breadcrumb,
.woocommerce-breadcrumb {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}


.bahr-breadcrumb {
  font-size: 13px;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bahr-breadcrumb a {
  color: var(--grey-700);
  text-decoration: none;
  transition: var(--transition);
}

.bahr-breadcrumb a:hover {
  color: var(--accent-base);
}

.bahr-bc-sep {
  color: var(--border-color);
  font-size: 11px;
}

.bahr-bc-item.current {
  color: var(--grey-900);
  font-weight: 600;
}

/* Modern WooCommerce Notices (Rich, Clean, Elevated) */
.woocommerce-notices-wrapper {
  width: 100%;
  margin: 0 0 20px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
  margin: 0 0 14px 0 !important;
  list-style: none !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
}

/* Remove ugly default WC pseudo icons and borders */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
  display: none !important;
  content: none !important;
}

/* 1. Success Message (Green) */
.woocommerce-message {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
  border-right: 4px solid #16a34a !important;
}

/* 2. Info Message (Blue) */
.woocommerce-info {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
  border-right: 4px solid #2563eb !important;
}

/* 3. Error Message (Red) */
.woocommerce-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
  border-right: 4px solid #dc2626 !important;
}

.woocommerce-error li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Action button inside notice (e.g., 'عرض السلة' / 'View Cart') */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  background: #194ba5 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(25, 75, 165, 0.25) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  margin-right: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background: #143e8a !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(25, 75, 165, 0.35) !important;
}

/* --------------------------------------------------------------------------
   1. SINGLE PRODUCT PAGE (HyperOne Inspired Architecture)
   -------------------------------------------------------------------------- */
.single-product div.product,
.single-product .bahr-single-product-container {
  display: block !important;
  width: 100% !important;
  margin-bottom: 56px !important;
  position: static !important;
}

.single-product div.product::before,
.single-product div.product::after,
.single-product .bahr-single-product-container::before,
.single-product .bahr-single-product-container::after {
  display: none !important;
}

.single-product .woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 20px;
}

.single-product .bahr-single-product-top {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
  position: static;
  width: 100%;
}


@media (max-width: 991px) {
  .single-product .bahr-single-product-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
  }
}


.single-product .bahr-single-product-bottom {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
  position: static !important;
}

/* Gallery Column (Normal Flow - Strictly NEVER Sticky) */
.single-product .bahr-single-gallery-column,
.single-product div.product div.images,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .bahr-single-gallery-column {
  position: relative !important; /* Offset parent for floating badges ONLY */
  top: auto !important;
  bottom: auto !important;
  z-index: 5;
}

.single-product .woocommerce-product-gallery {
  position: relative !important;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
  max-width: 360px;
  margin: 0 auto !important;
}

.single-product .woocommerce-product-gallery:hover {
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Hide Search / Zoom Magnifier Overlay Trigger on Product Image */
.single-product .woocommerce-product-gallery__trigger,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__trigger {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Fully Disable Zoom Mode & Zoom Lens */
.zoomImg,
.single-product .zoomImg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
  cursor: default !important;
  pointer-events: auto !important;
}

.single-product .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.single-product .woocommerce-product-gallery img {
  width: auto;
  height: auto;
  max-height: 280px;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}


/* Floating Sale Badge */
.single-product .badge-discount,
.single-product span.onsale {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  z-index: 15 !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
  letter-spacing: 0.3px;
  min-height: auto !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Floating Wishlist Button on Gallery */
.bahr-single-gallery-wishlist {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bahr-single-gallery-wishlist:hover {
  color: var(--color-destructive);
  border-color: #fecaca;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.15);
}

.bahr-single-gallery-wishlist.active {
  color: #e11d48 !important;
  background: #ffffff !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2) !important;
}

.bahr-single-gallery-wishlist.active svg,
.bahr-single-gallery-wishlist.active svg path {
  fill: #e11d48 !important;
  stroke: #e11d48 !important;
}

/* Gallery Thumbnails Strip */
.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 12px !important;
  list-style: none !important;
  margin: 22px 0 0 !important;
  padding: 4px 2px !important;
  overflow-x: auto !important;
  width: 100% !important;
  scrollbar-width: thin;
}

.single-product .flex-control-thumbs li {
  width: 76px !important;
  height: 76px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  background-color: #ffffff !important;
  padding: 4px !important;
}

.single-product .flex-control-thumbs li:hover,
.single-product .flex-control-thumbs li img.flex-active {
  border-color: var(--accent-base) !important;
  box-shadow: 0 2px 10px rgba(29, 76, 161, 0.18) !important;
  transform: translateY(-2px);
}

.single-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px;
}

/* Summary Column */
.single-product div.product div.summary,
.single-product .summary.entry-summary,
.single-product .bahr-single-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}


/* Category Pill & SKU Top Bar */
.bahr-single-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.bahr-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--accent-subtle);
  color: var(--accent-base);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.bahr-cat-pill:hover {
  background: var(--accent-base);
  color: #ffffff;
}

.bahr-sku-chip {
  font-size: 12px;
  color: var(--grey-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grey-100);
  padding: 3px 8px;
  border-radius: 6px;
}

.bahr-sku-chip strong {
  color: var(--grey-800);
  font-weight: 700;
}

/* Product Title */
.single-product .product_title {
  font-size: 22px;
  font-weight: 800;
  color: var(--grey-900);
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

/* Ratings & Reviews */
.single-product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--grey-600);
  margin-bottom: 10px;
}


.single-product .star-rating {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.single-product .woocommerce-review-link {
  color: var(--grey-600);
  text-decoration: none;
  font-weight: 500;
}

.single-product .woocommerce-review-link:hover {
  color: var(--accent-base);
  text-decoration: underline;
}

/* Live Stock Status Row */
.bahr-stock-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.bahr-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.bahr-stock-pill.in-stock {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.05);
}

.bahr-stock-pill.in-stock .bahr-stock-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bahr-stock-pill.in-stock .stock-main-text {
  font-weight: 800;
  color: #14532d;
}

.bahr-stock-pill.in-stock .stock-bullet {
  color: #86efac;
  font-size: 12px;
}

.bahr-stock-pill.in-stock .stock-sub-text {
  font-weight: 600;
  color: #16a34a;
  font-size: 12px;
}

.bahr-stock-pill.out-of-stock {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bahr-stock-pill.out-of-stock .bahr-stock-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bahr-stock-pill.out-of-stock .stock-main-text {
  font-weight: 800;
  color: #7f1d1d;
}

.bahr-stock-pill.out-of-stock .stock-bullet {
  color: #fca5a5;
  font-size: 12px;
}

.bahr-stock-pill.out-of-stock .stock-sub-text {
  font-weight: 600;
  color: #b91c1c;
  font-size: 12px;
}

/* Highlighted Price Card - Compact & Clean */
.bahr-single-price-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.single-product div.product p.price,
.single-product div.product span.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-base);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.2;
}

.single-product div.product p.price del,
.single-product div.product span.price del {
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-400);
  text-decoration: line-through;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins {
  text-decoration: none;
  color: var(--accent-base);
}

.bahr-price-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.bahr-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.bahr-vat-note {
  font-size: 11.5px;
  color: var(--grey-500);
  font-weight: 500;
}

/* Short Description */
.single-product .woocommerce-product-details__short-description {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--grey-700);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.single-product .woocommerce-product-details__short-description p {
  margin-bottom: 8px;
}

/* Variations */
.single-product table.variations {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.single-product table.variations tr {
  border-bottom: 1px dashed var(--border-color);
}

.single-product table.variations tr:last-child {
  border-bottom: none;
}

.single-product table.variations th.label {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-800);
  width: 90px;
  text-align: right;
  vertical-align: middle;
}

.single-product table.variations td.value {
  padding: 14px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.single-product table.variations select {
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-800);
  min-width: 220px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.single-product table.variations select:focus {
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.12);
}

.single-product a.reset_variations {
  font-size: 12px;
  color: var(--grey-500);
  text-decoration: underline;
  margin-right: 8px;
}

.single-product a.reset_variations:hover {
  color: var(--color-destructive);
}

.single-product .single_variation_wrap {
  margin-top: 10px;
}

.single-product .woocommerce-variation.single_variation {
  margin-bottom: 16px;
  padding: 14px 18px;
  background-color: var(--grey-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.single-product .woocommerce-variation-price .price {
  font-size: 24px !important;
  margin-bottom: 0 !important;
}

/* Product Short Description */
.single-product .woocommerce-product-details__short-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--grey-600);
  margin: 4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

/* Add to Cart Action Row */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  width: 100%;
}

/* Modern Quantity Stepper (Compact & Clean) */
.single-product .quantity,
.bahr-quantity-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  height: 44px !important;
  width: 118px;
  min-width: 110px;
  flex-shrink: 0;
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.single-product .quantity:focus-within,
.bahr-quantity-wrap:focus-within {
  border-color: var(--accent-base) !important;
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.12) !important;
}

.single-product .quantity .qty-btn,
.bahr-quantity-wrap .qty-btn {
  width: 34px !important;
  height: 36px !important;
  border: none !important;
  border-radius: 6px !important;
  background-color: #f3f4f6 !important;
  color: var(--grey-800) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  transition: all 0.15s ease !important;
  user-select: none;
  -webkit-user-select: none;
}

.single-product .quantity .qty-btn:hover,
.bahr-quantity-wrap .qty-btn:hover {
  background-color: var(--accent-subtle) !important;
  color: var(--accent-base) !important;
}

.single-product .quantity .qty-btn:active,
.bahr-quantity-wrap .qty-btn:active {
  background-color: #e2e8f0 !important;
  transform: scale(0.94);
}

.single-product .quantity input.qty,
.bahr-quantity-wrap input.qty {
  width: 40px !important;
  height: 36px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: var(--grey-900) !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield;
  box-shadow: none !important;
}

.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button,
.bahr-quantity-wrap input.qty::-webkit-outer-spin-button,
.bahr-quantity-wrap input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Primary Add to Cart Button (Compact & Strong) */
.single-product .single_add_to_cart_button {
  background-color: var(--accent-base) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  height: 44px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  border: 1px solid var(--accent-base) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1;
  min-width: 180px;
  box-shadow: 0 3px 10px rgba(29, 76, 161, 0.22) !important;
  position: relative;
  letter-spacing: -0.2px;
}

.single-product .single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.single-product .single_add_to_cart_button:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(29, 76, 161, 0.3) !important;
}

.single-product .single_add_to_cart_button:hover::before {
  transform: scale(1.12);
}

.single-product .single_add_to_cart_button:active {
  transform: translateY(0);
}

.single-product .single_add_to_cart_button.loading {
  opacity: 0.8;
  cursor: wait;
}

/* HyperOne Style Trust Box - Compact */
.single-product-trust-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.trust-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trust-box-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-box-item .trust-box-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--accent-subtle);
  color: var(--accent-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-box-text strong {
  font-size: 12.5px;
  color: var(--grey-900);
  display: block;
  line-height: 1.3;
}

.trust-box-text p {
  font-size: 11.5px;
  color: var(--grey-600);
  margin: 3px 0 0;
  line-height: 1.5;
}

.bahr-single-payments-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.bahr-single-payments-strip .payments-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-600);
  display: block;
  margin-bottom: 8px;
}

.bahr-single-payments-strip .payments-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--grey-700);
}

/* Product Meta */
.single-product .product_meta {
  font-size: 13px;
  color: var(--grey-600);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.single-product .product_meta span {
  font-weight: 600;
  color: var(--grey-800);
}

.single-product .product_meta a {
  color: var(--accent-base);
  text-decoration: none;
  transition: var(--transition);
}

.single-product .product_meta a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Tabs Section (Modern HyperOne Aesthetic - Zero Ugly Folder Tabs)
   -------------------------------------------------------------------------- */
.single-product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 30px 32px !important;
  margin-top: 24px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02) !important;
}

.single-product .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  list-style: none !important;
  border: none !important;
  border-bottom: 2px solid #f1f5f9 !important;
  margin: 0 0 26px 0 !important;
  padding: 0 0 14px 0 !important;
  background: transparent !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar,
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
  display: none !important;
}

/* WIPE OUT WooCommerce default ugly folder tabs styling */
.single-product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: static !important;
  display: inline-flex !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Modern Pill Tab Buttons */
.single-product .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-decoration: none !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--accent-base) !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Active Tab: Royal Blue Solid Pill */
.single-product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #ffffff !important;
  background-color: var(--accent-base) !important;
  border-color: var(--accent-base) !important;
  box-shadow: 0 4px 14px rgba(29, 76, 161, 0.25) !important;
  font-weight: 800 !important;
  transform: translateY(-1px);
}


.single-product .woocommerce-Tabs-panel {
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-700);
}

.single-product .woocommerce-Tabs-panel h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 18px;
}

/* Specifications Table */
.single-product table.shop_attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 16px;
}

.single-product table.shop_attributes th,
.single-product table.shop_attributes td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
}

.single-product table.shop_attributes th {
  font-weight: 700;
  color: var(--grey-800);
  background-color: var(--grey-50);
  width: 220px;
}

.single-product table.shop_attributes td {
  color: var(--grey-700);
}

.single-product table.shop_attributes tr:last-child th,
.single-product table.shop_attributes tr:last-child td {
  border-bottom: none;
}

.single-product table.shop_attributes tr:nth-child(even) td {
  background-color: #fafafa;
}

/* --------------------------------------------------------------------------
   Modern Reviews Architecture (HyperOne Standard)
   -------------------------------------------------------------------------- */
.bahr-modern-reviews {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Summary Card */
.bahr-reviews-summary-card {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

@media (max-width: 900px) {
  .bahr-reviews-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
}

.summary-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .summary-score-col {
    padding-left: 0;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
  }
}

.score-number {
  font-size: 46px;
  font-weight: 900;
  color: var(--grey-900);
  line-height: 1;
  margin-bottom: 8px;
}

.score-stars {
  font-size: 22px;
  color: #d1d5db;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.score-stars .star.active {
  color: #f59e0b;
}

.score-count {
  font-size: 13px;
  color: var(--grey-600);
}

/* Breakdown Progress Bars */
.summary-breakdown-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.breakdown-row .star-label {
  width: 60px;
  color: var(--grey-700);
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}

.breakdown-row .bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--grey-100);
  border-radius: 9999px;
  overflow: hidden;
}

.breakdown-row .bar-fill {
  height: 100%;
  background-color: #f59e0b;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.breakdown-row .bar-percent {
  width: 36px;
  color: var(--grey-500);
  font-size: 11.5px;
  text-align: left;
}

.summary-action-col {
  display: flex;
  justify-content: center;
}

.bahr-btn-write-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background-color: var(--accent-base);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.2);
  transition: all 0.2s ease;
}

.bahr-btn-write-review:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 76, 161, 0.3);
}

/* Comments List */
.bahr-comments-list-wrap {
  margin-top: 10px;
}

.bahr-reviews-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-count-pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-500);
}

.bahr-commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bahr-commentlist li.review {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
}

.bahr-commentlist li.review:hover {
  border-color: var(--accent-base);
}

.bahr-commentlist .comment_container {
  display: flex;
  gap: 16px;
}

.bahr-commentlist img.avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bahr-commentlist .comment-text {
  flex: 1;
}

.bahr-commentlist .star-rating {
  float: left;
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 6px;
}

.bahr-commentlist .meta {
  font-size: 13.5px;
  color: var(--grey-600);
  margin-bottom: 10px;
}

.bahr-commentlist .meta strong {
  color: var(--grey-900);
  font-weight: 700;
  font-size: 14.5px;
}

.bahr-commentlist .meta time {
  color: var(--grey-500);
  font-size: 12px;
  margin-right: 8px;
}

.bahr-commentlist .description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-800);
  margin-top: 6px;
}

/* Empty Reviews State */
.bahr-empty-reviews-card {
  text-align: center;
  padding: 40px 24px;
  background-color: var(--grey-50);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.empty-reviews-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: var(--accent-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.bahr-empty-reviews-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 6px;
}

.bahr-empty-reviews-card p {
  font-size: 13px;
  color: var(--grey-600);
  margin: 0;
  max-width: 420px;
  margin-inline: auto;
}

/* Review Form */
.bahr-review-form-wrapper {
  background-color: var(--grey-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 10px;
}

.comment-reply-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.comment-form .form-group {
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 8px;
}

/* Star Rating Picker */
.bahr-star-rating-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.star-choice {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
  line-height: 1;
}

.star-choice:hover {
  transform: scale(1.15);
}

.star-choice.hovered,
.star-choice.selected,
.star-choice.active {
  color: #f59e0b;
}

.star-picker-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-base);
  margin-right: 12px;
}

.comment-form input.form-control,
.comment-form textarea.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  color: var(--grey-900);
  outline: none;
  transition: var(--transition);
}

.comment-form input.form-control:focus,
.comment-form textarea.form-control:focus {
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.12);
}

.bahr-btn-submit-review {
  background-color: var(--accent-base);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  height: 46px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.25);
}

.bahr-btn-submit-review:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 76, 161, 0.35);
}

/* --------------------------------------------------------------------------
   Related Products Section (Always Populated & Robust)
   -------------------------------------------------------------------------- */
.bahr-related-products-section {
  grid-column: 1 / -1;
  margin-top: 52px;
  width: 100%;
  clear: both;
}

.bahr-related-header {
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.bahr-related-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-base);
  border-radius: 2px;
}

.bahr-related-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 6px;
}

.bahr-related-subtitle {
  font-size: 14px;
  color: var(--grey-600);
  margin: 0;
}

.bahr-related-grid,
.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.bahr-related-grid .product-card,
.single-product .related.products .product-card {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.bahr-related-grid .product-image,
.single-product .related.products .product-image {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}

.bahr-related-grid .product-image img,
.single-product .related.products .product-image img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 1200px) {
  .bahr-related-grid,
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .bahr-related-grid .product-image img,
  .single-product .related.products .product-image img {
    height: 200px !important;
  }
}

@media (max-width: 860px) {
  .bahr-related-grid,
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .bahr-related-grid .product-image img,
  .single-product .related.products .product-image img {
    height: 180px !important;
  }
}

@media (max-width: 480px) {
  .bahr-related-grid,
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .bahr-related-grid .product-image img,
  .single-product .related.products .product-image img {
    height: 155px !important;
  }
  .bahr-related-grid .product-title,
  .single-product .related.products .product-title {
    font-size: 13.5px !important;
    min-height: 36px !important;
  }
  .bahr-related-grid .product-price-box .woocommerce-Price-amount {
    font-size: 14.5px !important;
  }
}

/* --------------------------------------------------------------------------
   2. MODERN CARD-BASED CART PAGE (HyperOne Inspired Architecture - No Legacy Table)
   -------------------------------------------------------------------------- */
body.woocommerce-cart {
  background-color: #ffffff !important;
}

/* Remove top gap on Cart page completely */
body.woocommerce-cart .bahr-main-content {
  padding-top: 8px !important;
}

body.woocommerce-cart .bahr-article-box,
body.woocommerce-cart .bahr-entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .bahr-cart-page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background-color: #ffffff !important;
}

/* Hide cart page headings completely */
body.woocommerce-cart .bahr-cart-title-row,
body.woocommerce-cart .bahr-cart-main-heading,
body.woocommerce-cart .bahr-cart-header-title,
body.woocommerce-cart .bahr-article-header,
body.woocommerce-cart .bahr-article-title,
body.woocommerce-cart h1.bahr-article-title {
  display: none !important;
}

.woocommerce-cart .woocommerce,
.wp-block-woocommerce-cart {
  margin-bottom: 50px;
}

.bahr-cart-page-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* 2-Column Desktop Grid for Cart Page (Laptops & Desktops >= 769px) */
/* 2-Column Desktop Grid for Cart Page (Parallel Side-by-Side >= 768px) */
@media (min-width: 768px) {
  .bahr-cart-page-wrapper,
  .woocommerce-cart .bahr-cart-page-wrapper,
  .woocommerce .bahr-cart-page-wrapper,
  .wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    grid-template-rows: auto 1fr !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bahr-cart-page-wrapper .bahr-cart-header-title,
  .woocommerce-cart .bahr-cart-header-title {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  .bahr-cart-page-wrapper .bahr-cart-card-form,
  .bahr-cart-page-wrapper .woocommerce-cart-form,
  .woocommerce-cart .bahr-cart-card-form,
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce .woocommerce-cart-form,
  .wc-block-cart__main {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-bottom: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
  }

  .bahr-cart-page-wrapper .cart-collaterals,
  .woocommerce-cart .cart-collaterals,
  .woocommerce .cart-collaterals,
  .woocommerce-page .cart-collaterals,
  .wc-block-cart__sidebar {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: sticky !important;
    top: 96px !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    float: none !important;
    clear: none !important;
  }

  .bahr-cart-page-wrapper .cart-collaterals .cart_totals,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce .cart_totals,
  .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
  }
}

.bahr-checkout-steps-bar,
.bahr-cart-shipping-banner {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2.1 CHECKOUT STEPS BREADCRUMB BAR
   -------------------------------------------------------------------------- */
.bahr-checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bahr-checkout-steps-bar .step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-400);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bahr-checkout-steps-bar .step-item .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--grey-100);
  color: var(--grey-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bahr-checkout-steps-bar .step-item.is-active {
  color: var(--accent-base);
  font-weight: 800;
}

.bahr-checkout-steps-bar .step-item.is-active .step-num {
  background: linear-gradient(135deg, var(--accent-base) 0%, #153a7a 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 76, 161, 0.35);
}

.bahr-checkout-steps-bar .step-connector {
  flex: 0 1 60px;
  height: 2px;
  background-color: #e2e8f0;
  border-radius: 9999px;
}

@media (max-width: 600px) {
  .bahr-checkout-steps-bar {
    padding: 12px 14px;
    gap: 8px;
  }

  .bahr-checkout-steps-bar .step-item {
    font-size: 11.5px;
    gap: 6px;
  }

  .bahr-checkout-steps-bar .step-item .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .bahr-checkout-steps-bar .step-connector {
    flex: 0 1 20px;
  }
}

/* --------------------------------------------------------------------------
   2.2 FREE SHIPPING MOTIVATOR BANNER (Gamification)
   -------------------------------------------------------------------------- */
.bahr-cart-shipping-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(3, 105, 161, 0.05);
}

.bahr-cart-shipping-banner.is-free-eligible {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.05);
}

.shipping-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.shipping-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bahr-cart-shipping-banner.is-free-eligible .shipping-banner-icon {
  color: #16a34a;
}

.shipping-banner-info {
  flex: 1;
}

.shipping-status-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 3px;
  line-height: 1.4;
}

.shipping-status-title span {
  color: var(--accent-base);
  font-weight: 800;
}

.bahr-cart-shipping-banner.is-free-eligible .shipping-status-title span {
  color: #16a34a;
}

.shipping-status-sub {
  font-size: 12px;
  color: var(--grey-600);
  margin: 0;
}

.shipping-banner-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.shipping-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.shipping-bar-progress {
  height: 100%;
  background: linear-gradient(90deg, #1d4ca1, #2563eb);
  border-radius: 9999px;
  transition: width 400ms ease-in-out;
}

.bahr-cart-shipping-banner.is-free-eligible .shipping-bar-progress {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.shipping-bar-percentage {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--grey-700);
  min-width: 38px;
  text-align: right;
  direction: rtl;
}

/* --------------------------------------------------------------------------
   2.3 CART HEADER TITLE
   -------------------------------------------------------------------------- */
.bahr-cart-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bahr-cart-header-title .title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-base) 0%, #153a7a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(29, 76, 161, 0.2);
  flex-shrink: 0;
}

.cart-header-icon-badge svg {
  width: 18px;
  height: 18px;
}

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

.cart-sub-count {
  font-size: 11.5px;
  color: var(--grey-500);
  font-weight: 600;
  display: block;
  margin-top: 1px;
}

.cart-header-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-base);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.cart-header-continue-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #153a7a;
}

/* --------------------------------------------------------------------------
   2.4 CARD-BASED CART ITEMS LIST (Compact HyperOne Architecture)
   -------------------------------------------------------------------------- */
.bahr-cart-items-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.bahr-cart-product-card {
  background-color: #ffffff !important;
  border: none !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 14px 10px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  text-align: right !important;
}

/* Right in RTL: Thumbnail */
.bahr-cart-product-card .cart-card-thumb-wrap {
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  position: relative !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.bahr-cart-product-card .cart-card-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  display: block !important;
}

.bahr-cart-product-card .cart-card-discount-tag {
  position: absolute !important;
  bottom: -4px !important;
  left: -4px !important;
  background: #e11d48 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  z-index: 2 !important;
  line-height: 1.4 !important;
}

/* Main Details Column (Title on top, Price + Controls on bottom) */
.bahr-cart-product-card .cart-card-details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  text-align: right !important;
  gap: 6px !important;
}

.bahr-cart-product-card .cart-card-title,
.bahr-cart-product-card .cart-card-title a {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  text-decoration: none !important;
  display: block !important;
  text-align: right !important;
}

.bahr-cart-product-card .cart-card-attributes {
  font-size: 12px !important;
  color: #64748b !important;
}

/* Bottom Action Row: Controls on Left, Price on Right */
.bahr-cart-product-card .cart-card-bottom-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 6px !important;
}

/* Price Column (Right in RTL) */
.bahr-cart-product-card .cart-card-price-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: right !important;
  gap: 2px !important;
}

.bahr-cart-product-card .cart-price-highlight,
.bahr-cart-product-card .cart-price-highlight * {
  background: transparent !important;
  color: #e22319 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.bahr-cart-product-card .cart-price-unit,
.bahr-cart-product-card .cart-price-unit * {
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  display: inline-block !important;
}

.bahr-cart-product-card .cart-price-regular,
.bahr-cart-product-card .cart-price-regular * {
  background: transparent !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
  display: inline-block !important;
}

/* Controls Column (Left in RTL: Stepper on right, Trash on far left) */
.bahr-cart-product-card .cart-card-controls-col {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* Stepper Pill (+ on left, quantity in center, - on right) */
.bahr-cart-product-card .bahr-cart-stepper-pill {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  height: 36px !important;
  width: 92px !important;
  min-width: 92px !important;
  direction: ltr !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

.bahr-cart-product-card .bahr-cart-stepper-pill .qty-btn {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}

.bahr-cart-product-card .bahr-cart-stepper-pill .qty-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.bahr-cart-product-card .bahr-cart-stepper-pill input.cart-card-qty-input {
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  width: 26px !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
}

.bahr-cart-product-card .bahr-cart-stepper-pill input.cart-card-qty-input::-webkit-outer-spin-button,
.bahr-cart-product-card .bahr-cart-stepper-pill input.cart-card-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Circular Soft Gray Trash Button (Far left in RTL) */
.bahr-cart-product-card .cart-card-trash-action,
.woocommerce-cart .cart-card-trash-action {
  display: inline-flex !important;
  align-items: center !important;
}

.bahr-cart-product-card .cart-card-trash-action a.bahr-cart-trash-btn,
.woocommerce-cart a.bahr-cart-trash-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.bahr-cart-product-card .cart-card-trash-action a.bahr-cart-trash-btn:hover,
.woocommerce-cart a.bahr-cart-trash-btn:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

.bahr-cart-product-card .cart-card-trash-action a.bahr-cart-trash-btn svg,
.woocommerce-cart a.bahr-cart-trash-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

/* --------------------------------------------------------------------------
   2.5 BOTTOM CARD: COUPON BOX & STORE NAVIGATION
   -------------------------------------------------------------------------- */
.bahr-cart-coupon-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* Coupon Collapsible Button & Form */
.bahr-cart-coupon-toggle-wrap {
  margin-bottom: 12px;
}

.bahr-coupon-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.bahr-coupon-toggle-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-base);
}

.bahr-coupon-toggle-btn .btn-coupon-icon-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bahr-coupon-toggle-btn .coupon-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--accent-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bahr-coupon-toggle-btn .coupon-btn-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-800);
}

.bahr-coupon-toggle-btn .coupon-chevron-icon {
  color: #64748b;
  transition: transform 0.25s ease;
}

.bahr-coupon-toggle-btn.is-active .coupon-chevron-icon {
  transform: rotate(180deg);
}

.bahr-coupon-collapsible-content {
  padding-top: 12px;
  animation: bahrFadeDown 0.2s ease-out;
}

.coupon-form-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
}

.coupon-input-wrap {
  flex: 1;
}

.bahr-coupon-card-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.bahr-coupon-card-input:focus {
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.1);
}

.bahr-coupon-apply-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background-color: var(--accent-base);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.bahr-coupon-apply-btn:hover {
  background-color: var(--accent-hover);
}

.cart-bottom-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.bahr-btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-700);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.15s ease;
}

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

.bahr-btn-silent-update {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2.6 ORDER SUMMARY CARD (.cart_totals) - NO DEFAULT TABLE BORDERS
   -------------------------------------------------------------------------- */
.cart-collaterals,
.woocommerce-cart .cart-collaterals {
  display: block !important;
  width: 100% !important;
}

.cart_totals,
.cart-collaterals .cart_totals,
.woocommerce-cart .cart_totals {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bahr-order-summary-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 10px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
  margin-bottom: 12px !important;
}

.header-icon-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--accent-base) !important;
}

.header-icon-title h2 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  margin: 0 !important;
}

.summary-items-count {
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: var(--grey-700) !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
}

/* ELIMINATE ALL DEFAULT WOOCOMMERCE TABLE BORDERS */
.cart_totals table.shop_table,
.woocommerce-cart .bahr-summary-table,
.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-cart .cart_totals table,
.woocommerce-cart table.shop_table.bahr-summary-table,
table.shop_table.bahr-summary-table {
  width: 100% !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 0 12px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cart_totals table.shop_table tbody,
.woocommerce-cart .cart_totals table.shop_table tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cart_totals table.shop_table tr,
.woocommerce-cart .cart_totals table.shop_table tr {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  border: none !important;
  outline: none !important;
  vertical-align: middle !important;
}

/* Subtotal & Standard Rows */
.cart_totals table.shop_table tr.cart-subtotal,
.cart_totals table.shop_table tr.cart-discount,
.cart_totals table.shop_table tr.fee,
.cart_totals table.shop_table tr.tax-rate,
.cart_totals table.shop_table tr.tax-total,
.cart_totals table.shop_table tr.bahr-summary-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 0 !important;
  border: none !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.cart_totals table.shop_table tr.cart-subtotal th,
.cart_totals table.shop_table tr.cart-discount th,
.cart_totals table.shop_table tr.fee th,
.cart_totals table.shop_table tr.tax-rate th,
.cart_totals table.shop_table tr.tax-total th,
.cart_totals table.shop_table tr.bahr-summary-row th {
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--grey-600) !important;
  text-align: right !important;
  flex: 1 !important;
  border: none !important;
}

.cart_totals table.shop_table tr.cart-subtotal td,
.cart_totals table.shop_table tr.cart-discount td,
.cart_totals table.shop_table tr.fee td,
.cart_totals table.shop_table tr.tax-rate td,
.cart_totals table.shop_table tr.tax-total td,
.cart_totals table.shop_table tr.bahr-summary-row td {
  padding: 0 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  text-align: left !important;
  flex-shrink: 0 !important;
  border: none !important;
}

/* Discounts & Coupons */
.woocommerce-cart .cart_totals tr.cart-discount td {
  color: #16a34a !important;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  color: #ef4444;
  text-decoration: underline;
  font-weight: normal;
}

/* Shipping Methods Styling */
.cart_totals table.shop_table tr.shipping {
  display: block !important;
  padding: 6px 0 !important;
  border: none !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.cart_totals table.shop_table tr.shipping th {
  display: block !important;
  padding: 0 0 4px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--grey-600) !important;
  text-align: right !important;
  border: none !important;
}

.cart_totals table.shop_table tr.shipping td {
  display: block !important;
  padding: 0 !important;
  text-align: right !important;
  border: none !important;
}

.woocommerce-cart .cart_totals ul#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.woocommerce-cart .cart_totals ul#shipping_method li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.woocommerce-cart .cart_totals ul#shipping_method li:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
}

.woocommerce-cart .cart_totals ul#shipping_method input[type="radio"] {
  accent-color: var(--accent-base);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.woocommerce-cart .cart_totals ul#shipping_method label {
  cursor: pointer;
  margin: 0;
  font-weight: 600;
  color: var(--grey-800);
  flex: 1;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
  font-size: 11.5px;
  color: var(--grey-600);
  margin-bottom: 6px;
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
  font-size: 11.5px;
  color: var(--accent-base);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}

.woocommerce-cart .cart_totals .shipping-calculator-button:hover {
  text-decoration: underline;
}

.woocommerce-cart .cart_totals .shipping-calculator-form {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.woocommerce-cart .cart_totals .shipping-calculator-form input.input-text,
.woocommerce-cart .cart_totals .shipping-calculator-form select {
  height: 34px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 0 8px;
  font-size: 12px;
  width: 100%;
}

.woocommerce-cart .cart_totals .shipping-calculator-form button.button {
  height: 32px;
  background-color: var(--grey-800);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Modern Highlighted Grand Total Box - NO DEFAULT TABLE BORDERS */
.cart_totals table.shop_table tr.order-total,
.woocommerce-cart .cart_totals table.shop_table tr.order-total,
.cart_totals table.shop_table tr.bahr-summary-total-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-top: 6px !important;
}

.cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.bahr-summary-total-row th {
  border: none !important;
  padding: 0 !important;
  text-align: right !important;
  background: transparent !important;
  flex: 1 !important;
}

.order-total-label {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  display: block !important;
}

.vat-included-badge {
  font-size: 10.5px !important;
  color: var(--grey-500) !important;
  font-weight: 500 !important;
  display: block !important;
  margin-top: 1px !important;
}

.cart_totals table.shop_table tr.order-total td,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td,
.cart_totals table.shop_table tr.bahr-summary-total-row td {
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  flex-shrink: 0 !important;
}

.cart_totals table.shop_table tr.order-total td .amount,
.cart_totals table.shop_table tr.order-total td strong,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td .amount {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: var(--accent-base) !important;
}

/* HyperOne Cart Main Heading: عربة التسوق */
.bahr-cart-title-row {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.bahr-cart-main-heading {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  text-align: right !important;
}

/* HyperOne Card 0: "ما هو الذي ينقصك؟" */
.bahr-cart-recommend-box {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.bahr-cart-recommend-box .recommend-box-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.bahr-cart-recommend-box .recommend-box-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.bahr-cart-recommend-box .recommend-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.bahr-cart-recommend-box .recommend-action-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #194ba5 !important;
  text-decoration: underline !important;
  transition: color 0.15s ease !important;
}
.bahr-cart-recommend-box .recommend-action-link:hover {
  color: #143e8a !important;
}
.bahr-cart-recommend-box .recommend-subtitle {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 !important;
  text-align: right !important;
}

/* Card 1: Prices Breakdown Card */
.bahr-cart-prices-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.bahr-cart-prices-card .bahr-summary-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.bahr-cart-prices-card .bahr-summary-row .row-label {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
}
.bahr-cart-prices-card .bahr-summary-row .row-val {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.bahr-cart-prices-card .bahr-summary-row.total-row {
  padding-top: 10px !important;
  border-top: 1px dashed #e2e8f0 !important;
}

/* Card 2: Minimum Threshold Celebration & Checkout CTA */
.bahr-cart-checkout-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.bahr-order-min-congrats {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  text-align: right !important;
}
.bahr-order-min-congrats .congrats-text {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
}
.bahr-order-min-congrats .congrats-icon {
  display: flex !important;
  align-items: center !important;
  color: #E22319 !important;
  flex-shrink: 0 !important;
}

/* HyperOne Minimal Progress Bar */
.bahr-order-min-progress-bar {
  width: 100% !important;
  height: 4px !important;
  background-color: #f1f5f9 !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  margin: 2px 0 !important;
}
.bahr-order-min-progress-bar .progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #194ba5, #3b82f6) !important;
  border-radius: 9999px !important;
  transition: width 0.3s ease !important;
}

/* Proceed to Checkout CTA - HyperOne Style */
.bahr-hyperone-checkout-btn,
a.bahr-hyperone-checkout-btn {
  background: #194ba5 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  height: 52px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(25, 75, 165, 0.25) !important;
  transition: all 0.2s ease !important;
  letter-spacing: normal !important;
}

.bahr-hyperone-checkout-btn:hover,
a.bahr-hyperone-checkout-btn:hover {
  background: #143e8a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(25, 75, 165, 0.35) !important;
}

.bahr-hyperone-checkout-btn .btn-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.bahr-hyperone-checkout-btn .btn-count-circle {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #E22319 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.bahr-hyperone-checkout-btn .btn-label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.bahr-hyperone-checkout-btn .btn-total-amount {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

/* Eliminate any duplicate or default WooCommerce checkout buttons */
.bahr-cart-checkout-card a.checkout-button:not(.bahr-hyperone-checkout-btn),
.bahr-cart-checkout-card button:not(.bahr-hyperone-checkout-btn),
.bahr-cart-checkout-card .wc-proceed-to-checkout,
.bahr-cart-checkout-card .wc-proceed-to-checkout a:not(.bahr-hyperone-checkout-btn),
.cart_totals .wc-proceed-to-checkout,
.cart_totals a.checkout-button:not(.bahr-hyperone-checkout-btn),
.wc-proceed-to-checkout a.checkout-button:not(.bahr-hyperone-checkout-btn),
.bahr-order-summary-wrapper a.checkout-button:not(.bahr-hyperone-checkout-btn),
.bahr-order-summary-wrapper button.checkout-button {
  display: none !important;
}

/* Mobile Sticky Checkout Bar (HyperOne 100% Matched) */
@media (max-width: 768px) {
  .woocommerce-cart .bahr-cart-page-wrapper,
  .bahr-cart-page-wrapper,
  body.woocommerce-cart .site-main,
  body.woocommerce-cart {
    padding-bottom: 160px !important;
  }

  /* Reset all parent containers so position: fixed is NEVER trapped by sticky or transforms */
  .bahr-cart-page-wrapper .cart-collaterals,
  .woocommerce-cart .cart-collaterals,
  .cart-collaterals,
  .cart_totals,
  .cart-collaterals .cart_totals,
  .woocommerce-cart .cart_totals,
  .bahr-order-summary-wrapper {
    position: static !important;
    top: auto !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
  }

  /* Fixed sticky bar at bottom of mobile screen */
  .bahr-cart-checkout-card {
    position: fixed !important;
    bottom: 54px !important; /* Floats directly above theme 54px mobile bottom bar */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    border-top: 1px solid #eef2f6 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08) !important;
    z-index: 998 !important;
    padding: 10px 16px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  /* If mobile bottom nav is not present or hidden, attach to bottom 0 */
  body:not(:has(.bahr-mobile-bottom-bar)) .bahr-cart-checkout-card {
    bottom: 0 !important;
  }

  /* 1. Checkout CTA Button on top */
  .bahr-cart-checkout-card .bahr-checkout-btn-wrap {
    order: 1 !important;
    width: 100% !important;
  }

  .bahr-cart-checkout-card .bahr-hyperone-checkout-btn,
  .bahr-cart-checkout-card a.bahr-hyperone-checkout-btn {
    height: 48px !important;
    padding: 0 16px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .bahr-cart-checkout-card .bahr-hyperone-checkout-btn .btn-count-circle {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #E22319 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
  }

  /* 2. Celebration status row on bottom */
  .bahr-cart-checkout-card .bahr-order-min-congrats {
    order: 2 !important;
    border-top: 1px solid #f8fafc !important;
    padding-top: 4px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .bahr-cart-checkout-card .bahr-order-min-congrats .congrats-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
  }

  .bahr-cart-checkout-card .bahr-order-min-congrats .congrats-icon {
    color: #E22319 !important;
  }

  .bahr-cart-checkout-card .bahr-order-min-congrats .congrats-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* 3. Progress bar hidden on mobile */
  .bahr-cart-checkout-card .bahr-order-min-progress-bar {
    display: none !important;
  }
}

/* Payment Methods Visual Pills */
/* Payment Methods - Removed as requested */
.bahr-cart-payment-methods {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2.7 CROSS-SELLS SECTION (Full Width Modern Grid)
   -------------------------------------------------------------------------- */
.woocommerce-cart .cross-sells {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1.5px solid #e2e8f0;
  width: 100%;
}

.woocommerce-cart .cross-sells > h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce-cart .cross-sells > h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-base);
  border-radius: 9999px;
}

.woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   2.8 RESPONSIVE MOBILE CART TRANSFORMATION (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .bahr-cart-page-wrapper,
  .woocommerce-cart .bahr-cart-page-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .shipping-banner-content {
    flex-direction: column !important;
    text-align: center !important;
  }

  .shipping-banner-bar {
    flex-direction: column !important;
  }

  .shipping-bar-percentage {
    text-align: center !important;
  }

  /* Responsive Notices on Mobile */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button {
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Mobile Edge-to-Edge Container (Maximum Width Usage) */
  body.woocommerce-cart .bahr-main-content {
    padding-top: 6px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-cart .container,
  body.woocommerce-cart .bahr-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Clean, Spacious Mobile Product Card (Exact Reference Match) */
  .bahr-cart-product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 6px !important;
    gap: 10px !important;
    border-radius: 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-left: none !important;
    border-right: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
  }

  .bahr-cart-product-card .cart-card-thumb-wrap {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .bahr-cart-product-card .cart-card-thumb-wrap img {
    border-radius: 7px !important;
  }

  .bahr-cart-product-card .cart-card-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding-top: 0 !important;
    text-align: right !important;
  }

  /* Full product title: shows completely without truncation */
  .bahr-cart-product-card .cart-card-title,
  .bahr-cart-product-card .cart-card-title a {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    color: #0f172a !important;
    white-space: normal !important;
    word-break: normal !important;
    text-decoration: none !important;
    display: block !important;
    text-align: right !important;
  }

  .bahr-cart-product-card .cart-card-bottom-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .bahr-cart-product-card .cart-card-price-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 2px !important;
  }

  .bahr-cart-product-card .cart-price-highlight,
  .bahr-cart-product-card .cart-price-highlight * {
    color: #e22319 !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .bahr-cart-product-card .cart-price-unit,
  .bahr-cart-product-card .cart-price-unit * {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  /* Left Controls: Trash on far left, Stepper on right */
  .bahr-cart-product-card .cart-card-controls-col {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .bahr-cart-product-card .bahr-cart-stepper-pill {
    height: 34px !important;
    width: 88px !important;
    min-width: 88px !important;
    padding: 0 3px !important;
  }

  .bahr-cart-product-card .bahr-cart-stepper-pill .qty-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }

  .bahr-cart-product-card .bahr-cart-stepper-pill input.cart-card-qty-input {
    width: 24px !important;
    font-size: 14px !important;
  }

  .bahr-cart-product-card .cart-card-trash-action a.bahr-cart-trash-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .bahr-cart-product-card .cart-card-trash-action a.bahr-cart-trash-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .bahr-cart-coupon-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }

  .coupon-form-group {
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .coupon-input-wrap,
  .bahr-coupon-card-input,
  .bahr-coupon-apply-btn {
    width: 100% !important;
  }

  .cart-bottom-actions-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .bahr-btn-continue-shopping {
    width: 100% !important;
    justify-content: center !important;
  }

  .cart_totals,
  .cart-collaterals .cart_totals,
  .woocommerce-cart .cart_totals {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   2.9 EMPTY CART PAGE
   -------------------------------------------------------------------------- */
.bahr-empty-cart-page {
  padding: 32px 0 60px;
}

.bahr-empty-cart-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 60px 24px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.empty-cart-illustration {
  margin-bottom: 24px;
}

.empty-cart-icon-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--accent-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-cart-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: 12px;
}

.empty-cart-desc {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 28px;
}

.btn-primary-empty-cart {
  background: linear-gradient(135deg, var(--accent-base) 0%, #153a7a 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.25) !important;
}

.btn-primary-empty-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 76, 161, 0.35) !important;
}

.empty-cart-categories-suggest {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.suggest-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 14px;
}

.suggest-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.suggest-tag-item {
  background: var(--grey-100);
  color: var(--grey-800);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.suggest-tag-item:hover {
  background: var(--accent-base);
  color: #ffffff;
  border-color: var(--accent-base);
}

/* --------------------------------------------------------------------------
   2.10 WOOCOMMERCE GUTENBERG CART BLOCKS SUPPORT (.wc-block-cart)
   -------------------------------------------------------------------------- */
.wc-block-cart {
  margin-top: 10px;
}

.wc-block-cart__main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.wc-block-cart__sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.wc-block-cart-items {
  border-collapse: collapse;
  width: 100%;
}

.wc-block-cart-items__header {
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 12px;
  font-weight: 800;
  color: var(--grey-700);
}

.wc-block-cart-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
}

.wc-block-components-quantity-selector {
  border-radius: 9999px !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

.wc-block-components-quantity-selector button {
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}


/* --------------------------------------------------------------------------
   3. MY ACCOUNT PAGE (HyperOne Architecture & Full Responsiveness)
   -------------------------------------------------------------------------- */
/* Remove title on My Account page as requested ("زل عنوان حسابي") */
.woocommerce-account .bahr-article-header,
.woocommerce-account .bahr-article-title,
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account h1.bahr-article-title,
.woocommerce-account header.bahr-article-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce {
  margin-top: 10px;
  margin-bottom: 60px;
}

/* Dedicated Bahr My Account 2-Column Wrapper (prevents WooCommerce notices from breaking grid) */
.woocommerce-account .woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 20px;
  clear: both;
}

/* ==========================================================================
   BAHR STORE - MY ACCOUNT NAVIGATION (DESKTOP HYPERONE STYLE)
   ========================================================================== */
.bahr-myaccount-wrapper {
  display: block;
  width: 100%;
}

@media (min-width: 900px) {
  .bahr-myaccount-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

@media (max-width: 899px) {
  .bahr-myaccount-wrapper.bahr-myaccount-is-dashboard .woocommerce-MyAccount-content {
    display: none !important;
  }
}

.woocommerce-account.logged-in .woocommerce {
  display: block;
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Mobile Quick Navigation Strip (Hidden on Desktop) */
.bahr-mobile-endpoint-bar {
  display: none;
}

/* Navigation Sidebar Card (Desktop Default) */
.woocommerce-MyAccount-navigation {
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* User Greeting Header (HyperOne Style) */
.bahr-account-nav-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.bahr-nav-avatar {
  flex-shrink: 0;
}

.bahr-nav-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  display: block;
}

.bahr-nav-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bahr-nav-greeting {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bahr-nav-username {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bahr-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

.bahr-nav-badge svg {
  color: #059669;
}

/* Menu List */
.bahr-account-menu-list,
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bahr-account-menu-list li,
.woocommerce-MyAccount-navigation li {
  border: none !important;
  margin: 0;
}

.bahr-account-menu-list li a,
.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 140ms ease;
  position: relative;
}

.bahr-account-menu-list li a .menu-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bahr-account-menu-list li a .menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 12px;
  transition: color 140ms ease;
}

.bahr-account-menu-list li a:hover,
.woocommerce-MyAccount-navigation li a:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.bahr-account-menu-list li a:hover .menu-item-icon,
.woocommerce-MyAccount-navigation li a:hover .menu-item-icon {
  color: #0f172a;
}

/* Active State (Soft light blue pill like previous) */
.bahr-account-menu-list li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a {
  background-color: #eef2f6 !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

.bahr-account-menu-list li.is-active a .menu-item-icon,
.woocommerce-MyAccount-navigation li.is-active a .menu-item-icon {
  color: #1d4ed8 !important;
}

/* Logout link */
.bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #ef4444 !important;
  font-weight: 600;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #f8fafc !important;
}

.bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-icon,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-icon {
  color: #ef4444 !important;
}

.bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a:hover,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background-color: #fef2f2 !important;
}

/* Badge Pill */
.link-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ffedd5;
  color: #9a3412;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
  direction: rtl;
  white-space: nowrap;
}

.link-badge-pill .coin-val {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 900px)
   ========================================================================== */
@media (max-width: 899px) {
  .woocommerce-account.logged-in .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Inside Subpages (.is-endpoint-view): Show only the sleek horizontal tab strip */
  .woocommerce-MyAccount-navigation.is-endpoint-view {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 8px !important;
  }

  .woocommerce-MyAccount-navigation.is-endpoint-view .bahr-account-nav-profile,
  .woocommerce-MyAccount-navigation.is-endpoint-view .bahr-account-menu-list {
    display: none !important;
  }

  .woocommerce-MyAccount-navigation.is-endpoint-view .bahr-mobile-endpoint-bar {
    display: block !important;
  }

  .bahr-mobile-endpoint-bar {
    width: 100%;
    margin-bottom: 4px;
  }

  .endpoint-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .endpoint-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 140ms ease;
  }

  .endpoint-back-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
  }

  .endpoint-current-badge {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
  }

  .endpoint-horizontal-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px 2px;
  }

  .endpoint-horizontal-tabs::-webkit-scrollbar {
    display: none;
  }

  .endpoint-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 140ms ease;
  }

  .endpoint-tab.is-active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
  }

  .endpoint-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    background: #e2e8f0;
    color: #334155;
    line-height: 1;
  }

  .endpoint-tab.is-active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }

  /* On Account Dashboard (.is-dashboard-view) on mobile */
  .woocommerce-MyAccount-navigation.is-dashboard-view {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 16px 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 16px !important;
  }

  .woocommerce-MyAccount-navigation.is-dashboard-view .bahr-mobile-endpoint-bar {
    display: none !important;
  }

  .bahr-account-nav-profile {
    padding: 2px 4px 14px 4px !important;
  }

  .bahr-account-menu-list,
  .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
  }

  .bahr-account-menu-list li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a,
  .woocommerce-MyAccount-navigation li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    min-height: 88px !important;
    padding: 12px 12px !important;
    border-radius: 14px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: all 140ms ease !important;
  }

  .bahr-account-menu-list li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-icon,
  .woocommerce-MyAccount-navigation li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    margin-left: 0 !important;
    margin-bottom: 8px !important;
  }

  .bahr-account-menu-list li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-text,
  .woocommerce-MyAccount-navigation li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-text {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    text-align: right !important;
  }

  .bahr-account-menu-list li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a,
  .woocommerce-MyAccount-navigation li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a {
    background-color: #eff6ff !important;
    border-color: #93c5fd !important;
  }

  .bahr-account-menu-list li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-icon,
  .woocommerce-MyAccount-navigation li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-icon {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
  }

  .bahr-account-menu-list li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-text,
  .woocommerce-MyAccount-navigation li.is-active:not(.woocommerce-MyAccount-navigation-link--customer-logout) a .menu-item-text {
    color: #1d4ed8 !important;
  }

  /* Badge in 2-column mobile card */
  .bahr-account-menu-list li a .link-badge-pill,
  .woocommerce-MyAccount-navigation li a .link-badge-pill {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    line-height: 1.2 !important;
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Full-width logout bar on mobile */
  .bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout,
  .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a,
  .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #ef4444 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-icon,
  .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #ef4444 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .bahr-account-menu-list li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-text,
  .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a .menu-item-text {
    color: #ef4444 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex: initial !important;
  }
}

/* Account Main Content - Seamless Unboxed Container */
.woocommerce-MyAccount-content {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-content {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Hide default plain-text greeting paragraphs */
.woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-MyAccount-content > p:nth-of-type(2),
.woocommerce-account .woocommerce-MyAccount-content > p:not([class]),
.woocommerce-account .woocommerce-MyAccount-content > p:empty {
  display: none !important;
}

/* Welcome Card in Dashboard (Removed per user request) */
.bahr-account-welcome-card {
  display: none !important;
}

.bahr-welcome-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bahr-welcome-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  display: block;
}

.bahr-welcome-info {
  flex: 1;
  min-width: 0;
}

.bahr-welcome-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.bahr-welcome-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.3;
}

.bahr-welcome-email {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.bahr-welcome-quick-stat {
  flex-shrink: 0;
}

.bahr-welcome-quick-stat .stat-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-box .stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-base);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-box .stat-txt {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .bahr-welcome-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .bahr-welcome-quick-stat {
    width: 100%;
  }
  .bahr-welcome-quick-stat .stat-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 14px;
  }
}

/* Quick Navigation Tiles (Removed per user request) */
.bahr-account-quick-tiles {
  display: none !important;
}

/* Clean Standard Dashboard Welcome */
.bahr-dashboard-clean-welcome {
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}

.bahr-dashboard-clean-welcome p {
  margin-bottom: 14px;
}

.bahr-dashboard-hello {
  font-size: 17px;
  color: #0f172a;
}

.bahr-dashboard-clean-welcome a {
  color: #002926;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.bahr-dashboard-clean-welcome a:hover {
  color: #0d9488;
}

.bahr-quick-tile {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 140ms ease, background-color 140ms ease;
  position: relative;
}

.bahr-quick-tile:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.bahr-quick-tile .tile-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: color 140ms ease;
}

.bahr-quick-tile:hover .tile-icon-box {
  color: var(--accent-base);
}

.bahr-quick-tile .tile-content {
  flex: 1;
  min-width: 0;
}

.bahr-quick-tile .tile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bahr-quick-tile h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  transition: color 140ms ease;
}

.bahr-quick-tile:hover h4 {
  color: var(--accent-base);
}

.bahr-quick-tile .tile-count-tag {
  font-size: 11px;
  font-weight: 600;
  background-color: #eff6ff;
  color: var(--accent-base);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

.bahr-quick-tile p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.bahr-quick-tile .tile-arrow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 140ms ease;
}

.bahr-quick-tile:hover .tile-arrow-link {
  color: var(--accent-base);
}

/* Checkout Page Fast Checkout Ready Alert */
.bahr-fast-checkout-ready-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.bahr-fast-checkout-ready-alert .alert-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bahr-fast-checkout-ready-alert .alert-content {
  font-size: 13px;
  line-height: 1.5;
  color: #065f46;
}

.bahr-fast-checkout-ready-alert .alert-content strong {
  color: #047857;
  font-weight: 700;
}

/* ==========================================================================
   ACCOUNT SETTINGS PAGE (Matching User Reference Image Pixel-for-Pixel)
   ========================================================================== */
.bahr-account-settings-container {
  width: 100%;
}

.bahr-settings-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 24px 0;
  letter-spacing: -0.4px;
}

.bahr-settings-rows-list {
  display: flex;
  flex-direction: column;
}

/* Setting Row */
.bahr-setting-row {
  border-bottom: 1px solid #f1f5f9;
  padding: 18px 0;
}

.setting-row-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-meta-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.setting-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

/* Edit Trigger Button (Blue link with pencil icon) */
.btn-setting-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1d4ed8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 140ms ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-setting-edit-trigger:hover {
  background-color: #eff6ff;
  color: #1e40af;
}

/* Sections (معلومات الدخول / التفضيلات) */
.bahr-settings-section-block {
  margin-top: 24px;
}

.bahr-settings-section-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

/* Delete Account Row */
.bahr-delete-account-row {
  padding-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.btn-delete-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 140ms ease;
  font-family: inherit;
}

.btn-delete-account-trigger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Inline Edit Drawer */
.setting-edit-drawer {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  animation: bahrDrawerFadeIn 160ms ease-out;
}

@keyframes bahrDrawerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .drawer-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-field.full-width {
  grid-column: 1 / -1;
}

.drawer-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}

.drawer-field label .required {
  color: #ef4444;
}

.bahr-drawer-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: border-color 140ms ease;
  box-sizing: border-box;
  font-family: inherit;
}

.bahr-drawer-input:focus {
  border-color: #1d4ed8;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-drawer-save {
  height: 38px;
  padding: 0 18px;
  background-color: #1d4ed8;
  color: #ffffff;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease;
  font-family: inherit;
}

.btn-drawer-save:hover {
  background-color: #1e40af;
}

.btn-drawer-cancel {
  height: 38px;
  padding: 0 16px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
}

.btn-drawer-cancel:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Delete Confirmation Modal */
.bahr-delete-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.bahr-delete-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  text-align: right;
}

.bahr-delete-modal-dialog .modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.bahr-delete-modal-dialog .modal-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.bahr-delete-modal-dialog .modal-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-confirm-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  background-color: #ef4444;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 140ms ease;
}

.btn-modal-confirm-delete:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-modal-close-delete {
  height: 38px;
  padding: 0 16px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
}

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

/* Orders Table - Ultra-Responsive (Cards on Mobile) */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.woocommerce-orders-table th {
  background-color: var(--grey-50);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-700);
  border-bottom: 1px solid var(--border-color);
  text-align: right;
}

.woocommerce-orders-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--grey-800);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-status span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  background-color: var(--accent-subtle);
  color: var(--accent-base);
}

.woocommerce-orders-table a.button {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--grey-100);
  border: 1px solid var(--border-color);
  color: var(--grey-800);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.woocommerce-orders-table a.button:hover {
  background-color: var(--accent-base);
  border-color: var(--accent-base);
  color: #ffffff;
}

/* Transform Orders Table to Mobile Cards */
@media (max-width: 768px) {
  .woocommerce-orders-table {
    display: block;
    border: none;
  }

  .woocommerce-orders-table thead {
    display: none;
  }

  .woocommerce-orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .woocommerce-orders-table tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }

  .woocommerce-orders-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
  }

  .woocommerce-orders-table td:last-child {
    border-bottom: none;
    padding-top: 10px;
  }

  .woocommerce-orders-table td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--grey-600);
    font-size: 12.5px;
  }

  .woocommerce-orders-table a.button {
    width: 100%;
    justify-content: center;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
  }
}


/* --------------------------------------------------------------------------
   4. CHECKOUT PAGE STYLING (Modern High-Conversion 2-Column Design)
   -------------------------------------------------------------------------- */
body.woocommerce-checkout {
  background-color: #f8fafc;
}

/* Coupon & Notice Banners */
.woocommerce-checkout .woocommerce-NoticeGroup {
  margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  border-width: 1px !important;
  border-style: solid !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.woocommerce-checkout .woocommerce-error {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}

.woocommerce-checkout .woocommerce-info {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background-color: #f0fdf4 !important;
  border: 1px dashed #86efac !important;
  color: #166534 !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--accent-base) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}

.woocommerce-checkout form.checkout_coupon {
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.woocommerce-checkout form.checkout_coupon input.input-text {
  flex: 1 !important;
  min-width: 180px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 0 14px !important;
  background-color: #f8fafc !important;
}

.woocommerce-checkout form.checkout_coupon button.button {
  height: 44px !important;
  padding: 0 22px !important;
  background-color: var(--accent-base) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.woocommerce-checkout form.checkout_coupon button.button:hover {
  background-color: var(--accent-hover) !important;
}

/* 2-Column Desktop Grid Layout */
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr) !important;
    grid-template-areas:
      "customer review-title"
      "customer review-content" !important;
    gap: 0 32px !important;
    align-items: start !important;
    margin-top: 16px !important;
  }

  .woocommerce-checkout #customer_details {
    grid-area: customer !important;
    margin-bottom: 0 !important;
  }

  .woocommerce-checkout #order_review_heading {
    grid-area: review-title !important;
    margin: 0 0 16px 0 !important;
  }

  .woocommerce-checkout #order_review {
    grid-area: review-content !important;
    position: sticky !important;
    top: 90px !important;
    margin-bottom: 0 !important;
  }
}

/* Customer Details Cards */
.woocommerce-checkout #customer_details {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide Billing Details on Checkout for logged-in members (replaced by verified customer card) */
body.logged-in.woocommerce-checkout .woocommerce-billing-fields,
body.logged-in.woocommerce-checkout #customer_details .col-1 .woocommerce-billing-fields,
body.logged-in.woocommerce-checkout .woocommerce-billing-fields h3,
body.logged-in.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: none !important;
}

.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.woocommerce-checkout h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

/* Form Fields & Rows */
.woocommerce-checkout .form-row {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout .form-row label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--grey-800) !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}

.woocommerce-checkout .form-row label abbr.required {
  color: #ef4444 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  margin-inline-start: 3px !important;
  border: none !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background-color: #f8fafc !important;
  font-size: 14px !important;
  color: var(--grey-900) !important;
  font-weight: 600 !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .form-row textarea {
  height: 84px !important;
  padding: 12px 14px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--accent-base) !important;
  box-shadow: 0 0 0 3.5px rgba(29, 76, 161, 0.12) !important;
}

.woocommerce-checkout .form-row-first {
  width: 48.5% !important;
  float: right !important; /* RTL */
}

.woocommerce-checkout .form-row-last {
  width: 48.5% !important;
  float: left !important; /* RTL */
}

.woocommerce-checkout .form-row-wide {
  width: 100% !important;
  clear: both !important;
}

/* Order Review Heading & Container */
.woocommerce-checkout #order_review_heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.woocommerce-checkout #order_review {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Order Review Table */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 20px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
  background-color: #f8fafc !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: var(--grey-600) !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  text-align: right !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th.product-total {
  text-align: left !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td {
  padding: 14px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name {
  font-weight: 700 !important;
  color: var(--grey-800) !important;
  line-height: 1.45 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name strong.product-quantity {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--accent-base) !important;
  background-color: var(--accent-subtle) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  margin-inline-start: 6px !important;
  display: inline-block !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total {
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--grey-600) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-align: right !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  padding: 10px 12px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-align: left !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  padding: 14px 12px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: var(--grey-900) !important;
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  padding: 14px 12px !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--accent-base) !important;
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  text-align: left !important;
}

/* Payment Methods Area */
.woocommerce-checkout #payment {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin-top: 16px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 16px !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
  border-color: #cbd5e1 !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
  accent-color: var(--accent-base) !important;
  width: 17px !important;
  height: 17px !important;
  margin-inline-end: 8px !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method img {
  max-height: 24px !important;
  width: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}

.woocommerce-checkout #payment .payment_box {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin: 10px 0 4px 0 !important;
  font-size: 12.5px !important;
  color: var(--grey-700) !important;
  line-height: 1.5 !important;
}

.woocommerce-checkout #payment .payment_box p:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px !important;
  color: var(--grey-600) !important;
  line-height: 1.55 !important;
  margin: 12px 0 16px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  accent-color: var(--accent-base) !important;
  width: 16px !important;
  height: 16px !important;
  margin-inline-end: 6px !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
  width: 100% !important;
  height: 50px !important;
  background-color: var(--accent-base) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 16px rgba(29, 76, 161, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  letter-spacing: -0.2px !important;
}

.woocommerce-checkout #place_order:hover {
  background-color: var(--accent-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(29, 76, 161, 0.4) !important;
}

.woocommerce-checkout #place_order:active {
  transform: translateY(0) !important;
}


/* Gutenberg Blocks Checkout Support */
.wc-block-checkout {
  margin-top: 16px !important;
}

.wc-block-components-checkout-step {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.wc-block-components-checkout-step__title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--grey-900) !important;
}

.wc-block-components-order-summary {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-components-checkout-place-order-button {
  height: 50px !important;
  border-radius: 10px !important;
  background-color: var(--accent-base) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

/* Order Received / Thank You Page */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  background-color: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  color: #15803d !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 24px !important;
}

.woocommerce-order-received ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 14px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  list-style: none !important;
  margin-bottom: 28px !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li {
  font-size: 12px !important;
  color: var(--grey-600) !important;
  border-inline-end: 1px solid #f1f5f9 !important;
  padding: 0 10px !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 14px !important;
  color: var(--grey-900) !important;
  font-weight: 800 !important;
  margin-top: 4px !important;
}

/* Responsive Breakpoints for Checkout */
@media (max-width: 991px) {
  .woocommerce-checkout form.checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .woocommerce-checkout #order_review {
    position: static !important;
  }

  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout .woocommerce-additional-fields {
    padding: 18px 16px !important;
  }
}

@media (max-width: 576px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. SHOP ARCHIVE LAYOUT & SIDEBAR
   -------------------------------------------------------------------------- */
.bahr-shop-layout.has-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.bahr-shop-sidebar .bahr-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.bahr-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {

  .single-product .related.products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 991px) {
  .single-product .bahr-single-product-top {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    margin-bottom: 28px !important;
  }

  .single-product .bahr-single-gallery-column,
  .single-product div.product div.images,
  .single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 0 16px 0 !important;
    position: static !important;
    padding: 16px !important;
  }

  .single-product div.product div.summary,
  .single-product .summary.entry-summary,
  .single-product .bahr-single-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .single-product .woocommerce-tabs {
    padding: 24px 20px !important;
  }

  .single-product .woocommerce-tabs ul.tabs {
    gap: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    border: none !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
  }

  .single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none !important;
  }

  .single-product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap !important;
    padding: 9px 18px !important;
    font-size: 14px !important;
  }


  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart td {
    display: block;
    text-align: right;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    display: none;
  }

  .bahr-actions-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .bahr-coupon-group {
    width: 100%;
  }

  .bahr-coupon-group input.input-text {
    flex: 1;
    min-width: 0;
  }

  .bahr-cart-buttons-group {
    width: 100%;
    justify-content: space-between;
  }

  .btn-continue-shopping,
  .bahr-btn-update-cart {
    flex: 1;
    justify-content: center;
  }

  .bahr-shop-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .single-product .related.products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .bahr-account-welcome-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Guarantee Desktop Single Product Gallery is Strictly Non-Sticky
   -------------------------------------------------------------------------- */
.single-product .bahr-single-gallery-column,
.single-product div.product div.images,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  align-self: auto !important;
  float: none !important;
}

.single-product .bahr-single-gallery-column {
  position: relative !important; /* Offset parent for wishlist button ONLY */
  top: auto !important;
  bottom: auto !important;
  z-index: 5;
}

.single-product .woocommerce-product-gallery {
  position: relative !important; /* Offset parent for sale badge ONLY */
  top: auto !important;
  bottom: auto !important;
}

/* --------------------------------------------------------------------------
   Custom Interactive Reviews Architecture (.rv)
   -------------------------------------------------------------------------- */
.rv {
  direction: rtl;
  text-align: right;
  font-family: inherit;
  color: var(--grey-800);
  width: 100%;
}

.rv-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

/* 2-Column Desktop Architecture (Clean, Compact & Organized) */
.rv-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 991px) {
  .rv-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Sidebar */
.rv-sidebar {
  width: 100%;
}

@media (min-width: 992px) {
  .rv-sidebar {
    position: sticky;
    top: 90px;
  }
}

.rv-sidebar-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.rv-sidebar-head .rv-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0;
}

.rv-title svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.rv-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff;
  color: var(--accent-base);
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

/* Compact Score & Breakdown */
.rv-summary-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.rv-avg-big {
  font-size: 46px;
  font-weight: 900;
  color: var(--grey-900);
  line-height: 1;
  margin-bottom: 6px;
}


.rv-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rv-stars-lg svg {
  width: 18px !important;
  height: 18px !important;
}

.rv-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rv-out-of {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 600;
  margin-top: 6px;
}

/* Breakdown Progress Bars */
.rv-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.rv-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
  user-select: none;
}

.rv-bar-row:hover {
  background: #f1f5f9;
}

.rv-bar-row.rv-active {
  background: #eff6ff;
  font-weight: 700;
}

.rv-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-700);
  width: 32px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.rv-bar-track {
  flex: 1;
  height: 9px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.rv-bar-fill {
  height: 100%;
  width: var(--w, 0%);
  background-color: #f59e0b;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-bar-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--grey-500);
  width: 28px;
  text-align: left;
  flex-shrink: 0;
}

.rv-sidebar-no-reviews {
  padding: 6px 0;
}

.rv-sidebar-prompt {
  font-size: 13.5px;
  color: var(--grey-600);
  line-height: 1.5;
  margin: 0;
}

.rv-sidebar-action {
  width: 100%;
}

.rv-write-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-base);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent-base);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.2);
}

.rv-write-btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 76, 161, 0.3);
}

.rv-trust-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey-500);
  justify-content: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.rv-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* Controls: Filters & Sort */
.rv-controls {

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.rv-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-700);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.rv-chip:hover {
  border-color: var(--accent-base);
  color: var(--accent-base);
}

.rv-chip.rv-chip-active {
  background: var(--accent-base) !important;
  border-color: var(--accent-base) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(29, 76, 161, 0.25);
}

.rv-chip-cnt {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
}

.rv-chip.rv-chip-active .rv-chip-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.rv-sort-select {
  padding: 8px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey-800);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.rv-sort-select:focus {
  border-color: var(--accent-base);
}

/* Search Box */
.rv-search-wrap {
  position: relative;
  margin-bottom: 24px;
}

.rv-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  pointer-events: none;
}

.rv-search-input {
  width: 100%;
  padding: 11px 42px 11px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  color: var(--grey-900);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-search-input:focus {
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.1);
}

/* Reviews List & Cards */
.rv-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.rv-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  animation: rvFadeIn 0.3s ease forwards;
}

@keyframes rvFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rv-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.rv-item.rv-hidden {
  display: none !important;
}

.rv-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.rv-avatar-fallback {
  background: linear-gradient(135deg, var(--accent-base) 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rv-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rv-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rv-author {
  font-size: 15px;
  font-weight: 800;
  color: var(--grey-900);
}

.rv-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.rv-item-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--grey-500);
}

.rv-item-rating-val {
  font-weight: 700;
  color: #f59e0b;
}

.rv-dot {
  color: var(--grey-300);
  font-weight: 900;
}

.rv-date {
  color: var(--grey-500);
}

.rv-content {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--grey-700);
  margin: 0 0 16px;
  word-break: break-word;
}

.rv-item-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Helpful Button */
.rv-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--grey-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.rv-helpful-btn:hover {
  background: #eff6ff;
  color: var(--accent-base);
  border-color: #bfdbfe;
}

.rv-helpful-btn.voted {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
  cursor: default;
}

.rv-helpful-count {
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Empty State & No Results */
.rv-empty,
.rv-no-results {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rv-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.rv-empty strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--grey-900);
}

.rv-empty span {
  font-size: 13.5px;
  color: var(--grey-500);
}

.rv-no-results p {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-600);
  margin: 8px 0 0;
}

/* Load More Button */
.rv-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.rv-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 800;
  color: var(--grey-800);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-family: inherit;
}

.rv-more-btn:hover {
  border-color: var(--accent-base);
  color: var(--accent-base);
  transform: translateY(-1px);
}

.rv-more-chevron {
  transition: transform 0.25s ease;
}

.rv-more-btn.rv-open .rv-more-chevron {
  transform: rotate(180deg);
}

/* Footer: Write Review Action */
.rv-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.rv-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-base);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(29, 76, 161, 0.25);
  font-family: inherit;
}

.rv-write-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 76, 161, 0.35);
}

.rv-login-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey-600);
  font-weight: 600;
}

.rv-login-msg a {
  color: var(--accent-base);
  font-weight: 800;
  text-decoration: underline;
}

/* Modal Dialog */
.rv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rv-modal.rv-open {
  opacity: 1;
  visibility: visible;
}

.rv-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-modal.rv-open .rv-modal-box {
  transform: scale(1);
}

.rv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.rv-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--grey-900);
}

.rv-modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fef3c7;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rv-modal-close:hover {
  background: #e2e8f0;
  color: var(--grey-900);
}

.rv-modal-body {
  padding: 24px;
}

.rv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rv-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv-form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grey-800);
}

.rv-req {
  color: #ef4444;
}

/* Star Rating Picker inside Modal */
.rv-stars-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-star-pick {
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.rv-star-pick svg {
  width: 32px;
  height: 32px;
  fill: #d1d5db;
  transition: fill 0.15s ease;
}

.rv-star-pick.hovered svg,
.rv-star-pick.active svg {
  fill: #f59e0b !important;
}

.rv-star-pick:hover {
  transform: scale(1.15);
}

.rv-stars-hint {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-base);
  margin: 0;
  min-height: 18px;
}

/* Textarea & Counter */
.rv-textarea-wrap {
  position: relative;
  width: 100%;
}

.rv-textarea-wrap textarea {
  width: 100%;
  padding: 12px 14px 28px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--grey-900);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
  min-height: 100px;
}

.rv-textarea-wrap textarea:focus {
  border-color: var(--accent-base);
  box-shadow: 0 0 0 3px rgba(29, 76, 161, 0.1);
}

.rv-char-count {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--grey-400);
}

.rv-char-count.rv-near-limit {
  color: #ef4444;
}

/* Modal Submit Button */
.rv-submit-btn {
  background: var(--accent-base);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(29, 76, 161, 0.25);
  font-family: inherit;
}

.rv-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.rv-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.rv-spin {
  animation: rvSpin 0.8s linear infinite;
}

@keyframes rvSpin {
  100% { transform: rotate(360deg); }
}

.rv-form-msg {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 0;
  text-align: center;
  min-height: 20px;
}

.rv-form-msg.ok {
  color: #16a34a;
}

.rv-form-msg.err {
  color: #dc2626;
}

/* Locked for Non-Buyers */
.rv-locked {
  text-align: center;
  padding: 24px 16px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  color: #991b1b;
}

.rv-locked-icon {
  color: #dc2626;
  margin-bottom: 8px;
}

.rv-locked strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.rv-locked p {
  font-size: 13px;
  margin: 0;
  color: #b91c1c;
}

/* Toast Notification */
.rv-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.rv-toast.rv-toast-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rv-toast.rv-toast-ok {
  background: #065f46;
  color: #ecfdf5;
  border: 1px solid #059669;
}

.rv-toast.rv-toast-err {
  background: #991b1b;
  color: #fef2f2;
  border: 1px solid #dc2626;
}

/* ==========================================================================
   Product Description Tab & Guarantees Grid
   ========================================================================== */
.bahr-tab-content-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bahr-tab-section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-subtle);
}

.bahr-product-full-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey-700);
}

.bahr-product-full-content p {
  margin-bottom: 14px;
}

.bahr-product-full-content p:last-child {
  margin-bottom: 0;
}

.bahr-product-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.guarantee-box:hover {
  background: #ffffff;
  border-color: var(--accent-base);
  box-shadow: 0 4px 16px rgba(29, 76, 161, 0.08);
}

.guarantee-box .guarantee-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-box .guarantee-info strong {
  display: block;
  font-size: 14px;
  color: var(--grey-900);
  margin-bottom: 3px;
}

.guarantee-box .guarantee-info p {
  font-size: 12.5px;
  color: var(--grey-600);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Single Product Mobile Responsiveness (< 992px & < 768px & < 480px)
   ========================================================================== */
/* ==========================================================================
   Single Product Mobile Responsiveness (< 992px & < 768px & < 480px)
   ========================================================================== */
@media (max-width: 991px) {
  .single-product .bahr-single-product-top {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    margin-bottom: 28px !important;
  }

  .single-product .bahr-single-gallery-column,
  .single-product div.product div.images,
  .single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 0 16px 0 !important;
    padding: 16px !important;
  }

  .single-product div.product div.summary,
  .single-product .summary.entry-summary,
  .single-product .bahr-single-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .single-product .bahr-single-product-container {
    padding-left: 0;
    padding-right: 0;
  }

  .single-product .bahr-single-product-top {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
  }

  .single-product .bahr-single-gallery-column,
  .single-product div.product div.images,
  .single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 0 14px 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .single-product .woocommerce-product-gallery img {
    max-height: 270px !important;
    margin: 0 auto !important;
  }

  .single-product div.product div.summary,
  .single-product .summary.entry-summary,
  .single-product .bahr-single-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .single-product .flex-control-thumbs {
    margin-top: 14px !important;
    gap: 8px !important;
    padding: 2px !important;
  }

  .single-product .flex-control-thumbs li {
    width: 62px !important;
    height: 62px !important;
    border-radius: 8px !important;
    padding: 2px !important;
  }

  .single-product .product_title {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .bahr-single-price-card {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }

  .single-product div.product p.price,
  .single-product div.product span.price {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }

  .single-product div.product p.price del,
  .single-product div.product span.price del {
    font-size: 15px !important;
  }

  .single-product form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  .single-product .quantity,
  .bahr-quantity-wrap {
    width: 118px !important;
    min-width: 110px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    padding: 2px !important;
  }

  .single-product .quantity .qty-btn,
  .bahr-quantity-wrap .qty-btn {
    width: 34px !important;
    height: 42px !important;
    font-size: 16px !important;
  }

  .single-product .quantity input.qty,
  .bahr-quantity-wrap input.qty {
    width: 38px !important;
    height: 42px !important;
    font-size: 15px !important;
  }

  .single-product .single_add_to_cart_button {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  .single-product .woocommerce-tabs {
    padding: 20px 16px !important;
    border-radius: 12px !important;
    margin-top: 16px !important;
  }

  .single-product .woocommerce-tabs ul.tabs,
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    border: none !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 18px !important;
  }

  .single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar,
  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none !important;
  }

  .single-product .woocommerce-tabs ul.tabs li,
  .woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .single-product .woocommerce-tabs ul.tabs li::before,
  .single-product .woocommerce-tabs ul.tabs li::after,
  .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
  .woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
  }

  .single-product .woocommerce-tabs ul.tabs li a,
  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 9px 18px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }


  .single-product .bahr-single-product-bottom {
    gap: 28px !important;
  }

  .bahr-product-guarantees-grid {
    grid-template-columns: 1fr !important;
  }

  .single-product-trust-box {
    padding: 16px !important;
  }
}

@media (max-width: 400px) {
  .single-product form.cart {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .single-product .quantity,
  .bahr-quantity-wrap {
    width: 100% !important;
    height: 46px !important;
    justify-content: space-between !important;
  }

  .single-product .quantity .qty-btn,
  .bahr-quantity-wrap .qty-btn {
    width: 48px !important;
    height: 40px !important;
  }

  .single-product .single_add_to_cart_button {
    width: 100% !important;
    height: 48px !important;
  }
}

/* ==========================================================================
   Single Product: Fixed Bottom Mobile Add-to-Cart Bar
   ========================================================================== */
.bahr-mobile-sticky-cart-bar {
  display: none !important;
}

@media (max-width: 768px) {
  /* 1. Hide In-Page Top Add-to-Cart & Quantity on Mobile (Bottom Sticky Bar Only) */
  .single-product form.cart:not(.variations_form) {
    display: none !important;
  }

  .single-product form.cart .quantity,
  .single-product form.cart .bahr-quantity-wrap,
  .single-product form.cart .single_add_to_cart_button,
  .single-product form.cart .woocommerce-variation-add-to-cart {
    display: none !important;
  }

  /* 2. Hide Mobile Bottom Nav on Product Page to avoid stacked bars */
  body.single-product .bahr-mobile-bottom-bar {
    display: none !important;
  }

  body.single-product {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 3. Sticky Bottom Bar */
  .bahr-mobile-sticky-cart-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 950 !important; /* Strictly under backdrop (1000) and cart drawer (1050) */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    animation: bahrStickySlideUp 0.3s ease-out;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Ensure sticky bar is strictly below cart drawer (1050) & backdrop (1000), and hidden when open */
  body.bahr-drawer-open .bahr-mobile-sticky-cart-bar,
  body.bahr-cart-open .bahr-mobile-sticky-cart-bar,
  body.bahr-modal-open .bahr-mobile-sticky-cart-bar,
  body:has(.bahr-cart-drawer.open) .bahr-mobile-sticky-cart-bar,
  body:has(.bahr-backdrop.active) .bahr-mobile-sticky-cart-bar,
  body:has(.mobile-drawer.open) .bahr-mobile-sticky-cart-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
    z-index: 900 !important;
  }

  @keyframes bahrStickySlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .sticky-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .sticky-cart-pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    flex-shrink: 0;
  }

  .sticky-price-label {
    font-size: 11px;
    color: var(--grey-500);
    font-weight: 700;
    margin-bottom: 2px;
  }

  .sticky-product-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-base);
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .sticky-product-price del {
    font-size: 12px;
    color: var(--grey-400);
    margin-inline-end: 2px;
    font-weight: 500;
  }

  .sticky-product-price ins {
    text-decoration: none;
    color: var(--accent-base);
  }

  .sticky-cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  /* Modern Segmented Pill Quantity Stepper */
  .bahr-sticky-qty-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    height: 42px;
    padding: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
  }

  .bahr-sticky-qty-wrap .sticky-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--grey-900);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    flex-shrink: 0;
  }

  .bahr-sticky-qty-wrap .sticky-qty-btn:active {
    background-color: #e2e8f0;
    transform: scale(0.9);
    box-shadow: none;
  }

  .bahr-sticky-qty-wrap .sticky-qty-input {
    width: 30px;
    height: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 900;
    font-size: 15px;
    color: var(--grey-900);
    outline: none;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    pointer-events: none;
  }

  .bahr-sticky-qty-wrap .sticky-qty-input::-webkit-outer-spin-button,
  .bahr-sticky-qty-wrap .sticky-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .sticky-cart-btn-wrap {
    flex: 1;
    max-width: 200px;
    min-width: 110px;
  }

  /* Modern Pill Add-to-Cart Button */
  .bahr-sticky-add-btn {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-base) 0%, #153a7a 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 14.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 76, 161, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0 16px;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }

  .bahr-sticky-add-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(29, 76, 161, 0.25);
  }

  .bahr-sticky-add-btn svg {
    flex-shrink: 0;
  }

  .bahr-sticky-add-btn.disabled,
  .bahr-sticky-add-btn:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------
   BAHR VERIFIED CUSTOMER CARD ON CHECKOUT (Compact & Minimalist)
------------------------------------------------------------------------- */
.bahr-checkout-verified-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

.bahr-verified-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bahr-verified-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  flex-wrap: wrap;
}

.bahr-verified-label {
  color: #64748b;
  font-weight: 600;
}

.bahr-verified-display-name {
  color: #0f172a;
  font-weight: 700;
}

.bahr-verified-sep {
  color: #cbd5e1;
}

.bahr-verified-display-phone {
  color: #0f172a;
  font-weight: 700;
}

.bahr-verified-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

.bahr-verified-pill.pill-success {
  background: #d1fae5;
  color: #065f46;
}

.bahr-verified-pill.pill-alert {
  background: #fef3c7;
  color: #92400e;
}

.bahr-verified-actions {
  flex-shrink: 0;
}

.btn-bahr-edit-profile {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
  font-family: inherit;
}

.btn-bahr-edit-profile:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* -------------------------------------------------------------------------
   MODERN MY ORDERS CARDS (صفحة طلباتي ومشترياتي التنفيذية)
------------------------------------------------------------------------- */
.bahr-account-orders-section {
  width: 100%;
}

.bahr-orders-header {
  margin-bottom: 20px;
}

.bahr-orders-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-subtle, #F0F4FC);
  color: var(--accent-base, #1D4CA1);
  border: 1px solid rgba(29, 76, 161, 0.15);
  line-height: 1;
}

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

/* Filter Pills Bar */
.bahr-orders-filter-bar {
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.bahr-orders-filter-bar::-webkit-scrollbar {
  display: none;
}

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

.order-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

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

.order-filter-pill.active {
  background: var(--accent-base, #1D4CA1);
  color: #ffffff;
  border-color: var(--accent-base, #1D4CA1);
  box-shadow: 0 2px 6px rgba(29, 76, 161, 0.18);
}

.order-filter-pill .pill-count {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1;
}

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

.order-filter-pill .pill-count-active {
  background: var(--accent-base, #1D4CA1);
  color: #ffffff;
}

/* Orders Cards Grid */
.bahr-orders-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bahr-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 160ms ease;
}

.bahr-order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Order Card Header */
.bahr-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.order-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.order-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.order-num-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-num-row .order-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.order-num-row .order-id {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.order-date {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.order-time-diff {
  color: #94a3b8;
  font-size: 11px;
}

/* Status Badges - Clean, Professional E-commerce Badges */
.bahr-order-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  display: none !important;
}

.status-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-processing {
  background: #f0f4fc;
  color: #1d4ca1;
  border: 1px solid #d5e1f7;
}

.status-on-hold {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-pending {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.status-cancelled,
.status-refunded,
.status-failed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-default {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Products Items Preview */
.bahr-order-items-preview {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.preview-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.order-thumb-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-thumb-box img,
.order-thumb-box .order-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-more-box {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

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

.preview-primary-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-other-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.preview-meta-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.meta-chip {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.meta-sep {
  color: #cbd5e1;
}

/* Order Card Footer */
.bahr-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
}

.order-footer-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-footer-details .detail-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.order-footer-details .total-val {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.detail-pay-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

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

.btn-order-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-order-view {
  background-color: var(--accent-base, #1D4CA1);
  color: #ffffff;
  border-color: var(--accent-base, #1D4CA1);
}

.btn-order-view:hover {
  background-color: var(--accent-hover, #153B82);
  border-color: var(--accent-hover, #153B82);
  color: #ffffff;
}

.btn-order-view .action-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 140ms ease;
}

.btn-order-view:hover .action-arrow {
  transform: translateX(-3px);
}

.btn-order-reorder {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-order-reorder:hover {
  background: #f8fafc;
  border-color: var(--accent-base, #1D4CA1);
  color: var(--accent-base, #1D4CA1);
}

.btn-order-pay {
  background-color: var(--accent-base, #1D4CA1);
  color: #ffffff;
  border-color: var(--accent-base, #1D4CA1);
}

.btn-order-pay:hover {
  background-color: var(--accent-hover, #153B82);
  border-color: var(--accent-hover, #153B82);
  color: #ffffff;
}

.btn-order-cancel {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-order-cancel:hover {
  background: #fef2f2;
  border-color: #f87171;
}

/* Empty State */
.bahr-orders-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.empty-orders-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  border-radius: 50%;
}

.empty-orders-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.empty-orders-desc {
  font-size: 13px;
  color: #64748b;
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.bahr-empty-shop-btn {
  height: 40px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bahr-orders-empty-filter {
  text-align: center;
  padding: 32px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

/* Pagination */
.bahr-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-order-page {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 120ms ease;
}

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

.order-page-num {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   VIEW ORDER DETAILS PAGE (عرض تفاصيل الطلب والفاتورة)
------------------------------------------------------------------------- */
.bahr-view-order-wrapper {
  width: 100%;
}

.bahr-view-order-nav {
  margin-bottom: 16px;
}

.btn-back-to-orders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-base, #1D4CA1);
  text-decoration: none;
  padding: 6px 14px;
  background: var(--accent-subtle, #F0F4FC);
  border: 1px solid rgba(29, 76, 161, 0.15);
  border-radius: 6px;
  transition: all 120ms ease;
}

.btn-back-to-orders:hover {
  background: #e2ecfa;
  color: var(--accent-hover, #153B82);
}

.bahr-order-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.overview-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.overview-tag {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.overview-order-num {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.overview-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.overview-submeta strong {
  color: #0f172a;
}

.overview-sep {
  color: #cbd5e1;
}

/* Stepper */
.bahr-order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 8px 10px;
  position: relative;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  transition: all 140ms ease;
}

.stepper-step.completed .step-dot {
  background: var(--accent-base, #1D4CA1);
  border-color: var(--accent-base, #1D4CA1);
  color: #ffffff;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.stepper-step.completed .step-label {
  color: #0f172a;
}

.stepper-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 8px;
  position: relative;
  top: -12px;
  z-index: 1;
}

.stepper-line.active {
  background: var(--accent-base, #1D4CA1);
}

.bahr-order-cancelled-notice {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.bahr-order-cancelled-notice p {
  margin: 0;
}

/* Notes Box */
.bahr-order-notes-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.bahr-notes-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.bahr-order-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bahr-order-note-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.note-content p {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.note-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   CUSTOM MODERN ORDER DETAILS DESIGN (Replaces default shop_table)
   ========================================================================== */

/* 1. Never display default WooCommerce order details table or legacy titles */
table.woocommerce-table--order-details,
table.shop_table.order_details,
.woocommerce-table--order-details,
.woocommerce-order-details__title,
.woocommerce-customer-details,
.bahr-order-details-container .woocommerce-order-details__title,
.bahr-order-details-container .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-order-details__title,
.woocommerce-view-order .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-customer-details {
  display: none !important;
}

.bahr-order-details-container .woocommerce-order-details,
.bahr-order-details-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* 2. Custom Order Details Grid */
.bahr-custom-order-details {
  width: 100%;
  margin-top: 24px;
}

.bahr-order-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .bahr-order-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3. Base Card Styles */
.bahr-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

.bahr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.bahr-card-header-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bahr-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0f4fc;
  color: #1d4ca1;
}

.bahr-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.bahr-items-count-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

.bahr-payment-pill {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* 4. Products List */
.bahr-order-items-list {
  display: flex;
  flex-direction: column;
}

.bahr-order-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease;
}

.bahr-order-product-card:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.bahr-order-product-card:first-child {
  padding-top: 0;
}

.product-thumb-box {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-info-box {
  flex: 1;
  min-width: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

.product-item-title a {
  color: #0f172a;
  text-decoration: none;
}

.product-item-title a:hover {
  color: #1d4ca1;
}

.product-item-meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.product-item-meta dt,
.product-item-meta p {
  display: inline;
  margin: 0;
}

.product-item-meta dd {
  display: inline;
  margin: 0 4px 0 10px;
  font-weight: 600;
  color: #334155;
}

.product-qty-price-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-tag {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 6px;
}

.unit-price-tag {
  font-size: 12px;
  color: #64748b;
}

.product-subtotal-box {
  flex-shrink: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.subtotal-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.subtotal-amount {
  font-size: 16px;
  font-weight: 800;
  color: #1d4ca1;
}

/* 5. Financial Summary Rows */
.bahr-summary-rows-list {
  display: flex;
  flex-direction: column;
}

.bahr-summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 14px;
}

.summary-item-label {
  color: #64748b;
  font-weight: 500;
}

.summary-item-val {
  color: #0f172a;
  font-weight: 700;
}

.bahr-summary-item-row.is-discount .summary-item-val {
  color: #16a34a;
}

.bahr-summary-item-row.is-grand-total {
  border-top: 2px dashed #e2e8f0;
  border-bottom: none;
  margin-top: 10px;
  padding-top: 18px;
  padding-bottom: 6px;
}

.bahr-summary-item-row.is-grand-total .summary-item-label {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.bahr-summary-item-row.is-grand-total .summary-item-val {
  font-size: 20px;
  font-weight: 800;
  color: #e22319;
}

/* 6. Summary Action Buttons - Hidden per user request */
.bahr-summary-actions {
  display: none !important;
}

.bahr-btn-print,
.bahr-btn-reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.bahr-btn-print {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

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

.bahr-btn-reorder {
  background: #1d4ca1;
  border: 1px solid #1d4ca1;
  color: #ffffff;
}

.bahr-btn-reorder:hover {
  background: #153b82;
  border-color: #153b82;
}

/* 7. Downloadable Items */
.bahr-downloads-card {
  margin-bottom: 24px;
}

.bahr-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bahr-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 10px;
}

.bahr-download-item .download-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bahr-download-item .download-name {
  font-size: 14px;
  color: #0f172a;
}

.bahr-download-item .download-remaining {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 600px) {
  .bahr-order-product-card {
    align-items: flex-start;
  }
  .product-thumb-box {
    width: 64px;
    height: 64px;
  }
  .bahr-order-card {
    padding: 16px;
  }
}

/* Mobile Responsiveness for Orders List & Detail */
@media (max-width: 768px) {
  .bahr-orders-main-title {
    font-size: 18px;
  }

  .bahr-order-card {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .bahr-order-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
  }

  .order-header-meta {
    gap: 8px;
  }

  .order-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .order-num-row .order-id {
    font-size: 14px;
  }

  .order-date {
    font-size: 11px;
  }

  .bahr-order-status-badge {
    font-size: 11px;
    padding: 3px 9px;
  }

  .bahr-order-items-preview {
    padding: 12px 0;
    gap: 12px;
  }

  .order-thumb-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .preview-primary-title {
    font-size: 13px;
  }

  .bahr-order-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
  }

  .order-footer-details {
    gap: 6px;
  }

  .order-footer-details .detail-label {
    font-size: 11px;
  }

  .order-footer-details .total-val {
    font-size: 14px;
  }

  .detail-pay-chip {
    display: none;
  }

  .btn-order-action {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .bahr-order-stepper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .stepper-line {
    display: none;
  }

  .stepper-step {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* ==========================================================================
   BAHR STORE - MODERN CHECKOUT REDESIGN (HYPERONE STYLE)
   Zero Default WooCommerce Tables / Zero Default Coupon Alert Notices
   ========================================================================== */

/* 1. Order Review Container (Unboxed - Zero Box Container) */
.woocommerce-checkout #order_review,
#order_review,
.checkout-sidebar,
.checkout-sidebar #order_review {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* 2. Main Layout Grid */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 50px;
  direction: rtl;
}

/* Guest Checkout Login Notice */
.bahr-guest-checkout-notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.05);
  box-sizing: border-box;
}

.bahr-guest-blocking-card {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
  flex-direction: column;
  padding: 36px 24px;
}

.bahr-guest-blocking-card .guest-notice-icon {
  margin: 0 auto 12px;
}

.bahr-guest-checkout-notice-card .guest-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bahr-guest-checkout-notice-card .guest-notice-body {
  flex: 1;
  min-width: 0;
}

.bahr-guest-checkout-notice-card .guest-notice-title {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px 0;
}

.bahr-guest-checkout-notice-card .guest-notice-desc {
  font-size: 13px;
  color: #78350f;
  margin: 0;
  line-height: 1.5;
}

.btn-guest-login-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background-color: var(--accent-base, #1D4CA1);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 140ms ease;
  box-shadow: 0 2px 6px rgba(29, 76, 161, 0.2);
}

.btn-guest-login-cta:hover {
  background-color: var(--accent-hover, #153B82);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-guest-login-cta .login-cta-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 140ms ease;
}

.btn-guest-login-cta:hover .login-cta-arrow {
  transform: translateX(-3px);
}

.bahr-notice-login-link {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-base, #1D4CA1) !important;
  font-weight: 700;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .bahr-guest-checkout-notice-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
  }
  .btn-guest-login-cta {
    width: 100%;
    justify-content: center;
  }
}

.bahr-checkout-grid,
.checkout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Suppress default WooCommerce notices & alerts, and remove 'woocommerce-shipping-fields', 'معلومات إضافية' and headings */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout > .woocommerce-info,
.woocommerce-checkout-review-order-table table.shop_table,
.woocommerce-shipping-fields,
#ship-to-different-address,
.shipping_address,
.col-2:has(.woocommerce-shipping-fields),
.woocommerce-additional-fields,
#order_comments_field,
#customer_details h3,
.woocommerce-billing-fields > h3,
.customer-details-card .bahr-card-header,
.form-row.form-row-first.validate-required,
.woocommerce-checkout .form-row.form-row-first.validate-required,
#billing_first_name_field,
.woocommerce-invalid-required-field,
.form-row.woocommerce-invalid,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-billing-fields,
#customer_details,
.customer-details-card {
  display: none !important;
}

/* 3. Cards Base */
.bahr-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  box-sizing: border-box;
}

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

.bahr-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.bahr-card-title svg {
  color: #194ba5;
  flex-shrink: 0;
}

/* 4. Form Fields Styling */
.woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-additional-fields {
  grid-column: 1 / -1 !important;
}

.woocommerce-checkout .form-row {
  margin-bottom: 12px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.woocommerce-checkout .form-row label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 0 !important;
  display: block !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout .form-row label .required {
  color: #e22319 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  margin-right: 2px !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .form-row textarea {
  height: 90px !important;
  padding: 12px 16px !important;
  resize: vertical !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #194ba5 !important;
  box-shadow: 0 0 0 3.5px rgba(25, 75, 165, 0.12) !important;
}

/* 5. Sticky Order Review Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bahr-checkout-review-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 6. Modern Products Review Card (Zero Default WooCommerce Table) */
.bahr-checkout-products-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.products-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.products-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.products-count-badge {
  background: #eff6ff;
  color: #194ba5;
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 9999px;
}

.checkout-products-list {
  display: flex;
  flex-direction: column;
}

.checkout-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.checkout-product-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.checkout-product-item:first-child {
  padding-top: 2px;
}

.checkout-item-thumb-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.checkout-item-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  display: block !important;
}

.checkout-item-qty-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: #194ba5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.checkout-item-details {
  flex: 1;
  min-width: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkout-item-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  white-space: normal;
  word-break: normal;
}

.checkout-item-name a {
  color: #0f172a;
  text-decoration: none;
}

.checkout-item-name a:hover {
  color: #194ba5;
}

.checkout-item-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.checkout-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
  flex-shrink: 0;
  gap: 2px;
}

.checkout-item-total {
  font-size: 15px;
  font-weight: 800;
  color: #e22319;
  line-height: 1.2;
  white-space: nowrap;
}

.checkout-item-unit-price {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

/* 7. Modern Coupon Card (HyperOne Collapsible Style - Zero Default Alert) */
.bahr-checkout-coupon-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.coupon-toggle-trigger {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: right;
  box-sizing: border-box;
}

.coupon-toggle-trigger:hover {
  background: #f8fafc;
}

.coupon-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coupon-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #194ba5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coupon-trigger-text {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.coupon-chevron {
  color: #64748b;
  transition: transform 0.25s ease;
}

.coupon-toggle-trigger[aria-expanded="true"] .coupon-chevron {
  transform: rotate(180deg);
}

.coupon-collapse-content {
  padding: 0 18px 18px;
  border-top: 1px dashed #f1f5f9;
  background: #ffffff;
}

.coupon-form-group {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.coupon-input-wrap {
  flex: 1;
  position: relative;
}

.coupon-input {
  width: 100% !important;
  height: 44px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  background: #f8fafc !important;
  box-sizing: border-box !important;
}

.coupon-input:focus {
  background: #ffffff !important;
  border-color: #194ba5 !important;
  box-shadow: 0 0 0 3px rgba(25, 75, 165, 0.12) !important;
}

.coupon-apply-btn {
  height: 44px !important;
  padding: 0 20px !important;
  background: #194ba5 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.coupon-apply-btn:hover {
  background: #143e8a !important;
}

/* 8. Order Totals Card */
.bahr-checkout-totals-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.summary-totals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}

.summary-row .row-val {
  font-weight: 800;
  color: #0f172a;
  font-size: 14.5px;
}

.summary-row.discount-row,
.summary-row.discount-row .row-val {
  color: #16a34a !important;
}

.summary-row.discount-row a.woocommerce-remove-coupon {
  margin-right: 6px;
  color: #e22319;
  font-size: 12px;
  text-decoration: underline;
}

.summary-row.total-row {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.summary-row.total-row .row-label {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.summary-row.total-row .row-val {
  font-size: 20px;
  font-weight: 900;
  color: #e22319;
}

/* 9. Payment Methods Box & Selectable Cards */
.bahr-checkout-payment-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.payment-methods-list {
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option-card {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  list-style: none !important;
}

.payment-option-card:hover {
  border-color: #cbd5e1 !important;
}

.payment-option-card:has(input[type="radio"]:checked),
.payment-option-card.selected {
  border-color: #194ba5 !important;
  background: #f8faff !important;
  box-shadow: 0 2px 8px rgba(25, 75, 165, 0.08) !important;
}

.payment-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  margin: 0 !important;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.payment-option-card:has(input[type="radio"]:checked) .custom-radio,
.payment-option-card.selected .custom-radio {
  border-color: #194ba5 !important;
}

.custom-radio::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #194ba5;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.payment-option-card:has(input[type="radio"]:checked) .custom-radio::after,
.payment-option-card.selected .custom-radio::after {
  transform: scale(1) !important;
}

.payment-desc-box,
.payment-option-card .payment_box {
  font-size: 13px !important;
  color: #1e40af !important;
  padding: 10px 14px !important;
  background: #eff6ff !important;
  border-radius: 8px !important;
  line-height: 1.45 !important;
  margin: 4px 0 0 !important;
  border: none !important;
}

.payment-option-card .payment_box::before {
  display: none !important;
}

/* 10. Place Order CTA Button - Royal Blue Pill */
.bahr-place-order-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

.place-order-cta-btn,
button#place_order.place-order-cta-btn,
#place_order {
  width: 100% !important;
  height: 52px !important;
  border-radius: 9999px !important;
  background: #194ba5 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  box-shadow: 0 4px 14px rgba(25, 75, 165, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  margin-top: 14px !important;
  box-sizing: border-box !important;
  float: none !important;
}

#place_order:hover {
  background: #143e8a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(25, 75, 165, 0.35) !important;
}

#place_order .btn-label-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#place_order .btn-lock-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#place_order .btn-total-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

/* Disabled Place Order Button for Guests */
body:not(.logged-in) #place_order,
#place_order:disabled,
#place_order.disabled,
#place_order.is-guest-disabled {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #f8fafc !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

body:not(.logged-in) #place_order:hover,
#place_order:disabled:hover,
#place_order.disabled:hover,
#place_order.is-guest-disabled:hover {
  background: #94a3b8 !important;
  transform: none !important;
  box-shadow: none !important;
}

body:not(.logged-in) #place_order .btn-total-badge,
#place_order:disabled .btn-total-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
}

.bahr-guest-disabled-btn-msg {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}

.bahr-guest-disabled-btn-msg svg {
  color: #b45309;
  flex-shrink: 0;
}

.bahr-guest-btn-login-cta {
  color: #1d4ca1 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  white-space: nowrap;
}

/* 11. Mobile Responsiveness */
@media (max-width: 991px) {
  .bahr-checkout-grid,
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .checkout-sidebar {
    position: static !important;
    order: -1 !important;
  }

  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .bahr-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .checkout-container {
    padding: 8px 12px 110px !important;
  }

  /* Sticky CTA Bar on Mobile */
  .mobile-checkout-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    padding: 10px 16px !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
  }

  .mobile-checkout-sticky-bar .place-order-cta-btn {
    margin-top: 0 !important;
    height: 48px !important;
  }
}

@media (min-width: 992px) {
  .mobile-checkout-sticky-bar {
    display: none !important;
  }
}

/* ==========================================================================
   BAHR STORE - MODERN SHOP & CATEGORY ARCHIVE (HYPERONE STYLE)
   Hero Banner, Subcategory Chips, Modern Toolbar, Fluid Grid & Drawer
   ========================================================================== */

/* 1. Archive Hero Banner Card (Compact, Minimal & Neutral) */
.bahr-archive-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  position: relative;
}

.bahr-archive-hero-card::before {
  display: none !important;
}

.bahr-archive-breadcrumbs-wrap {
  margin-bottom: 6px;
}

.bahr-breadcrumbs {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bahr-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bahr-breadcrumbs a:hover {
  color: #0f172a;
}

.bahr-breadcrumbs .sep {
  color: #cbd5e1;
  font-size: 10px;
}

.bahr-archive-heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bahr-archive-thumb-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bahr-archive-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bahr-archive-meta-text {
  flex: 1;
  min-width: 0;
}

.bahr-archive-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bahr-archive-h1 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.bahr-archive-badge {
  display: none !important;
}

.bahr-archive-desc-p {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.bahr-archive-desc-p p {
  margin: 0;
}

/* 2. Subcategories Horizontal Scroll Chips (Compact & Sleek) */
.bahr-subcat-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bahr-subcat-chips-scroll::-webkit-scrollbar {
  display: none;
}

.bahr-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.bahr-subcat-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bahr-subcat-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: none;
}

.bahr-subcat-chip .chip-num {
  display: none !important;
}

/* 3. Shop Controls Toolbar Bar & Modern Ordering Select */
.bahr-shop-toolbar-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  margin-bottom: 22px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  flex-wrap: wrap !important;
}

.bahr-shop-toolbar-bar .woocommerce-result-count,
.woocommerce-result-count {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.4 !important;
}

.woocommerce-ordering,
.woocommerce-page .woocommerce-ordering,
.bahr-shop-toolbar-bar .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Custom Non-Default Interactive Dropdown for WooCommerce Ordering */
.bahr-hidden-native-select {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
}

.bahr-custom-ordering {
  position: relative !important;
  display: inline-block !important;
  z-index: 50 !important;
}

.bahr-custom-order-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.bahr-custom-order-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.bahr-custom-ordering.is-open .bahr-custom-order-btn {
  background: #ffffff !important;
  border-color: #194ba5 !important;
  box-shadow: 0 0 0 3px rgba(25, 75, 165, 0.12) !important;
}

.bahr-order-btn-icon {
  display: flex !important;
  align-items: center !important;
  color: #64748b !important;
}

.bahr-custom-ordering.is-open .bahr-order-btn-icon {
  color: #194ba5 !important;
}

.bahr-order-btn-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.bahr-order-label-prefix {
  color: #64748b !important;
  font-weight: 500 !important;
}

.bahr-order-active-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.bahr-order-chevron {
  display: flex !important;
  align-items: center !important;
  color: #64748b !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-right: 2px !important;
}

.bahr-custom-ordering.is-open .bahr-order-chevron {
  transform: rotate(180deg) !important;
  color: #194ba5 !important;
}

/* Floating Custom Dropdown Menu (Replaces default select list completely) */
.bahr-custom-order-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 260px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  padding: 6px !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) scale(0.98) !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
  direction: rtl !important;
}

.bahr-custom-ordering.is-open .bahr-custom-order-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.bahr-custom-order-dropdown-head {
  padding: 8px 12px 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.3px !important;
}

.bahr-custom-order-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bahr-custom-order-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 9px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.bahr-custom-order-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.bahr-custom-order-item.is-selected {
  background: #eff6ff !important;
  color: #194ba5 !important;
  font-weight: 700 !important;
}

.bahr-order-item-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  color: #64748b !important;
}

.bahr-custom-order-item.is-selected .bahr-order-item-icon {
  color: #194ba5 !important;
}

.bahr-order-item-label {
  flex: 1 !important;
  text-align: right !important;
}

.bahr-order-check-icon {
  display: flex !important;
  align-items: center !important;
  opacity: 0 !important;
  color: #194ba5 !important;
  transition: opacity 0.15s ease !important;
}

.bahr-custom-order-item.is-selected .bahr-order-check-icon {
  opacity: 1 !important;
}

/* Fallback styling for any native select if present elsewhere */
.woocommerce-ordering select:not(.bahr-hidden-native-select) {
  height: 38px !important;
  min-height: 38px !important;
  line-height: 36px !important;
  padding: 0 14px 0 34px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  direction: rtl !important;
}

.bahr-filter-drawer-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bahr-filter-drawer-trigger:hover {
  background: #ffffff;
  border-color: #194ba5;
  color: #194ba5;
}

/* 4. Products Grid Layout (Fluid, Modern CSS Grid - 5 columns on desktop) */
.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
}

/* Category & Archive Pages: 5 Columns on Desktop (more than 4 per row) */
body.tax-product_cat ul.products,
body.tax-product_cat .woocommerce ul.products,
body.post-type-archive-product ul.products,
body.post-type-archive-product .woocommerce ul.products,
.bahr-archive-page-view ul.products,
.bahr-archive-page-view .woocommerce ul.products,
.tax-product_cat ul.products {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* Category page container desktop expansion for 5 columns */
@media (min-width: 1025px) {
  .bahr-woocommerce-page.bahr-archive-page-view .bahr-container,
  body.tax-product_cat .bahr-container,
  body.post-type-archive-product .bahr-container {
    max-width: 1420px !important;
  }
}

/* Layout with sidebar on desktop */
@media (min-width: 1200px) {
  .bahr-shop-layout.has-sidebar {
    grid-template-columns: 240px 1fr !important;
    gap: 20px !important;
  }

  .bahr-shop-layout.has-sidebar .woocommerce ul.products,
  .bahr-shop-layout.has-sidebar ul.products,
  body.tax-product_cat .bahr-shop-layout.has-sidebar ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .bahr-shop-layout.has-sidebar {
    grid-template-columns: 220px 1fr !important;
    gap: 16px !important;
  }

  .bahr-shop-layout.has-sidebar .woocommerce ul.products,
  .bahr-shop-layout.has-sidebar ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 5. Product Card Enhancements */
.woocommerce ul.products li.product .product-card,
ul.products li.product .product-card {
  height: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce ul.products li.product .product-card:hover,
ul.products li.product .product-card:hover {
  transform: translateY(-4px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07) !important;
}

.product-card .product-image {
  position: relative !important;
  aspect-ratio: 1 !important;
  background: #ffffff !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.product-card .product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.35s ease !important;
}

.product-card:hover .product-image img {
  transform: scale(1.05) !important;
}

.product-card .badge-discount {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: #e22319 !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  z-index: 2 !important;
  box-shadow: 0 2px 6px rgba(226, 35, 25, 0.25) !important;
}

.product-card .btn-fav {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 2 !important;
}

.product-card .btn-fav:hover {
  background: #fee2e2 !important;
  color: #e22319 !important;
  border-color: #fecaca !important;
}

.product-card .btn-fav.active,
.btn-fav.active,
.bahr-wishlist-toggle.active {
  background: #ffffff !important;
  color: #e11d48 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22) !important;
}

.product-card .btn-fav.active svg,
.btn-fav.active svg,
.bahr-wishlist-toggle.active svg {
  fill: #e11d48 !important;
  stroke: #e11d48 !important;
  color: #e11d48 !important;
}

.product-card .btn-fav.active svg path,
.btn-fav.active svg path,
.bahr-wishlist-toggle.active svg path {
  fill: #e11d48 !important;
  stroke: #e11d48 !important;
}

.product-card .btn-fav.active:hover,
.btn-fav.active:hover,
.bahr-wishlist-toggle.active:hover {
  background: #fff1f2 !important;
  border-color: #f87171 !important;
  transform: scale(1.08) !important;
}

.product-card .product-content {
  padding: 14px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  text-align: right !important;
  border-top: 1px solid #f1f5f9 !important;
}

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

.product-card .product-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 38px !important;
}

.product-card .product-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.product-card .product-title a:hover {
  color: #194ba5 !important;
}

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

.product-card .product-price-box {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.product-card .product-price-box .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #e22319 !important;
}

.product-card .product-price-box del .woocommerce-Price-amount {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
}

.product-card .product-price-box ins {
  text-decoration: none !important;
}

.woocommerce-Price-amount {
  white-space: nowrap;
}

.woocommerce-Price-amount bdi {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  unicode-bidi: isolate;
  direction: rtl;
}

.woocommerce-Price-currencySymbol {
  font-weight: inherit;
  font-size: 0.9em;
}

.product-card .btn-add-cart {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: #194ba5 !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(25, 75, 165, 0.2) !important;
}

.product-card .btn-add-cart:hover {
  background: #143e8a !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(25, 75, 165, 0.35) !important;
}

.product-card .btn-add-cart svg {
  width: 18px !important;
  height: 18px !important;
}

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

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

.bahr-spin-icon {
  animation: bahrSpin 0.75s linear infinite !important;
}

/* 6. Modern Pagination */
.woocommerce-pagination {
  margin: 36px 0 24px !important;
  text-align: center !important;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  border-color: #194ba5 !important;
  color: #194ba5 !important;
  transform: translateY(-1px) !important;
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: #194ba5 !important;
  border-color: #194ba5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(25, 75, 165, 0.25) !important;
}

/* 7. Shop Sidebar & Widgets */
.bahr-shop-sidebar .widget {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.bahr-shop-sidebar .widget .widget-title,
.bahr-shop-sidebar .widgettitle {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: block !important;
}

.bahr-sidebar-mobile-head {
  display: none;
}

/* 8. Mobile & Responsive Layout for Shop */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  ul.products,
  body.tax-product_cat ul.products,
  .bahr-archive-page-view ul.products,
  .bahr-shop-layout.has-sidebar .woocommerce ul.products,
  .bahr-shop-layout.has-sidebar ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 991px) {
  .bahr-filter-drawer-trigger {
    display: inline-flex !important;
  }

  .bahr-shop-layout.has-sidebar {
    grid-template-columns: 1fr !important;
  }

  /* Off-canvas Sliding Drawer on Mobile */
  .bahr-shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    background: #ffffff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15) !important;
  }

  .bahr-shop-sidebar.is-open {
    transform: translateX(0) !important;
  }

  .bahr-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  .bahr-sidebar-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .bahr-sidebar-mobile-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
  }

  .bahr-sidebar-heading {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  .bahr-sidebar-close-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #475569 !important;
  }

  .bahr-archive-hero-card {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .bahr-archive-h1 {
    font-size: 16px !important;
  }

  .bahr-archive-thumb-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  ul.products,
  body.tax-product_cat ul.products,
  .bahr-archive-page-view ul.products,
  .bahr-shop-layout.has-sidebar .woocommerce ul.products,
  .bahr-shop-layout.has-sidebar ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .bahr-shop-toolbar-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 14px !important;
  }

  .bahr-shop-toolbar-bar .woocommerce-result-count {
    text-align: center !important;
    font-size: 12px !important;
  }

  .woocommerce-ordering,
  .bahr-shop-toolbar-bar .woocommerce-ordering {
    width: 100% !important;
  }

  .woocommerce-ordering select,
  .woocommerce-ordering select.orderby,
  .bahr-shop-toolbar-bar .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card .product-content {
    padding: 10px 12px 14px !important;
  }

  .product-card .product-title {
    font-size: 13px !important;
    min-height: 36px !important;
  }

  .product-card .product-price-box .woocommerce-Price-amount {
    font-size: 14.5px !important;
  }

  .product-card .btn-add-cart {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .product-card .btn-add-cart svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ==========================================================================
   إخفاء إشعار تأكيد البريد الإلكتروني للتحقق من الطلبات السابقة وربطها بحسابك
   ========================================================================== */
.woocommerce-info:has(a[href*="wc_send_verification"]),
.woocommerce-message:has(a[href*="wc_send_verification"]),
.woocommerce-MyAccount-content .woocommerce-info:has(a[href*="wc_send_verification"]),
.woocommerce-MyAccount-content > .woocommerce-info:empty,
.bahr-account-orders-section ~ .woocommerce-info,
.bahr-account-orders-section .woocommerce-info:has(a[href*="wc_send_verification"]) {
  display: none !important;
}

/* ==========================================================================
   HOMEPAGE CATEGORY SLIDERS (كل تصنيف معروض كتمرير لمنتجاته)
   ========================================================================== */
.bahr-homepage-category-sliders {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.bahr-cat-slider-section {
  position: relative;
  width: 100%;
}

.bahr-cat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bahr-cat-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bahr-cat-title-thumb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

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

.bahr-cat-count-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 9999px;
}

.bahr-cat-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-see-all-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #194ba5;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-see-all-cat:hover {
  background: #194ba5;
  color: #ffffff;
  border-color: #194ba5;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(25, 75, 165, 0.2);
}

.btn-see-all-cat svg {
  transition: transform 0.2s ease;
}

.btn-see-all-cat:hover svg {
  transform: translateX(-3px);
}

.bahr-slider-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bahr-slider-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bahr-slider-arrow:hover {
  background: #194ba5;
  color: #ffffff;
  border-color: #194ba5;
  transform: scale(1.05);
}

.bahr-products-slider-track {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px 16px 2px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.bahr-products-slider-track::-webkit-scrollbar {
  height: 6px;
}

.bahr-products-slider-track::-webkit-scrollbar-track {
  background: transparent;
}

.bahr-products-slider-track::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 9999px;
}

.bahr-products-slider-track:hover::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
}

.bahr-products-slider-track .bahr-slider-item {
  flex: 0 0 215px !important;
  max-width: 215px !important;
  min-width: 215px !important;
  scroll-snap-align: start !important;
}

@media (max-width: 1024px) {
  .bahr-products-slider-track .bahr-slider-item {
    flex: 0 0 190px !important;
    max-width: 190px !important;
    min-width: 190px !important;
  }
}

@media (max-width: 768px) {
  .bahr-slider-nav-btns {
    display: none !important;
  }
  .bahr-products-slider-track {
    gap: 10px !important;
    padding-bottom: 12px !important;
  }
  /* عرض أكثر من منتجين بالجوال (منتجان كاملان + بروز جزء واضح من المنتج الثالث ليدرك المستخدم فوراً أنه شريط تمرير) */
  .bahr-products-slider-track .bahr-slider-item {
    flex: 0 0 144px !important;
    max-width: 144px !important;
    min-width: 144px !important;
  }
  .bahr-products-slider-track .product-card .product-image {
    padding: 8px !important;
  }
  .bahr-products-slider-track .product-card .product-content {
    padding: 8px 10px 10px !important;
  }
  .bahr-products-slider-track .product-card .product-title {
    font-size: 12px !important;
    min-height: 32px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }
  .bahr-products-slider-track .product-card .product-price-box .woocommerce-Price-amount {
    font-size: 13.5px !important;
  }
  .bahr-products-slider-track .product-card .btn-add-cart {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
  .bahr-products-slider-track .product-card .btn-add-cart svg {
    width: 14px !important;
    height: 14px !important;
  }
  .bahr-products-slider-track .product-card .btn-fav {
    width: 28px !important;
    height: 28px !important;
    top: 6px !important;
    left: 6px !important;
  }
  .bahr-products-slider-track .product-card .btn-fav svg {
    width: 15px !important;
    height: 15px !important;
  }
  .bahr-products-slider-track .product-card .badge-discount {
    font-size: 10px !important;
    padding: 2px 7px !important;
    top: 6px !important;
    right: 6px !important;
  }
}

@media (max-width: 375px) {
  /* أصغر شاشات الجوال */
  .bahr-products-slider-track .bahr-slider-item {
    flex: 0 0 134px !important;
    max-width: 134px !important;
    min-width: 134px !important;
  }
}

/* ==========================================================================
   OFFERS & DEALS PAGE (صفحة العروض والتخفيضات)
   ========================================================================== */
.bahr-deals-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%) !important;
  border: 1px solid #fecdd3 !important;
}

.bahr-deals-badge-thumb {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28) !important;
}

.bahr-deals-count-pill {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #be123c !important;
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
}

.bahr-deals-features-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed #fecdd3;
  flex-wrap: wrap;
}

.bahr-deals-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.bahr-deals-feat-item .feat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
}

.bahr-empty-deals-box {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
  margin: 32px 0;
}

.bahr-empty-deals-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fef2f2;
  color: #e11d48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bahr-empty-deals-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.bahr-empty-deals-box p {
  font-size: 14px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.bahr-deals-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 800;
}