/* ==========================================================================
   KIDISTAN Part 4 storefront styles (loaded after kidistan.css).
   Rotating announcement bar, product card sizes + Buy Now / Add to Cart,
   Shop the Complete Look, newsletter, information pages.
   Brand colours come from the variables in kidistan.css.
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.kd-announce { padding: 0; }
.kd-ann__in { max-width: var(--kd-wrap); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; min-height: 36px; }
.kd-ann__track { flex: 1; min-width: 0; display: grid; text-align: center; }
.kd-ann__slide { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; justify-content: center; padding: 7px 4px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.kd-ann__slide b { color: var(--kd-yellow); font-weight: 700; }
.kd-ann__slide a { color: inherit; text-decoration: none; }
.kd-ann__slide a:hover b, .kd-ann__slide a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.kd-ann .kd-ann__slide { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.kd-ann .kd-ann__slide.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.kd-ann .kd-ann__slide.is-leaving { opacity: 0; transform: translateY(-8px); }
.kd-ann__btn, .kd-body .kd-ann__btn { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--kd-white); display: grid; place-items: center; cursor: pointer; opacity: .85; }
.kd-ann__btn:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.kd-announce a:focus-visible, .kd-ann__btn:focus-visible { outline: 2px solid var(--kd-yellow); outline-offset: 1px; border-radius: 8px; }
.kd-ann__btn--pause .kd-ann__play { display: none; }
.kd-ann__btn--pause[data-paused="true"] .kd-ann__play { display: block; }
.kd-ann__btn--pause[data-paused="true"] .kd-ann__pausei { display: none; }
@media (max-width: 480px) {
	.kd-ann__in { padding: 0 2px; min-height: 34px; }
	.kd-ann__slide { font-size: 12px; padding: 6px 2px; }
	.kd-ann__btn { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.kd-ann .kd-ann__slide, .kd-ann .kd-ann__slide.is-active, .kd-ann .kd-ann__slide.is-leaving { transition: none; transform: none; }
}

/* ---------- Product cards: price, sizes, Buy Now + Add to Cart ---------- */
.kd-price__save { font-size: 12px; font-weight: 700; color: var(--kd-pink-strong); }
.kd-card__buy { margin: auto 0 0; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.kd-card__sizes { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kd-card__label { width: 100%; padding: 0; margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--kd-muted); }
.kd-sz { position: relative; display: inline-flex; }
.kd-sz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kd-sz span, .kd-sz--more { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; padding: 0 8px; border: 1.5px solid var(--kd-line); border-radius: 10px; background: var(--kd-white); font-size: 12.5px; font-weight: 600; color: var(--kd-ink); cursor: pointer; text-decoration: none; }
.kd-sz span:hover { border-color: var(--kd-purple); }
.kd-sz input:checked + span { background: var(--kd-purple); border-color: var(--kd-purple); color: var(--kd-white); }
.kd-sz input:focus-visible + span { outline: 3px solid var(--kd-purple); outline-offset: 2px; }
.kd-sz--out span { color: #B3A6C6; background: #FBF9FE; text-decoration: line-through; cursor: not-allowed; }
.kd-sz--more { color: var(--kd-purple); }
.kd-card__need { margin: 0; font-size: 12px; font-weight: 600; color: var(--kd-pink-strong); }
.kd-shake { animation: kdShake .35s; }
@keyframes kdShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.kd-card__btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.kd-cbtn, .kd-body .kd-cbtn { min-height: 42px; padding: 4px 6px; border: 0; border-radius: 12px; background: var(--kd-purple); color: var(--kd-white); font-family: var(--kd-font); font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; transition: background .15s; }
.kd-cbtn:hover:not(:disabled) { background: var(--kd-purple-deep); }
.kd-cbtn:disabled, .kd-body .kd-cbtn:disabled { background: var(--kd-lilac); color: var(--kd-muted); cursor: not-allowed; }
.kd-cbtn:focus-visible { outline: 3px solid var(--kd-yellow); outline-offset: 2px; }
@media (max-width: 699px) {
	.kd-card__btns { gap: 6px; }
	.kd-cbtn { font-size: 12px; padding: 4px; }
	.kd-sz span, .kd-sz--more { min-width: 34px; min-height: 30px; padding: 0 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .kd-shake { animation: none; } }

/* Small phones: keep logo, wishlist and cart on one line */
@media (max-width: 400px) {
	.kd-header__main { gap: 8px; }
	.kd-logo__text { font-size: 24px; }
	.kd-logo svg { width: 34px; height: 34px; }
	.kd-header__icons { gap: 6px; }
}
@media (max-width: 345px) {
	.kd-wrap.kd-header__main { padding-left: 10px; padding-right: 10px; gap: 6px; }
	.kd-logo { gap: 5px; }
	.kd-logo__text { font-size: 20px; }
	.kd-logo svg { width: 30px; height: 30px; }
	.kd-header__main .kd-icon-btn { width: 40px; height: 40px; min-width: 40px; }
}

/* Hero: keep the round "Kids 0–12 Years" badge from covering the heading on phones and tablets */
@media (max-width: 899px) {
	.kd-hero__title { padding-right: 96px; }
}

/* Quick View link (appears once quick-view.php exists) */
.kd-card__quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: none; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--kd-purple); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
@media (hover: hover) and (min-width: 900px) { .kd-card:hover .kd-card__quick, .kd-card__quick:focus-visible { display: block; } }

/* ---------- Shop the Complete Look ---------- */
.kd-look { display: grid; gap: 18px; padding: 16px; border-radius: 22px; background: var(--kd-soft); border: 1px solid var(--kd-line); }
.kd-look + .kd-look { margin-top: 18px; }
@media (min-width: 900px) { .kd-look { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 22px; align-items: center; } }
.kd-look__media img { display: block; width: 100%; height: auto; border-radius: 18px; object-fit: cover; aspect-ratio: 7 / 8; background: var(--kd-lilac); }
.kd-look__collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kd-look__collage img { aspect-ratio: 1 / 1; border-radius: 14px; }
.kd-look__panel { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kd-look__title { margin: 0; font-family: var(--kd-display); font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--kd-ink); }
.kd-look__desc { margin: 0; color: var(--kd-muted); }
.kd-look__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kd-look__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--kd-white); border: 1px solid var(--kd-line); }
.kd-look__thumb img { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--kd-lilac); }
.kd-look__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.kd-look__name { flex-basis: 100%; font-weight: 600; font-size: 14px; color: var(--kd-ink); text-decoration: none; }
.kd-look__name:hover { color: var(--kd-purple); }
.kd-look__price { font-weight: 700; color: var(--kd-purple); font-size: 14px; }
.kd-look__out { font-size: 12px; font-weight: 600; color: var(--kd-muted); background: var(--kd-lilac); padding: 3px 8px; border-radius: 999px; }
.kd-look__select { min-height: 38px; padding: 0 10px; border: 1.5px solid var(--kd-line); border-radius: 10px; background: var(--kd-white); font-size: 13px; }
.kd-look__select:focus { border-color: var(--kd-purple); }
.kd-look__foot { display: grid; gap: 10px; }
.kd-look__total { font-size: 15px; color: var(--kd-muted); }
.kd-look__total strong { color: var(--kd-purple); font-size: 18px; }

/* ---------- Newsletter ---------- */
.kd-newsletter { display: grid; gap: 16px; align-items: center; padding: 26px 20px; border-radius: 24px; background: var(--kd-purple); color: var(--kd-white); }
@media (min-width: 900px) { .kd-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 34px 40px; gap: 32px; } }
.kd-newsletter__title { margin: 0 0 6px; font-family: var(--kd-display); font-size: 26px; font-weight: 800; line-height: 1.15; }
@media (min-width: 900px) { .kd-newsletter__title { font-size: 32px; } }
.kd-newsletter__hl { color: var(--kd-yellow); }
.kd-newsletter p { margin: 0; opacity: .95; }
.kd-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.kd-newsletter__form input[type="email"] { flex: 1 1 220px; min-height: 50px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; font-size: 15px; color: var(--kd-ink); background: var(--kd-white); }
.kd-newsletter__form input[type="email"]:focus { outline: 3px solid var(--kd-yellow); outline-offset: 2px; }
.kd-newsletter__form .kd-btn { min-height: 50px; }
.kd-newsletter__note { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-weight: 600; }
.kd-newsletter__note.is-error { background: var(--kd-pink); color: var(--kd-ink); }
.kd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Information pages ---------- */
.kd-info { max-width: 760px; margin: 8px auto 40px; padding: 24px 20px; border-radius: 22px; border: 1px solid var(--kd-line); background: var(--kd-white); }
@media (min-width: 700px) { .kd-info { padding: 36px 44px; } }
.kd-info__title { margin: 0 0 16px; font-family: var(--kd-display); font-size: 32px; font-weight: 800; line-height: 1.15; color: var(--kd-ink); }
.kd-info__body { font-size: 16px; line-height: 1.7; color: var(--kd-ink); }
.kd-info__body p, .kd-info__body ul { margin: 0 0 14px; }
.kd-info__body b { color: var(--kd-purple); }
.kd-info__contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.kd-info__updated { margin: 18px 0 0; font-size: 13px; color: var(--kd-muted); }

/* ==========================================================================
   Part 5: colours, product page buy box, Quick View, zoom, shop grid
   ========================================================================== */

/* Colour swatches (colours of the products, not of the site) */
.kd-swatch { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(46, 26, 85, .18); background: var(--kd-lilac); font-size: 9px; font-weight: 700; color: var(--kd-ink); text-transform: uppercase; overflow: hidden; }
.kd-swatch--multicolor { background: conic-gradient(#F7A8C8, #FFD966, #B5EAD7, #9FD3F2, #C9B1EE, #F7A8C8); }
.kd-swatch--text { background: var(--kd-white); }
.kd-swatch--white { background: #FFFFFF; }
.kd-swatch--off-white { background: #F8F4EC; }
.kd-swatch--cream { background: #F6EBD3; }
.kd-swatch--beige { background: #E3CDA4; }
.kd-swatch--pink { background: #F7A8C8; }
.kd-swatch--baby-pink { background: #FAD0E0; }
.kd-swatch--hot-pink { background: #E6078A; }
.kd-swatch--peach { background: #FFC9A8; }
.kd-swatch--red { background: #E0383E; }
.kd-swatch--maroon { background: #8A1C2B; }
.kd-swatch--orange { background: #F7923A; }
.kd-swatch--yellow { background: #FFD966; }
.kd-swatch--mustard { background: #D9A520; }
.kd-swatch--mint { background: #B5EAD7; }
.kd-swatch--green { background: #4CAF6A; }
.kd-swatch--olive { background: #7D8B3A; }
.kd-swatch--sky-blue { background: #9FD3F2; }
.kd-swatch--blue { background: #3D7FD9; }
.kd-swatch--navy { background: #2B3A67; }
.kd-swatch--lilac { background: #C9B1EE; }
.kd-swatch--purple { background: #8054C7; }
.kd-swatch--brown { background: #8A5A3C; }
.kd-swatch--grey { background: #A7A3AE; }
.kd-swatch--black { background: #2A2730; }
.kd-dot { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; border: 1px solid rgba(46, 26, 85, .2); vertical-align: middle; }
.kd-dot.kd-swatch--text { display: none; }
.kd-js .kd-sz .kd-dot, .kd-js .kd-size .kd-dot { display: none; }
.kd-js .kd-card__sizes--auto { display: none; }

.kd-swatch-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.kd-swatch-btn[aria-pressed="true"] { border-color: var(--kd-purple); }
.kd-swatch-btn:disabled { opacity: .35; cursor: not-allowed; }
.kd-swatch-btn:focus-visible { outline: 3px solid var(--kd-purple); outline-offset: 2px; }
.kd-swatch-btn--lg { width: 40px; height: 40px; }
.kd-swatch-btn--lg .kd-swatch { width: 30px; height: 30px; font-size: 10px; }
.kd-card__colors { display: flex; flex-direction: column; gap: 2px; }
.kd-card__colors .kd-card__label b { color: var(--kd-ink); font-weight: 600; }
.kd-card__swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.kd-sz[hidden], .kd-size[hidden] { display: none !important; }

/* Product page and Quick View buy box */
.kd-pcolors { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.kd-pcolors__label { font-weight: 600; }
.kd-pcolors__label b { color: var(--kd-purple); }
.kd-pcolors__list { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-qty--buy { margin: 12px 0; }
.kd-buy__btns { margin-top: 4px; }
.kd-cbtn--lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.kd-buy .kd-card__need { margin: 0 0 8px; font-size: 13px; }

/* Zoom on the main product photo (desktop) */
.kd-gallery__main[data-kd-zoom] { overflow: hidden; }
.kd-gallery__main[data-kd-zoom] img { transition: transform .2s ease; }
.kd-gallery__main.is-zoom { cursor: zoom-in; }
.kd-gallery__main.is-zoom img { transform: scale(2); }
@media (prefers-reduced-motion: reduce) { .kd-gallery__main[data-kd-zoom] img { transition: none; } }

/* Quick View pop-up */
.kd-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 12px; background: rgba(46, 26, 85, .45); }
.kd-modal[hidden] { display: none; }
.kd-modal__box { position: relative; width: min(920px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 22px; background: var(--kd-white); box-shadow: 0 20px 60px rgba(46, 26, 85, .3); }
.kd-modal__close, .kd-body .kd-modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kd-lilac); color: var(--kd-purple); font-size: 26px; line-height: 1; cursor: pointer; }
.kd-modal__close:hover, .kd-body .kd-modal__close:hover { background: var(--kd-purple); color: var(--kd-white); }
.kd-qv { display: grid; gap: 18px; padding: 18px; }
@media (min-width: 760px) { .kd-qv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding: 26px; } }
.kd-qv__main { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: var(--kd-soft); }
.kd-qv__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.kd-qv__thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.kd-qv__thumb[aria-current="true"] { border-color: var(--kd-purple); }
.kd-qv__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kd-qv__info { display: flex; flex-direction: column; gap: 6px; padding-right: 30px; }
.kd-qv__title { margin: 0; font-family: var(--kd-display); font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--kd-ink); }
.kd-qv__short { margin: 0 0 6px; color: var(--kd-muted); }
.kd-qv__more { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.kd-qv__missing { padding: 30px; text-align: center; }

/* Shop: colour filter, and 4 product columns on wide screens */
.kd-colorfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.kd-colorfilter__opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px 4px 6px; border: 1.5px solid var(--kd-line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.kd-colorfilter__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kd-colorfilter__opt:has(input:checked) { border-color: var(--kd-purple); background: var(--kd-lilac); font-weight: 600; }
.kd-colorfilter__opt:has(input:focus-visible) { outline: 3px solid var(--kd-purple); outline-offset: 2px; }
.kd-colorfilter__all { padding-left: 4px; }
@media (min-width: 1100px) { .kd-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
