/* ===== Tokens (Dawn-like) ===== */
.cropp, .cropp-sticky, .cropp-lb, .cropp-dialog {
  --ink: #121212;
  --btn: #121212;
  --btn-text: #ffffff;
  --circle: 34px;
  --ink-soft: rgba(18,18,18,.75);
  --line: rgba(18,18,18,.2);
  --line-strong: rgba(18,18,18,.55);
  --bg: #fff;
  --sale: #b3322f;
  --wa: #25a244;
  --pill: 40px;
  --r: 6px;
  font-family: var(--font, 'Cairo', system-ui, sans-serif);
}
.cropp .summary, .cropp .cropp-rev, .cropp .cropp-sticky { font-family: inherit; color: var(--ink); }

/* ===== Layout ===== */
.cropp-product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 56px; align-items: start; max-width: 1200px; margin-inline: auto; padding: 24px 20px 40px;
}
.cropp-product .cropp-gal { grid-column: 1; min-width: 0; }
.cropp-product .summary { grid-column: 2; width: 100% !important; float: none !important; margin: 0; }
.cropp-product > .cropp-rev,
.cropp-product > .related,
.cropp-product > .upsells { grid-column: 1 / -1; }

/* Gallery */
.cropp-gal-main { position: relative; }
.cropp-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cropp-gal-track::-webkit-scrollbar { display: none; }
.cropp-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.cropp-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; cursor: zoom-in; }
.cropp-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cropp-gal-btn.is-prev { inset-inline-start: 10px; }
.cropp-gal-btn.is-next { inset-inline-end: 10px; }
html[dir="rtl"] .cropp-gal-btn span { display: inline-block; transform: scaleX(-1); }
.cropp-count { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 3; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.cropp-gal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 5); gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.cropp-gal-thumbs::-webkit-scrollbar { display: none; }
.cropp-th { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; opacity: .6; outline-offset: -1px; }
.cropp-th img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cropp-th.is-active { opacity: 1; outline: 1px solid var(--ink); }
.cropp-lb { max-width: min(94vw, 900px); max-height: 94vh; background: transparent; overflow: visible; }
.cropp-lb img { display: block; max-width: 100%; max-height: 90vh; margin: auto; border-radius: 4px; }

/* Title / price / rating */
.cropp .product_title { font-size: var(--title-size, clamp(26px, 3vw, 38px)); line-height: 1.25; font-weight: 700; margin: 0 0 10px; }
.cropp .summary .price { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 22px; color: var(--ink); margin: 0 0 4px; }
.cropp .summary .price del { color: var(--ink-soft); font-size: 17px; opacity: 1; order: 2; }
.cropp .summary .price ins { text-decoration: none; font-weight: 600; order: 1; }
.cropp-pill-sale { display: inline-block; margin-inline-start: 10px; padding: 3px 14px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 13px; vertical-align: middle; }
.cropp-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 22px; font-size: 14px; }
.cropp-rating .star-rating { float: none; margin: 0; color: #f2a900; }

/* ===== Variation pills ===== */
.cropp table.variations { border: 0; margin: 0 0 12px; width: 100%; }
.cropp table.variations tr { display: block; margin-bottom: 20px; }
.cropp table.variations th, .cropp table.variations td { display: block; padding: 0; border: 0; text-align: start; }
.cropp table.variations th.label { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.cropp .cropp-selected { font-weight: 400; color: var(--ink-soft); }
.cropp .cropp-hidden { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cropp .reset_variations { display: none !important; }

.cropp-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cropp-sw {
  appearance: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 9px 20px; line-height: 1.3;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s;
}
.cropp-sw:hover { border-color: var(--ink); }
.cropp-sw.is-selected { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.cropp-sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cropp-sw.is-out { color: rgba(18,18,18,.4); border-color: var(--line); text-decoration: line-through; }
.cropp-sw.is-out.is-selected { background: #fff; color: rgba(18,18,18,.5); border-color: var(--ink); }
.cropp-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }

/* ===== Quantity + add to cart ===== */
.cropp form.cart { margin: 0 0 12px; }
.cropp .woocommerce-variation-price { margin-bottom: 10px; }
.cropp .woocommerce-variation-add-to-cart, .cropp form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.cropp .cropp-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); height: 48px; }
.cropp .cropp-qty .qty { width: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 16px; -moz-appearance: textfield; padding: 0; }
.cropp .cropp-qty .qty::-webkit-outer-spin-button, .cropp .cropp-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cropp-q-btn { appearance: none; width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.cropp .single_add_to_cart_button {
  flex: 1 1 200px; height: 48px; border-radius: var(--r); background: var(--btn) !important; color: var(--btn-text) !important;
  font: inherit; font-size: 16px; font-weight: 600; border: 0; cursor: pointer; transition: opacity .15s;
}
.cropp .single_add_to_cart_button:hover { opacity: .88; }
.cropp .single_add_to_cart_button.disabled { opacity: .4; }

.cropp-wa { display: flex; align-items: center; justify-content: center; height: 48px; margin-bottom: 14px; border-radius: var(--r); background: var(--wa); color: #fff !important; font-weight: 600; text-decoration: none; }
.cropp-wa:hover { filter: brightness(.95); }
.cropp-sizechart-btn { appearance: none; background: none; border: 0; padding: 0; margin-bottom: 18px; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.cropp-dialog { border: 0; padding: 0; max-width: min(92vw, 640px); border-radius: 8px; }
.cropp-dialog::backdrop { background: rgba(0,0,0,.55); }
.cropp-dialog img { display: block; width: 100%; height: auto; }
.cropp-dialog-x { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ===== Description + features ===== */
.cropp-desc { font-size: 15px; line-height: 1.9; color: var(--ink-soft); margin: 8px 0 24px; }
.cropp-desc p { margin: 0 0 10px; }
.cropp-desc strong { color: var(--ink); }
.cropp-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cropp-features li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.cropp-f-ico { font-size: 26px; line-height: 1; }
.cropp-features strong { display: block; font-size: 15px; }
.cropp-features em { display: block; font-style: normal; font-size: 13px; color: var(--ink-soft); }

/* ===== Review sections ===== */
.cropp-rev { max-width: 1200px; margin: 48px auto 0; padding: 0 20px; }
.cropp-rev h2 { text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0 0 22px; }
.cropp-car { position: relative; display: flex; align-items: center; gap: 8px; }
.cropp-car-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.cropp-car-track::-webkit-scrollbar { display: none; }
.cropp-car-track img { flex: 0 0 calc((100% - 24px) / 3); width: calc((100% - 24px) / 3); scroll-snap-align: start; border-radius: 8px; aspect-ratio: 3 / 4; object-fit: cover; }
.cropp-car-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.cropp-grid { columns: 4 200px; column-gap: 12px; }
.cropp-grid img { width: 100%; height: auto; margin-bottom: 12px; border-radius: 8px; break-inside: avoid; display: block; }

/* ===== Sticky bar ===== */
.cropp-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 999; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s ease; }
.cropp-sticky.is-on { transform: none; }
.cropp-sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.cropp-sticky-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cropp-sticky-btn { height: 44px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--btn); color: var(--btn-text); font: inherit; font-weight: 600; cursor: pointer; }

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .cropp-product { grid-template-columns: 1fr; padding-top: 0; padding-inline: 0; }
  .cropp-product .summary { grid-column: 1; padding: 20px 16px 0; }
  .cropp-product .cropp-gal { grid-column: 1; }
  .cropp-gal-thumbs { padding-inline: 16px; }
  .cropp-gal-btn { width: 30px; height: 30px; }
  .cropp-car-track img { flex-basis: 70%; width: 70%; }
  .cropp-car-btn { display: none; }
  .cropp-grid { columns: 2 140px; }
  .cropp { padding-bottom: 70px; }
}
@media (min-width: 801px) { .cropp-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .cropp-sticky { transition: none; } }

.cropp-page { display: block; width: 100%; }
.cropp-product img { max-width: 100%; }

/* ===== Color circles (Dashboard > Show colors as: Modern color circles) ===== */
.cropp-swatches.is-circle { gap: 12px; }
.cropp-swatches.is-circle .cropp-sw {
  position: relative; overflow: hidden; width: var(--circle); height: var(--circle); min-width: 0; padding: 0;
  border-radius: 50%; background: var(--sw, #d6d6d6); color: var(--ink); border: 1px solid var(--line);
  justify-content: center; font-size: 13px; font-weight: 600; text-decoration: none;
}
.cropp-swatches.is-circle .cropp-sw:hover { border-color: var(--ink); }
.cropp-swatches.is-circle .cropp-sw.is-selected { background: var(--sw, #d6d6d6); color: var(--ink); border-color: var(--bg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.cropp-swatches.is-circle .cropp-sw.is-out { opacity: .45; text-decoration: none; }
.cropp-swatches.is-circle .cropp-sw.is-out::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px)); }

/* ===== Buy Now (product page) ===== */
.cropp-buy-now {
  flex: 1 1 var(--buy-basis, 200px); height: 48px; border-radius: var(--r); cursor: pointer;
  background: var(--buy-bg, #c2410c); color: var(--buy-fg, #fff); border: 1.5px solid var(--buy-bd, #c2410c);
  font: inherit; font-size: 16px; font-weight: 600; transition: opacity .15s;
}
.cropp-buy-now:hover { opacity: .88; }
.cropp .single_add_to_cart_button.disabled ~ .cropp-buy-now { opacity: .4; }

/* ===== Reviews under the product images ===== */
.cropp-product .cropp-gal { grid-row: 1; }
.cropp-product .summary { grid-row: 1 / span 3; }
.cropp-product .cropp-pr { grid-column: 1; grid-row: 2; min-width: 0; margin-top: 28px; }
.cropp-pr-title { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--ink); }
.cropp-pr-list { display: flex; gap: 14px; }
.cropp-pr-slider .cropp-pr-list { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.cropp-pr-slider .cropp-pr-list::-webkit-scrollbar { display: none; }
.cropp-pr-slider .cropp-pr-card { flex: 0 0 88%; scroll-snap-align: start; }
.cropp-pr-stack .cropp-pr-list { flex-direction: column; }
.cropp-pr-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--pr-bg, #f7f5f2); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.06); }
.cropp-pr-img { display: block; width: 100%; height: auto; aspect-ratio: var(--pr-ratio, auto); object-fit: var(--pr-fit, cover); max-height: var(--pr-maxh, none); }
.cropp-pr-body { position: relative; padding: 22px 20px 18px; }
.cropp-pr-quote { position: absolute; inset-block-start: 4px; inset-inline-end: 18px; font: 700 72px/1 Georgia, serif; color: var(--pr-star, #f2a900); opacity: .22; pointer-events: none; }
.cropp-pr-stars { display: flex; gap: 2px; margin-bottom: 10px; font-size: 17px; line-height: 1; color: rgba(0,0,0,.16); }
.cropp-pr-stars .on { color: var(--pr-star, #f2a900); }
.cropp-pr-text { margin: 0 0 16px; font-size: 15px; line-height: 1.9; color: var(--ink); }
.cropp-pr-foot { display: flex; align-items: center; gap: 10px; }
.cropp-pr-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-size: 15px; font-weight: 700; }
.cropp-pr-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cropp-pr-verified { margin-inline-start: auto; padding: 3px 11px; border-radius: 999px; background: rgba(37,162,68,.12); color: #1c7a34; font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 800px) {
  .cropp-product .cropp-gal { order: 1; grid-row: auto; }
  .cropp-product .summary { order: 2; grid-row: auto; }
  .cropp-product .cropp-pr { order: 3; grid-column: 1; grid-row: auto; padding-inline: 16px; }
  .cropp-product > .cropp-rev, .cropp-product > .related, .cropp-product > .upsells, .cropp-product > .up-sells { order: 4; }
}

/* Reviews slider: minimal arrows on both sides + mouse drag */
.cropp-pr-wrap { position: relative; }
.cropp-pr-slider .cropp-pr-list { cursor: grab; }
.cropp-pr-slider .cropp-pr-list.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cropp-pr-slider .cropp-pr-list img { -webkit-user-drag: none; user-select: none; }
.cropp-pr-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; transition: opacity .2s, background .2s, box-shadow .2s;
}
.cropp-pr-btn:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cropp-pr-btn.is-prev { inset-inline-start: 8px; }
.cropp-pr-btn.is-next { inset-inline-end: 8px; }
.cropp-pr-btn:disabled { opacity: 0; pointer-events: none; }
.cropp-pr-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html[dir="rtl"] .cropp-pr-btn svg { transform: scaleX(-1); }
@media (max-width: 800px) { .cropp-pr-btn { width: 30px; height: 30px; } }

/* ===== Price + sale pill on the same line ===== */
.cropp-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; }
.cropp-price-row .price { margin: 0 !important; }
.cropp-price-row .cropp-pill-sale { margin: 0; }

/* ===== Product page sections after the product (upsell / related) ===== */
.cropp-product > .cropp-hs-inpage { grid-column: 1 / -1; order: 4; width: 100%; max-width: none; margin: 48px 0 0; padding: 0; }
@media (max-width: 800px) { .cropp-product > .cropp-hs-inpage { padding-inline: 16px; margin-top: 36px; } }

/* ===== Minimal gallery arrows ===== */
.cropp-gal-btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.9); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); font-size: 0; transition: background .2s, box-shadow .2s;
}
.cropp-gal-btn:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cropp-gal-btn svg { display: block; }
.cropp-gal-btn.is-prev { inset-inline-start: 10px; }
.cropp-gal-btn.is-next { inset-inline-end: 10px; }
html[dir="rtl"] .cropp-gal-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .cropp-gal-btn span { transform: none; }

/* Small picture of the chosen color, shown under the color options */
.cropp-cprev { display: block; width: 64px; height: 80px; margin-top: 10px; object-fit: cover; border-radius: var(--r, 6px); border: 1px solid var(--line, rgba(18,18,18,.2)); }

/* ===== Mobile & tablet polish ===== */
.cropp-product > * { min-width: 0; }
.cropp-page, .cropp-product { overflow-x: clip; }              /* nothing may push the page sideways */
.cropp-desc img, .cropp-desc iframe, .cropp-desc video { max-width: 100%; height: auto; }
.cropp-desc table { display: block; max-width: 100%; overflow-x: auto; }
.cropp-desc, .cropp .product_title, .cropp-pc-title { overflow-wrap: anywhere; }
.cropp-sw { max-width: 100%; }
.cropp-dialog { max-height: 90vh; overflow: auto; }

@media (max-width: 1024px) {
  .cropp-product { column-gap: 32px; }
}
@media (max-width: 800px) {
  .cropp-product { grid-template-columns: minmax(0, 1fr); }   /* 1fr alone lets wide content stretch the column */
  .cropp .summary .price { font-size: 20px; }
  .cropp table.variations tr { margin-bottom: 16px; }
  /* quantity + Add to cart on one row, Buy Now full width under them */
  .cropp .single_add_to_cart_button { flex-basis: 140px; }
  .cropp-buy-now { flex-basis: 100%; }
  .cropp-wa, .cropp .single_add_to_cart_button, .cropp-buy-now { min-height: 48px; }
  .cropp-features li { padding: 12px 14px; }
  .cropp-rev { padding-inline: 16px; margin-top: 36px; }
  .cropp-sticky-btn { padding: 0 16px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .cropp-gal-thumbs { grid-auto-columns: calc((100% - 24px) / 4.5); }   /* a half thumbnail shows that it scrolls */
  .cropp-pr-slider .cropp-pr-card { flex-basis: 92%; }
}

/* ===== Loading state + messages for the fast Add to cart / Buy Now ===== */
.cropp .single_add_to_cart_button.is-loading, .cropp-buy-now.is-loading { position: relative; color: transparent !important; pointer-events: none; opacity: .85; }
.cropp .single_add_to_cart_button.is-loading::after, .cropp-buy-now.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: cropp-spin .7s linear infinite;
}
@keyframes cropp-spin { to { transform: rotate(360deg); } }
.cropp-cart-msg { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r, 6px); background: rgba(37,162,68,.1); font-size: 14px; }
.cropp-cart-msg a { color: #1c7a34; font-weight: 600; text-decoration: underline; }
.cropp-cart-msg.is-error { background: rgba(179,50,47,.1); color: #7a1f1c; }
@media (prefers-reduced-motion: reduce) { .cropp-buy-now.is-loading::after, .cropp .single_add_to_cart_button.is-loading::after { animation-duration: 1.6s; } }
