/* CROW v2 storefront upgrades */
:root { --crow-ease: cubic-bezier(.22,.61,.36,1); --crow-ann-h: 34px; }
.crow-lock { overflow: hidden; }

/* ---------- 11. Announcement bar ---------- */
.crow-ann { height: var(--crow-ann-h); overflow: hidden; background: var(--crow-ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; display: flex; align-items: center; position: relative; z-index: 2; }
.crow-ann__track { display: flex; gap: 22px; white-space: nowrap; width: max-content; animation: crow-marquee 38s linear infinite; padding-inline-start: 22px; }
.crow-ann__track i { font-style: normal; opacity: .55; }
.crow-ann:hover .crow-ann__track { animation-play-state: paused; }
@keyframes crow-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .crow-ann__track { animation-name: crow-marquee-rtl; }
@keyframes crow-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- 10. Smart header ---------- */
.crow-v2 .crow-header { transition: background .35s var(--crow-ease), box-shadow .35s var(--crow-ease), color .35s; }
.crow-v2 .crow-header__inner { transition: min-height .3s var(--crow-ease), padding .3s var(--crow-ease); }
.crow-v2 .crow-logo img { transition: height .3s var(--crow-ease), opacity .3s; }
.crow-v2 .crow-logo { position: relative; display: block; }
.crow-v2 .crow-logo--black { display: none; }
.crow-v2 .crow-header:not(.is-overlay) .crow-logo--white { display: none; }
.crow-v2 .crow-header:not(.is-overlay) .crow-logo--black { display: block; }
.crow-v2 .crow-header.is-compact .crow-header__inner { min-height: 62px; padding-top: 4px; padding-bottom: 4px; }
.crow-v2 .crow-header.is-compact .crow-logo img { height: 42px; }
.crow-v2 .crow-header.is-compact { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
/* Home: overlay header becomes a fixed white bar after the hero */
.crow-v2 .crow-header.is-overlay { position: fixed; top: 0; inset-inline: 0; }
.admin-bar.crow-v2 .crow-header.is-overlay { top: 32px; }
.crow-v2 .crow-header.is-overlay.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); color: var(--crow-ink); border-bottom: 1px solid var(--crow-line); }
.crow-v2 .crow-header.is-overlay.is-scrolled::before { opacity: 0; }
.crow-v2 .crow-header.is-overlay.is-scrolled .crow-logo--white { display: none; }
.crow-v2 .crow-header.is-overlay.is-scrolled .crow-logo--black { display: block; }
.crow-v2 .crow-header.is-overlay.is-scrolled .crow-cart-count { background: var(--crow-ink); color: #fff; }
.crow-v2 .crow-header.is-overlay.is-scrolled .crow-lang:hover { background: var(--crow-ink); color: #fff !important; }
.crow-v2 .crow-header.is-overlay::before { transition: opacity .35s; }

/* ---------- 12. Hero: video, slow zoom, text in ---------- */
.crow-v2 .crow-hero picture img { animation: crow-kenburns 18s var(--crow-ease) both; transform-origin: 60% 40%; }
@keyframes crow-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.crow-v2 .crow-hero__copy > * { animation: crow-rise .9s var(--crow-ease) both; }
.crow-v2 .crow-hero__copy > *:nth-child(2) { animation-delay: .18s; }
@keyframes crow-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.crow-hero .crow-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; opacity: 0; transition: opacity .8s; }
.crow-hero__video.is-ready { opacity: 1; }
.crow-hero__video.is-ready ~ picture { visibility: hidden; }
.crow-hero .crow-hero__logo { position: absolute; z-index: 1; left: 50%; bottom: 175px; width: min(200px, 38vw) !important; height: auto !important; object-fit: contain; transform: translateX(-50%); opacity: 0; animation: crow-logo-in 1.4s .4s var(--crow-ease) both; filter: drop-shadow(0 6px 24px rgba(0,0,0,.35)); }
@keyframes crow-logo-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: .95; transform: translate(-50%, 0) scale(1); } }
.crow-hero::after { z-index: 1; }
.crow-hero__copy { z-index: 2; }

/* ---------- 9. Reveal on scroll ---------- */
.crow-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--crow-ease), transform .7s var(--crow-ease); }
.crow-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1 + 5. Product cards ---------- */
.crow-v2 ul.products li.product { position: relative; }
.crow-v2 ul.products li.product .astra-shop-thumbnail-wrap,
.crow-v2 ul.products li.product .woocommerce-LoopProduct-link { position: relative; display: block; overflow: hidden; }
.crow-v2 ul.products li.product img:not(.crow-hover-img) { transition: transform .6s var(--crow-ease); }
.crow-v2 ul.products li.product:hover img:not(.crow-hover-img) { transform: scale(1.03); }
.crow-hover-img { position: absolute !important; top: 0; inset-inline: 0; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; opacity: 0; transition: opacity .45s var(--crow-ease) !important; pointer-events: none; z-index: 1; margin: 0 !important; }
@media (hover: hover) { .crow-v2 ul.products li.product:hover .crow-hover-img { opacity: 1; } }
.crow-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.crow-badge { display: inline-block; padding: 4px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; background: #fff; color: var(--crow-ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.crow-badge--new { background: var(--crow-ink); color: #fff; }
.crow-badge--low { background: #b4462f; color: #fff; }
.crow-badge--out { background: #8a8a8a; color: #fff; }
.single-product .summary ~ .crow-badges, .single-product div.product > .crow-badges { top: 14px; }
.single-product div.product { position: relative; }
.crow-dots { display: flex; gap: 6px; margin: 2px 0 6px; flex-wrap: wrap; }
.crow-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.crow-v2 ul.products li.product .button.product_type_variable { display: none !important; }
.crow-qv-btn { display: block; width: 100%; margin-top: 10px; padding: 10px; background: transparent; color: var(--crow-ink); border: 1px solid var(--crow-ink); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.crow-qv-btn:hover { background: var(--crow-ink); color: #fff; border-color: var(--crow-ink); }

/* ---------- 2. Swatches / size buttons ---------- */
.crow-sw-select { position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px !important; height: 1px !important; min-width: 0 !important; }
.crow-sw { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.crow-sw__opt { cursor: pointer; border: 1px solid #cfcfcf; background: #fff; color: var(--crow-ink); transition: border-color .2s, background .2s, transform .15s; }
.crow-sw--size .crow-sw__opt { min-width: 48px; height: 42px; padding: 0 12px; font-weight: 700; font-size: 14px; border-radius: 0 !important; }
.crow-sw--size .crow-sw__opt.is-active { background: var(--crow-ink); color: #fff; border-color: var(--crow-ink); }
.crow-sw--color .crow-sw__opt { width: 36px; height: 36px; padding: 3px; border-radius: 50% !important; }
.crow-sw--color .crow-sw__opt i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.crow-sw--color .crow-sw__opt.is-active { border: 2px solid var(--crow-ink); }
.crow-sw__opt:hover:not(:disabled) { border-color: var(--crow-ink); }
.crow-sw__opt:active:not(:disabled) { transform: scale(.96); }
.crow-sw__opt.is-off { opacity: .35; cursor: not-allowed; background-image: linear-gradient(135deg, transparent 47%, #999 48%, #999 52%, transparent 53%); }
.crow-v2 table.variations td, .crow-v2 table.variations th { display: block; padding: 0 0 6px !important; text-align: start; }
.crow-v2 table.variations tr { display: block; margin-bottom: 10px; }
.crow-v2 table.variations, .crow-v2 table.variations td, .crow-v2 table.variations th, .crow-v2 table.variations tr { border: 0 !important; background: transparent !important; }
.crow-v2 table.variations .label label { font-weight: 800; font-size: 14px; }
.crow-v2 .reset_variations { font-size: 12px; }

/* ---------- 3. Side cart ---------- */
.crow-cart, .crow-qv, .crow-filters { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.crow-cart.is-open, .crow-qv.is-open, .crow-filters.is-open { visibility: visible; }
.crow-cart__overlay, .crow-qv__overlay, .crow-filters__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.is-open > .crow-cart__overlay, .is-open > .crow-qv__overlay, .is-open > .crow-filters__overlay { opacity: 1; }
.crow-cart__panel, .crow-filters__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(92vw, 420px); background: #fff; display: flex; flex-direction: column; padding: 18px 20px; overflow-y: auto; transform: translateX(100%); transition: transform .38s var(--crow-ease); }
[dir="rtl"] .crow-cart__panel, [dir="rtl"] .crow-filters__panel { transform: translateX(-100%); }
.is-open .crow-cart__panel, .is-open .crow-filters__panel { transform: none; }
.crow-cart__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--crow-line); margin-bottom: 12px; font-size: 17px; }
.crow-cart__close { background: none !important; border: 0; color: var(--crow-ink) !important; padding: 6px; cursor: pointer; }
.crow-cart__notice { background: #eef7ee; color: #1a6b2c; padding: 10px 12px; font-weight: 700; margin-bottom: 10px; animation: crow-rise .4s var(--crow-ease); }
.crow-cart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.crow-cart .woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--crow-line); font-size: 14px; }
[dir="rtl"] .crow-cart .woocommerce-mini-cart-item { padding: 12px 0 12px 28px; }
.crow-cart .woocommerce-mini-cart-item img { width: 76px !important; height: 100px !important; object-fit: cover; grid-row: span 3; float: none !important; margin: 0 !important; }
.crow-cart .woocommerce-mini-cart-item a:not(.remove) { font-weight: 700; color: var(--crow-ink); display: contents; }
.crow-cart .woocommerce-mini-cart-item .remove { position: absolute; inset-inline-end: 0; top: 12px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; color: #999 !important; border: 1px solid #ddd; font-size: 15px; }
.crow-cart .woocommerce-mini-cart-item .variation { font-size: 12.5px; color: #777; margin: 2px 0; }
.crow-cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 16px; margin-top: auto; }
.crow-cart .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.crow-cart .woocommerce-mini-cart__buttons .button { display: flex !important; align-items: center; justify-content: center; min-height: 48px; border-radius: 0 !important; font-weight: 800 !important; background: #fff !important; color: var(--crow-ink) !important; border: 1px solid var(--crow-ink) !important; margin: 0 !important; }
.crow-cart .woocommerce-mini-cart__buttons .checkout { background: var(--crow-ink) !important; color: #fff !important; }
.crow-cart .woocommerce-mini-cart__empty-message { text-align: center; color: #777; padding: 30px 0; }
.crow-cart .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; }

/* ---------- 4. Sticky add-to-cart (mobile) ---------- */
.crow-sticky-atc { position: fixed; inset-inline: 0; bottom: 0; z-index: 1100; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--crow-line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .35s var(--crow-ease); }
.crow-sticky-atc.is-show { transform: none; }
.crow-sticky-atc__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crow-sticky-atc__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-sticky-atc__price { font-size: 14px; font-weight: 800; }
.crow-sticky-atc__btn { min-height: 46px; padding: 8px 18px; white-space: nowrap; }
@media (max-width: 767px) {
	.crow-sticky-atc:not([hidden]) { display: flex; }
	.single-product .crow-wa-float { bottom: 84px; }
	.single-product.crow-v2 #tidio-chat-iframe { bottom: 70px !important; }
}

/* ---------- 6. Quick view ---------- */
.crow-qv__panel { position: absolute; top: 50%; left: 50%; width: min(94vw, 920px); max-height: 90vh; overflow-y: auto; background: #fff; padding: 24px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .35s var(--crow-ease), opacity .35s; }
.crow-qv.is-open .crow-qv__panel { transform: translate(-50%, -50%); opacity: 1; }
.crow-qv__close { position: absolute; top: 10px; inset-inline-end: 10px; background: #fff !important; border: 0; color: var(--crow-ink) !important; z-index: 2; cursor: pointer; padding: 6px; }
.crow-qv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.crow-qv__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f3f3f3; }
.crow-qv__info .product_title { font-size: 22px !important; }
.crow-qv__info .woocommerce-product-details__short-description { color: #666; font-size: 14px; }
.crow-qv__more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline; }
.crow-qv__loading { text-align: center; padding: 60px 0; color: #777; }
@media (max-width: 767px) {
	.crow-qv__panel { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; transform: translateY(100%); padding: 18px 16px; }
	.crow-qv.is-open .crow-qv__panel { transform: none; }
	.crow-qv__grid { grid-template-columns: 1fr; gap: 14px; }
	.crow-qv__media img { aspect-ratio: 4 / 5; max-height: 42vh; }
}

/* ---------- 7. Filters ---------- */
.crow-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px; background: #fff; color: var(--crow-ink); border: 1px solid var(--crow-ink); font-weight: 800; cursor: pointer; margin-inline-end: 12px; float: inline-start; }
.crow-filter-btn b { background: var(--crow-ink); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.crow-filter-btn .crow-icon { width: 18px; height: 18px; }
.crow-filters__panel fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.crow-filters__panel legend { font-weight: 800; margin-bottom: 10px; font-size: 15px; }
.crow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crow-chip input { position: absolute; opacity: 0; pointer-events: none; }
.crow-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid #cfcfcf; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .2s; }
.crow-chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.crow-chip input:checked + span { background: var(--crow-ink); color: #fff; border-color: var(--crow-ink); }
.crow-chip input:focus-visible + span { outline: 2px solid var(--crow-ink); outline-offset: 2px; }
.crow-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crow-price-range input { min-height: 44px; border: 1px solid #cfcfcf; padding: 6px 10px; border-radius: 0; }
.crow-filters__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding-top: 14px; }

/* ---------- 13. New Arrivals ---------- */
.crow-new__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.crow-new__head .crow-title { margin: 0 !important; text-align: start; letter-spacing: 1px; }
.crow-menu-new > a { position: relative; }
.crow-menu-new > a::after { content: ""; position: absolute; top: 6px; inset-inline-end: -8px; width: 6px; height: 6px; border-radius: 50%; background: #c0392b; }

/* ---------- 14. Complete the look ---------- */
.crow-ctl { clear: both; padding: 40px 0 10px; }
.crow-ctl .crow-title { margin-bottom: 22px !important; }

/* ---------- 15. Reviews ---------- */
.crow-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.crow-review { margin: 0; padding: 24px; background: #f6f5f3; display: flex; flex-direction: column; gap: 12px; }
.crow-review__stars { color: #c79a2b; letter-spacing: 2px; font-size: 16px; }
.crow-review blockquote { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.9; color: #333; }
.crow-review figcaption { font-size: 13px; color: #777; }
.crow-review figcaption a { font-weight: 700; color: var(--crow-ink); }

@media (max-width: 767px) {
	:root { --crow-ann-h: 30px; }
	.crow-ann { font-size: 11.5px; }
	.admin-bar.crow-v2 .crow-header.is-overlay { top: 46px; }
	.crow-v2 .crow-header.is-compact .crow-logo img { height: 36px; }
	.crow-hero .crow-hero__logo { bottom: 150px; width: 140px !important; }
	.crow-reviews__grid { grid-template-columns: 1fr; }
	.crow-filter-btn { min-height: 40px; }
	.crow-new__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.crow-ann__track, .crow-v2 .crow-hero picture img, .crow-v2 .crow-hero__copy > *, .crow-hero__logo { animation: none !important; }
	.crow-hero__logo { opacity: .95; }
	.crow-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.crow-cart__panel, .crow-filters__panel, .crow-qv__panel, .crow-sticky-atc { transition: none !important; }
}
