/* VIPURI — shop area styles (additive; loaded after vipuri.css). */

/* ===================== Shared empty state (cart, wishlist, checkout) ===================== */
.shop-empty.account-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
  background: hsl(var(--white));
  border: 1px solid hsl(var(--black) / 0.07);
  border-radius: 16px;
  box-shadow: 0 6px 24px hsl(var(--black) / 0.04);
}

.shop-empty .account-empty__icon {
  width: 72px;
  height: 72px;
  font-size: 34px;
  margin-bottom: 16px;
}

.shop-empty .account-empty__title {
  font-family: var(--heading-font);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.shop-empty .account-empty__desc {
  margin-bottom: 20px;
}

@media screen and (max-width: 575px) {
  .shop-empty.account-empty {
    padding: 36px 16px;
  }
}

/* ===================== Product grids: two columns on every phone ===================== */
@media screen and (max-width: 575px) {
  .row.shop-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }

  .row.shop-grid > .col-xsm-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .shop-grid .product-card2__thumb {
    aspect-ratio: auto;
    height: 140px;
    padding: 10px;
  }

  .shop-grid .product-card2__thumb img {
    object-fit: contain;
  }

  .shop-grid .product-card2__footer .btn,
  .shop-grid .lower-content .btn {
    padding: 7px 8px;
    font-size: 0.8125rem;
    line-height: 1.2;
    border-radius: 999px;
  }

  .shop-grid .shop-block-one .image-box img,
  .shop-grid .shop-block-one .image-box .image img {
    height: 130px;
    object-fit: contain;
  }

  /* Related / up-sell / cross-sell rows: four cards (two rows) on phone. */
  .shop-grid--related > [class*='col-']:nth-child(n + 5) {
    display: none;
  }
}

/* ===================== Price filter ===================== */
.price-range {
  gap: 8px;
}

.price-range__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.price-range__prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--black) / 0.45);
  pointer-events: none;
}

.price-range .filter-form-range__input {
  padding-left: 40px;
  padding-right: 8px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.price-range .filter-form-range__input::-webkit-outer-spin-button,
.price-range .filter-form-range__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-range__dash {
  color: hsl(var(--black) / 0.4);
}

/* ===================== Product detail ===================== */
/* Tab strip: scrolls sideways on narrow screens instead of clipping tabs. */
.product-details .nav-horizontal.pd-tabs {
  max-width: 100%;
}

.product-details .pd-tabs .nav-horizontal-menu {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}

.product-details .pd-tabs .nav-horizontal-menu::-webkit-scrollbar {
  display: none;
}

.product-details .pd-tabs .nav-horizontal-menu__item {
  scroll-snap-align: start;
}

@media screen and (max-width: 575px) {
  .product-details .pd-tabs .product-details-tab__btn {
    padding: 8px 16px;
  }
}

/* Categories: one link per category, separated by a comma and a space. */
.product-details-info__item .value.pd-cats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 0;
}

.pd-cats a {
  color: hsl(var(--base));
}

.pd-cats a:not(:last-child)::after {
  content: ',\00a0';
  color: hsl(var(--black) / 0.5);
}

/* Add to cart fills the column. */
.product-details__main .product-details-meta__item:last-child {
  margin-top: 8px;
}

.product-details__main .pd-add-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.product-details__main .pd-add-btn i {
  font-size: 1.25rem;
}

/* Stock / delivery / payment assurance rows. */
.pd-assurance {
  list-style: none;
  margin: 20px 0 0;
  padding: 4px 16px;
  border: 1px solid hsl(var(--black) / 0.07);
  border-radius: 12px;
  background: hsl(var(--white));
}

.pd-assurance__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.pd-assurance__item + .pd-assurance__item {
  border-top: 1px solid hsl(var(--black) / 0.06);
}

.pd-assurance__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  color: hsl(var(--dark));
  background: hsl(var(--dark) / 0.06);
}

.pd-assurance__item--success .pd-assurance__icon {
  color: hsl(var(--success-h) var(--success-s) 35%);
  background: hsl(var(--success) / 0.12);
}

.pd-assurance__item--warning .pd-assurance__icon {
  color: hsl(var(--warning-h) var(--warning-s) 38%);
  background: hsl(var(--warning) / 0.14);
}

.pd-assurance__item--danger .pd-assurance__icon {
  color: hsl(var(--danger));
  background: hsl(var(--danger) / 0.12);
}

.pd-assurance__item--info .pd-assurance__icon {
  color: hsl(var(--info));
  background: hsl(var(--info) / 0.12);
}

.pd-assurance__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--black) / 0.6);
}

.pd-assurance__text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--black));
}

.pd-assurance__item--success .pd-assurance__text strong {
  color: hsl(var(--success-h) var(--success-s) 32%);
}

.pd-assurance__item--danger .pd-assurance__text strong {
  color: hsl(var(--danger));
}

/* Description HTML from the editor. */
.product-details-card__body.pd-description {
  color: hsl(var(--black) / 0.75);
  line-height: 1.7;
}

.pd-description > :first-child {
  margin-top: 0;
}

.pd-description > :last-child {
  margin-bottom: 0;
}

.pd-description p {
  margin: 0 0 14px;
}

.pd-description h1,
.pd-description h2,
.pd-description h3,
.pd-description h4,
.pd-description h5,
.pd-description h6 {
  margin: 28px 0 10px;
  font-size: 1.125rem;
  line-height: 1.35;
  color: hsl(var(--black));
}

.pd-description h1,
.pd-description h2 {
  font-size: 1.25rem;
}

.pd-description ul,
.pd-description ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.pd-description ul {
  list-style: disc;
}

.pd-description ol {
  list-style: decimal;
}

.pd-description li {
  margin-bottom: 6px;
  padding-left: 2px;
}

.pd-description li::marker {
  color: hsl(var(--base));
}

.pd-description strong {
  color: hsl(var(--black));
}

.pd-description table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.pd-description td,
.pd-description th {
  padding: 8px 10px;
  border: 1px solid hsl(var(--black) / 0.08);
}

/* ===================== Summary cards (checkout, payment, confirmation) ===================== */
section.checkout .checkout-information,
section.payment .checkout-information,
section.order-confirmation .checkout-information {
  padding: 24px;
  background: hsl(var(--white));
  border: 1px solid hsl(var(--black) / 0.07);
  border-radius: 16px;
  box-shadow: 0 6px 24px hsl(var(--black) / 0.04);
}

@media screen and (min-width: 992px) {
  section.checkout .checkout-information,
  section.payment .checkout-information,
  section.order-confirmation .checkout-information {
    position: sticky;
    top: 100px;
  }
}

@media screen and (max-width: 424px) {
  section.checkout .checkout-information,
  section.payment .checkout-information,
  section.order-confirmation .checkout-information {
    padding: 18px 16px;
  }
}

.checkout-information__sub {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: hsl(var(--black) / 0.55);
  overflow-wrap: anywhere;
}

/* VAT is already inside the prices: a muted, indented note, not an addend. */
.checkout-information__list li.summary-vat {
  margin-top: -8px;
  padding-left: 12px;
}

.checkout-information__list li.summary-vat span,
.checkout-information__list li.summary-vat span:first-child,
.checkout-information__list li.summary-vat span:last-child {
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--black) / 0.5);
}

/* Item thumbnails: let the quantity badge sit outside the frame. */
section.checkout .checkout-item__thumb,
section.order-confirmation .checkout-item__thumb {
  overflow: visible;
  background: hsl(var(--white));
}

section.checkout .checkout-item__thumb img,
section.order-confirmation .checkout-item__thumb img {
  border-radius: 8px;
  object-fit: contain;
}

section.checkout .checkout-item__qty,
section.order-confirmation .checkout-item__qty {
  z-index: 1;
  padding: 0 6px;
  font-weight: 600;
  box-shadow: 0 0 0 2px hsl(var(--white));
}

.checkout-submit-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: hsl(var(--black) / 0.55);
}

/* ===================== Order confirmation header ===================== */
.order-confirmation__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
}

.order-confirmation__icon--success {
  color: hsl(var(--white));
  background: hsl(var(--success));
  box-shadow: 0 0 0 8px hsl(var(--success) / 0.14);
}

.order-confirmation__icon--warning {
  color: hsl(var(--warning-h) var(--warning-s) 32%);
  background: hsl(var(--warning) / 0.2);
  box-shadow: 0 0 0 8px hsl(var(--warning) / 0.1);
}

.order-confirmation__icon--info {
  color: hsl(var(--info));
  background: hsl(var(--info) / 0.14);
  box-shadow: 0 0 0 8px hsl(var(--info) / 0.07);
}

.order-confirmation__icon--danger {
  color: hsl(var(--danger));
  background: hsl(var(--danger) / 0.12);
  box-shadow: 0 0 0 8px hsl(var(--danger) / 0.06);
}

.order-confirmation__title {
  margin: 8px 0 0;
}

.order-confirmation__lead {
  max-width: 560px;
  margin: 8px auto 0;
  color: hsl(var(--black) / 0.6);
  overflow-wrap: anywhere;
}

.order-confirmation__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.order-confirmation__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: hsl(var(--black) / 0.7);
  background: hsl(var(--black) / 0.05);
}

.order-confirmation__pay {
  margin-top: 20px;
  min-width: 220px;
}

@media screen and (max-width: 575px) {
  .order-confirmation__title {
    font-size: 1.375rem;
  }

  .order-confirmation__pay {
    width: 100%;
  }
}

/* ===================== Checkout delivery options ===================== */
section.checkout .shipping-rate-list .form--check {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px !important;
  padding: 12px 0 !important;
  cursor: pointer;
}

section.checkout .shipping-rate-list .form-check-input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  border-radius: 50%;
}

section.checkout .shipping-rate-list .form-check-label {
  min-width: 0;
  line-height: 1.4;
}

section.checkout .shipping-rate-list .form-check-label > span {
  margin-top: 2px;
  color: hsl(var(--black) / 0.55);
}

section.checkout .shipping-rate-list .form--check > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

section.checkout .shipping-rate-hint {
  margin-top: 4px;
}

/* ===================== Cart rows ===================== */
.cart .cart-list-item__action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart .cart-list-item__action .product-item__delete-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid hsl(var(--black) / 0.1);
  background: hsl(var(--white));
  color: hsl(var(--danger));
  font-size: 1.125rem;
}

.cart .cart-list-item__action .product-item__delete-btn:hover {
  background: hsl(var(--danger) / 0.08);
  border-color: hsl(var(--danger) / 0.3);
}

/* Payment-mode and "save address" choices: control and label on one line. */
section.checkout .checkout-card > .form--check,
section.checkout .checkout-form .col-12 > .form--check {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}

section.checkout .checkout-card > .form--check .form-check-input,
section.checkout .checkout-form .col-12 > .form--check .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 3px 0 0;
}

section.checkout .checkout-card > .form--check .form-check-input[type='radio'] {
  border-radius: 50%;
}
