/* ============================================================
   Lobha Deepthis storefront — additions on top of the theme CSS
   (reviews strip, floating widgets, cart drawer, product modal)
   ============================================================ */

/* ---------- Google-reviews style carousel (dual row marquee) ---------- */
.ldr-reviews {
  --ldr-card-w: 350px;
  --ldr-gap: 22px;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0 30px;
  font-family: Manrope, "Jost", system-ui, sans-serif;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ldr-row { overflow: hidden; margin-bottom: 22px; }
.ldr-track { display: flex; gap: var(--ldr-gap); width: max-content; animation: ldr-scroll 120s linear infinite; padding-left: var(--ldr-gap); }
.ldr-row--b .ldr-track { animation-direction: reverse; animation-duration: 140s; }
.ldr-reviews:hover .ldr-track { animation-play-state: paused; }
@keyframes ldr-scroll { to { transform: translateX(-50%); } }
.ldr-card {
  flex: 0 0 var(--ldr-card-w);
  width: var(--ldr-card-w);
  align-self: flex-start;
  box-sizing: border-box;
  padding: 20px 22px 22px;
  background: #f1f5fa;
  border-radius: 24px;
  color: #3b3f44;
  font-size: 14.5px;
  line-height: 1.45;
}
.ldr-card header { display: flex; align-items: center; gap: 12px; }
.ldr-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; }
.ldr-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ldr-who b { font-weight: 600; font-size: 14.5px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldr-who small { color: #8c9096; font-size: 14px; }
.ldr-g { flex: none; align-self: flex-start; }
.ldr-stars { display: flex; align-items: center; gap: 1px; margin: 10px 0 8px; }
.ldr-stars svg { width: 20px; height: 20px; }
.ldr-stars .ldr-ver { margin-left: 4px; }
.ldr-card p { margin: 0; color: #4b4f55; }
.ldr-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ldr-more { display: inline-block; margin-top: 6px; color: #777; text-decoration: underline; cursor: pointer; font-size: 14.5px; }
@media (max-width: 749px) {
  .ldr-reviews { --ldr-card-w: 330px; --ldr-gap: 16px; padding-top: 10px; }
  .ldr-track { animation-duration: 90s; }
  .ldr-row--b .ldr-track { animation-duration: 105s; }
}
@media (prefers-reduced-motion: reduce) { .ldr-track { animation: none; } }

/* ---------- Floating widgets ---------- */
.ldw-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #fbeed8;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgb(0 0 0 / .22);
  transition: transform .2s ease;
}
.ldw-whatsapp:hover { transform: scale(1.06); }
.ldw-whatsapp[hidden] { display: none; }

.ldw-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 24px);
  background: #0e0807; color: #fbf5f4; padding: 12px 20px; border-radius: 999px; font: 500 14px "Jost", sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
}
.ldw-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cart drawer ---------- */
.ld-overlay { position: fixed; inset: 0; background: rgb(14 8 7 / .45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .25s; }
.ld-overlay.open { opacity: 1; pointer-events: auto; }
.ld-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 160; background: #fbf5f4; color: #0e0807;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; font-family: "Jost", sans-serif;
  box-shadow: -8px 0 30px rgb(0 0 0 / .15);
}
.ld-drawer.open { transform: none; }
.ld-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid rgb(14 8 7 / .12); }
.ld-drawer__head h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.ld-x { background: none; border: 0; cursor: pointer; padding: 6px; color: inherit; display: grid; place-items: center; }
.ld-drawer__body { flex: 1; overflow: auto; padding: 8px 22px; }
.ld-empty { text-align: center; padding: 60px 10px; color: #6b5f5c; }
.ld-empty .ld-btn { margin-top: 18px; }
.ld-line { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgb(14 8 7 / .08); }
.ld-line img { width: 78px; aspect-ratio: .6665; object-fit: cover; border-radius: 8px; background: #eee; }
.ld-line h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500; line-height: 1.25; }
.ld-line small { color: #6b5f5c; }
.ld-qty { display: inline-flex; align-items: center; border: 1px solid rgb(14 8 7 / .2); border-radius: 999px; margin-top: 8px; }
.ld-qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; color: inherit; }
.ld-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.ld-line .ld-price { font-weight: 500; font-size: 15px; text-align: right; }
.ld-line .ld-rm { display: block; margin-top: 8px; background: none; border: 0; text-decoration: underline; color: #6b5f5c; cursor: pointer; font-size: 13px; padding: 0; }
.ld-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid rgb(14 8 7 / .12); }
.ld-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.ld-note { font-size: 13px; color: #6b5f5c; margin: 0 0 14px; }
.ld-ship { font-size: 13px; background: #f1e6e3; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; }
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
  background: #3b2211; color: #f6eddd; border-radius: 999px; font: 400 14px "Jost", sans-serif; letter-spacing: .04em; text-transform: uppercase;
}
.ld-btn:hover { background: #2a180c; }
.ld-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ld-btn--ghost { background: transparent; color: #3b2211; border: 1px solid #3b2211; }
.ld-btn--auto { width: auto; }

/* ---------- Product modal ---------- */
.ld-modal {
  position: fixed; inset: 0; z-index: 170; display: none; align-items: center; justify-content: center; padding: 20px;
}
.ld-modal.open { display: flex; }
.ld-modal__card {
  position: relative; background: #fbf5f4; color: #0e0807; width: min(900px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  border-radius: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-family: "Jost", sans-serif;
}
.ld-modal__media { background: #eee; position: relative; }
.ld-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: .6665; }
.ld-thumbs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.ld-thumbs button { width: 44px; height: 58px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; }
.ld-thumbs button.on { border-color: #3b2211; }
.ld-thumbs img { aspect-ratio: auto; }
.ld-modal__info { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.ld-modal__info h3 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; padding-right: 30px; }
.ld-modal__info .ld-p { font-size: 20px; font-weight: 500; }
.ld-modal__info .ld-p s { color: #8c807c; font-weight: 400; margin-right: 8px; font-size: 16px; }
.ld-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ld-size { min-width: 48px; height: 42px; padding: 0 12px; border: 1px solid rgb(14 8 7 / .3); border-radius: 999px; background: transparent; cursor: pointer; font: 500 14px "Jost", sans-serif; color: inherit; }
.ld-size.on { background: #3b2211; color: #fbf5f4; border-color: #3b2211; }
.ld-size[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.ld-stock { font-size: 13px; color: #a24b2b; min-height: 18px; }
.ld-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fbf5f4; border-radius: 50%; width: 36px; height: 36px; }
.ld-modal__desc { font-size: 14.5px; color: #4b403d; line-height: 1.5; margin: 4px 0 0; }
@media (max-width: 749px) {
  .ld-modal { padding: 0; align-items: flex-end; }
  .ld-modal__card { grid-template-columns: 1fr; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .ld-modal__media img { aspect-ratio: 1 / 1.1; max-height: 46dvh; }
  .ld-modal__info { padding: 22px 18px 26px; }
}

/* ---------- Collection / shop view ---------- */
.ld-shop { padding: 28px 32px 60px; }
.ld-shop h2 { font: 500 28px "Jost", sans-serif; margin: 0 0 6px; }
.ld-shop .ld-crumb { color: #6b5f5c; font-size: 14px; margin-bottom: 22px; }
.ld-shop .ld-crumb a { text-decoration: underline; }
.ld-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 8px; }
.ld-gcard { display: block; cursor: pointer; text-decoration: none; color: inherit; }
.ld-gcard .ld-gimg { aspect-ratio: .6665; background: #eee; overflow: hidden; position: relative; }
.ld-gcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ld-gcard:hover img { transform: scale(1.03); }
.ld-gcard h4 { margin: 8px 0 2px; font: 400 15px/1.3 "Jost", sans-serif; }
.ld-gcard span { font-size: 14px; }
.ld-badge { position: absolute; left: 8px; top: 8px; background: #3b2211; color: #fbf5f4; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; z-index: 1; }
.ld-garrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #111;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.ld-garrow svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}
.ld-gcard:hover .ld-garrow { opacity: 0.85; }
.ld-garrow:hover { opacity: 1 !important; transform: translateY(-50%) scale(1.15); }
.ld-garrow--prev { left: 6px; }
.ld-garrow--next { right: 6px; }
@media (hover: none) { .ld-garrow { opacity: 0.85; } }
@media (max-width: 1200px) { .ld-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 989px) { .ld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 749px) { .ld-shop { padding: 20px 16px 48px; } .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; } }

/* ---------- shop view switching + scroll lock ---------- */
.ld-section[hidden] { display: none !important; }
#MainContent > .ld-shop { display: none; }
#MainContent.ld-shop-active > .ld-section { display: none !important; }
#MainContent.ld-shop-active > .ld-shop { display: block; min-height: 70vh; padding-top: calc(var(--header-height, 50px) + 24px); }
.ld-lock .page-wrapper { overflow: hidden; }


/* ---------- header: the account icon sits centred in a 44px target, like the search and cart icons ---------- */
.account-button__icon-box { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

/* Phones: the menu button and search sit on the left, the logo in the middle, account and cart on the right. The theme
   puts the search icon in the right-hand slot when the account is a plain link, on top of the account and cart pair. */
@media screen and (max-width: 749px) {
  #header-component[data-menu-style] .header__columns.header__columns .search-action.search-action { grid-area: leftB; }
  #header-component[data-menu-style] .header__columns.header__columns header-actions { grid-area: auto; grid-column: 4 / 6; grid-row: 1; justify-content: flex-end; }
}
