.loyalty-points-products-section {
  font-size: 1rem !important;
  padding: 5px 10px !important;
  border-radius: 33px !important;
}
.loyalty-points-products-section .loyalty-points-rewards-logo {
  margin: 0 5px !important;
}

/* START PRODUCT VARIANTS AND CUSTOM INPUTS */
#product-variants-options .form-group label span {
  font-weight: 400;
}

#product-variants-options .form-group ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-right: 1px;
}

#product-variants-options .form-group ul li {
  border: 1px solid #d1d5db;
  padding: 2px 14px;
  cursor: pointer;
  font-weight: 500;
  opacity: 0.9;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 5px;
}

#product-variants-options .form-group ul li img {
  width: 80px;
  height: auto;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
}

#product-variants-options .form-group ul li.active,
#product-variants-options .form-group ul li:hover {
  border-color: var(--color-primary-500);
  color: var(--color-primary-500);
  border: solid 1px;
  opacity: 1;
}

#product-variants-options .form-group ul.ul-images li {
  padding: 0;
  flex-direction: column-reverse;
}

#product-variants-options .form-group ul.ul-images li span {
  padding: 4px;
  line-height: 20px;
}

#product-variants-options .form-group ul.ul-colors li {
  position: relative;
  width: 24px;
  height: 24px;
  border-color: #fff;
  border-width: 2px;
  border-radius: 50%;
  padding: 0;
  box-shadow:
    rgba(0, 0, 0, 0.02) 0 1px 3px 0,
    rgb(27 31 35 / 21%) 0 0 0 1px;
  opacity: 1;
}

#product-variants-options .form-group ul.ul-colors li.active {
  box-shadow: 0 0 0 1px var(--tp-text-body);
}

#product-variants-options .form-group label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
}

#product-variants-options .form-group {
  margin: 20px 0;
}

/* Product Options - Custom User Fields Styling */
.product-options .form-group {
  margin-bottom: 15px;
}

.product-options .form-group label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.product-options .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.product-options .form-control:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 59, 130, 246), 0.15);
}

.product-options .form-control:hover {
  border-color: var(--color-primary-400, #60a5fa);
}

/* Select dropdown specific styling */
.product-options select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 40px;
  cursor: pointer;
}

[dir="ltr"] .product-options select.form-control {
  background-position: right 12px center;
  padding-left: 16px;
  padding-right: 40px;
}

/* Input text field styling */
.product-options input.form-control {
  background-color: #fafafa;
}

.product-options input.form-control::placeholder {
  color: #999;
}

/* Custom field separator */
.product-options .custom-field-separator {
  height: 1px;
  background-color: #e5e7eb;
  margin: 15px 0;
}

.product-options .border-product {
  margin: 10px 0 !important;
  border-top: 1px solid #e5e7eb;
}

/* END PRODUCT VARIANTS AND CUSTOM INPUTS */

/* START PRODUCT FILTERS STYLES */
.product-attributes {
  width: 100% !important;
  padding: 0 !important;
}
.products-filters-attribute-form {
  position: relative;
}
.product-attributes .form-group {
  margin-bottom: 10px;
}

.product-attributes h6,
.product-attributes .form-group span {
  font-size: 1rem !important;
  font-weight: unset !important;
  color: unset;
  font-family: unset;
}

.product-attributes .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.product-attributes .attribute-name {
  font-weight: 500;
  font-size: 20px;
}

.product-attributes .attribute {
  all: unset;
  background-color: unset;
}

.product-attributes .attribute-group {
  padding: 12px;
  border-radius: 8px;
}

.product-attributes .attribute-header {
  align-items: center;
  padding: 0;
  margin-bottom: 10px;
}

.product-attributes .filter-row {
  padding: 0;
  gap: 10px;
  margin: 0 10px;
}

.product-attributes .attribute-label {
  margin: 0;
  margin-bottom: 7px;
  gap: 7px;
  font-size: 15px;
  opacity: 0.8;
}

.product-attributes .attribute-label .filter-count {
  display: none;
}

.product-attributes .filter-row .checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--color-primary-400);
}

.product-attributes .attribute-color {
  padding: 0;
  width: 20px;
  height: 20px;
  box-shadow:
    rgba(0, 0, 0, 0.02) 0 1px 3px 0,
    rgb(27 31 35 / 8%) 0 0 0 1px;
}

.product-attributes .attribute-more {
  bottom: 0;
  justify-content: flex-start;
}

.product-attributes .attribute-body.attribute-price-body .form-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}

.product-attributes .attribute-body.attribute-price-body .form-row .form-group {
  width: 100%;
  flex: unset;
}

.product-attributes
  .attribute-body.attribute-price-body
  .form-row
  .form-control {
  padding: 8px 15px;
  font-size: 17px;
  border-color: #d1d5db;
  border-radius: 10px;
  color: #000;
  direction: rtl;
}

.product-attributes .attribute-footer {
  gap: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  bottom: -80px;
}

@media (max-width: 768px) {
  .product-attributes .attribute-footer {
    bottom: -15px;
  }
}

.product-attributes .attribute-footer .highlight-button {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  margin-top: 10px;
  background: var(--color-primary-500);
  color: white;
  border: 1px solid var(--color-primary-100);
  border-radius: 110px;
}

.product-attributes .attribute-footer .filter-form-clear {
  border-bottom: 1px solid;
  padding-bottom: 7px;
  font-size: 17px;
  color: var(--color-gray-400);
}

.filtration-header {
  z-index: 1000;
}
/* END PRODUCT FILTERS STYLES */

/* START CART PAGE */
.loyalty-points-section {
  border-radius: 10px !important;
  font-size: 1rem !important;
  padding: 8px;
}

.loyalty-points-section .flex-shrink-0 {
  text-align: end !important;
}

.cart-product-row {
  display: grid;
  grid-template-columns: 40px 120px 2fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 16px;
}
.cart-product-delete {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-product-delete .icon-delete::before {
  font-family: "Phosphor";
  content: "\e4f8";
  font-size: 24px;
  color: #ef4444;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cart-product-delete .icon-delete:hover::before {
  color: #dc2626;
}
.cart-product-col-img {
  width: 130px;
  min-width: 130px;
  height: 130px;
}
.cart-product-image-link,
.cart-product-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.product-title-row h1 {
  font-size: 1rem;
}

.cart-section:hover,
.menu-section li {
  cursor: pointer;
}

.cart-section .cart-icon-section {
  display: grid;
  grid-gap: 15px;
}

.cart-section .cart-icon-section * {
  grid-column: 1;
  grid-row: 1;
}

.cart-total-price {
  font-size: 1.286rem;
  line-height: 33px;
  color: #fff;
}

.cart-product-quantity-dropdown select {
  font-size: 15px;
  border: 1px solid oklch(55.6% 0 0);
}

.cart-product-row-wrapper {
  all: unset;
  margin-bottom: 5px;
  padding: 10px 0;
  display: block;
}

.cart-product-row-wrapper:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.cart-product-row-wrapper .icon-delete:hover {
  color: #f44336;
}

.cart-product-col-img .cart-product-image-link {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.cart-product-quantity-dropdown select {
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 500;
  outline: unset;
}

.cart-product-prices .totals {
  text-align: left;
  color: var(--tp-text-body);
}

.cart-product-prices .cart-product-total-price {
  font-size: 18px;
}

.cart-product-prices .cart-product-total-before-price {
  font-size: 16px;
  width: max-content;
  display: inline-block;
  color: #6b7280;
  margin-right: 3px;
}

.cart-product-col-details {
  padding: 0;
}

.cart-product-col-details h1 {
  margin: 0;
}

.cart-product-prices {
  padding: 0;
  width: max-content;
}

.cart-product-discount-messages {
  color: #ff3b30;
}

.cart-product-delete .delete-text {
  color: #767676;
}

/* Responsive grid for tablets */
@media (max-width: 1024px) {
  .cart-product-row {
    grid-template-columns: 40px 100px 1.5fr 1fr 1fr;
    gap: 12px;
    padding: 12px;
  }
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
  .cart-product-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    position: relative;
  }
  .cart-product-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    background-color: transparent;
  }
  .cart-product-col-img {
    width: 100px;
    min-width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  .cart-product-col-details {
    text-align: center;
  }
  .cart-products-action {
    display: flex;
    justify-content: center;
  }
  .cart-product-prices {
    text-align: center;
    width: 100%;
  }
  .cart-product-prices .totals {
    text-align: center;
  }
}

.cart-product-delete .delete-text:hover {
  color: var(--color-primary-500);
}

/* END CART PAGE */

.badge-name {
  z-index: unset !important;
}
/* RTL: badge on the right */
.badge-name {
  right: 8px !important;
}

.product-card--horizontal .badge-name span {
  text-wrap: auto;
  font-size: 12px;
}

/* ─── Preorder campaign ────────────────────────────────── */

/* Badge – pill using theme primary */
.preorder-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 300;
  line-height: 1.4;
  background-color: var(--primary-color);
  color: var(--color-primary-500);
  white-space: nowrap;
  margin-bottom: 8px;
}