/* Guardian additions on top of the Petly template.
   Kept in its own file so regenerating style.rtl.css from style.css never
   clobbers them. Uses logical properties so it mirrors under dir="rtl". */

/* ---- product variant picker --------------------------------------------- */

.pd-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  margin: 0 0.5rem 0.5rem 0;
  border: 1.5px solid var(--border-primary);
  border-radius: 5.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white-color);
}

.pd-variant input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-variant.is-active {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.pd-variant.is-out {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pd-variant__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
}

.pd-variant__label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.shop-card__from {
  font-size: 0.8em;
  opacity: 0.7;
}

.shop-card__was {
  margin-inline-start: 0.5rem;
  font-size: 0.8em;
  color: var(--text-secondary);
  font-weight: 400;
}

.shop-sidebar__price-apply {
  border: 0;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 5.5rem;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---- VIP access code ---------------------------------------------------- */

.vip-unlock {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.vip-unlock__input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border-primary);
  border-radius: 5.5rem;
  font-family: var(--body-font);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: var(--transition);
}

.vip-unlock__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 79, 35, 0.15);
}

/* ---- language toggle ---------------------------------------------------- */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  line-height: 0;
}

/* Something inside the template's 392KB sheet paints buttons in this header
   slot, and it beat the plain class selector in RTL — the inactive pill came
   out orange. Both states are pinned here so neither can be inherited. */
.lang-toggle .lang-toggle__opt {
  appearance: none;
  border: 0;
  background: transparent !important;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-toggle__opt:hover {
  color: var(--text-primary);
}

/* driven by a class, not just [aria-pressed], so the painted state and the
   accessibility state can never disagree about which option is selected */
.lang-toggle .lang-toggle__opt.is-active {
  background: var(--primary-color) !important;
  color: var(--white-color) !important;
  box-shadow: 0 2px 8px rgba(240, 79, 35, 0.32);
}

.lang-toggle__opt:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* the Arabic label needs its own face to sit level with the Latin one */
.lang-toggle__opt[data-lang-set='ar'] {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.875rem;
}

@media (max-width: 575.98px) {
  .lang-toggle__opt {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}

/* ---- long-form pages (privacy, support) -----------------------------------
   The theme has no prose style — every page is built from marketing sections —
   so these pages needed one. Measure is capped near 70 characters because a
   policy is read, not skimmed. */

.guardian-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #4a4a4a;
  max-width: 44em;
}

.guardian-prose p { margin-bottom: 1.15rem; }

.guardian-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #141414;
  margin: 2.75rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.guardian-prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #141414;
  margin: 1.9rem 0 0.6rem;
}

.guardian-prose ul {
  margin: 0 0 1.3rem;
  padding-left: 1.4rem;
}

.guardian-prose li { margin-bottom: 0.5rem; }
.guardian-prose li::marker { color: #F04F23; }

.guardian-prose a { color: #F04F23; text-decoration: underline; text-underline-offset: 2px; }
.guardian-prose a:hover { color: #D8431B; }

.guardian-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: rgba(240, 79, 35, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.guardian-prose strong { color: #141414; font-weight: 700; }

.guardian-prose__updated {
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-bottom: 2rem;
}

/* the list indent has to flip with the text, or the bullets sit on the wrong side */
[dir="rtl"] .guardian-prose { max-width: 42em; }
[dir="rtl"] .guardian-prose ul { padding-left: 0; padding-right: 1.4rem; }

/* ---- product card actions -------------------------------------------------
   The theme hid add-to-cart behind :hover (opacity 0 / visibility hidden on
   .shop-card__thumb-btn-wrapper), so on a touch screen the button did not
   exist. Both actions are visible at all times now. */

.card-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #F04F23;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s linear, transform 0.12s ease;
}

.card-cart-btn:hover,
.card-cart-btn:focus-visible {
  background: #D8431B;
  color: #fff;
}

/* a press that you can feel is worth more than a hover state on a phone */
.card-cart-btn:active { transform: scale(0.97); }

.card-cart-btn:focus-visible {
  outline: 2px solid #141414;
  outline-offset: 2px;
}

.card-cart-btn i { font-size: 14px; }

.card-cart-btn--out {
  background: #EFEAE7;
  color: #7A716D;
  cursor: not-allowed;
}
.card-cart-btn--out:hover { background: #EFEAE7; color: #7A716D; }

/* ---- wishlist toggle ---- */

.wish-toggle {
  position: absolute;
  top: 14px;
  /* inset-inline pins it to the trailing corner in both LTR and RTL */
  inset-inline-end: 14px;
  z-index: 3;
  margin: 0;
}

.wish-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #EFE7E3;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #7A716D;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.08);
  transition: color 0.2s linear, background 0.2s linear, transform 0.12s ease;
}

.wish-toggle__btn:hover,
.wish-toggle__btn:focus-visible { color: #F04F23; background: #fff; }
.wish-toggle__btn:active { transform: scale(0.9); }

.wish-toggle__btn:focus-visible {
  outline: 2px solid #F04F23;
  outline-offset: 2px;
}

/* saved state has to read without relying on the icon's fill alone */
.wish-toggle__btn.is-saved {
  color: #F04F23;
  border-color: #F7C4B4;
  background: #FFF3EF;
}

/* the offer badge and the heart both sit top-of-image; keep them apart */
.shop-card__thumb-offer { z-index: 2; }

/* ---- wishlist page ---- */

.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.wishlist-empty__icon {
  font-size: 2.5rem;
  color: #E3D9D4;
  margin-bottom: 1rem;
}

.wishlist-empty__text {
  color: #7A716D;
  margin-bottom: 1.5rem;
}

.wishlist-empty__title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }

.wishlist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #EFE7E3;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  background: #fff;
}

.wishlist-row__product {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.wishlist-row__image {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 10px;
  background: #FAF6F4;
  flex: 0 0 auto;
}

.wishlist-row__name {
  display: block;
  font-weight: 600;
  color: #141414;
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.wishlist-row__name:hover { color: #F04F23; }

.wishlist-row__price { font-weight: 700; color: #F04F23; }
.wishlist-row__stock { font-size: 0.8125rem; color: #C4392B; margin-top: 0.25rem; }

.wishlist-row__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* the button is full-width inside a card; here it should only be as wide as its label */
.wishlist-row__actions .card-cart-btn { width: auto; margin-top: 0; }

.wishlist-row__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #EFE7E3;
  border-radius: 50%;
  background: #fff;
  color: #7A716D;
  cursor: pointer;
  transition: color 0.2s linear, border-color 0.2s linear;
}
.wishlist-row__remove:hover { color: #C4392B; border-color: #E8B6AF; }
.wishlist-row__remove:focus-visible { outline: 2px solid #C4392B; outline-offset: 2px; }

@media (max-width: 575.98px) {
  .wishlist-row { flex-direction: column; align-items: stretch; }
  .wishlist-row__actions { justify-content: space-between; }
}

/* the VIP banner carries a line of copy under its heading; the template's
   breadcrumb had no slot for one */
.breadcumb-wrapper__text {
  max-width: 44rem;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

/* A single composite mockup replaces the template's three separately-positioned
   phone screenshots, so it needs to sit normally in the column rather than being
   absolutely placed against its siblings.

   The selector is doubled up deliberately: .cta2-thumb__img--1 carries the
   theme's absolute positioning and outranked a single class, so the image kept
   position:absolute with no offsets and computed to 0x0 — loaded, visible, and
   occupying nothing. inset:auto clears the offsets the theme sets. */
.cta2-thumb .cta2-thumb__img.cta2-thumb__img--solo {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* the container is sized by its absolutely-positioned children in the theme, so
   with a single static image it needs to size itself */
.cta2-thumb:has(.cta2-thumb__img--solo) {
  height: auto;
  min-height: 0;
}

/* A single offer banner sits in the column normally instead of being absolutely
   placed to overlap a second cut-out. Matching the theme's own specificity
   (.offer1__images img.offer1__image2) — a single class loses to it, which is
   how the app banner ended up 0x0 earlier. */
.offer1__images img.offer1__image2.offer1__image2--solo {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
}

/* the container is sized by absolutely-positioned children in the theme */
.offer1__images:has(.offer1__image2--solo) {
  height: auto;
  min-height: 0;
}

/* five cards in a row need to stay readable, so the padding tightens rather
   than the text wrapping to ribbons */
@media (min-width: 992px) {
  .row-cols-lg-5 .why-choose-us__item,
  .row-cols-lg-6 .why-choose-us__item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- footer, rebuilt ------------------------------------------------------
   The template's three columns split the contact details across two of them and
   led with an "About Us" blurb. The brand leads now and contact reads as one
   list. */

.site-footer__brand {
  text-align: center;
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2.5rem;
}

.site-footer__logo { width: 190px; max-width: 60vw; height: auto; }

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer__heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
}

.site-footer__contact { list-style: none; margin: 0 0 1.6rem; padding: 0; }

.site-footer__contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.site-footer__contact-item i {
  color: #F04F23;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  flex: 0 0 auto;
}

.site-footer__contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.site-footer__contact a,
.site-footer__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1.55;
}
.site-footer__contact a:hover,
.site-footer__links a:hover { color: #F04F23; }

.site-footer__social-links { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

.site-footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  transition: background 0.2s linear;
}
.site-footer__social-links a:hover { background: #F04F23; }

.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.6rem; }

.site-footer__app-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.site-footer__store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s linear, background 0.2s linear;
}
.site-footer__store:hover { border-color: #F04F23; background: rgba(240, 79, 35, 0.14); color: #fff; }
.site-footer__store i { font-size: 1.6rem; }
.site-footer__store span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; }
.site-footer__store small { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }

.footer-bottom__credit { color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; }
.footer-bottom__credit a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-bottom__credit a:hover { color: #F04F23; }

@media (max-width: 991.98px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- floating WhatsApp ----
   Sits above the theme's back-to-top button and clears the tab bar on phones. */
.whatsapp-fab {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 27px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s linear;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5); }
.whatsapp-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the theme's scroll-to-top lives in the same corner; move it clear */
.scroll-top { inset-block-end: 92px !important; }

@media (max-width: 575.98px) {
  .whatsapp-fab { width: 48px; height: 48px; font-size: 24px; inset-block-end: 18px; inset-inline-end: 18px; }
  .scroll-top { inset-block-end: 78px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { transition: none; }
  .whatsapp-fab:hover { transform: none; }
}

/* ---- shared card actions --------------------------------------------------
   One price-and-button block for the shop grid, Featured Products, Popular
   Products and the VIP grid, so a card cannot be missing its buy button in one
   layout and have it in another. */

.card-actions { margin-top: 10px; }

.card-actions__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F04F23;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.card-actions__from { font-size: 0.85em; }

.card-actions__was {
  margin-inline-start: 6px;
  color: #A8A09B;
  font-size: 0.85em;
  font-weight: 500;
}

/* "Choose size" is a link, not a submit, so it needs the button's own look */
.card-cart-btn--choose {
  background: #141414;
}
.card-cart-btn--choose:hover,
.card-cart-btn--choose:focus-visible { background: #2B2B2B; color: #fff; }
