/* Jimis Store - cart, checkout and order confirmation.
   Reuses the existing palette (#ff6b8f / #ffb7c5 / #fff0f3), Montserrat + Alice and the soft rounded look. */

/* ---------- header cart icon ---------- */
.catalogue-header-actions > a.header-cart, .catalogue-header-actions > a.header-wish, .catalogue-header-actions > a.header-search { display: flex !important; position: relative; color: #2d2a2a; }
.catalogue-header-actions > a.header-search:hover { color: #ff6b8f; }
.catalogue-header-actions > a.header-cart:hover, .catalogue-header-actions > a.header-wish:hover { color: #ff6b8f; }
.header-cart .cart-badge, .header-wish .wish-badge {
  position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ff6b8f; color: #fff; font: 700 .64rem/18px Montserrat, sans-serif; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.header-cart .cart-badge[hidden], .header-wish .wish-badge[hidden] { display: none; }

/* On phones the burger sits absolutely on the left; mirror that for the cart on the right. */
@media (max-width: 768px) {
  .catalogue-header-actions > a.header-cart, .catalogue-header-actions > a.header-wish { position: absolute !important; top: 50%; transform: translateY(-50%); z-index: 1100; width: 44px; height: 44px; }
  .catalogue-header-actions > a.header-cart { right: -20px; }
  .catalogue-header-actions > a.header-wish { right: 28px; }
  .catalogue-header-actions > a.header-cart:hover, .catalogue-header-actions > a.header-wish:hover { transform: translateY(-50%); }
  /* search: left side, between the burger and the logo */
  .catalogue-header-actions > a.header-search { position: absolute !important; top: 50%; left: 32px; transform: translateY(-50%); z-index: 1100; width: 44px; height: 44px; }
  .catalogue-header-actions > a.header-search:hover { transform: translateY(-50%); }
}

/* ---------- quick add on catalogue cards ---------- */
.product-image { position: relative; }
.card-add {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #ff6b8f; box-shadow: 0 6px 18px rgba(45, 42, 42, .16);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.card-add:hover, .card-add:focus-visible { background: #ff6b8f; color: #fff; transform: scale(1.06); }
.card-add:focus-visible, .qty-stepper button:focus-visible, .link-btn:focus-visible, .btn-primary:focus-visible, .btn-outline:focus-visible { outline: 3px solid #ffb7c5; outline-offset: 2px; }
.card-add.is-added { background: #5f8067; color: #fff; }

/* ---------- toast ---------- */
.jimis-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 3000; width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  background: #2d2a2a; color: #fff; padding: 12px 20px; border-radius: 999px;
  font: 500 .84rem Montserrat, sans-serif; box-shadow: 0 12px 32px rgba(45, 42, 42, .25);
  transition: transform .25s ease, opacity .25s ease;
}
.jimis-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.jimis-toast a { color: #ffb7c5; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- quantity stepper (shared) ---------- */
.qty-stepper { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid #f1dce2; border-radius: 999px; padding: 2px; }
.qty-stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #ff6b8f; font: 600 1.25rem/1 Montserrat, sans-serif; cursor: pointer; }
.qty-stepper button:hover:not(:disabled) { background: #fff0f3; }
.qty-stepper button:disabled { color: #d9c4cb; cursor: not-allowed; }
.qty-stepper output { min-width: 32px; text-align: center; font: 700 .95rem Montserrat, sans-serif; color: #2d2a2a; }

/* ---------- product page buy box ---------- */
.product-buy { margin: 1.4rem 0 .4rem; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-add { flex: 1 1 200px; min-height: 48px; border: 0; cursor: pointer; font-family: Montserrat, sans-serif; }
.buy-note { margin-top: .8rem; font: 500 .8rem/1.6 Montserrat, sans-serif; color: #8b6972; }
.buy-note a { color: #ff6b8f; font-weight: 700; }

/* ---------- shared bits ---------- */
.cart-section { padding: 2.2rem 0 4.5rem; background: #fffaf8; min-height: 50vh; }
.cart-loading { text-align: center; padding: 4rem 1rem; color: #8b6972; font: 500 .9rem Montserrat, sans-serif; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: #a46b75; font: 600 .78rem Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.link-btn:hover { color: #ff6b8f; }
.cart-warn { color: #a52d57; font: 500 .8rem/1.5 Montserrat, sans-serif; margin: .3rem 0; }
.cart-warn a { color: #ff6b8f; font-weight: 700; }
.cart-fineprint { color: #8b6972; font: 500 .72rem/1.6 Montserrat, sans-serif; text-align: center; margin-top: .9rem; }
.btn-primary, .btn-outline { text-decoration: none; min-height: 48px; cursor: pointer; }
.btn-primary:disabled, .btn-primary.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

.cart-empty { text-align: center; max-width: 440px; margin: 2rem auto; padding: 2.5rem 1.5rem; background: #fff; border: 1px solid #f3e3e7; border-radius: 28px; }
.cart-empty-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #fff0f3; color: #ff6b8f; display: flex; align-items: center; justify-content: center; }
.cart-empty-icon svg { width: 30px; height: 30px; }
.cart-empty h2 { font-family: Alice, Georgia, serif; color: #2d2a2a; margin-bottom: .5rem; }
.cart-empty p { color: #777; margin-bottom: 1.4rem; line-height: 1.7; font-size: .9rem; }

.sum-rows { margin: 0; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font: 500 .88rem Montserrat, sans-serif; color: #555; }
.sum-rows dt, .sum-rows dd { margin: 0; }
.sum-rows .sum-total { border-top: 1.5px dashed #f1dce2; margin-top: .3rem; padding-top: .9rem; font-weight: 800; font-size: 1.05rem; color: #2d2a2a; }
.sum-rows .sum-total dd { color: #ff6b8f; }

/* ---------- cart page ---------- */
.cart-layout { display: grid; gap: 1.4rem; max-width: 980px; margin: 0 auto; }
.cart-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid #f3e3e7; border-radius: 24px; padding: 0 1rem; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 1rem 0; border-bottom: 1px solid #f7ebee; position: relative; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { display: block; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: #fff0f3; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-name { color: #2d2a2a; font: 700 .92rem/1.35 Montserrat, sans-serif; text-decoration: none; display: block; padding-right: 0; }
.cart-name:hover { color: #ff6b8f; }
.cart-unit { color: #ff6b8f; font: 600 .82rem Montserrat, sans-serif; margin: .2rem 0 .6rem; }
.cart-unit s { color: #b8a4ab; font-weight: 500; margin-right: 4px; }
.cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cart-line-total { grid-column: 2; font: 800 .95rem Montserrat, sans-serif; color: #2d2a2a; text-align: right; }
.cart-line.is-unavailable { opacity: .85; }
.cart-line.is-unavailable .cart-thumb { filter: grayscale(1); opacity: .6; }
.cart-summary { background: #fff; border: 1px solid #f3e3e7; border-radius: 24px; padding: 1.3rem; box-shadow: 0 8px 28px rgba(45, 42, 42, .04); }
.cart-summary h2, .checkout-main h2, .checkout-summary h2 { font-family: Alice, Georgia, serif; font-size: 1.25rem; color: #2d2a2a; margin: 0 0 .6rem; }
.cart-checkout, .cart-continue { display: flex; width: 100%; margin-top: .8rem; }
.cart-continue { margin-top: .5rem; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; gap: 1.4rem; max-width: 1020px; margin: 0 auto; }
.checkout-main, .checkout-summary { background: #fff; border: 1px solid #f3e3e7; border-radius: 24px; padding: 1.3rem; }
.checkout-summary { box-shadow: 0 8px 28px rgba(45, 42, 42, .04); }
.field-grid { display: grid; gap: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font: 700 .78rem Montserrat, sans-serif; color: #2d2a2a; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid #ecd9df; border-radius: 14px; background: #fffdfd; color: #2d2a2a;
  padding: 13px 14px; font: 500 1rem Inter, sans-serif; /* 16px: no zoom on iOS */ transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: #ff9bb5; box-shadow: 0 0 0 4px #ffb7c540; }
.field.has-error input, .field.has-error textarea { border-color: #d9547f; background: #fff8fa; }
.field-hint { margin: .35rem 0 0; color: #8b6972; font: 500 .74rem/1.5 Montserrat, sans-serif; }
.field-error { margin: .35rem 0 0; color: #a52d57; font: 600 .76rem/1.5 Montserrat, sans-serif; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.co-items { list-style: none; margin: 0 0 .8rem; padding: 0; }
.co-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: .6rem 0; border-bottom: 1px solid #f7ebee; }
.co-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: #fff0f3; }
.co-items strong { display: block; font: 700 .82rem/1.3 Montserrat, sans-serif; color: #2d2a2a; }
.co-items span { display: block; font: 500 .74rem Montserrat, sans-serif; color: #8b6972; margin-top: 2px; }
.co-items s { color: #b8a4ab; }
.co-items b { font: 800 .84rem Montserrat, sans-serif; color: #2d2a2a; white-space: nowrap; }
.co-items li.is-unavailable { opacity: .75; }
.co-banner { background: #fff1f4; border: 1px solid #ffd0dc; color: #a52d57; border-radius: 14px; padding: .8rem 1rem; margin-top: .8rem; font: 600 .8rem/1.5 Montserrat, sans-serif; }
.co-banner a { color: #ff6b8f; }
.co-banner[hidden] { display: none; }
.co-submit { width: 100%; margin-top: 1rem; font-family: Montserrat, sans-serif; border: 0; font-size: .95rem; }
.co-back { display: block; text-align: center; margin-top: .8rem; color: #8b6972; font: 600 .78rem Montserrat, sans-serif; text-decoration: none; padding: 8px; }
.co-back:hover { color: #ff6b8f; }

/* ---------- confirmation ---------- */
.confirm-card { max-width: 560px; margin: 1rem auto; text-align: center; background: #fff; border: 1px solid #f3e3e7; border-radius: 28px; padding: 2.4rem 1.5rem; box-shadow: 0 14px 44px rgba(45, 42, 42, .06); }
.confirm-heart { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #fff0f3; color: #ff6b8f; font-size: 1.9rem; line-height: 64px; }
.confirm-card h2 { font-family: Alice, Georgia, serif; color: #2d2a2a; margin-bottom: 1rem; }
.confirm-card p { color: #666; line-height: 1.75; font-size: .92rem; margin: .5rem 0; }
.confirm-ref { display: inline-block; margin: .5rem 0 .2rem; padding: .7rem 1.3rem; border-radius: 16px; background: #fff0f3; border: 1.5px dashed #ffb7c5; color: #ff6b8f; font: 800 1.3rem Montserrat, sans-serif; letter-spacing: .06em; user-select: all; }
.confirm-total { color: #2d2a2a !important; }
.confirm-save { margin-top: 1.3rem; }
.confirm-save .btn-outline { cursor: pointer; }
.confirm-save .btn-outline[disabled] { opacity: .7; cursor: progress; }
.confirm-save-msg { color: #b0405f !important; font-size: .82rem !important; margin-top: .6rem !important; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .cart-section { padding: 3rem 0 5.5rem; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cart-line { grid-template-columns: 96px 1fr auto; align-items: center; }
  .cart-thumb { width: 96px; height: 96px; }
  .cart-line-total { grid-column: auto; min-width: 96px; }
  .cart-controls { justify-content: flex-start; gap: 16px; }
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; }
  .cart-summary, .checkout-summary { position: sticky; top: 96px; }
  .checkout-layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .jimis-toast, .card-add { transition: none; }
}

/* ---------- wishlist hearts ---------- */
.card-wish {
  position: absolute; left: 10px; top: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #c9a3ae; box-shadow: 0 4px 14px rgba(45, 42, 42, .12);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease, color .2s ease, background .2s ease;
}
.card-wish svg { fill: transparent; transition: fill .2s ease; }
.card-wish:hover, .card-wish:focus-visible { transform: scale(1.06); color: #ff6b8f; }
.card-wish.is-on, .wish-btn.is-on { color: #ff6b8f; }
.card-wish.is-on svg, .wish-btn.is-on svg { fill: #ff6b8f; }
.card-wish:focus-visible, .wish-btn:focus-visible { outline: 3px solid #ffb7c5; outline-offset: 2px; }

/* ---------- product page extras ---------- */
.buy-last { display: inline-block; margin: 0 0 .8rem; padding: .4rem .9rem; border-radius: 999px; background: #fff3d6; color: #8a5a00; font: 700 .8rem Montserrat, sans-serif; }
.buy-soldout { display: inline-block; margin: 0 0 .4rem; padding: .5rem 1.1rem; border-radius: 999px; background: #f3e9ec; color: #7a5560; font: 800 .88rem Montserrat, sans-serif; }
.buy-extra { display: flex; gap: 10px; flex-wrap: nowrap; margin-top: 1rem; }
.buy-extra > .wish-btn, .buy-extra > .buy-ig { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; }
.wish-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 1.1rem; border: 1.5px solid #f1dce2; border-radius: 999px; background: #fff; color: #a46b75; font: 700 .82rem Montserrat, sans-serif; cursor: pointer; }
.wish-btn svg { fill: transparent; }
.wish-btn:hover { border-color: #ffb7c5; color: #ff6b8f; }
.buy-ig { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.1rem; font-size: .82rem; text-decoration: none; }
@media (max-width: 400px) {
  .buy-extra { gap: 6px; }
  .buy-extra > .wish-btn, .buy-extra > .buy-ig { padding: 0 .5rem; font-size: .72rem; }
  .buy-extra .wish-btn { gap: 5px; }
  .buy-extra .wish-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
}

/* ---------- cart notice + wishlist page ---------- */
.cart-banner { max-width: 980px; margin: 0 auto 1rem; padding: .8rem 1.1rem; border-radius: 14px; background: #fff3d6; color: #8a5a00; font: 600 .82rem/1.5 Montserrat, sans-serif; }
.wish-note { max-width: 980px; margin: 0 auto 1rem; color: #8b6972; font: 500 .8rem Montserrat, sans-serif; text-align: center; }
.wish-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 14px; }
.wish-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: #fff; border: 1px solid #f3e3e7; border-radius: 22px; padding: 14px; }
.wish-item .cart-thumb { width: 84px; height: 84px; }
.wish-state { margin: .1rem 0 .4rem; color: #8b6972; font: 600 .76rem Montserrat, sans-serif; }
.wish-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: .4rem; }
.wish-add { min-height: 44px; padding: 0 1.2rem; border: 0; font: 700 .8rem Montserrat, sans-serif; cursor: pointer; }
.wish-item.is-unavailable .cart-thumb { filter: grayscale(1); opacity: .6; }
@media (min-width: 720px) { .wish-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- collections ---------- */
.collection-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.collection-chips::-webkit-scrollbar { display: none; }
.collection-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid #f1dce2; border-radius: 999px; background: #fff; color: #5b4c55; font: 700 .8rem Montserrat, sans-serif; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.collection-chip:hover { border-color: #ffb7c5; color: #ff6b8f; }
/* Hot Deals chip: small red tag beside the name ("20 TND" / "and under"); the chip stays 44px tall, so the row does not grow */
.collection-chip .cc-text { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; line-height: 1.15; }
.collection-chip .cc-sub { position: relative; display: inline-block; margin-left: 3px; padding: 1.5px 3.5px; border-radius: 4px; background: #e5332a; color: #fff; font: 500 .48rem/1.2 Montserrat, sans-serif; letter-spacing: .01em; white-space: nowrap; }
.collection-chip .cc-sub::before { content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-left: 0; border-right-color: #e5332a; }
.collection-chip.is-active .cc-sub { --tag-bg: #fff; --shine: rgba(229, 51, 42, .42); color: #e5332a; }
.collection-chip.is-active .cc-sub::before { border-right-color: #fff; }
.collection-chip.is-active { background: #ff6b8f; border-color: #ff6b8f; color: #fff; }
.collection-chip:focus-visible, .collection-card:focus-visible { outline: 3px solid #ffb7c5; outline-offset: 2px; }
.collections-home { padding: 2.2rem 0 .5rem; }
.collection-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 980px; margin: 1.4rem auto 0; }
.collection-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border: 1px solid #f3e3e7; border-radius: 22px; background: #fff; color: #2d2a2a; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.collection-card:hover { transform: translateY(-2px); border-color: #ffb7c5; box-shadow: 0 10px 28px rgba(255, 107, 143, .12); }
.collection-card-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.collection-card strong { font: 700 .95rem Montserrat, sans-serif; }
.collection-card span:last-child { color: #8b6972; font: 500 .76rem Montserrat, sans-serif; }
.catalogue-tag.more { background: #f6edf0; color: #8b6972; }
@media (min-width: 720px) { .collection-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .collection-cards { grid-template-columns: repeat(6, 1fr); } .collection-card { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .collection-card, .collection-chip { transition: none; } }

/* ---------- checkout: address selectors ---------- */
.co-subhead { margin: 1.6rem 0 .8rem; padding-top: 1.2rem; border-top: 1px dashed #f1dce2; font-family: Alice, Georgia, serif; font-size: 1.15rem; color: #2d2a2a; }
.ar-label { margin-left: 6px; font: 600 .78rem Inter, sans-serif; color: #a46b75; }
.field select {
  width: 100%; border: 1.5px solid #ecd9df; border-radius: 14px; background-color: #fffdfd; color: #2d2a2a; min-height: 50px;
  padding: 13px 40px 13px 14px; font: 500 1rem Inter, sans-serif; /* 16px: no zoom on iOS */
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ff6b8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:focus { outline: none; border-color: #ff9bb5; box-shadow: 0 0 0 4px #ffb7c540; }
.field select:disabled { background-color: #faf4f6; color: #a89aa0; cursor: not-allowed; }
.field.has-error select { border-color: #d9547f; background-color: #fff8fa; }

/* Checkout: WhatsApp yes/no and optional e-mail */
.wa-field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.wa-field legend { padding: 0; margin-bottom: .45rem; font-weight: 600; font-size: .95rem; }
.wa-field .req { color: var(--primary-color, #ff6b8f); }
.wa-options { display: flex; gap: .7rem; }
.wa-opt { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1rem; border: 1.5px solid rgba(255,107,143,.35); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.wa-opt:hover { border-color: var(--primary-color, #ff6b8f); }
.wa-opt input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--primary-color, #ff6b8f); }
.wa-opt:has(input:checked) { border-color: var(--primary-color, #ff6b8f); background: #fff0f4; }
.wa-opt:has(input:focus-visible) { outline: 2px solid var(--primary-color, #ff6b8f); outline-offset: 2px; }
.wa-field.has-error .wa-opt { border-color: #d9547f; }
.wa-opt input[type="radio"] { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }
.wa-opt span { line-height: 1.2; }

/* Stock limit reached: "+" greyed out and unclickable, with a small note */
.card-add:disabled, .card-add.is-maxed { background: #eee6e9; color: #b9a7ae; cursor: not-allowed; transform: none; box-shadow: none; }
.card-add:disabled:hover { background: #eee6e9; color: #b9a7ae; transform: none; }
.qty-stepper button:disabled { background: transparent; }
.buy-add:disabled { opacity: .55; cursor: not-allowed; }
.max-note { margin: .45rem 0 0; font-size: .85rem; font-weight: 600; color: #a0737f; }
.cart-info .max-note { margin-top: .3rem; font-size: .8rem; }

/* ---------- header search overlay (opens from the header magnifier) ---------- */
/* The magnifier never stays highlighted after use: no tap flash, no focus ring from a mouse/touch click, and no pink "hover" circle stuck on phones. */
.catalogue-header-actions > a.header-search { -webkit-tap-highlight-color: transparent; }
.catalogue-header-actions > a.header-search:focus:not(:focus-visible) { outline: none; }
@media (hover: none) { .catalogue-header-actions > a.header-search:hover, .catalogue-header-actions > a.header-search:active { background: transparent; color: #2d2a2a; } }
.search-overlay[hidden] { display: none; }
.search-overlay { position: fixed; inset: 0; z-index: 2100; }
.search-backdrop { position: absolute; inset: 0; background: rgba(45, 42, 42, .4); opacity: 0; transition: opacity .2s ease; }
.search-sheet { position: absolute; top: 0; left: 0; right: 0; max-height: 100%; display: flex; flex-direction: column; background: #fffaf8; border-radius: 0 0 22px 22px; box-shadow: 0 18px 40px rgba(45, 42, 42, .18); padding-top: env(safe-area-inset-top, 0px); transform: translateY(-14px); opacity: 0; transition: transform .22s ease, opacity .2s ease; }
.search-overlay.is-open .search-backdrop { opacity: 1; }
.search-overlay.is-open .search-sheet { transform: none; opacity: 1; }
.search-form { display: flex; align-items: center; gap: 8px; margin: 12px 14px 6px; padding: 0 6px 0 14px; height: 48px; background: #fff; border: 1.5px solid #ffb7c5; border-radius: 999px; flex: 0 0 auto; }
.search-form:focus-within { border-color: #ff6b8f; box-shadow: 0 0 0 3px rgba(255, 107, 143, .18); }
.search-form .search-ico { flex: 0 0 auto; color: #ff6b8f; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px/1.2 Montserrat, sans-serif; color: #2d2a2a; }
.search-form input::-webkit-search-cancel-button, .search-form input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8a8080; cursor: pointer; flex: 0 0 auto; }
.search-clear[hidden] { display: none; }
.search-close { border: 0; background: none; color: #ff6b8f; font: 600 .85rem Montserrat, sans-serif; padding: 0 10px; height: 36px; cursor: pointer; flex: 0 0 auto; }
.search-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 14px 18px; }
.search-sec-head { display: flex; justify-content: space-between; align-items: center; font: 700 .7rem Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #a0888f; margin: 14px 2px 6px; }
.search-link { border: 0; background: none; color: #ff6b8f; font: 600 .74rem Montserrat, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; padding: 4px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid #ffd3dd; background: #fff; color: #2d2a2a; border-radius: 999px; font: 500 .85rem Montserrat, sans-serif; cursor: pointer; }
.search-chip:hover { background: #ffe8ee; border-color: #ffb7c5; }
.search-chip svg { color: #c9a3ae; flex: 0 0 auto; }
.search-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 6px; border: 0; border-bottom: 1px solid #f6e3e8; background: none; text-align: left; font: 500 .92rem Montserrat, sans-serif; color: #2d2a2a; cursor: pointer; }
.search-row:hover { background: #fff0f4; }
.search-row em { margin-left: auto; font-style: normal; font-size: .75rem; color: #a0888f; }
.search-row-go svg { color: #ff6b8f; flex: 0 0 auto; }
.search-hint { margin: 18px 2px; color: #8a8080; font-size: .88rem; }
.search-chip:focus-visible, .search-row:focus-visible, .search-close:focus-visible, .search-clear:focus-visible, .search-link:focus-visible { outline: 3px solid #ffb7c5; outline-offset: 2px; }
@media (min-width: 769px) {
  .search-sheet { left: 50%; right: auto; width: min(640px, calc(100% - 32px)); top: 70px; max-height: calc(100% - 100px); border-radius: 22px; transform: translate(-50%, -10px); }
  .search-overlay.is-open .search-sheet { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .search-backdrop, .search-sheet { transition: none; } }

/* hamburger menu: small red tag at the right of the "Hot Deals" row (two short lines; drops under the name on very narrow phones) */
.mobile-nav-links .mnav-text { display: flex; flex: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 5px; line-height: 1.2; }
.mobile-nav-links a[data-has-tag] { padding-right: .7rem; }
.mobile-nav-links .mnav-text small { position: relative; display: inline-block; margin-left: auto; padding: 1.5px 3.5px; border-radius: 4px; background: #e5332a; color: #fff; font: 500 .48rem/1.2 Montserrat, sans-serif; letter-spacing: .01em; white-space: nowrap; }
.mobile-nav-links .mnav-text small::before { content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-left: 0; border-right-color: #e5332a; }

/* Timed-sale names: the WHOLE name is always shown. Long names get smaller text; in the hamburger a long name wraps onto a second line (the red tag stays at the right, vertically centred),
   in the chips row the chip is simply as wide as it needs (the row scrolls sideways). */
.collection-chip .cc-title.sale-name.sm, .mobile-nav-links .mnav-name.sale-name.sm { font-size: .9em; }
.collection-chip .cc-title.sale-name.xs, .mobile-nav-links .mnav-name.sale-name.xs { font-size: .8em; }
.mobile-nav-links li[data-sale-row] .mnav-text { flex-wrap: nowrap; min-width: 0; }
.mobile-nav-links li[data-sale-row] .mnav-name { flex: 1 1 auto; min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }
.mobile-nav-links li[data-sale-row] .mnav-text small { flex: 0 0 auto; margin-left: auto; }

/* Moving light on the red tags (Hot Deals "20 TND and under" and the "Ends ..." tags of timed sales, in the hamburger menu and the chips row): a band of light sweeps across the tag
   in about 0.5 s, then it rests until the 1.1 s loop restarts (twice as fast as before). It is painted with the tag's own background, so the little arrow on its left is never clipped and nothing around it moves or changes size.
   Visitors who ask for less motion get the plain red tag. */
@keyframes tag-shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
.collection-chip .cc-sub, .mobile-nav-links .mnav-text small {
  --tag-bg: #e5332a; --shine: rgba(255, 255, 255, .7);
  background: linear-gradient(105deg, transparent 34%, var(--shine) 50%, transparent 66%) 100% 0 / 220% 100% no-repeat, var(--tag-bg);
  animation: tag-shine 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .collection-chip .cc-sub, .mobile-nav-links .mnav-text small { animation: none; background: var(--tag-bg); }
}

/* ---- "One Last Check!" final review, opened by the checkout's Confirm button before the order is sent */
html.rv-lock { overflow: hidden; }
.rv-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(45, 42, 42, .55); }
.rv-modal { display: flex; flex-direction: column; width: min(440px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); outline: none; overflow: hidden; }
.rv-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 16px 8px; }
.rv-foot { flex: none; padding: 8px 16px 14px; border-top: 1.5px dashed #f1dce2; background: #fff; }
.rv-modal h2 { font-family: Alice, Georgia, serif; font-size: 1.35rem; color: #2d2a2a; text-align: center; margin: 0; }
.rv-modal h2 i { color: #ff6b8f; font-size: 1.05rem; }
.rv-sub { text-align: center; font: 500 .8rem Montserrat, sans-serif; color: #8b6972; margin: 2px 0 0; }
.rv-h { display: flex; align-items: center; gap: 7px; font: 700 .86rem Montserrat, sans-serif; color: #2d2a2a; margin: 16px 0 6px; }
.rv-h i { color: #ff6b8f; width: 18px; text-align: center; }
.rv-items { margin-bottom: .4rem; }
.rv-items li:last-child { border-bottom: 0; }
.rv-items .card-facts { margin-top: 3px; }
.rv-items .cf { display: inline-block; margin: 0 4px 2px 0; font: 500 .7rem Montserrat, sans-serif; }
.rv-items .cf b { font: 600 .7rem Montserrat, sans-serif; white-space: normal; color: inherit; }
.rv-card { background: #fff0f4; border-radius: 14px; padding: 1px 12px 12px; margin-top: 14px; }
.rv-card > .rv-h:first-child { margin-top: 10px; }
.rv-ar { direction: rtl; text-align: right; font: 500 .86rem/1.65 Montserrat, sans-serif; color: #4a4346; margin: 0; }
.rv-serious { border-top: 1px dashed #ffc2d3; margin-top: 12px; }
.rv-ig, .rv-ig:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 13px; min-height: 0; border-radius: 999px; font: 700 .78rem Montserrat, sans-serif; background: #fff; color: #c2456a; border: 1px solid #ffc2d3; text-decoration: none; }
.rv-ig:hover { background: #fff0f4; }
.rv-ig::before { content: "\f16d"; font-family: "Font Awesome 6 Brands"; font-weight: 400; }
.rv-sched { background: #f7f3f4; border-radius: 12px; padding: 8px 12px; }
.rv-sched > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font: 500 .84rem/1.5 Montserrat, sans-serif; color: #6f6168; }
.rv-sched > div + div { border-top: 1px solid #efe6e9; }
.rv-sched > div > span i { color: #ff6b8f; }
.rv-sched > div > span { flex: none; white-space: nowrap; }
.rv-sched b { flex: 1 1 auto; min-width: 0; color: #2d2a2a; font-weight: 700; text-align: left; }
.rv-nt { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #f7f3f4; font: 500 .8rem/1.6 Montserrat, sans-serif; color: #4a4346; }
.rv-nt i { margin-top: 3px; color: #8a7a80; flex: none; }
.rv-nt-late { background: #fff0f4; }
.rv-nt-late i { color: #e8527c; }
.rv-note { font: 500 .84rem Montserrat, sans-serif; color: #6f6168; margin: 0; }
.rv-ck { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; font: 500 .8rem/1.55 Montserrat, sans-serif; color: #2d2a2a; }
.rv-ck input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #ff6b8f; cursor: pointer; }
.rv-msg { margin: .4rem 0 0; padding: 8px 10px; border-radius: 10px; background: #fdecec; color: #a32d2d; font: 500 .8rem/1.45 Montserrat, sans-serif; }
.rv-confirm, .rv-edit { display: block; width: 100%; margin-top: 8px; font-family: Montserrat, sans-serif; }
.rv-edit { background: #fff; }
@media (max-width: 480px) { .rv-overlay { padding: 8px; } .rv-modal { border-radius: 18px; max-height: calc(100dvh - 16px); } .rv-body { padding: 16px 14px 6px; } .rv-foot { padding: 6px 14px 12px; } }

.rv-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 2px; padding: 8px 10px; border-radius: 12px; background: #fff0f4; color: #c2456a; font: 700 .8rem/1.5 Montserrat, sans-serif; text-align: center; }
.rv-hint i { flex: none; }
@media (prefers-reduced-motion: no-preference) { .rv-hint i { animation: rvNudge 1.2s ease-in-out infinite; } }
@keyframes rvNudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.rv-foot [hidden] { display: none !important; }

/* ---- free delivery from 130 TND: hint in cart and checkout, "Free" in the totals */
.free-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #ffe4ec; color: #c2456a; font-weight: 800; font-size: .78rem; letter-spacing: .02em; }
.free-ship { margin: .7rem 0 .2rem; padding: 9px 12px; border-radius: 14px; background: #fff0f4; }
.free-ship p { margin: 0; font: 600 .8rem/1.45 Montserrat, sans-serif; color: #6b3a4a; }
.free-ship p i { color: #ff6b8f; margin-right: 6px; }
.free-ship p b { color: #c2456a; }
.free-ship-bar { height: 7px; margin-top: 8px; border-radius: 999px; background: #ffdce6; overflow: hidden; }
.free-ship-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8fae, #ff6b8f); }
.free-ship.is-free { background: #fff0f4; }
