/*
Theme Name: Lovsah COD Store
Theme URI: https://example.com/
Author: Lovsah
Description: A lightweight UAE/Oman WooCommerce storefront with WhatsApp ordering and Meta Pixel support.
Version: 3.3.4
Text Domain: lureaura-store
*/

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

.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 {
  padding: 8px 13px;
  border-radius: 999px;
  color: #555;
  font-weight: 700;
}
.country-switcher a.is-active { color: #fff; background: var(--ink); }

.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-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  justify-content: start;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.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: .82;
  max-height: 290px;
  overflow: hidden;
  background: #eee;
}
.product-card__image { width: 100%; height: 100%; object-fit: cover; 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; }
.product-card__button {
  position: static;
  display: block;
  clear: both;
  width: 100%;
  margin: 0 !important;
  padding: 9px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--whatsapp);
  cursor: pointer;
  font-weight: 800;
}

.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;
  overflow: hidden;
  border-radius: 5px;
  background: #eee;
}
.catalog-card__image img { width: 100%; height: 100%; object-fit: cover; 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; }
.catalog-card__order {
  position: static;
  display: block;
  clear: both;
  margin: 0 !important;
  padding: 9px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--whatsapp);
  text-align: center;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
  font-weight: 800;
}
.site-footer { padding: 25px; color: #aaa; background: #111; text-align: center; }

.lovsah-product-whatsapp {
  clear: both;
  margin: 18px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}
.lovsah-product-whatsapp__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  color: #fff !important;
  background: #16877d;
  font-weight: 800;
  text-align: center;
}
.lovsah-product-whatsapp__button:hover { color: #fff; background: #116e67; }
.lovsah-product-whatsapp p { margin: 12px 0 0; color: #555; }

.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: var(--whatsapp);
  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 { 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-auto-columns: 58vw; }
  .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; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 54px; height: 54px; justify-content: center; padding: 0; font-size: 22px; }
}
