/* Wardeina home page styles — Sanader. Loaded on the front page only. */

/* ---------- Hero ---------- */
.wd-hero { padding-block: 1.5rem 2rem; }
.wd-hero__grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.wd-hero--solo .wd-hero__grid { grid-template-columns: minmax(0, 1fr); }
.wd-hero__main, .wd-hero__card { position: relative; border-radius: 28px; overflow: hidden; background: var(--wd-soft); }
.wd-hero__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.wd-hero__track::-webkit-scrollbar { display: none; }
.wd-hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2.3 / 1; display: block; }
.wd-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.wd-hero__card { display: block; aspect-ratio: 2.12 / 1; transition: transform .2s ease, box-shadow .2s ease; }
.wd-hero__card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.wd-hero__slide picture, .wd-hero__card picture { display: block; width: 100%; height: 100%; }
.wd-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wd-hero__empty { padding: 1rem; border: 1px dashed var(--wd-border); border-radius: 12px; color: var(--wd-muted); text-align: center; }

/* Dots (added by hero.js when there is more than one slide) */
.wd-hero__dots { position: absolute; inset-inline: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.wd-hero__dots button { all: unset; box-sizing: border-box; pointer-events: auto; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; }
.wd-hero__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); transition: width .2s, background .2s; }
.wd-hero__dots button[aria-current="true"]::before { width: 22px; background: var(--wd-accent); }
.wd-hero__dots button:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: -4px; border-radius: 99px; }

@media (max-width: 1024px) {
	.wd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.wd-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 1rem; }
	.wd-hero__main, .wd-hero__card { border-radius: 22px; }
}
@media (max-width: 767px) {
	.wd-hero { padding-block: 1rem 1.25rem; }
	.wd-hero__slide.has-mobile { aspect-ratio: 9 / 7; }
}
@media (max-width: 560px) {
	.wd-hero__side { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.wd-hero__card { transition: none; }
}

/* ---------- Tile rails ("Celebrate Every Moment", "Gifts by Categories") ---------- */
.wd-rail { padding-block: 1.25rem 2rem; }
.wd-rail__title { margin: 0 0 1.5rem; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 700; line-height: 1.2; color: var(--wd-text); }
.wd-rail__viewport { position: relative; --inset: max(var(--wd-gap), calc((100% - var(--wd-container)) / 2 + var(--wd-gap))); }
.wd-rail__track { display: flex; gap: 2rem; overflow-x: auto; padding-inline: var(--inset); scroll-padding-inline: var(--inset); scroll-snap-type: x proximity; scrollbar-width: none; padding-block: .5rem 1rem; overscroll-behavior-x: contain; }
.wd-rail__track::-webkit-scrollbar { display: none; }
.wd-rail__item { flex: 0 0 230px; scroll-snap-align: start; }
.wd-tile { display: block; aspect-ratio: 100 / 130; transition: transform .2s ease; }
a.wd-tile:hover { transform: translateY(-4px); }
.wd-tile__shape { position: relative; display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--tint, #f3e3d0) 0%, rgba(255, 255, 255, 0) 100%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 122Q0 130 8 130L92 130Q100 130 100 122L100 52C100 36 82 26 62 17C55 14 52 9 50 0C48 9 45 14 38 17C18 26 0 36 0 52Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 122Q0 130 8 130L92 130Q100 130 100 122L100 52C100 36 82 26 62 17C55 14 52 9 50 0C48 9 45 14 38 17C18 26 0 36 0 52Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wd-tile__img { position: absolute; inset-inline: 8%; top: 17%; width: 84%; height: 56%; object-fit: contain; }
.wd-tile__label { position: absolute; inset-inline: 6%; bottom: 7%; text-align: center; font-size: 1.2rem; font-weight: 500; line-height: 1.25; color: var(--wd-text); }
.wd-rail__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--wd-text); font-size: 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.wd-rail__btn:hover { color: var(--wd-primary); }
.wd-rail__btn--prev { inset-inline-start: calc(var(--inset) - 26px); }
.wd-rail__btn--next { inset-inline-end: calc(var(--inset) - 26px); }
[dir="rtl"] .wd-rail__btn i { transform: scaleX(-1); }
@media (max-width: 767px) {
	.wd-rail { padding-block: .75rem 1.25rem; }
	.wd-rail__track { gap: 1rem; }
	.wd-rail__item { flex-basis: 150px; }
	.wd-tile__label { font-size: 1rem; }
	.wd-rail__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { a.wd-tile { transition: none; } }

/* ---------- Home sections (product carousels, tabs, round photos) ---------- */
.wd-sec { padding-block: 1.75rem 2.25rem; }
.wd-sec.has-bg { background: var(--sec-bg); padding-block: 2.5rem; margin-block: 1rem; }
.wd-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.wd-sec__head.is-center { justify-content: center; text-align: center; }
.wd-sec__title { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 700; line-height: 1.2; }
.wd-sec__sub { margin: .5rem 0 0; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--wd-muted); }
.wd-sec__all { display: inline-flex; align-items: center; gap: .5rem; flex: none; font-weight: 500; padding-bottom: .25rem; }
.wd-sec__all i { font-size: 12px; }
[dir="rtl"] .wd-sec__all i { transform: scaleX(-1); }

/* Tabs */
.wd-tabs-wrap { border-bottom: 1px solid rgba(0, 0, 0, .08); margin-bottom: 1.5rem; }
.wd-tabs { display: flex; justify-content: center; gap: .5rem 2rem; overflow-x: auto; scrollbar-width: none; }
.wd-tabs::-webkit-scrollbar { display: none; }
.wd-tab { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: .8rem; flex: none; padding: .75rem .25rem 1rem; cursor: pointer; color: var(--wd-muted); font-size: 1.05rem; white-space: nowrap; }
.wd-tab__img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--wd-soft); }
.wd-tab[aria-selected="true"] { color: var(--wd-text); font-weight: 600; }
.wd-tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--wd-primary); }
.wd-tab:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 2px; border-radius: 8px; }
.wd-tabpanel { min-height: 120px; --inset: max(var(--wd-gap), calc((100% - var(--wd-container)) / 2 + var(--wd-gap))); }

/* Rails (product / circles) share the tile-rail track */
.wd-rail--products, .wd-rail--circles { padding: 0; }
.wd-rail--products .wd-rail__item { flex: 0 0 calc((min(100vw, var(--wd-container)) - 2 * var(--wd-gap) - (var(--cols) - 1) * 1.25rem) / var(--cols)); }
.wd-rail--products .wd-rail__track { gap: 1.25rem; padding-block: .25rem .5rem; }
.wd-rail--circles .wd-rail__item { flex-basis: 250px; }
.wd-rail__bar { width: min(480px, 60%); height: 4px; margin: 1.25rem auto 0; border-radius: 4px; background: rgba(0, 0, 0, .1); position: relative; }
.wd-rail__bar span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; border-radius: inherit; background: #4a5568; }
.wd-rail__none { text-align: center; color: var(--wd-muted); padding: 2rem 0; }

/* Product card */
.wd-pcard { display: flex; flex-direction: column; gap: .4rem; }
.wd-pcard__media { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--wd-soft); }
.wd-pcard__imglink, .wd-pcard__img { display: block; width: 100%; height: 100%; }
.wd-pcard__img { object-fit: cover; }
.wd-heart { all: unset; box-sizing: border-box; position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: #fff; font-size: 22px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.wd-heart[aria-pressed="true"] { color: #e11d48; filter: none; }
.wd-heart[aria-pressed="true"] i { font-weight: 900; }
.wd-opt, .wd-add { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: #fff; color: var(--wd-text); border: 1px solid var(--wd-text); border-radius: var(--wd-radius); font-size: 15px; font-weight: 500; line-height: 1; }
.wd-opt { height: 40px; padding-inline: .9rem; }
.wd-opt i { font-size: 12px; }
.wd-add { width: 40px; height: 40px; font-size: 16px; }
.wd-add.is-loading { opacity: .5; pointer-events: none; }
.wd-add.is-added { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }
.wd-opt:hover, .wd-add:hover { border-color: var(--wd-primary); color: var(--wd-primary); }
.wd-add.is-added:hover { color: #fff; }
.wd-pcard__title { margin: .6rem 0 0; font-size: 1rem; font-weight: 400; line-height: 1.35; }
.wd-pcard__title a { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wd-pcard__title a:hover { color: var(--wd-primary); }
.wd-pcard__price { font-weight: 700; font-size: 1rem; }
.wd-pcard__price del { font-weight: 400; color: var(--wd-muted); margin-inline-end: .4rem; }
.wd-pcard__price ins { text-decoration: none; }
.wd-pcard__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding-inline: .5rem; font-size: .8rem; font-style: italic; font-weight: 600; color: #ea8a00; }
.wd-pcard__badge i { font-size: .75rem; }

/* Round photo tile */
.wd-ctile { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; transition: transform .2s ease; }
a.wd-ctile:hover { transform: translateY(-4px); }
.wd-ctile__pic { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--tint, #f4f0d8); }
.wd-ctile__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wd-ctile__label { font-size: 1.15rem; font-weight: 500; line-height: 1.25; }

/* Loading skeleton (tab switch) */
.wd-skel { display: flex; gap: 1.25rem; padding-inline: var(--inset, var(--wd-gap)); overflow: hidden; }
.wd-skel__card { flex: 0 0 calc((min(100vw, var(--wd-container)) - 2 * var(--wd-gap) - 4 * 1.25rem) / 5); }
.wd-skel__img, .wd-skel__line { background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%); background-size: 400% 100%; animation: wd-shimmer 1.3s ease infinite; border-radius: 14px; }
.wd-skel__img { aspect-ratio: 1 / 1; }
.wd-skel__line { height: 14px; margin-top: .75rem; width: 80%; }
.wd-skel__line + .wd-skel__line { width: 40%; }
@keyframes wd-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1024px) {
	.wd-rail--products .wd-rail__item { flex-basis: calc((100vw - 2 * var(--wd-gap) - 2 * 1rem) / 3.2); }
}
@media (max-width: 767px) {
	.wd-sec { padding-block: 1.25rem 1.5rem; }
	.wd-sec.has-bg { padding-block: 1.75rem; }
	.wd-tabs { justify-content: flex-start; gap: 1rem; }
	.wd-tab { font-size: 1rem; }
	.wd-tab__img { width: 38px; height: 38px; }
	.wd-rail--products .wd-rail__track { gap: 1rem; }
	.wd-rail--products .wd-rail__item { flex-basis: calc((100vw - 2 * var(--wd-gap) - 1rem) / 2.15); }
	.wd-rail--circles .wd-rail__item { flex-basis: 140px; }
	.wd-ctile__label { font-size: 1rem; }
	.wd-opt { height: 36px; font-size: 14px; padding-inline: .7rem; }
	.wd-add { width: 36px; height: 36px; }
	.wd-skel__card { flex-basis: 45vw; }
	.wd-rail__bar { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .wd-skel__img, .wd-skel__line { animation: none; } a.wd-ctile { transition: none; } }

/* Category cards: arch (FNP style), circle, rounded */
.wd-ctile--arch .wd-ctile__pic { aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; background: linear-gradient(180deg, var(--tint, #f4f0d8), #fff 130%); }
.wd-ctile--arch .wd-ctile__img { object-fit: contain; padding: 14% 8% 4%; }
.wd-ctile--round .wd-ctile__pic { border-radius: 22px; }
.wd-ctile--circle .wd-ctile__pic { border-radius: 50%; }
.wd-rail--arch .wd-rail__item, .wd-rail--round .wd-rail__item { flex-basis: 170px; }
.wd-rail--arch .wd-ctile__label, .wd-rail--round .wd-ctile__label { font-size: 1rem; }
@media (max-width: 560px) { .wd-rail--arch .wd-rail__item, .wd-rail--round .wd-rail__item { flex-basis: 112px; } }

/* Highlights strip under the hero */
.wd-hf { background: #fdf6ee; padding-block: 1.1rem; margin-top: 1.25rem; }
.wd-hf__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.wd-hf__card { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: 20px; padding: .9rem 1.1rem; box-shadow: 0 2px 10px rgba(85, 1, 0, .05); }
.wd-hf__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f7efe0; color: var(--wd-primary); font-size: 20px; }
.wd-hf__txt { display: grid; min-width: 0; line-height: 1.3; }
.wd-hf__txt strong { font-size: 1rem; font-weight: 600; }
.wd-hf__txt small { color: var(--wd-muted); font-size: .88rem; }
@media (max-width: 1024px) { .wd-hf__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wd-hf__card { flex-direction: column; text-align: center; padding: .85rem .6rem; gap: .5rem; } .wd-hf__txt strong { font-size: .92rem; } .wd-hf__txt small { font-size: .8rem; } }

/* Full-width hero slider (reference layout) */
.wd-hero.wd-hero--solo { max-width: none; padding: 0; }
.wd-hero--solo .wd-hero__main { border-radius: 0; }
.wd-hero--solo .wd-hero__slide { aspect-ratio: auto; }
.wd-hero--solo .wd-hero__img { height: auto; object-fit: initial; }
.wd-hero--solo .wd-hero__slide picture { height: auto; }
.wd-hero__arrow { all: unset; box-sizing: border-box; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--wd-text); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer; font-size: 15px; }
.wd-hero__arrow--prev { inset-inline-start: 16px; }
.wd-hero__arrow--next { inset-inline-end: 16px; }
.wd-hero__arrow:hover { background: var(--wd-primary); color: #fff; }
[dir="rtl"] .wd-hero__arrow i { transform: scaleX(-1); }
@media (max-width: 767px) { .wd-hero--solo .wd-hero__slide, .wd-hero--solo .wd-hero__slide.has-mobile { aspect-ratio: auto; } .wd-hero__arrow { display: none; } }

/* ---------- Reference-style sections ---------- */
.wd-sec__head.has-line .wd-sec__heading { flex: 1; min-width: 0; }
.wd-sec__head.has-line .wd-sec__title { display: flex; align-items: center; gap: 1.1rem; font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; color: var(--wd-primary); font-size: clamp(1.35rem, 2.2vw, 2rem); }
.wd-sec__head.has-line .wd-sec__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #d9b98c, transparent); }
[dir="rtl"] .wd-sec__head.has-line .wd-sec__title::after { background: linear-gradient(270deg, #d9b98c, transparent); }
.wd-sec__head.has-line .wd-sec__all { color: var(--wd-primary); font-weight: 600; font-size: .92rem; }
.wd-sec__head.has-line { align-items: center; margin-bottom: 1rem; }

/* Category cards: image on a soft card with the name in a bar (8 across) */
.wd-ctile--card { gap: 0; background: #fbf7f2; border: 1px solid #f0e6da; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(85, 1, 0, .05); }
.wd-ctile--card .wd-ctile__pic { aspect-ratio: 1 / .88; border-radius: 0; background: linear-gradient(180deg, #fff, #f7efe6); display: grid; place-items: center; }
.wd-ctile--card .wd-ctile__img { object-fit: contain; padding: 10% 14% 4%; }
.wd-ctile--card .wd-ctile__label { padding: .55rem .4rem; width: 100%; font-size: .92rem; font-weight: 600; line-height: 1.25; background: #f6ede2; min-height: 2.9em; display: grid; place-items: center; }
a.wd-ctile--card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(85, 1, 0, .12); }
.wd-rail--card .wd-rail__item { flex-basis: 150px; }
.wd-rail--card .wd-rail__track { gap: .85rem; }
@media (min-width: 1100px) { .wd-rail--card .wd-rail__item { flex-basis: calc((min(100vw, var(--wd-container)) - 2 * var(--wd-gap) - 7 * .85rem) / 8); } }
@media (max-width: 560px) { .wd-rail--card .wd-rail__item { flex-basis: 104px; } .wd-ctile--card .wd-ctile__label { font-size: .8rem; } }

/* Banner row */
.wd-sec--promo { padding-block: .5rem 1.5rem; }
.wd-promo { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.wd-promo--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wd-promo--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wd-promo__item a, .wd-promo__item img { display: block; width: 100%; }
.wd-promo__img { height: auto; border-radius: 18px; }
@media (max-width: 767px) { .wd-promo--2, .wd-promo--3 { grid-template-columns: minmax(0, 1fr); gap: .85rem; } }

/* Product tabs: pill buttons + View all button */
.wd-tabs--pill { justify-content: center; gap: .6rem; padding-block: .25rem; }
.wd-tabs--pill .wd-tab { padding: .6rem 1.3rem; border-radius: 999px; font-size: .95rem; gap: .5rem; border: 1px solid transparent; color: var(--wd-text); }
.wd-tabs--pill .wd-tab[aria-selected="true"] { background: var(--wd-primary); color: #fff; font-weight: 600; }
.wd-tabs--pill .wd-tab[aria-selected="true"]::after { display: none; }
.wd-tabs--pill .wd-tab i { color: var(--wd-accent); }
.wd-tabs--pill .wd-tab[aria-selected="true"] i { color: #fff; }
.wd-tabs-wrap:has(.wd-tabs--pill) { border-bottom: 1px solid #eadfd3; margin-bottom: 1.25rem; padding-bottom: .6rem; }
.wd-ptabpanel[hidden] { display: none; }
.wd-ptabs__all { text-align: center; margin: 1.25rem 0 0; }
.wd-btn-outline { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 2rem; border: 1.5px solid var(--wd-primary); border-radius: 999px; color: var(--wd-primary); font-weight: 600; }
.wd-btn-outline:hover { background: var(--wd-primary); color: #fff; }
.wd-btn-outline i { font-size: 12px; }
[dir="rtl"] .wd-btn-outline i { transform: scaleX(-1); }

/* Customer reviews */
.wd-rail--reviews { padding: 0; }
.wd-rail--reviews .wd-rail__item { flex: 0 0 min(420px, 80vw); }
.wd-review { margin: 0; padding: 1.1rem 1.4rem; background: #fbf4e8; border: 1px solid #f0e2c8; border-radius: 16px; height: 100%; display: grid; align-content: start; gap: .5rem; }
.wd-review__stars { color: #f5a623; font-size: .9rem; letter-spacing: 2px; }
.wd-review blockquote { margin: 0; font-style: italic; line-height: 1.6; color: #3f3a36; }
.wd-review figcaption { font-weight: 600; color: var(--wd-primary); font-size: .92rem; }

/* Banners two per row, reviews with photos */
.wd-promo--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .wd-promo--rows { grid-template-columns: minmax(0, 1fr); } }
.wd-review figcaption { display: flex; align-items: center; gap: .7rem; }
.wd-review__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.wd-review__photo--init { display: grid; place-items: center; background: var(--wd-primary); color: #fff; font-weight: 700; }
.wd-sec--cats, .wd-sec--love, .wd-sec--reviews, .wd-sec--ptabs { padding-block: 1.25rem 1.5rem; }

/* ---------- Mobile fixes: tabs scroll from the first tab, equal-height category cards ---------- */
.wd-tabs { justify-content: safe center; }
.wd-rail--card .wd-rail__item { display: flex; }
.wd-rail--card .wd-ctile { flex: 1; width: 100%; }
@media (max-width: 767px) {
	.wd-tabs--pill { justify-content: flex-start; scroll-snap-type: x proximity; padding-inline: 0; gap: .45rem; }
	.wd-tabs--pill .wd-tab { scroll-snap-align: start; padding: .5rem 1rem; font-size: .9rem; border: 1px solid #eadfd3; }
	.wd-tabs--pill .wd-tab[aria-selected="true"] { border-color: var(--wd-primary); }
	.wd-tabs-wrap:has(.wd-tabs--pill) { padding-bottom: .75rem; }
	.wd-sec__head.has-line .wd-sec__title::after { min-width: 12px; }
	.wd-sec__head.has-line .wd-sec__all { white-space: nowrap; font-size: .85rem; }
	.wd-ptabs__all { margin-top: 1rem; }
}

/* ---------- Compact sizes: smaller headings, text and icons below the header ---------- */
.wd-sec__title { font-size: clamp(1.2rem, 1.9vw, 1.7rem); }
.wd-sec__head.has-line .wd-sec__title { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.wd-sec__sub { font-size: clamp(.85rem, 1.1vw, .98rem); }
.wd-sec__head { margin-bottom: 1rem; }
.wd-sec__all { font-size: .88rem; }
.wd-hf__card { padding: .7rem .9rem; gap: .7rem; border-radius: 16px; }
.wd-hf__ico { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
.wd-hf__txt strong { font-size: .92rem; }
.wd-hf__txt small { font-size: .8rem; }
.wd-ctile--card .wd-ctile__label { font-size: .84rem; padding: .45rem .3rem; min-height: 2.6em; }
.wd-pcard__title { font-size: .9rem; margin-top: .5rem; }
.wd-pcard__price { font-size: .92rem; }
.wd-pcard__badge { font-size: .72rem; }
.wd-heart { width: 30px; height: 30px; font-size: 17px; top: 8px; inset-inline-end: 8px; }
.wd-opt, .wd-add { height: 34px; font-size: 13px; inset-block-end: 8px; inset-inline-end: 8px; }
.wd-add { width: 34px; font-size: 14px; }
.wd-opt { padding-inline: .7rem; }
.wd-tab { font-size: .9rem; }
.wd-tabs--pill .wd-tab { padding: .5rem 1.1rem; font-size: .88rem; }
.wd-rail__btn { width: 40px; height: 40px; font-size: 14px; }
.wd-review { padding: .9rem 1.1rem; }
.wd-review blockquote { font-size: .9rem; }
.wd-review figcaption { font-size: .85rem; }
.wd-review__stars { font-size: .8rem; }
.wd-btn-outline { padding: .55rem 1.6rem; font-size: .9rem; }
@media (max-width: 767px) {
	.wd-sec__title, .wd-sec__head.has-line .wd-sec__title { font-size: clamp(1.02rem, 4.6vw, 1.25rem); }
	.wd-sec__sub { font-size: .82rem; margin-top: .25rem; }
	.wd-sec { padding-block: 1rem 1.25rem; }
	.wd-hf { padding-block: .8rem; }
	.wd-hf__ico { width: 34px; height: 34px; font-size: 15px; }
	.wd-hf__txt strong { font-size: .85rem; }
	.wd-hf__txt small { font-size: .74rem; }
	.wd-ctile--card .wd-ctile__label { font-size: .76rem; }
	.wd-pcard__title { font-size: .82rem; }
	.wd-pcard__price { font-size: .85rem; }
	.wd-heart { width: 26px; height: 26px; font-size: 15px; top: 6px; inset-inline-end: 6px; }
	.wd-opt, .wd-add { height: 30px; font-size: 12px; inset-block-end: 6px; inset-inline-end: 6px; }
	.wd-add { width: 30px; font-size: 12px; }
	.wd-tabs--pill .wd-tab { font-size: .8rem; padding: .42rem .85rem; }
	.wd-review blockquote { font-size: .84rem; }
	.wd-btn-outline { font-size: .84rem; padding: .5rem 1.4rem; }
}
