/*
Theme Name: Lovsah COD Store
Theme URI: https://example.com/
Author: Lovsah
Description: A lightweight Oman-focused WooCommerce storefront with editable sections and product video support.
Version: 4.0.0
Text Domain: lureaura-store
*/

:root {
  --red: #c61f3f;
  --deep-red: #a91936;
  --pink: #ef1749;
  --ink: #171717;
  --muted: #777;
  --line: #e8e8e8;
  --paper: #fff;
  --soft: #f5f5f5;
}

.lovsah-back-to-list {
  width: 100%;
  margin: 0 0 22px;
}

.lovsah-back-to-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lovsah-back-to-list a:hover {
  color: var(--red);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.site-shell { max-width: 1440px; margin: 0 auto; overflow: hidden; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.brand__logo {
  width: auto;
  height: 38px;
  object-fit: contain;
}
.topbar .brand {
  width: 160px;
  max-width: 160px;
  overflow: hidden;
}
.topbar .brand .brand__logo {
  display: block !important;
  width: auto !important;
  height: 38px !important;
  max-width: 150px !important;
  max-height: 38px !important;
  margin: 0 !important;
  object-fit: contain !important;
}
.product-search {
  display: flex;
  width: min(440px, 42vw);
  height: 40px;
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
}
.product-search input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
}
.product-search input[type="search"]:focus { box-shadow: inset 0 0 0 2px rgba(198,31,63,.15); }
.product-search button {
  width: 48px;
  border: 0;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  font-size: 23px;
}
.country-switcher {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f1f1f1;
  border-radius: 999px;
}
.country-switcher a,
.country-switcher span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #555;
  font-weight: 700;
}
.country-switcher a.is-active,
.country-switcher span.is-active { color: #fff; background: var(--ink); cursor: default; user-select: none; }

.hero {
  position: relative;
  min-height: 390px;
  background: linear-gradient(120deg, #92162e, #cc2345 52%, #a81734);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  opacity: .18;
  background-image:
    radial-gradient(ellipse at center, transparent 56%, #fff 57%, transparent 60%);
  background-size: 140px 90px;
  transform: rotate(-12deg);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 50%;
  margin-left: 50%;
  padding: 105px 7% 70px;
  color: #fff;
  text-align: center;
}
.hero h1 { margin: 0 0 6px; font-size: clamp(28px, 3.5vw, 50px); line-height: 1.05; text-transform: uppercase; }
.hero__badge { display: inline-block; padding: 4px 10px; background: #111; font-size: 18px; font-weight: 800; transform: rotate(-2deg); }
.hero p { margin: 8px 0 24px; font-size: 20px; font-weight: 700; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-weight: 700;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  background: #f1f1f1;
}
.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.benefit__icon { font-size: 29px; line-height: 1; }

.products-section { padding: 18px 18px 14px; }
.eyebrow { margin: 0; color: #666; font-size: 12px; }
.section-title { margin: 0 0 12px; font-size: 18px; }
.product-rail {
  display: grid;
  grid-template-columns: repeat(var(--bestseller-cols-desktop, 6), minmax(0, 1fr));
  width: 100%;
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}
.product-card > .js-product {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 290px;
  overflow: hidden;
  background: #fff;
}
.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}
.product-card:hover .product-card__image { transform: scale(1.025); }
.product-card__discount {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 10px;
  font-weight: 800;
}
.product-card__tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 10px;
  font-weight: 800;
}
.product-card h3 { min-height: 43px; margin: 8px 0 3px; font-size: 13px; line-height: 1.25; }
.product-card__brand { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.product-card__price {
  position: static !important;
  display: block;
  min-height: 22px;
  margin: 6px 0 16px !important;
  padding: 0 !important;
  color: var(--pink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.product-card__price del { margin-left: 5px; color: #aaa; font-size: 11px; font-weight: 400; }


.feature-banner {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  margin-top: 0;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 38%, #1b89a6 0 2%, transparent 17%),
    radial-gradient(circle at 72% 40%, #d7511b 0 2%, transparent 20%),
    linear-gradient(120deg, #07101c, #0b1930 62%, #061018);
  overflow: hidden;
}
.feature-banner__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-banner__content { position: relative; z-index: 1; max-width: 650px; }
.feature-banner__label { margin: 0 0 70px; font: 24px Georgia, serif; letter-spacing: .25em; text-align: center; }
.feature-banner__kicker { margin: 0; font-size: 18px; }
.feature-banner h2 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; }

.catalog-section { padding: 34px 20px 50px; background: #fafafa; }
.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.catalog-heading .section-title { margin-bottom: 0; font-size: 25px; }
.catalog-heading__link { color: var(--red); font-weight: 800; }
.category-list {
  display: flex;
  gap: 9px;
  margin: 20px 0;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.category-chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}
.category-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 999px;
  color: #777;
  background: #eee;
  font-size: 10px;
}
.category-chip:hover, .category-chip.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.category-chip.is-active span { color: #333; background: #fff; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.035);
}
.catalog-card > .js-product {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.catalog-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}
.catalog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}
.catalog-card:hover .catalog-card__image img { transform: scale(1.025); }
.catalog-card__placeholder {
  display: grid;
  place-items: center;
  color: #aaa;
  background: linear-gradient(145deg,#f6dbe3,#eee 55%,#ddd);
}
.catalog-card h3 { min-height: 40px; margin: 10px 0 5px; font-size: 14px; line-height: 1.3; }



.site-footer { padding: 25px; color: #aaa; background: #111; text-align: center; }






.shop-main {
  min-height: 520px;
  padding: 32px 20px 55px;
  background: #fafafa;
}
.shop-main .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
}
.shop-main .woocommerce-products-header__title {
  margin: 0 0 22px;
  font-size: 30px;
}
.shop-main .woocommerce-result-count { color: #777; }
.shop-main .woocommerce-ordering select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
}
.shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  clear: both;
  margin: 25px 0 0 !important;
}
.shop-main ul.products::before,
.shop-main ul.products::after { display: none !important; }
.shop-main ul.products li.product {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.shop-main ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 10px !important;
  border-radius: 5px;
  object-fit: cover;
  background: #eee;
}
.shop-main ul.products li.product .woocommerce-loop-product__title {
  min-height: 42px;
  padding: 0 !important;
  font-size: 14px !important;
}
.shop-main ul.products li.product .price {
  color: var(--pink) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.shop-main ul.products li.product .button {
  display: block;
  margin-top: 12px !important;
  border-radius: 4px;
  color: #fff;
  background: #1d8f85;
  text-align: center;
}
.shop-main .woocommerce-info {
  border-top-color: var(--red);
  background: #fff;
}

.lovsah-product-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.lovsah-product-video video,
.lovsah-product-video iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.lovsah-product-video .wp-video,
.lovsah-product-video .mejs-container { width: 100% !important; max-width: 100%; }
.lovsah-mobile-video {
  display: none;
  clear: both;
  width: 100%;
  margin: 18px 0 25px;
  padding: 12px;
  border-radius: 8px;
  background: #111;
}
.lovsah-mobile-video__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
}
.lovsah-mobile-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  border-radius: 5px;
  background: #000;
}
.woocommerce-product-gallery .lovsah-product-video {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.woocommerce-product-gallery .flex-control-thumbs img[src*="video-thumbnail"] {
  padding: 10%;
  background: #111;
  object-fit: contain;
}

.single-product .shop-main div.product {
  max-width: 1200px;
  margin: 0 auto;
}
.single-product .woocommerce-product-gallery {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
.single-product .woocommerce-product-gallery .flex-viewport {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}
.single-product .woocommerce-product-gallery .lovsah-video-overlay {
  grid-column: 2;
  grid-row: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  background: #111;
}
.single-product .woocommerce-product-gallery .lovsah-video-overlay.is-active { display: flex; }
.single-product .woocommerce-product-gallery .lovsah-video-overlay video,
.single-product .woocommerce-product-gallery .lovsah-video-overlay iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  aspect-ratio: 1 / 1;
  border: 0;
  background: #111;
  object-fit: contain;
}
.single-product .woocommerce-product-gallery .lovsah-video-thumb img {
  padding: 10px;
  background: #111;
  object-fit: contain !important;
}
.single-product .woocommerce-product-gallery .lovsah-video-thumb.is-active img {
  border-color: var(--red);
  opacity: 1;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 82px;
  max-height: 560px;
  margin: 0 !important;
  padding: 0 4px 0 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none !important;
  width: 72px !important;
  margin: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 72px !important;
  height: 72px !important;
  border: 2px solid transparent;
  border-radius: 5px;
  object-fit: cover;
  opacity: .7;
  cursor: pointer;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: var(--red);
  opacity: 1;
}
.single-product .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery__image > a img {
  display: block;
  width: 100%;
}

@media (max-width: 1100px) {
  .lovsah-mobile-video {
    display: block !important;
  }
}

@media (max-width: 760px) {
  .lovsah-mobile-video { display: block !important; }
  .woocommerce-product-gallery .lovsah-product-video { min-height: 300px; }
  .single-product .woocommerce-product-gallery {
    display: block;
  }
  .single-product .woocommerce-product-gallery .lovsah-video-overlay { min-height: 320px; }
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    max-height: none;
    margin-top: 10px !important;
    padding: 0 0 5px !important;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 64px;
    width: 64px !important;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li.lovsah-video-thumb {
    order: -1;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 64px !important;
    height: 64px !important;
  }
}

@media (max-width: 760px) {
  .topbar { min-height: 56px; padding: 9px 14px; flex-wrap: wrap; gap: 8px; }
  .topbar .brand { width: 115px; max-width: 115px; }
  .topbar .brand .brand__logo { height: 31px !important; max-width: 110px !important; max-height: 31px !important; }
  .product-search { order: 3; width: 100%; height: 38px; margin: 0; }
  .country-switcher a,
.country-switcher span { padding: 7px 10px; font-size: 12px; }
  .hero { min-height: 300px; }
  .hero__content { width: 100%; margin: 0; padding: 72px 22px 50px; background: rgba(120, 10, 38, .25); }
  .hero p { font-size: 16px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { justify-content: flex-start; min-height: 68px; font-size: 10px; }
  .benefit__icon { font-size: 22px; }
  .products-section { padding-inline: 10px; }
  .product-rail {
    grid-template-columns: repeat(var(--bestseller-cols-mobile, 2), minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }
  .feature-banner { min-height: 260px; padding: 20px; }
  .feature-banner__label { margin-bottom: 65px; }
  .catalog-section { padding: 28px 10px 38px; }
  .catalog-heading { align-items: flex-start; }
  .catalog-heading__link { font-size: 12px; white-space: nowrap; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-card { padding: 7px; }
  .catalog-card h3 { font-size: 12px; }
  .shop-main { padding: 25px 10px 40px; }
  .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}

/* v3.4.4: native WooCommerce product-video gallery slide */
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  background: #000;
}
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video .wp-video,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video .mejs-container,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video video,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video iframe {
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 760px) {
  .single-product .woocommerce-product-gallery__wrapper .lovsah-product-video {
    min-height: 280px;
  }
}


/* Product video fallback block (v3.4.5) */
.lovsah-product-video-block {
  clear: both;
  width: 100%;
  max-width: 1180px;
  margin: 26px auto 36px;
  padding: 0 20px;
  box-sizing: border-box;
}
.lovsah-product-video-block__title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
}
.lovsah-product-video-block__media {
  max-width: 760px;
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
}
.lovsah-product-video-block__media video,
.lovsah-product-video-block__media iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #000;
}
@media (max-width: 782px) {
  .lovsah-product-video-block { margin-top: 18px; padding: 0 14px; }
  .lovsah-product-video-block__title { font-size: 18px; }
}


/* v3.4.6: product gallery previous/next arrows */
.single-product .woocommerce-product-gallery {
  position: relative;
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #202020;
  box-shadow: 0 5px 18px rgba(0,0,0,.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 22px rgba(198,31,63,.28);
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow:active {
  transform: translateY(-50%) scale(.94);
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow--prev {
  left: 106px;
}
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow--next {
  right: 16px;
}
@media (max-width: 760px) {
  .single-product .woocommerce-product-gallery .lovsah-gallery-arrow {
    top: 42%;
    width: 38px;
    height: 38px;
  }
  .single-product .woocommerce-product-gallery .lovsah-gallery-arrow svg {
    width: 18px;
    height: 18px;
  }
  .single-product .woocommerce-product-gallery .lovsah-gallery-arrow--prev { left: 10px; }
  .single-product .woocommerce-product-gallery .lovsah-gallery-arrow--next { right: 10px; }
}


/* v3.4.9: lock the single-product media frame so portrait/landscape images never resize the gallery */
.single-product .woocommerce-product-gallery .flex-viewport {
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  overflow: hidden !important;
  background: #fff;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  height: 480px !important;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  overflow: hidden;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  max-height: 480px !important;
}
.single-product .woocommerce-product-gallery .lovsah-video-overlay,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video {
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
}
.single-product .woocommerce-product-gallery .lovsah-video-overlay video,
.single-product .woocommerce-product-gallery .lovsah-video-overlay iframe,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video video,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video iframe {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 760px) {
  .single-product .woocommerce-product-gallery .flex-viewport,
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
  .single-product .woocommerce-product-gallery .lovsah-video-overlay,
  .single-product .woocommerce-product-gallery__wrapper .lovsah-product-video {
    height: min(92vw, 520px) !important;
    min-height: min(92vw, 520px) !important;
    max-height: min(92vw, 520px) !important;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    max-height: none !important;
  }
}


/* v3.5.2 price layout: current price first, old price second */
.lovsah-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.lovsah-price__current,
.lovsah-price__current .woocommerce-Price-amount,
.lovsah-price__current .woocommerce-Price-currencySymbol {
  color: #f05a24 !important;
  font-weight: 800;
}
.lovsah-price__old,
.lovsah-price__old .woocommerce-Price-amount,
.lovsah-price__old .woocommerce-Price-currencySymbol {
  color: #a6a6a6 !important;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 1;
}
.lovsah-price__old { margin: 0; }
.product-card__price .lovsah-price { gap: 7px; }
.product-card__price del { margin-left: 0; }


/* v3.5.3: make product-description images use the available content width */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description,
.single-product .woocommerce-tabs #tab-description {
  width: 100%;
  max-width: 100%;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description img,
.single-product .woocommerce-tabs #tab-description img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* Remove gaps caused by paragraph wrappers around stacked description images */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description p:has(> img),
.single-product .woocommerce-tabs #tab-description p:has(> img) {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

@media (max-width: 760px) {
  .single-product .woocommerce-tabs .woocommerce-Tabs-panel--description,
  .single-product .woocommerce-tabs #tab-description {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}



/* v3.5.5: safe description image sizing without changing product-page layout */
.single-product .woocommerce-tabs,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product #tab-description {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Only widen wrappers that directly contain a description image. */
.single-product #tab-description figure:has(> img),
.single-product #tab-description .wp-block-image:has(img),
.single-product #tab-description .wp-caption:has(img),
.single-product #tab-description p:has(> img),
.single-product #tab-description a:has(> img) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single-product #tab-description img {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* Do not let imported inline widths on image-only wrappers shrink them. */
.single-product #tab-description figure:has(> img)[style*="width"],
.single-product #tab-description .wp-caption:has(img)[style*="width"],
.single-product #tab-description p:has(> img)[style*="width"],
.single-product #tab-description a:has(> img)[style*="width"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep text, forms, reviews and the main product layout untouched. */
.single-product #tab-description p:has(> img) {
  line-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* v3.5.6: announcement ticker directly under the hero */
.announcement-bar {
  width: 100%;
  overflow: hidden;
  background: #fde9e2;
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.announcement-bar__viewport {
  width: 100%;
  overflow: hidden;
}
.announcement-bar__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 54px;
  white-space: nowrap;
  will-change: transform;
  animation: lovsahAnnouncementScroll 22s linear infinite;
}
.announcement-bar__item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  color: #2b2523;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
}
.announcement-bar__dot {
  color: #c61f3f;
  font-size: 18px;
  line-height: 1;
}
.announcement-bar:hover .announcement-bar__track {
  animation-play-state: paused;
}
@keyframes lovsahAnnouncementScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar__track {
    animation: none;
  }
}
@media (max-width: 760px) {
  .announcement-bar__track { min-height: 46px; animation-duration: 18s; }
  .announcement-bar__item { padding: 0 18px; font-size: 14px; }
}


/* Category showcase under hero */
.category-showcase {
  padding: 32px 18px 10px;
  text-align: center;
}
.category-showcase__header {
  max-width: 860px;
  margin: 0 auto 22px;
}
.category-showcase__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.category-showcase__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  color: #171717;
}
.category-showcase__subtitle {
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4e4e4e;
  max-width: 760px;
}
.category-showcase__grid {
  display: grid;
  grid-template-columns: repeat(var(--cat-cols-desktop, 6), minmax(0, 1fr));
  gap: 26px 22px;
  align-items: start;
}
.category-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px 10px 14px;
  border-radius: 18px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.category-tile:hover {
  transform: translateY(-3px);
  background: #fafafa;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.category-tile__media {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.category-tile__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.category-tile__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg,#f7f7f7,#ededed);
}
.category-tile__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #151515;
}
.category-tile__meta {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #606060;
}
@media (max-width: 1100px) {
  .category-showcase__grid { grid-template-columns: repeat(var(--cat-cols-tablet, 3), minmax(0,1fr)); }
  .category-tile__media { height: 230px; }
}
@media (max-width: 640px) {
  .category-showcase { padding: 24px 12px 6px; }
  .category-showcase__title { font-size: 28px; }
  .category-showcase__subtitle { font-size: 14px; }
  .category-showcase__grid { grid-template-columns: repeat(var(--cat-cols-mobile, 2), minmax(0,1fr)); gap: 16px 8px; }
  .category-tile { padding: 6px 4px 12px; }
  .category-tile__media { height: 170px; margin-bottom: 10px; }
  .category-tile__title { font-size: 14px; }
  .category-tile__meta { display: block; margin: 4px 0 0; font-size: 12px; }
}


/* v3.5.8: editable category columns */
.category-showcase__grid {
  width: 100%;
}
.category-showcase__grid[style*="--cat-cols-desktop:6"] {
  gap: 18px 12px;
}
.category-showcase__grid[style*="--cat-cols-desktop:6"] .category-tile__media {
  height: 210px;
}
.category-showcase__grid[style*="--cat-cols-desktop:5"] .category-tile__media {
  height: 235px;
}
.category-showcase__grid[style*="--cat-cols-desktop:4"] .category-tile__media {
  height: 260px;
}
.category-showcase__grid[style*="--cat-cols-desktop:3"] .category-tile__media {
  height: 290px;
}
@media (max-width: 1100px) {
  .category-showcase__grid[style*="--cat-cols-desktop:6"] .category-tile__media,
  .category-showcase__grid[style*="--cat-cols-desktop:5"] .category-tile__media,
  .category-showcase__grid[style*="--cat-cols-desktop:4"] .category-tile__media,
  .category-showcase__grid[style*="--cat-cols-desktop:3"] .category-tile__media {
    height: 220px;
  }
}
@media (max-width: 640px) {
  .category-showcase__grid[style] .category-tile__media {
    height: 165px;
  }
  .category-showcase__grid[style*="--cat-cols-mobile:1"] .category-tile__media {
    height: 280px;
  }
}


.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.catalog-toolbar__left {
  color: #666;
  font-size: 14px;
}
.catalog-filter {
  min-width: 220px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.catalog-card.is-hidden-by-filter {
  display: none !important;
}
@media (max-width: 640px) {
  .catalog-toolbar {
    align-items: stretch;
  }
  .catalog-filter {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .product-rail {
    grid-template-columns: repeat(var(--bestseller-cols-tablet, 3), minmax(0, 1fr));
  }
}


/* v3.7.0 premium product page */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(440px, .9fr);
  gap: 44px;
  align-items: start;
}

.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding-top: 8px;
}

.lovsah-product-breadcrumb {
  margin: 0 0 18px;
  color: #6a6a6a;
  font-size: 14px;
  line-height: 1.5;
}
.lovsah-product-breadcrumb a {
  color: #1458d8;
  text-decoration: none;
}
.lovsah-product-breadcrumb__sep {
  display: inline-block;
  margin: 0 9px;
  color: #9a9a9a;
}

.single-product div.product .summary h1.product_title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.lovsah-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.lovsah-rating-summary .star-rating {
  color: #f7a700;
  margin: 0;
}
.lovsah-rating-summary__count {
  color: #666;
}

.lovsah-product-short-note {
  margin: 0 0 18px;
  color: #545454;
  font-size: 16px;
  line-height: 1.65;
}

.single-product div.product .summary .price {
  margin: 8px 0 18px !important;
  font-size: 26px !important;
  line-height: 1.2;
}

.single-product div.product .summary .price .lovsah-price__current,
.single-product div.product .summary .price ins {
  font-size: 30px;
  font-weight: 800;
}

.single-product div.product .summary .price del {
  font-size: 15px !important;
  color: #8e8e8e !important;
}

.lovsah-stock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: #dc2d43;
  font-size: 14px;
  font-weight: 700;
}
.lovsah-stock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f3a9b6;
}

.single-product .product_meta {
  margin: 12px 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px;
}

.single-product form.cart {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin: 14px 0 0 !important;
}

.single-product form.cart .quantity {
  margin: 0 !important;
}
.single-product form.cart .quantity .qty {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d6d6d6;
  border-radius: 9px;
  text-align: center;
  font-size: 16px;
}

.single-product form.cart .single_add_to_cart_button {
  min-height: 50px;
  border: 1px solid #232323 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #151515 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  transition: background .2s ease, color .2s ease;
}
.single-product form.cart .single_add_to_cart_button:hover {
  background: #111 !important;
  color: #fff !important;
}

.lovsah-cod-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  background: #ed1f63;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.lovsah-cod-button__icon {
  margin-right: 8px;
}
.lovsah-cod-note {
  margin: 10px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #ddd;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.lovsah-product-trust {
  margin-top: 14px;
}
.lovsah-product-trust__bar {
  padding: 11px 16px;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.lovsah-product-trust__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.lovsah-product-trust__item {
  text-align: center;
}
.lovsah-product-trust__icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f6f1e9;
  font-size: 18px;
}
.lovsah-product-trust__item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  color: #242424;
}
.lovsah-product-trust__item span {
  display: block;
  color: #777;
  font-size: 10px;
  line-height: 1.35;
}

.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 28px;
}

.single-product .related.products,
.single-product .up-sells.products {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lovsah-product-trust__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .single-product div.product .summary h1.product_title {
    font-size: 28px;
  }
  .single-product form.cart {
    grid-template-columns: 76px 1fr;
  }
  .lovsah-product-trust__items {
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
  }
}


/* v3.7.1 closer-to-reference single product layout */
.single-product div.product {
  grid-template-columns: minmax(580px, 1.08fr) minmax(430px, .92fr);
  gap: 48px;
}

.single-product div.product .woocommerce-product-gallery {
  display: flex;
  flex-direction: column;
}

/* switch thumbs to bottom horizontal strip */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  order: 2;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 14px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  width: 100% !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 72px;
  width: 72px !important;
  list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 10px;
  object-fit: cover !important;
}
.single-product .woocommerce-product-gallery .flex-viewport {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .lovsah-video-overlay,
.single-product .woocommerce-product-gallery__wrapper .lovsah-product-video {
  height: 100% !important;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
  height: 100% !important;
  object-fit: contain !important;
}

.single-product div.product .summary {
  max-width: 100%;
}
.lovsah-product-breadcrumb {
  margin-bottom: 18px;
}
.single-product div.product .summary h1.product_title {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.18;
  margin-bottom: 10px;
}
.lovsah-rating-summary { margin: 0 0 12px; }
.lovsah-product-short-note {
  max-width: 720px;
  margin-bottom: 18px;
}
.single-product div.product .summary .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 4px 0 10px !important;
}
.single-product div.product .summary .price .lovsah-price,
.single-product div.product .summary .price .lovsah-price--sale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.single-product div.product .summary .price del,
.single-product div.product .summary .price .lovsah-price__old {
  order: 1;
  font-size: 15px !important;
}
.single-product div.product .summary .price .lovsah-price__current,
.single-product div.product .summary .price ins {
  order: 2;
  font-size: 22px !important;
  line-height: 1;
}
.single-product div.product .summary .price .lovsah-price__badge {
  order: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #e8445a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.lovsah-stock-note { margin: 6px 0 14px; }

.single-product form.cart {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'qty qty'
    'add cod';
  gap: 12px;
  align-items: start;
}
.lovsah-qty-label {
  display: block;
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}
.single-product form.cart .quantity {
  grid-area: qty;
}
.single-product form.cart .quantity .qty {
  min-height: 48px;
  border-radius: 8px;
}
.single-product form.cart .single_add_to_cart_button {
  grid-area: add;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px !important;
}
.single-product form.cart .lovsah-cod-button--inline {
  grid-area: cod;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lovsah-cod-note {
  margin: 12px 0 16px;
  padding-bottom: 16px;
}

.single-product .product_meta {
  margin: 0 0 18px !important;
}
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
  display: block;
  margin-bottom: 6px;
}

.lovsah-product-trust__bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.lovsah-product-trust__items {
  margin-top: 16px;
  gap: 20px;
}
.lovsah-product-trust__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  font-size: 20px;
}
.lovsah-product-trust__item strong {
  font-size: 16px;
  margin-bottom: 6px;
}
.lovsah-product-trust__item span {
  font-size: 12px;
}

@media (max-width: 980px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex-basis: 60px;
    width: 60px !important;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 640px) {
  .single-product form.cart {
    grid-template-columns: 1fr;
    grid-template-areas:
      'qty'
      'add'
      'cod';
  }
  .single-product div.product .summary .price .lovsah-price__badge {
    font-size: 12px;
  }
}


/* v3.7.3 corrected single-product reference layout */
.single-product .shop-main,
.single-product main.shop-main,
.single-product #primary,
.single-product .site-main {
  width: min(1480px, calc(100% - 40px)) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
  gap: 54px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Gallery: main image first, thumbnails below in one horizontal row */
.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
  order: 1 !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  height: 100% !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
  height: 100% !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  order: 2 !important;
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  list-style: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li,
.single-product .woocommerce-product-gallery .flex-control-thumbs li.lovsah-video-thumb {
  float: none !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: #ed1f63 !important;
}

/* Summary sizing */
.single-product div.product .summary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .lovsah-product-breadcrumb {
  margin: 0 0 18px !important;
  font-size: 14px !important;
}

.single-product div.product .summary h1.product_title {
  margin: 0 0 10px !important;
  font-size: clamp(30px, 2.8vw, 44px) !important;
  line-height: 1.15 !important;
}

.single-product .lovsah-rating-summary {
  margin-bottom: 12px !important;
}

.single-product .lovsah-product-short-note {
  margin: 0 0 16px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* Price like the reference: old price, current price, discount badge on one line */
.single-product div.product .summary .price,
.single-product div.product .summary .price .lovsah-price {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.single-product div.product .summary .price {
  margin: 6px 0 12px !important;
}

.single-product div.product .summary .price del,
.single-product div.product .summary .price .lovsah-price__old {
  order: 1 !important;
  margin: 0 !important;
  font-size: 15px !important;
  color: #777 !important;
}

.single-product div.product .summary .price .lovsah-price__current,
.single-product div.product .summary .price ins {
  order: 2 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #ed1f63 !important;
}

.single-product .lovsah-price__badge {
  order: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 4px 10px !important;
  border-radius: 7px !important;
  background: #e83a52 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* SKU / categories before quantity */
.single-product .product_meta {
  margin: 8px 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px !important;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
  display: block !important;
  margin: 0 0 6px !important;
}

.single-product .lovsah-qty-heading {
  margin: 8px 0 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #222 !important;
}

/* Cart grid exactly like reference */
.single-product form.cart {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-areas:
    "qty qty"
    "add cod" !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
}

.single-product form.cart .quantity {
  grid-area: qty !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product form.cart .quantity .qty {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
}

.single-product form.cart .single_add_to_cart_button {
  grid-area: add !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  border: 1px solid #222 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #151515 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.single-product form.cart .lovsah-cod-button--inline {
  grid-area: cod !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background: #ed1f63 !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.single-product .lovsah-cod-note {
  margin: 10px 0 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px dashed #ddd !important;
  font-size: 13px !important;
}

/* Trust area */
.single-product .lovsah-product-trust {
  width: 100% !important;
  margin-top: 12px !important;
}

.single-product .lovsah-product-trust__bar {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  background: #17a64a !important;
  font-size: 15px !important;
}

.single-product .lovsah-product-trust__items {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 16px !important;
}

.single-product .lovsah-product-trust__item {
  text-align: center !important;
}

.single-product .lovsah-product-trust__item strong {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 14px !important;
}

.single-product .lovsah-product-trust__item span {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

/* Tabs full-width below the two-column product area */
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells.products {
  grid-column: 1 / -1 !important;
}

/* Don't let old gallery arrow rules push controls into the thumb rail */
.single-product .woocommerce-product-gallery .lovsah-gallery-arrow {
  top: 50% !important;
}

@media (max-width: 980px) {
  .single-product .shop-main,
  .single-product main.shop-main,
  .single-product #primary,
  .single-product .site-main {
    width: min(100% - 24px, 760px) !important;
  }

  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .single-product .lovsah-product-trust__items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .single-product form.cart {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "qty"
      "add"
      "cod" !important;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex-basis: 58px !important;
    width: 58px !important;
    height: 58px !important;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 58px !important;
    height: 58px !important;
  }
}


/* v3.7.4 header cart */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  flex: 0 0 auto;
}
.header-cart:hover {
  border-color: #111;
  background: #f8f8f8;
  transform: translateY(-1px);
}
.header-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-cart__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d4143a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 760px) {
  .header-cart {
    width: 38px;
    height: 38px;
    margin-left: 6px;
  }
  .header-cart svg {
    width: 20px;
    height: 20px;
  }
}


/* Prevent product media/content from leaking into the cart row */
.woocommerce-cart .woocommerce-cart-form img {
  max-width: 92px !important;
  width: 92px !important;
  height: 92px !important;
  object-fit: contain !important;
}
.woocommerce-cart .woocommerce-cart-form .product-thumbnail a,
.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
  width: 92px !important;
  max-width: 92px !important;
}
.woocommerce-cart .woocommerce-cart-form .product-thumbnail ~ img,
.woocommerce-cart .woocommerce-cart-form .product-name img:not(.attachment-woocommerce_thumbnail) {
  display: none !important;
}

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .lovsah-cart-progress,
.woocommerce-cart .woocommerce > h1,
.woocommerce-cart .woocommerce > .woocommerce-message,
.woocommerce-cart .woocommerce > .woocommerce-error,
.woocommerce-cart .woocommerce > .woocommerce-info {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  margin: 0 !important;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  margin: 0 !important;
}

.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 22px 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.035);
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.lovsah-cart-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 26px;
}
.lovsah-cart-progress__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 16px;
  font-weight: 600;
}
.lovsah-cart-progress__step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  font-size: 14px;
}
.lovsah-cart-progress__step.is-active {
  color: #111;
}
.lovsah-cart-progress__step.is-active span {
  border-color: #ed1f63;
  color: #ed1f63;
}
.lovsah-cart-progress__line {
  width: 48px;
  height: 2px;
  background: #d8d8d8;
}

.woocommerce-cart table.shop_table {
  margin: 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  background: #fff;
}

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

.woocommerce-cart table.shop_table tbody tr.cart_item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 170px 120px 54px;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #ececec;
}

.woocommerce-cart table.shop_table tbody tr.cart_item:last-of-type {
  border-bottom: 0;
}

.woocommerce-cart td.product-thumbnail,
.woocommerce-cart td.product-name,
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-quantity,
.woocommerce-cart td.product-subtotal,
.woocommerce-cart td.product-remove {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-cart td.product-thumbnail { grid-column: 1; }
.woocommerce-cart td.product-name { grid-column: 2; }
.woocommerce-cart td.product-price { display: none !important; }
.woocommerce-cart td.product-quantity { grid-column: 3; }
.woocommerce-cart td.product-subtotal { grid-column: 4; text-align: right; }
.woocommerce-cart td.product-remove { grid-column: 5; text-align: right; }

.woocommerce-cart td.product-name a {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.woocommerce-cart td.product-name .variation {
  margin-top: 6px;
  color: #777;
  font-size: 13px;
}
.woocommerce-cart td.product-name .amount {
  display: inline-block;
  margin-top: 8px;
}

.woocommerce-cart td.product-subtotal .amount {
  color: #ed1f63;
  font-size: 17px;
  font-weight: 800;
}

.woocommerce-cart td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid #ff365f;
  border-radius: 6px;
  color: #ff365f !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.woocommerce-cart td.product-remove a.remove:hover {
  background: #ff365f !important;
  color: #fff !important;
}

.woocommerce-cart .quantity {
  display: inline-flex;
  align-items: center;
}
.woocommerce-cart .quantity .qty {
  width: 76px !important;
  min-height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

/* Keep actions compact */
.woocommerce-cart table.shop_table td.actions {
  padding: 16px 24px !important;
  border: 0 !important;
  background: #fafafa;
}
.woocommerce-cart table.shop_table td.actions .coupon {
  display: flex;
  gap: 8px;
}
.woocommerce-cart table.shop_table td.actions .coupon input {
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.woocommerce-cart table.shop_table td.actions button {
  min-height: 40px;
  border-radius: 6px;
}

/* Totals */
.woocommerce-cart .cart_totals table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.woocommerce-cart .cart_totals table.shop_table tr {
  border-bottom: 1px solid #eee;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 12px 0 !important;
  border: 0 !important;
  font-size: 15px;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 20px;
  font-weight: 800;
}
.woocommerce-cart .cart_totals .order-total td {
  color: #ed1f63;
  text-align: right;
}
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 18px 0 0 !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 !important;
  border-radius: 7px;
  background: #ed1f63 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #d91855 !important;
}

.lovsah-cart-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid #222;
  border-radius: 7px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
}
.lovsah-cart-continue:hover {
  background: #111;
  color: #fff;
}

.lovsah-cart-discount {
  display: inline-flex;
  float: right;
  margin: 8px 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e83a52;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* WooCommerce Cart Block compatibility */
.woocommerce-cart .wp-block-woocommerce-cart {
  max-width: 100%;
}
.woocommerce-cart .wc-block-cart {
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 28px;
}
.woocommerce-cart .wc-block-cart__main {
  width: 100% !important;
  padding-right: 0 !important;
}
.woocommerce-cart .wc-block-cart__sidebar {
  width: 100% !important;
}
.woocommerce-cart .wc-block-cart-items {
  border: 1px solid #ddd !important;
  border-radius: 10px;
  overflow: hidden;
}
.woocommerce-cart .wc-block-cart-items__row {
  padding: 18px !important;
}
.woocommerce-cart .wc-block-cart-item__image img {
  width: 92px !important;
  height: 92px !important;
  object-fit: contain !important;
}
.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  width: 100% !important;
}
.woocommerce-cart .wc-block-components-sidebar {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px !important;
  background: #fff;
}
.woocommerce-cart .wc-block-components-button.wp-element-button {
  border-radius: 7px !important;
}

@media (max-width: 980px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .wc-block-cart {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    grid-column: 1;
  }

  .woocommerce-cart table.shop_table tbody tr.cart_item {
    grid-template-columns: 76px minmax(0,1fr) 110px 42px;
    grid-template-areas:
      "thumb name name remove"
      "thumb qty subtotal remove";
  }

  .woocommerce-cart td.product-thumbnail { grid-area: thumb; }
  .woocommerce-cart td.product-name { grid-area: name; }
  .woocommerce-cart td.product-quantity { grid-area: qty; }
  .woocommerce-cart td.product-subtotal { grid-area: subtotal; }
  .woocommerce-cart td.product-remove { grid-area: remove; }
}

@media (max-width: 640px) {
  .woocommerce-cart .shop-main,
  .woocommerce-cart main.shop-main,
  .woocommerce-cart #primary,
  .woocommerce-cart .site-main {
    width: calc(100% - 20px) !important;
  }

  .woocommerce-cart table.shop_table tbody tr.cart_item {
    grid-template-columns: 64px 1fr 36px;
    grid-template-areas:
      "thumb name remove"
      "thumb qty remove"
      "thumb subtotal remove";
    gap: 10px 12px;
    padding: 16px 12px;
  }

  .woocommerce-cart .woocommerce-cart-form img,
  .woocommerce-cart .woocommerce-cart-form .product-thumbnail a,
  .woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }

  .lovsah-cart-progress {
    margin-bottom: 18px;
  }
}


/* v3.7.6 cart layout fix */
.woocommerce-cart .shop-main,
.woocommerce-cart main.shop-main,
.woocommerce-cart #primary,
.woocommerce-cart .site-main {
  width: min(1480px, calc(100% - 40px)) !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
}

/* Classic cart: two-column layout */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 28px !important;
  align-items: start !important;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .lovsah-cart-progress,
.woocommerce-cart .woocommerce > h1,
.woocommerce-cart .woocommerce > .woocommerce-message,
.woocommerce-cart .woocommerce > .woocommerce-error,
.woocommerce-cart .woocommerce > .woocommerce-info {
  grid-column: 1 / -1 !important;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1 !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Main cart table */
.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  table-layout: fixed !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}

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

.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) 120px 120px 44px !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 20px 22px !important;
  border-bottom: 1px solid #eee !important;
}

.woocommerce-cart table.shop_table.cart tbody tr.cart_item:last-of-type {
  border-bottom: 0 !important;
}

.woocommerce-cart table.shop_table.cart td {
  border: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  vertical-align: middle !important;
}

/* Absolutely constrain product media in cart */
.woocommerce-cart td.product-thumbnail {
  grid-column: 1 !important;
  width: 96px !important;
  max-width: 96px !important;
  overflow: hidden !important;
}

.woocommerce-cart td.product-thumbnail a {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.woocommerce-cart td.product-thumbnail img,
.woocommerce-cart table.cart img {
  display: block !important;
  width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  max-height: 88px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* Prevent accidental extra content/images inside the product-name cell */
.woocommerce-cart td.product-name {
  grid-column: 2 !important;
  overflow: hidden !important;
}
.woocommerce-cart td.product-name > img,
.woocommerce-cart td.product-name figure,
.woocommerce-cart td.product-name picture,
.woocommerce-cart td.product-name video,
.woocommerce-cart td.product-name iframe,
.woocommerce-cart td.product-name .woocommerce-product-gallery,
.woocommerce-cart td.product-name .product-description,
.woocommerce-cart td.product-name .woocommerce-Tabs-panel {
  display: none !important;
}
.woocommerce-cart td.product-name a {
  display: inline !important;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
.woocommerce-cart td.product-name .variation {
  margin-top: 6px !important;
  color: #777 !important;
  font-size: 12px !important;
}

/* price hidden; subtotal retained */
.woocommerce-cart td.product-price {
  display: none !important;
}
.woocommerce-cart td.product-quantity {
  grid-column: 3 !important;
}
.woocommerce-cart td.product-subtotal {
  grid-column: 4 !important;
  text-align: right !important;
}
.woocommerce-cart td.product-subtotal .amount {
  color: #ed1f63 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}
.woocommerce-cart td.product-remove {
  grid-column: 5 !important;
  text-align: center !important;
}

/* Quantity */
.woocommerce-cart td.product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce-cart td.product-quantity .qty {
  width: 74px !important;
  min-height: 38px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 6px !important;
  text-align: center !important;
}

/* Remove button */
.woocommerce-cart td.product-remove a.remove {
  display: inline-flex !important;
  width: 32px !important;
  height: 32px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ff365f !important;
  border-radius: 6px !important;
  color: #ff365f !important;
  background: transparent !important;
  text-decoration: none !important;
}
.woocommerce-cart td.product-remove a.remove:hover {
  color: #fff !important;
  background: #ff365f !important;
}

/* Bottom actions row */
.woocommerce-cart table.shop_table.cart td.actions {
  display: block !important;
  padding: 16px 20px !important;
  background: #fafafa !important;
}
.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: flex !important;
  gap: 8px !important;
  max-width: 460px !important;
}

/* Totals card */
.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
  padding: 20px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.04) !important;
}
.woocommerce-cart .cart_totals h2 {
  margin: 0 0 14px !important;
  font-size: 21px !important;
}
.woocommerce-cart .cart_totals table.shop_table {
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 11px 0 !important;
  border: 0 !important;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 19px !important;
  font-weight: 800 !important;
}
.woocommerce-cart .cart_totals .order-total td {
  color: #ed1f63 !important;
  text-align: right !important;
}
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 16px 0 0 !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 7px !important;
  background: #ed1f63 !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

/* Progress */
.lovsah-cart-progress {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 8px 0 24px !important;
}
.lovsah-cart-progress__step {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #999 !important;
  font-weight: 600 !important;
}
.lovsah-cart-progress__step span {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ccc !important;
  border-radius: 50% !important;
}
.lovsah-cart-progress__step.is-active {
  color: #111 !important;
}
.lovsah-cart-progress__step.is-active span {
  border-color: #ed1f63 !important;
  color: #ed1f63 !important;
}
.lovsah-cart-progress__line {
  width: 48px !important;
  height: 2px !important;
  background: #ddd !important;
}

/* Continue shopping */
.lovsah-cart-continue {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin-top: 12px !important;
  border: 1px solid #222 !important;
  border-radius: 7px !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* WooCommerce Cart Block compatibility */
.woocommerce-cart .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 390px !important;
  gap: 28px !important;
}
.woocommerce-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-cart__sidebar {
  width: 100% !important;
}
.woocommerce-cart .wc-block-cart-items {
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.woocommerce-cart .wc-block-cart-item__image img {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
}
.woocommerce-cart .wc-block-cart__sidebar {
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  padding: 20px !important;
  background: #fff !important;
}

/* Responsive */
@media (max-width: 980px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .wc-block-cart {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    grid-column: 1 !important;
  }
}

@media (max-width: 700px) {
  .woocommerce-cart .shop-main,
  .woocommerce-cart main.shop-main,
  .woocommerce-cart #primary,
  .woocommerce-cart .site-main {
    width: calc(100% - 20px) !important;
  }

  .woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    grid-template-columns: 68px minmax(0,1fr) 36px !important;
    grid-template-areas:
      "thumb name remove"
      "thumb qty remove"
      "thumb subtotal remove" !important;
    gap: 10px 12px !important;
    padding: 14px 12px !important;
  }

  .woocommerce-cart td.product-thumbnail { grid-area: thumb !important; }
  .woocommerce-cart td.product-name { grid-area: name !important; }
  .woocommerce-cart td.product-quantity { grid-area: qty !important; }
  .woocommerce-cart td.product-subtotal { grid-area: subtotal !important; }
  .woocommerce-cart td.product-remove { grid-area: remove !important; }

  .woocommerce-cart td.product-thumbnail,
  .woocommerce-cart td.product-thumbnail a,
  .woocommerce-cart td.product-thumbnail img,
  .woocommerce-cart table.cart img {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
  }
}


/* v3.7.7 strict WooCommerce Cart Block media cleanup */
.woocommerce-cart .wc-block-cart-items__row {
  min-height: 132px !important;
}

.woocommerce-cart .wc-block-cart-item__product {
  min-width: 0 !important;
  overflow: hidden !important;
}

.woocommerce-cart .wc-block-cart-item__wrap {
  min-width: 0 !important;
  overflow: hidden !important;
}

/* ONLY the official cart thumbnail may display as an image */
.woocommerce-cart .wc-block-cart-item__image {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  align-self: start !important;
}

.woocommerce-cart .wc-block-cart-item__image a {
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.woocommerce-cart .wc-block-cart-item__image img {
  display: block !important;
  width: 92px !important;
  max-width: 92px !important;
  height: 92px !important;
  max-height: 92px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* Stop product description/gallery HTML from expanding the Cart Block */
.woocommerce-cart .wc-block-cart-item__wrap img,
.woocommerce-cart .wc-block-cart-item__wrap picture,
.woocommerce-cart .wc-block-cart-item__wrap figure,
.woocommerce-cart .wc-block-cart-item__wrap video,
.woocommerce-cart .wc-block-cart-item__wrap iframe,
.woocommerce-cart .wc-block-components-product-metadata img,
.woocommerce-cart .wc-block-components-product-metadata picture,
.woocommerce-cart .wc-block-components-product-metadata figure,
.woocommerce-cart .wc-block-components-product-metadata video,
.woocommerce-cart .wc-block-components-product-metadata iframe {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Product row typography */
.woocommerce-cart .wc-block-components-product-name {
  display: block !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  margin-bottom: 6px !important;
}

.woocommerce-cart .wc-block-components-product-metadata {
  margin-top: 4px !important;
  max-height: 72px !important;
  overflow: hidden !important;
  color: #777 !important;
  font-size: 12px !important;
}

.woocommerce-cart .wc-block-components-product-price {
  margin-top: 6px !important;
}

.woocommerce-cart .wc-block-formatted-money-amount {
  white-space: nowrap !important;
}

/* Match the reference: compact card on left, totals card on right */
.woocommerce-cart .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 400px !important;
  gap: 28px !important;
  align-items: start !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main {
  width: 100% !important;
  padding: 0 !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  width: 100% !important;
  padding: 20px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.woocommerce-cart .wc-block-cart-items {
  width: 100% !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.woocommerce-cart .wc-block-cart-items__row {
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 20px !important;
  border-bottom: 1px solid #eee !important;
}

.woocommerce-cart .wc-block-cart-items__row:last-child {
  border-bottom: 0 !important;
}

.woocommerce-cart .wc-block-cart-item__total {
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  width: auto !important;
}

.woocommerce-cart .wc-block-cart-items__row {
  position: relative !important;
}

.woocommerce-cart .wc-block-cart-item__quantity {
  margin-top: 12px !important;
}

/* Keep any savings message small instead of creating a huge row */
.woocommerce-cart .wc-block-components-sale-badge,
.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  font-size: 11px !important;
}

@media (max-width: 980px) {
  .woocommerce-cart .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    padding: 14px 12px !important;
  }

  .woocommerce-cart .wc-block-cart-item__image,
  .woocommerce-cart .wc-block-cart-item__image a,
  .woocommerce-cart .wc-block-cart-item__image img {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
  }

  .woocommerce-cart .wc-block-cart-item__total {
    position: static !important;
    margin-top: 8px !important;
  }
}


/* v3.7.8 restore Cart Block product content */
.woocommerce-cart .wc-block-cart-item__wrap,
.woocommerce-cart .wc-block-cart-item__product,
.woocommerce-cart .wc-block-components-product-name,
.woocommerce-cart .wc-block-cart-item__quantity,
.woocommerce-cart .wc-block-cart-item__remove-link,
.woocommerce-cart .wc-block-cart-item__total,
.woocommerce-cart .wc-block-components-product-price,
.woocommerce-cart .wc-block-components-product-metadata {
  visibility: visible !important;
  opacity: 1 !important;
}

.woocommerce-cart .wc-block-components-product-name {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  color: #d9234e !important;
  text-decoration: none !important;
}

.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.woocommerce-cart .wc-block-components-quantity-selector input {
  min-width: 48px !important;
  text-align: center !important;
}

.woocommerce-cart .wc-block-cart-item__total {
  display: block !important;
  color: #111 !important;
  font-weight: 700 !important;
}

.woocommerce-cart .wc-block-components-product-price {
  display: block !important;
  margin-top: 6px !important;
}

/* Only hide extra media, never hide text/controls */
.woocommerce-cart .wc-block-cart-item__wrap img:not(.wc-block-cart-item__image img),
.woocommerce-cart .wc-block-cart-item__wrap picture,
.woocommerce-cart .wc-block-cart-item__wrap figure,
.woocommerce-cart .wc-block-cart-item__wrap video,
.woocommerce-cart .wc-block-cart-item__wrap iframe,
.woocommerce-cart .wc-block-components-product-metadata img,
.woocommerce-cart .wc-block-components-product-metadata picture,
.woocommerce-cart .wc-block-components-product-metadata figure,
.woocommerce-cart .wc-block-components-product-metadata video,
.woocommerce-cart .wc-block-components-product-metadata iframe {
  display: none !important;
}


/* v3.7.9 force classic cart */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-components-sidebar-layout {
  display: none !important;
}

/* Classic cart becomes the authoritative cart UI */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  display: block !important;
}

/* Clean, compact classic cart item row */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
  min-height: 120px !important;
}

.woocommerce-cart td.product-thumbnail {
  overflow: hidden !important;
}

.woocommerce-cart td.product-thumbnail img {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  object-fit: contain !important;
}

.woocommerce-cart td.product-name {
  overflow: visible !important;
}

.woocommerce-cart td.product-name a {
  display: inline-block !important;
  max-width: 100% !important;
  white-space: normal !important;
}

.woocommerce-cart td.product-name img,
.woocommerce-cart td.product-name picture,
.woocommerce-cart td.product-name figure,
.woocommerce-cart td.product-name video,
.woocommerce-cart td.product-name iframe {
  display: none !important;
}

.woocommerce-cart td.product-quantity,
.woocommerce-cart td.product-subtotal,
.woocommerce-cart td.product-remove {
  visibility: visible !important;
  opacity: 1 !important;
}


/* ============================================================
   v3.8.1 Cart WhatsApp order button
   ============================================================ */
.woocommerce-cart .lovsah-cart-whatsapp-wrap {
  margin-top: 12px !important;
  width: 100% !important;
}

.woocommerce-cart .lovsah-cart-whatsapp {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #1f925f !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background .18s ease, transform .18s ease !important;
}

.woocommerce-cart .lovsah-cart-whatsapp:hover {
  background: #178451 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.woocommerce-cart .lovsah-cart-whatsapp svg.lovsah-cart-whatsapp__icon {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  max-width: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  flex: 0 0 21px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-cart .lovsah-cart-whatsapp span {
  display: inline !important;
  color: #fff !important;
}

.woocommerce-cart .lovsah-cart-whatsapp-note {
  margin: 7px 8px 0 !important;
  color: #666 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .woocommerce-cart .lovsah-cart-whatsapp {
    min-height: 46px !important;
    font-size: 16px !important;
  }
  .woocommerce-cart .lovsah-cart-whatsapp-note {
    margin-left: 2px !important;
    margin-right: 2px !important;
  }
}

/* =========================================================
   v3.9.0 — Oman COD checkout reference layout
   ========================================================= */
.woocommerce-checkout .shop-main,
.woocommerce-checkout main.shop-main,
.woocommerce-checkout #primary,
.woocommerce-checkout .site-main {
  width: min(1540px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.lovsah-checkout-page {
  padding: 26px 0 54px;
  color: #111;
}

.lovsah-checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #333;
}

.lovsah-checkout-breadcrumb a {
  color: #06f;
  text-decoration: underline;
}

.lovsah-checkout-title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.lovsah-checkout-title small {
  font-size: 16px;
  font-weight: 500;
  color: #444;
}

.lovsah-checkout-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(620px, 1.35fr);
  gap: 24px;
  align-items: start;
}

.lovsah-checkout-summary {
  background: #f6f6f8;
  border-radius: 14px;
  padding: 20px;
}

.lovsah-checkout-summary > h2,
.lovsah-checkout-delivery > h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.lovsah-review-order,
.lovsah-review-order * {
  box-sizing: border-box;
}

.lovsah-review-item {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 0 16px;
}

.lovsah-review-item + .lovsah-review-item {
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.lovsah-review-item__image {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.lovsah-review-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.lovsah-review-item__main {
  min-width: 0;
}

.lovsah-review-item__main strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.lovsah-review-item__main span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.lovsah-review-item__price {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
}

.lovsah-review-item__price del { color: #666; }
.lovsah-review-item__price strong { font-size: 15px; }

.lovsah-review-divider {
  height: 1px;
  background: #cfcfd4;
  margin: 2px 0 16px;
}

.lovsah-review-original,
.lovsah-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lovsah-review-original {
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
}

.lovsah-review-total {
  font-size: 20px;
  font-weight: 800;
}

.lovsah-review-total > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ef3340;
}

.lovsah-checkout-discount {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ef3340;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.lovsah-review-cod-note {
  margin: 12px 0 16px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.lovsah-checkout-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  border-radius: 4px;
  background: #1f925f;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
}

.lovsah-checkout-whatsapp svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
}

.lovsah-checkout-delivery {
  padding: 0 0 0 0;
}

.lovsah-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lovsah-billing-grid .form-row,
.lovsah-checkout-delivery .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lovsah-billing-grid .form-row-wide,
#billing_city_other_field,
#billing_address_1_field {
  grid-column: 1 / -1;
}

.lovsah-checkout-delivery label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.lovsah-checkout-delivery .required { color: #ef1749; }

.lovsah-checkout-delivery input.input-text,
.lovsah-checkout-delivery select,
.lovsah-checkout-delivery textarea,
.lovsah-checkout-delivery .select2-container .select2-selection--single {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d6d9df;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}

.lovsah-checkout-delivery input.input-text,
.lovsah-checkout-delivery select,
.lovsah-checkout-delivery textarea {
  padding: 9px 12px;
}

.lovsah-checkout-delivery textarea {
  min-height: 64px;
  resize: vertical;
}

.lovsah-checkout-delivery .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 12px;
}

.lovsah-checkout-delivery .select2-container .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

.lovsah-delivery-important {
  margin: 14px 0 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #444;
}

#order_comments_field {
  margin-top: 14px !important;
}

.lovsah-checkout-payment-wrap {
  margin-top: 16px;
}

.lovsah-checkout-payment-wrap > #payment,
.lovsah-checkout-payment-wrap .woocommerce-checkout-payment,
.woocommerce-checkout #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.woocommerce-checkout #payment .place-order {
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .wc-terms-and-conditions {
  display: none !important;
}

.woocommerce-checkout #payment #place_order {
  float: none !important;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #ef174f !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.woocommerce-checkout #payment #place_order::before {
  content: '✓ ';
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .woocommerce-checkout .shop-main,
  .woocommerce-checkout main.shop-main,
  .woocommerce-checkout #primary,
  .woocommerce-checkout .site-main {
    width: min(100% - 28px, 760px);
  }
  .lovsah-checkout-grid {
    grid-template-columns: 1fr;
  }
  .lovsah-checkout-summary { order: 1; }
  .lovsah-checkout-delivery { order: 2; }
}

@media (max-width: 640px) {
  .lovsah-checkout-page { padding-top: 18px; }
  .lovsah-checkout-title { font-size: 24px; }
  .lovsah-checkout-summary { padding: 16px; }
  .lovsah-billing-grid { grid-template-columns: 1fr; }
  .lovsah-billing-grid .form-row { grid-column: 1 / -1; }
  .lovsah-review-item {
    grid-template-columns: 54px minmax(0,1fr);
  }
  .lovsah-review-item__price {
    grid-column: 2;
    flex-wrap: wrap;
  }
  .lovsah-review-total {
    align-items: flex-start;
  }
}

/* Checkout page shell when WordPress falls back to index.php. */
.woocommerce-checkout main.products-section {
  width: 100%;
  max-width: none;
  padding: 0;
}
.woocommerce-checkout main.products-section > article > h1 { display: none !important; }
.woocommerce-checkout main.products-section > article { margin: 0; }
.woocommerce-checkout main.products-section > article > .lovsah-checkout-page,
.woocommerce-checkout main.products-section > article > .woocommerce { width: 100%; }
.lovsah-billing-grid .lovsah-delivery-important {
  grid-column: 1 / -1;
  margin: -2px 0 0;
}

/* v3.9.1 Buy Now direct checkout feedback */
.lovsah-cod-button.is-loading{opacity:.72;cursor:wait;pointer-events:none;}


/* v3.9.3: Oman checkout spacing and COD payment hardening */
.lovsah-review-item {
  grid-template-columns: 58px minmax(0, 1fr) minmax(128px, 150px);
  gap: 14px;
  align-items: center;
}

.lovsah-review-item__main strong {
  font-size: 14px;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
}

.lovsah-review-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.lovsah-review-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 128px;
  white-space: normal;
  text-align: right;
  font-size: 13px;
}

.lovsah-review-item__price del,
.lovsah-review-item__price span,
.lovsah-review-item__price strong {
  display: block;
}

.lovsah-review-item__price del {
  line-height: 1.35;
}

.lovsah-review-item__price strong {
  font-size: 15px;
  line-height: 1.35;
}

.lovsah-checkout-payment-wrap .payment_methods,
.lovsah-checkout-payment-wrap input[name="payment_method"] {
  pointer-events: none;
}

@media (max-width: 1280px) {
  .lovsah-checkout-grid {
    grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.2fr);
  }
}

@media (max-width: 767px) {
  .lovsah-review-item {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }

  .lovsah-review-item__price {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    margin-top: 6px;
  }
}


/* v3.9.6 AJAX Buy Now feedback */
.lovsah-cod-button--inline.is-loading {
  cursor: wait;
  opacity: .88;
  pointer-events: none;
}

.lovsah-cod-button--inline.is-loading .lovsah-cod-button__icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  animation: lovsah-buy-now-spin .7s linear infinite;
}

@keyframes lovsah-buy-now-spin {
  to { transform: rotate(360deg); }
}


/* v3.9.7: Match the checkout delivery layout to the reference 2-column design */
.lovsah-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.lovsah-billing-grid__half,
.lovsah-billing-grid__full,
.lovsah-billing-grid__notice {
  min-width: 0;
}

.lovsah-billing-grid__full,
.lovsah-billing-grid__notice {
  grid-column: 1 / -1;
}

.lovsah-billing-grid__half .form-row,
.lovsah-billing-grid__full .form-row,
.lovsah-billing-grid__notice {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.lovsah-billing-grid .form-row label {
  margin-bottom: 8px;
}

.lovsah-billing-grid .form-row .woocommerce-input-wrapper,
.lovsah-billing-grid .form-row select,
.lovsah-billing-grid .form-row input,
.lovsah-billing-grid .form-row textarea {
  width: 100%;
}

@media (max-width: 767px) {
  .lovsah-billing-grid {
    grid-template-columns: 1fr;
  }

  .lovsah-billing-grid__half,
  .lovsah-billing-grid__full,
  .lovsah-billing-grid__notice {
    grid-column: 1 / -1;
  }
}


/* v3.9.8 direct-to-checkout: immediate click feedback without waiting on AJAX */
.lovsah-cod-button--inline:active { transform: translateY(1px); }


/* v3.9.9: instant AJAX Add to cart on product pages */
.single-product form.cart .single_add_to_cart_button.lovsah-ajax-pending,
.single-product form.cart .single_add_to_cart_button.lovsah-ajax-added {
  pointer-events: none;
}
.single-product form.cart .single_add_to_cart_button.lovsah-ajax-pending {
  opacity: .78;
}
.single-product form.cart .single_add_to_cart_button.lovsah-ajax-added {
  border-color: #1f925f !important;
  color: #1f925f !important;
}
.lovsah-ajax-cart-feedback {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: #1f925f;
}
.lovsah-ajax-cart-feedback.is-error { color: #c61f3f; }

/* v4.0.0: Site-wide instant interaction feedback and instant cart drawer */
html.lovsah-cart-open,
html.lovsah-cart-open body {
  overflow: hidden;
}

.lovsah-click-feedback {
  transform: translateY(1px);
  opacity: .9;
  transition: transform .08s ease, opacity .08s ease;
}

button.lovsah-submit-pending,
input.lovsah-submit-pending,
#place_order.lovsah-submit-pending {
  cursor: wait !important;
  opacity: .82 !important;
  pointer-events: none !important;
}

.lovsah-nav-progress {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--pink, #ef1749);
  opacity: 0;
  pointer-events: none;
}

.lovsah-nav-progress.is-active {
  width: 78%;
  opacity: 1;
  transition: width .45s ease, opacity .12s ease;
}

.lovsah-cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .2s ease;
}

.lovsah-cart-drawer-backdrop.is-open {
  opacity: 1;
}

.lovsah-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99991;
  width: min(420px, 92vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -18px 0 48px rgba(0,0,0,.16);
  transform: translateX(104%);
  transition: transform .22s ease;
  overflow: hidden;
}

.lovsah-cart-drawer.is-open {
  transform: translateX(0);
}

.lovsah-cart-drawer__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lovsah-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 20px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
}

.lovsah-cart-drawer__close {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lovsah-cart-drawer__body {
  flex: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.lovsah-cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}

.lovsah-cart-drawer__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.lovsah-cart-drawer__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.lovsah-cart-drawer__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.lovsah-cart-drawer__meta {
  min-width: 0;
}

.lovsah-cart-drawer__meta strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.lovsah-cart-drawer__meta span {
  display: block;
  margin-top: 5px;
  color: #777;
  font-size: 12px;
}

.lovsah-cart-drawer__price {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.lovsah-cart-drawer__footer {
  padding: 18px 20px 22px;
  border-top: 1px solid #eee;
  background: #fff;
}

.lovsah-cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
}

.lovsah-cart-drawer__view,
.lovsah-cart-drawer__checkout,
.lovsah-cart-drawer__shop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 700;
}

.lovsah-cart-drawer__view,
.lovsah-cart-drawer__shop {
  border: 1px solid #222;
  color: #111 !important;
  background: #fff;
}

.lovsah-cart-drawer__checkout {
  margin-top: 10px;
  border: 1px solid var(--pink, #ef1749);
  background: var(--pink, #ef1749);
  color: #fff !important;
}

.lovsah-cart-drawer__empty {
  margin: auto;
  width: min(300px, calc(100% - 40px));
  text-align: center;
}

.lovsah-cart-drawer__empty p {
  margin: 0 0 16px;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .lovsah-cart-drawer,
  .lovsah-cart-drawer-backdrop,
  .lovsah-nav-progress,
  .lovsah-click-feedback {
    transition: none !important;
  }
}
