/* ==========================================================================
   PRODUCT PAGE & COMMERCE (big split from numart_main.css)
   Layout, add-to-cart, quantity input, product cards, swatches, promo badges,
   new-arrivals swiper, highlighted-products swiper nav, cart/wishlist badges.
   ========================================================================== */

.layout__region--second {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  margin-bottom: 15px;
  width: 100%;
  text-align: right;
  /* Align text to the right */
}


.layout__region--second .body p {
  margin: 0;
}


.product-tags {
  text-decoration: none;
  font-weight: bold;
  padding: 4px 6px;
  /* Add padding for spacing */
  border-radius: 8px;
  /* Add border radius for rounded corners */
  display: inline-block;
  /* Ensure proper spacing and alignment */
}


.layout__region--second .product-tags:empty {
  display: none;
}


/* Stock quantity styling moved to .alert-remaining-items section */


.block-field-blockcommerce-productmyproducttitle .title,
.layout__region--second .price,
.layout--twocol-section .product-price {
  /* Elegant and formal serif font */
  font-size: 2rem;
  /* Stand-out size for the titcple */
  text-align: right;
  /* Center the title for a balanced layout */
  position: relative;
  /* Enables the use of pseudo-elements for decoration */
  direction: ltr !important;
}
.layout__region--second .price {
  color:green
}

.block-field-blockcommerce-productmyproductbody{
  margin-top: 1rem !important;
  margin-bottom: 3rem !important; 
    width: 80%;
  margin-left: auto;
  margin-right: auto;
  line-height: 2rem;
}
.block-field-blockcommerce-productmyproductbody .body,
.block-field-blockcommerce-productmyproductbody .body p {
  direction: rtl;
  text-align: justify;
  text-align-last: right;
}

.form-actions {
  order: 99;
  /* Move this div to the last position - after attributes */
  align-self: flex-end;
  /* Align the button section to the right */
}

/* Hide stock status on product page */
.stock-status.product-stock-status {
  display: none !important;
}

/* Product page: Wishlist + Quantity row centered below the button */
.layout__region--second .commerce-order-item-add-to-cart-form {
  display: flex !important;
  flex-direction: column !important;
  
}

.layout__region--second .form-actions {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Quantity input wrapper - remove order so it stays in place */
.layout__region--second .form-actions .js-form-item-quantity-0-value,
.layout__region--second .form-actions .custom-number-input {
  order: 2 !important;
}

/* Add to cart button on its own row */
.layout__region--second .form-actions .button--add-to-cart {
  order: 1 !important;
  width: 70% !important;
  margin-bottom: 12px !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
}


/* Wishlist button styling for product page actions row */
.layout__region--second .block-extra-field-blockcommerce-productmyproductflag-wishlist {
  position: relative !important;
  margin: 0 !important;
}

/* Wishlist + Quantity row - centered below button */
.layout__region--second .wishlist-quantity-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 12px !important;
  width: 70% !important;
}

.layout__region--second .wishlist-quantity-row .block-extra-field-blockcommerce-productmyproductflag-wishlist {
  order: 1 !important; /* Wishlist on left (in RTL this will be right side visually) */
}

.layout__region--second .wishlist-quantity-row .custom-number-input {
  order: 2 !important; /* Quantity input on right (in RTL this will be left side visually) */
  margin-left: 0 !important;
}

/* Stock error message - inline with quantity row (left side) */
.layout__region--second .wishlist-quantity-row .stock-error-message {
  order: 0 !important; /* First in flex order (left in RTL = right visually) */
  margin: 0 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  color: #721c24 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.layout__region--second .wishlist-quantity-row .stock-error-message .error-icon {
  font-size: 14px !important;
}

/* Make layout region the positioning context for absolute children */
.layout__region--second {
  position: relative;
}




.button--add-to-cart {
  color: #fff;
  /* White text for contrast */
  border: none !important;
  /* No border */
  cursor: pointer;
  /* Pointer cursor for interactivity */
  position: relative !important;
  top: 0 !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  width: 50% !important;
  height: 50px !important;
  border-radius: 50px !important;
  background-image: none !important;
  margin-top: 1rem !important;
}

/* Hide button text while JavaScript determines correct stock state */
.button--add-to-cart.stock-loading {
  color: transparent !important;
  pointer-events: none;
}
.button--add-to-cart.stock-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}


/* Container for products */
.view-new-arrivals-products .view-content {
  margin: auto;
  display: flex;
  /* Use flexbox for horizontal layout */
  flex-wrap: nowrap;
  /* Prevent wrapping to the next row */
  overflow-x: auto;
  /* Enable horizontal scrolling */
  gap: 10px;
  /* Space between product cards */
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  margin: 10px;
  width: 40px !important;
  /* Set the width */
  height: 40px !important;
  /* Set the height */
  margin-top: calc(0px - var(--swiper-navigation-size));
  /* Center vertically */
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nm-text-secondary);
  /* Default arrow color */
  --beo-bg-opacity: 1;
  background-color: white;
  border-radius: 50%;
  /* Make the background a circle */
  transition: background-color 0.3s ease, transform 0.3s ease;
  /* Add smooth transition */
}


.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  /* Adjust the icon size */
  font-weight: bold;
}

.block-views-blocknew-arrivals-products-block-1 h2 {
  margin: 0 auto;
  /* Center the heading horizontally */
  text-align: center;
  /* Center the text */
  --beo-bg-opacity: 1;
  background-color: rgba(var(--beo-dark-rgb), var(--beo-bg-opacity)) !important;
  color: white;
  /* Set the text color to white */
  font-size: 24px;
  /* Set a suitable font size */
  /* Use a clean, modern font */
  padding: 10px 20px;
  /* Add padding for better spacing */
  border-radius: 5px;
  /* Slightly round the corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  /* Add a subtle shadow for style */
  text-transform: uppercase;
  /* Make the text uppercase for emphasis */
  letter-spacing: 1px;
  /* Add spacing between letters */
  line-height: 1.4;
  /* Improve line spacing */
}


.product-info {
  display: flex !important;
  flex-direction: column;
  /* align-items: flex-end !important; */
  width: 100% !important;
  max-width: 320px !important; /* Match product card width - required for ellipsis */
  min-width: 0 !important; /* Allow children to shrink for ellipsis */
  text-align: right; /* RTL default - title and price align together */
}

.ui-dialog .product-info {
  text-align: center !important;
  max-width: 100% !important;
}

/* Ensure price aligns same as title */
.product-info .field--name-variation-price,
.product-info .price {
  text-align: inherit !important;
}


.product-info,
.product-title a {
  border-bottom: unset !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--nm-primary-color);
}

.product-title {
  font-weight: 700 !important;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  /* Single-line CSS truncation — no JS measurement needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* Ensure clicks are captured above stretched-link */
  z-index: 2;
  pointer-events: auto;
}

/* Truncated titles - show pointer on hover (popup appears) */
.product-title.is-truncated {
  cursor: pointer;
}

.product-title::after {
  content: '';
  /* Creates an empty element for the underline */
  position: absolute;
  left: 0;
  bottom: 0;
  /* Position at the bottom of the parent link */
  width: 0;
  /* Starts with no width (invisible) */
  height: 2px;
  /* Thickness of the underline */
  background-color: var(--nm-text-primary) !important;;
  /* Color of the underline */
  transition: width 0.3s ease;
  /* Animation effect */
}

.product-title:hover::after {
  width: 100%;
  /* Expands the underline on hover */
}

/* Product price - green color */
.product-info .field--name-variation-price,
.product-info .price,
.product-info .commerce-price-formatted-amount,
.product .price {
  font-weight: 700 !important;
}


.product-info .original-price,
.product-info .price--original {
  color: var(--nm-text-muted) !important;
  text-decoration: line-through !important;
}

/* Product image transition for smooth swatch hover */
.product-image img {
  transition: opacity 0.25s ease-in-out;
}

.product-image img.swatch-hover-image {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .product-color-swatches {
    gap: 3px;
    flex-wrap: wrap;
    max-width: 100%; /* Take full width of parent */
    width: 100%;
    justify-content: flex-start; /* flex-start = right in RTL */
  }
  
  .product-color-swatches .color-swatch {
    width: 14px;
    height: 14px;
  }
  
  .product-color-swatches .color-swatch:hover,
  .product-color-swatches .color-swatch.active {
    transform: scale(1.15);
  }
  
  /* Title popup - mobile optimizations */
  .title-popup {
    max-width: calc(100vw - 20px);
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .title-popup-text {
    font-size: 13px;
  }
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  border: 1px solid #e3e3e3;
  background: var(--nm-gray-100);
  /* Fixed dimensions: 320x340 on desktop */
  width: 320px;
  height: 340px;
}

.product-image img {
  /* Fill container completely - no gaps */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* Overlay container for hover images */
.product-image .swatch-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
}

/* All overlay images - smooth crossfade */
.product-image .swatch-overlay-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 10px;
  /* Prevent any layout shift */
  will-change: opacity;
  backface-visibility: hidden;
}

.product-image:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* .noUi-handle-upper::after {
  left: -25px !important;
  top: -17px !important;
} */

.js-form-wrapper input[type="text"] {
  display: none !important;
}


.col-lg-3 {
  width: 20% !important;
  text-align: right !important;
}

.color-swatch {
  display: inline-block;
  cursor: pointer;
  margin: 5px;
}

.color-swatch input[type="checkbox"] {
  display: none;
  /* Hide the default checkbox */
}

.color-swatch .swatch,
.color_field__swatch {
  position: relative;
  /* Required for positioning the pseudo-element */
  width: 40px !important;
  /* Example size */
  height: 40px !important;
  /* Example size */
  display: inline-block;
  background-color: #ccc;
  /* Example background color */
  border: 1px solid var(--nm-gray-400) !important;
  /* Default border */
  box-sizing: border-box;
  overflow: hidden;
  /* Ensure pseudo-elements are clipped inside the swatch */
  border-radius: 4px !important;
}

/* Color swatch hover - no background change, just subtle scale */
.color_field__swatch:hover {
  transform: scale(1.1);
}

/* Style when the checkbox is selected */
.color-swatch input[type="checkbox"]:checked+.swatch {
  border: 1px solid #000;
  /* Highlight selected swatches */
}

/* Default diagonal line (black) for light swatches */
.color-swatch input[type="checkbox"]:checked+.swatch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 48%, var(--nm-black) 48%, var(--nm-black) 52%, transparent 52%);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* White diagonal line for dark swatches */
.color-swatch input[type="checkbox"]:checked+.swatch.dark-swatch::before {
  background: linear-gradient(135deg, transparent 48%, var(--nm-white) 48%, var(--nm-white) 52%, transparent 52%);
}


input[type="radio"]:checked+label .color_field__swatch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 48%, var(--nm-black) 48%, var(--nm-black) 52%, transparent 52%);
  z-index: 1;
  pointer-events: none;
  /* Ensure it doesn't block interactions */
}

input[type="radio"]:checked+label .color_field__swatch.dark-swatch::before {
  background: linear-gradient(135deg, transparent 48%, var(--nm-white) 48%, var(--nm-white) 52%, transparent 52%);
}

/* Ensure the rendered-color div is positioned correctly for the pseudo-element */
.color_field__swatch {
  position: relative;
}


.accordion-button {
  padding: 0.5rem;
}


.form-item-price-min .form-label,
.form-item-price-max .form-label {
  display: none;
}


.accordion-button::after {
  display: none;
}

.accordion-header {
  position: relative;
  cursor: default !important;
  margin-bottom: 2rem !important;
  font-weight: 400 !important;
}

.accordion-button:not(.collapsed) {
  box-shadow: unset !important;
}


.bef-exposed-form .fieldset-legend,
.accordion .fieldset-legend.accordion-button {
  font-size: 1rem;
  border-bottom: 0 !important;
}

.bef-exposed-form .fieldset-legend {
  font-weight: 600 !important;
  font-size: 1.2rem !important;
}

.bef-toggle {
  font-size: 0.7rem;
}

.size-swatch {
  display: inline-block;
  margin: 5px;
  cursor: pointer;
}


.size-swatch input[type="checkbox"] {
  display: none;
  /* Hide the default checkbox */
}

.size-swatch .swatch,
.form-check-label .name {
  display: flex;
  /* Use Flexbox to center content */
  align-items: center;
  /* Center content vertically */
  justify-content: center;
  /* Center content horizontally */
  /* Add spacing between the boxes */
  width: auto;
  /* Adjust the size of the box */
  min-width: 40px;
  height: 40px;

  /* Optional: Rounded corners */
  text-align: center;
  /* Align text in the center horizontally (optional with Flexbox) */
  color: black;
  transition: all 0.2s ease;
  /* Add a hover effect */

  font-size: 12px;
}

.variations .form-check-label .name {
  width: fit-content !important;
  padding: 5px;
  /* Adjust the size of the box */
  height: 40px !important;
}

.size-swatch input[type="checkbox"]:checked+.swatch,
input[type="radio"]:checked+.form-check-label .name,
input[type="checkbox"]:checked+.form-check-label .name {
  border-color: white;
  /* Highlight the border when selected */

  /* Slightly darker background when selected */
  color: white;
  font-size: 12px !important;
}

/* Ensure the list items are displayed in a single row with wrapping */
#edit-attribute-color-att--2 .form-checkboxes ul {
  display: flex;
  /* Arrange items in a single row */
  flex-wrap: wrap;
  /* Allow items to wrap if there's not enough space */
  gap: 10px;
  /* Add spacing between items */
  list-style: none;
  /* Remove default bullet points */
  padding: 0;
  margin: 0;
  direction: rtl !important;
}

/* Size filter - always in one row without wrapping */
#edit-attribute-size-att--2 .form-checkboxes ul {
  display: flex;
  flex-wrap: wrap;
  /* Force items to stay in one row */
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl !important;
}

#edit-attribute-size-att--2 .form-checkboxes li,
#edit-attribute-color-att--2 .form-checkboxes li {
  margin: 0;
  /* Remove default margin */
}


.size-swatch .swatch:hover,
.form-check-label .name:hover {
  background-color: var(--nm-primary-color) !important;
  color: white;
  cursor: pointer;
}

.form-item-purchased-entity-0-attributes-attribute-color-att .name {
  display: none !important;
}


.block-views-blocknew-arrivals-products-block-1 {
  margin-bottom: 2rem !important;
}


.region-content {
  width: 100%;
  padding-right: calc(var(--beo-gutter-x) * .5);
  padding-left: calc(var(--beo-gutter-x) * .5);
  margin-right: auto;
  margin-left: auto;
}


/* .js-form-item.form-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
} */

.discount-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: red;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  z-index: 5;
}

/* Buy X Get Y Promotion Badge - Always on left side */
.buy-x-get-y-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: white;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
  max-width: calc(100% - 20px);
}

/* All promotion badges - Red background */
.buy-x-get-y-badge.badge-offer,
.buy-x-get-y-badge.badge-both,
.buy-x-get-y-badge.badge-buy,
.buy-x-get-y-badge.badge-get,
.buy-x-get-y-badge {
  background: linear-gradient(135deg, #e53935, #c62828) !important;
}

/* Free promo gets extra glow */
.buy-x-get-y-badge.free-promo {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.buy-x-get-y-badge .promo-icon {
  font-size: 12px;
  line-height: 1;
}

.buy-x-get-y-badge .promo-text {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* When both discount-label and buy-x-get-y-badge exist, stack them */
.product-image .discount-label + .buy-x-get-y-badge,
.product-image .buy-x-get-y-badge:nth-of-type(2) {
  top: 45px;
}

/* RTL support for promo badge - Keep on left side */
[dir="rtl"] .buy-x-get-y-badge {
  left: 10px;
  right: auto;
}

/* Mobile styles for promo badge */
@media (max-width: 768px) {
  .buy-x-get-y-badge {
    padding: 3px 5px;
    font-size: 8px;
    border-radius: 4px;
    gap: 2px;
  }
  
  .buy-x-get-y-badge .promo-icon {
    font-size: 10px;
  }
  
  .buy-x-get-y-badge .promo-text {
    max-width: 80px;
  }
  
  .product-image .discount-label + .buy-x-get-y-badge,
  .product-image .buy-x-get-y-badge:nth-of-type(2) {
    top: 30px;
  }
}

/* Promo Info Icon Button - Red background */
.promo-info-icon {
  background: linear-gradient(135deg, #e53935, #c62828) !important;
}

.promo-info-icon button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-info-icon svg {
  stroke: #fff !important;
}

/* Teaser icon column: gap between icons (40px height + 8px gap) */
.product-image .cart-icon {
  top: 58px !important;   /* 10 + 40 + 8 */
}
.product-image .buy-now-icon {
  top: 106px !important; /* 58 + 40 + 8 */
}
.desktop-only-icon.promo-info-icon {
  top: 154px !important; /* 106 + 40 + 8 */
}

/* Teaser: icons on the right, with gaps (same in LTR and RTL) */
.product-image .flag-icon,
.product-image .product-teaser .flag-icon {
  position: absolute !important;
  top: 10px;
  right: -50px;
  left: auto;
  width: 40px;
  height: 40px;
  z-index: 10;
  background: white;
  border-radius: 5px;
  padding: 0;
  border: none;
  box-sizing: border-box;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  display: grid;
  place-items: center;
  transition: right 0.3s ease, opacity 0.3s ease;
  color: black;
}

.product-image:hover .flag-icon {
  right: 10px;
  opacity: 1;
}

.product-image .flag-icon a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 40px;
  padding-top: 0.2rem;
}

.product-image .flag-icon a>svg {
  vertical-align: middle;
  max-width: 24px;
  max-height: 24px;
}

.flag-icon {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  color: white;
  font-size: 1.5em;
}

.flag-icon:hover {
  transform: scale(1.2) rotate(10deg);
  background-color: gold;
}


.layout__region--second .calculated-price {
  color: var(--nm-success-color);
}

.layout__region--second .product-title {
  padding-left: 0rem !important;
}

.views-view-grid .calculated-price,
.views-view-grid .applied-discount,
.new-arrivals-slider .calculated-price,
.new-arrivals-slider .applied-discount,
.views-view-grid .price-title,
.new-arrivals-slider .price-title {
  display: none;
}

.views-view-grid .base-price,
.new-arrivals-slider .base-price {
  text-decoration: none;
}

.price-title {
  font-size: 1.25rem !important;
  color: var(--beo-heading-color) !important;
}


main {
  position: relative;
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  z-index: 1; /* Low z-index - don't create high stacking context */
}


.js-form-item-price__number-max {
  display: none !important;
}


.accordion-body {
  padding: unset !important;
}


.fieldset-legend.form-required::after {
  background-image: unset !important
}


.field--widget-commerce-quantity {
  margin-top: 2rem;
  justify-content: flex-end;
  /* Align all items to the right */
}

/* Hide default browser number input spinners */
.js-form-type-number input[type=number]::-webkit-inner-spin-button,
.js-form-type-number input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.js-form-type-number input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* Custom number input styles - use class selector for better AJAX compatibility */
.commerce-order-item-add-to-cart-form .custom-number-input,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input,
#commerce-product-add-to-cart-form .custom-number-input,
.cart-modal-variations .custom-number-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--nm-gray-200, #e5e5e5);
  border-radius: 50px;
  overflow: hidden;
}

/* RTL (Arabic) layout - center quantity input on product page */
html[dir="rtl"] .layout__region--second .commerce-order-item-add-to-cart-form .custom-number-input,
html[dir="rtl"] .layout__region--second [id^="commerce-order-item-add-to-cart-form"] .custom-number-input,
html[dir="rtl"] .layout__region--second #commerce-product-add-to-cart-form .custom-number-input {
  margin-left: 0 !important;
}

/* Keep margin for modal and other contexts */
html[dir="rtl"] .cart-modal-variations .custom-number-input {
  margin-left: 55%;
}

/* LTR (English) layout - push quantity input to the left */
html[dir="ltr"] .commerce-order-item-add-to-cart-form .custom-number-input,
html[dir="ltr"] [id^="commerce-order-item-add-to-cart-form"] .custom-number-input,
html[dir="ltr"] #commerce-product-add-to-cart-form .custom-number-input,
html[dir="ltr"] .cart-modal-variations .custom-number-input,
html:not([dir="rtl"]) .commerce-order-item-add-to-cart-form .custom-number-input,
html:not([dir="rtl"]) [id^="commerce-order-item-add-to-cart-form"] .custom-number-input,
html:not([dir="rtl"]) #commerce-product-add-to-cart-form .custom-number-input,
html:not([dir="rtl"]) .cart-modal-variations .custom-number-input {
  margin-right: 0%;
}

.commerce-order-item-add-to-cart-form .custom-number-input input[type="number"],
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input input[type="number"],
#commerce-product-add-to-cart-form .custom-number-input input[type="number"],
.cart-modal-variations .custom-number-input input[type="number"] {
  width: 70px !important;
  color: var(--nm-text-primary);
  height: 100%;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}

.commerce-order-item-add-to-cart-form .custom-number-input .minus,
.commerce-order-item-add-to-cart-form .custom-number-input .plus,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .minus,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .plus,
#commerce-product-add-to-cart-form .custom-number-input .minus,
#commerce-product-add-to-cart-form .custom-number-input .plus,
.cart-modal-variations .custom-number-input .minus,
.cart-modal-variations .custom-number-input .plus {
  position: relative;
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--nm-text-primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  outline: none;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.commerce-order-item-add-to-cart-form .custom-number-input .minus,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .minus,
#commerce-product-add-to-cart-form .custom-number-input .minus,
.cart-modal-variations .custom-number-input .minus {
  border-radius: 50px 0 0 50px;
}

.commerce-order-item-add-to-cart-form .custom-number-input .plus,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .plus,
#commerce-product-add-to-cart-form .custom-number-input .plus,
.cart-modal-variations .custom-number-input .plus {
  border-radius: 0 50px 50px 0;
}

.commerce-order-item-add-to-cart-form .custom-number-input .minus:active,
.commerce-order-item-add-to-cart-form .custom-number-input .plus:active,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .minus:active,
[id^="commerce-order-item-add-to-cart-form"] .custom-number-input .plus:active,
#commerce-product-add-to-cart-form .custom-number-input .minus:active,
#commerce-product-add-to-cart-form .custom-number-input .plus:active,
.cart-modal-variations .custom-number-input .minus:active,
.cart-modal-variations .custom-number-input .plus:active {
  color: #0074d9;
}

.js-form-type-number input {
  width: 140px !important;
  border-radius: 50px !important;
  padding: 5px;
  /* Add some padding for better usability */
  border: 1px solid #ccc;
  /* Add a light gray border */
  border-radius: 4px;
  /* Round the corners slightly */
  font-size: 14px;
  /* Adjust the font size for better readability */
}

.js-form-type-number label {
  display: none;
}


.form-radios {
  display: grid;
  grid-auto-flow: row;
  /* Reverse the order of items visually */
  direction: rtl;
  /* Right-to-left for reverse placement */
}

.layout--twocol-section {
  width: 80% !important;
  max-width: 1400px !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  flex-direction: row-reverse;
  display: flex !important;
  flex-wrap: nowrap !important;
}


/* Styling the Swiper Slides */
.block--type-about-us-block .swiper-slide {
  margin: 0 10px;
  /* Adds spacing between slides */
  overflow: hidden;
  /* Ensures content stays within the rounded border */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover effect on the border */
}

/* Add hover effect to the border */
.block--type-about-us-block .swiper-slide:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  /* Intensifies shadow on hover */
}

/* Styling Swiper Slide Images */
.block--type-about-us-block .swiper-slide img {
  width: 100%;
  /* Ensures the image takes the full width of its container */
  height: 600px;
  /* Fixed height for consistent sizing */
  object-fit: cover;
  /* Crops the image proportionally to fit the container */
  transition: transform 0.3s ease;
  /* Smooth zoom effect on hover */
}

/* Add a hover effect to the image */
.block--type-about-us-block .swiper-slide img:hover {
  transform: scale(1.05);
  /* Slight zoom-in effect on hover */
}

/* Optional: Styling the Swiper container */
.block--type-about-us-block .swiper {
  padding: 20px;
  /* Adds padding around the Swiper slider */
  background-color: var(--nm-gray-100);
  /* Light background to contrast the images */
  border-radius: 20px;
  /* Matches the rounded corners of the slides */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Adds a subtle shadow around the Swiper container */
}

.social-media-links--platforms {
  position: relative;
}


.fa-instagram {
  background: linear-gradient(45deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
  border-radius: 30%;
  /* Circular background */
  width: 30px;
  /* Set size */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  /* Icon color */
  font-size: 12px;
  /* Icon size */
}

.fa-facebook {
  color: var(--nm-info-color);
  /* Facebook blue color */
  font-size: 30px;
  /* Set the icon size */
}

.me-1 {
  margin-right: 0rem !important;
}


.cart-block--link__expand,
.wishlist-header-link {
  display: flex !important;
  flex-direction: column;
  /* Stack children vertically */
  align-items: flex-end;
  /* Center align the items */
  text-align: center;
  /* Center align the text */
}

/* Cart badge base style is in components.css (unified with wishlist/orders). */

/* Hide wishlist badge initially until count is fetched */
.wishlist-count-badge {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Show badge after AJAX load completes */
.wishlist-count-badge.loaded {
  opacity: 1;
}

.block-social-media-links {
  position: relative;
  /* Enable positioning for the pseudo-element */
  padding-right: 15px;
  margin-top: 1rem;
  /* Add space for the pseudo-element */
}

.block-social-media-links::before {
  content: "";
  /* Pseudo-element with no content */
  position: absolute;
  top: 0;
  right: 0;
  /* Align to the right */
  width: 1px;
  /* Border width */
  height: 100%;
  /* Full height of the element */
  background: linear-gradient(to bottom, black, white);
  /* Gradient from black to white */
  z-index: 1;
  /* Ensure it stays above the background but below content */
}

.block-social-media-links ul {
  list-style: none;
  /* Remove bullet points */
  margin: 0;
  padding: 0;
  display: flex !important;
  /* Ensure the icons are displayed inline */
  flex-direction: column;
}

.block-social-media-links li {
  display: inline-block;
  /* Display list items inline */
}

.block-social-media-links a {
  text-decoration: none;
  /* Remove underline from links */
  color: #333;
  /* Color of the icons or text */
  font-size: 16px;
  /* Adjust text or icon size */
}

.block-social-media-links a:hover {
  color: #3498db;
  /* Change color when hovered over */
}

.block-social-media-links i {
  font-size: 20px;
  /* Adjust icon size */
  margin-right: 5px;
  /* Add space between the icon and text */
}

/* Swiper navigation: keep visible (was previously hidden until hover).
   Removed opacity/visibility toggle to avoid UX confusion and scripting hacks. */
.swiper-button-next,
.swiper-button-prev {
  opacity: 1;
  visibility: visible;
}

/* Highlighted Products Navigation Buttons - Same style as recent viewed */
#swiper-highlighted-products-block-1 .swiper-button-prev,
#swiper-highlighted-products-block-1 .swiper-button-next,
.swiper-highlighted-products-block-1-prev,
.swiper-highlighted-products-block-1-next {
  position: absolute !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  outline: none !important;
  width: 40px !important;
  height: 40px !important;
  margin-top: 0 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
  color: #333 !important;
  font-size: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#swiper-highlighted-products-block-1 .swiper-button-prev:hover,
#swiper-highlighted-products-block-1 .swiper-button-next:hover,
.swiper-highlighted-products-block-1-prev:hover,
.swiper-highlighted-products-block-1-next:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Arrow icons */
#swiper-highlighted-products-block-1 .swiper-button-prev::after,
#swiper-highlighted-products-block-1 .swiper-button-next::after,
.swiper-highlighted-products-block-1-prev::after,
.swiper-highlighted-products-block-1-next::after {
  font-family: swiper-icons !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #333 !important;
  line-height: 1 !important;
}

/* RTL arrow direction */
html[dir="rtl"] #swiper-highlighted-products-block-1 .swiper-button-prev::after,
html[dir="rtl"] .swiper-highlighted-products-block-1-prev::after,
#swiper-highlighted-products-block-1.swiper-rtl .swiper-button-prev::after {
  content: 'next' !important;
}

html[dir="rtl"] #swiper-highlighted-products-block-1 .swiper-button-next::after,
html[dir="rtl"] .swiper-highlighted-products-block-1-next::after,
#swiper-highlighted-products-block-1.swiper-rtl .swiper-button-next::after {
  content: 'prev' !important;
}

/* LTR arrow direction */
html:not([dir="rtl"]) #swiper-highlighted-products-block-1 .swiper-button-prev::after,
html:not([dir="rtl"]) .swiper-highlighted-products-block-1-prev::after {
  content: 'prev' !important;
}

html:not([dir="rtl"]) #swiper-highlighted-products-block-1 .swiper-button-next::after,
html:not([dir="rtl"]) .swiper-highlighted-products-block-1-next::after {
  content: 'next' !important;
}

/* Position buttons */
html[dir="rtl"] #swiper-highlighted-products-block-1 .swiper-button-prev,
#swiper-highlighted-products-block-1.swiper-rtl .swiper-button-prev {
  right: 25px !important;
  left: auto !important;
}

html[dir="rtl"] #swiper-highlighted-products-block-1 .swiper-button-next,
#swiper-highlighted-products-block-1.swiper-rtl .swiper-button-next {
  left: 35px !important;
  right: auto !important;
}

html:not([dir="rtl"]) #swiper-highlighted-products-block-1 .swiper-button-prev {
  left: 35px !important;
  right: auto !important;
}

html:not([dir="rtl"]) #swiper-highlighted-products-block-1 .swiper-button-next {
  right: 15px !important;
  left: auto !important;
}

/* Focus state - remove yellow outline */
#swiper-highlighted-products-block-1 .swiper-button-prev:focus,
#swiper-highlighted-products-block-1 .swiper-button-next:focus,
#swiper-highlighted-products-block-1 .swiper-button-prev:focus-visible,
#swiper-highlighted-products-block-1 .swiper-button-next:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* In loop mode, keep buttons visible and clickable */
#swiper-highlighted-products-block-1 .swiper-button-prev.swiper-button-disabled,
#swiper-highlighted-products-block-1 .swiper-button-next.swiper-button-disabled {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* When the swiper reports all slides visible, center the track */
/* DISABLED for highlighted products - breaks loop mode */
.swiper-all-visible:not(#swiper-highlighted-products-block-1):not(#swiper-recent-viewed-products-block-1) .swiper-wrapper {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
}

.swiper-all-visible:not(#swiper-highlighted-products-block-1):not(#swiper-recent-viewed-products-block-1) .swiper-slide {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

