/* Amiira — WooCommerce: kaarten, archive, filters, product, cart/checkout/account. */

/* Rating */
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; overflow: hidden; font-size: .85rem; line-height: 1; letter-spacing: .1em; color: #e3d8cc; }
.star-rating::before { content: "★★★★★"; }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; color: #f0a31c; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; }

/* Prijs */
.price { font-weight: 700; font-size: 1.05rem; }
.price del { color: var(--c-muted); font-weight: 400; margin-right: 6px; font-size: .9em; }
.price ins { text-decoration: none; color: var(--c-accent); }

/* Productgrid */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid-products { grid-template-columns: repeat(4, 1fr); } .shop-main .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .shop-main .grid-products { grid-template-columns: repeat(4, 1fr); } }

.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card-media { position: relative; background: var(--c-cream); aspect-ratio: 4 / 5; }
.card-media a { display: block; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 6px; background: var(--c-beige); color: #7a4a1d; font-size: .72rem; font-weight: 700; }
.badge-inline { position: static; display: inline-block; background: #f6d5df; color: var(--c-accent-dark); margin-bottom: 12px; }
.card-wish { position: absolute; top: 6px; right: 6px; z-index: 2; }
.card-wish .yith-wcwl-add-to-wishlist { margin: 0; }
.card-wish a, .card-wish svg { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card-title { font: 600 .92rem var(--font-sans); margin: 0; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--c-muted); }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; }
.card-swatches { display: flex; gap: 5px; margin-top: 6px; }
.card-swatches li { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cart-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--c-accent); color: #fff; text-decoration: none; }
.cart-btn:hover { background: var(--c-accent-dark); color: #fff; }
.cart-btn .icon { width: 20px; height: 20px; }
.cart-btn.loading { opacity: .6; }
.cart-btn.added { background: #2f7d4f; }
.added_to_cart { display: none; }

/* Archive */
.archive-hero { display: grid; gap: 16px; margin-bottom: 24px; padding: 28px 20px; background: var(--c-cream); border-radius: var(--radius); overflow: hidden; }
.archive-hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); max-height: 260px; }
.archive-desc { color: #3a3430; max-width: 560px; }
.archive-hero .page-title { margin-bottom: 8px; }
@media (min-width: 900px) {
	.archive-hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 48px; min-height: 300px; }
	.archive-hero:not(.has-image) { grid-template-columns: 1fr; min-height: 0; }
	.archive-hero-img img { max-height: none; height: 100%; max-height: 320px; }
}
.is-umrah .archive-hero { background: linear-gradient(135deg, var(--c-beige), var(--c-cream)); }

.subcats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1) 24px; padding-inline: var(--gutter); scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcats a { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 6px 18px 6px 6px; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.subcats a:hover { border-color: var(--c-accent); }
.subcat-media { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--c-beige); }
.subcat-media img { width: 100%; height: 100%; object-fit: cover; }
.subcat-media:empty + span { padding-left: 10px; }
.subcat-media:empty { display: none; }
@media (min-width: 900px) { .subcats { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

.shop-layout { display: block; padding-bottom: 64px; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--c-muted); font-size: .88rem; margin-right: auto; order: 3; width: 100%; }
.shop-toolbar .woocommerce-ordering { margin: 0; margin-left: auto; }
.shop-toolbar select { min-height: 44px; width: auto; padding-right: 32px; }
.filter-toggle { min-height: 44px; }

/* Filters: drawer op mobiel, sidebar vanaf 900px */
.shop-filters { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(88vw, 380px); overflow-y: auto; background: #fff; padding: 12px 20px 28px; transform: translateX(-100%); transition: transform .25s; visibility: hidden; }
.shop-filters.is-open { transform: none; visibility: visible; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { margin: 0; font-size: 1.4rem; }
.filters-done { width: 100%; margin-top: 20px; }
.filter-reset { display: inline-block; margin: 8px 0; font-size: .85rem; color: var(--c-accent); }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.filter-group h3 { font: 700 .9rem var(--font-sans); margin-bottom: 12px; letter-spacing: 0; }
.filter-list li + li { margin-top: 2px; }
.filter-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 0; text-decoration: none; font-size: .9rem; }
.filter-box { width: 18px; height: 18px; border: 1.5px solid #cdbfb2; border-radius: 4px; flex: none; }
.filter-opt.is-on .filter-box { background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--c-accent); }
.filter-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.filter-opt.is-on .filter-dot { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.price-form { display: flex; align-items: center; gap: 8px; }
.price-form input { min-height: 40px; padding: 6px 10px; }
@media (min-width: 900px) {
	.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
	.shop-filters { position: static; width: auto; transform: none; visibility: visible; padding: 0; overflow: visible; }
	.filters-head .icon-btn, .filters-done, .filter-toggle { display: none; }
	.filters-head h2 { font-size: 1.25rem; }
	.shop-toolbar .woocommerce-result-count { order: 0; width: auto; }
}

/* Paginering */
.woocommerce-pagination { margin-top: 36px; }
.woocommerce-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 10px; text-decoration: none; }
.woocommerce-pagination .page-numbers .current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Meldingen */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: var(--c-cream); border-left: 4px solid var(--c-accent); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.woocommerce-error { border-color: #c0392b; background: #fdf0ee; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; }

/* Single product */
.product-top { display: grid; gap: 24px; padding-bottom: 8px; }
@media (min-width: 900px) { .product-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } .product-summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.product-title { font-size: clamp(1.8rem, 5vw, 2.75rem); margin-bottom: 10px; }
.product-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; text-decoration: none; font-size: .88rem; color: var(--c-muted); }
.product-price { font-size: 1.6rem; margin-bottom: 14px; }
.product-excerpt { color: #3a3430; margin-bottom: 20px; }

.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-cream); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav, .gallery-zoom { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; box-shadow: var(--shadow); }
.gallery-nav { top: 50%; transform: translateY(-50%); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-zoom { top: 12px; right: 12px; }
.gallery-nav .icon, .gallery-zoom .icon { width: 20px; height: 20px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { display: block; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--c-cream); cursor: pointer; opacity: .75; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--c-accent); opacity: 1; }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 899px) { .gallery-nav { display: none; } .gallery-thumbs { display: none; } .gallery-stage { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
.lightbox { max-width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #fff; }
.lightbox::backdrop { background: rgba(20, 18, 17, .8); }
.lightbox img { max-height: 90vh; width: auto; margin: auto; }
.lightbox-close { position: absolute; top: 8px; right: 8px; background: #fff; }

/* Add to cart */
.product-buy form.cart { margin: 0 0 12px; }
.product-buy form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.product-buy .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; }
.quantity { display: inline-flex; }
.quantity input.qty { width: 84px; min-height: 52px; text-align: center; padding: 0 8px; }
.variations { width: 100%; border: 0; margin: 0 0 16px; border-collapse: collapse; }
.variations th, .variations td { display: block; padding: 0; text-align: left; }
.variations th { font-weight: 700; font-size: .9rem; padding-bottom: 8px; }
.variations td { padding-bottom: 14px; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: .8rem; }
.woocommerce-variation-price { margin-bottom: 12px; }
.stock { font-size: .88rem; color: #2f7d4f; margin: 0 0 12px; }
.stock.out-of-stock { color: #c0392b; }
.product-wish { margin-top: 12px; }
.product-wish .yith-wcwl-add-button a, .product-wish .yith-wcwl-wishlistaddedbrowse a, .product-wish .yith-wcwl-wishlistexistsbrowse a {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1.5px solid var(--c-accent); border-radius: 10px; color: var(--c-accent); font-weight: 600; text-decoration: none;
}

/* Swatches */
.swatch-select select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.swatch-select:not(:has(.swatches)) select { position: static; width: 100%; height: auto; opacity: 1; pointer-events: auto; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; padding: 5px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.swatch-dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch[aria-checked="true"] { border-color: var(--c-accent); }
.swatch:disabled { opacity: .35; cursor: not-allowed; }

.product-usps { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.product-usps li { display: flex; gap: 14px; align-items: center; font-size: .88rem; }
.product-usps .icon { color: var(--c-accent); width: 30px; height: 30px; flex: none; }
.product-usps strong { display: block; }
@media (min-width: 600px) { .product-usps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .product-usps { grid-template-columns: 1fr; } }

/* Kit */
.kit-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kit-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.kit-item { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kit-media { aspect-ratio: 4 / 3; background: var(--c-cream); }
.kit-media img { width: 100%; height: 100%; object-fit: cover; }
.kit-label { padding: 12px 14px 14px; font-size: .9rem; }
.kit-label strong { display: block; }
.kit-label span { color: var(--c-muted); font-size: .85rem; }

/* Accordion */
.accordion { border-top: 1px solid var(--c-line); max-width: 860px; }
.accordion details { border-bottom: 1px solid var(--c-line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--c-accent); }
.accordion details[open] summary::after { content: "−"; }
.accordion-body { padding-bottom: 20px; color: #3a3430; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 8px 0; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 400; }
.woocommerce-product-attributes th { width: 40%; font-weight: 600; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 12px; margin-bottom: 20px; }
#reviews img.avatar { width: 44px; height: 44px; border-radius: 50%; }
#reviews .comment-form-rating select { display: none; }
p.stars a { display: inline-block; width: 1.4em; overflow: hidden; text-indent: -999px; position: relative; height: 1.4em; }
p.stars a::before { content: "★"; position: absolute; left: 0; text-indent: 0; font-size: 1.4rem; color: #e3d8cc; }
p.stars:hover a::before, p.stars.selected a::before { color: #f0a31c; }
p.stars a:hover ~ a::before { color: #e3d8cc; }

/* Waarom */
.why { background: var(--c-cream); margin-inline: calc(50% - 50vw); padding: 40px var(--gutter); }
.why-inner { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 24px; }
.why-copy .section-title { margin-bottom: 8px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.why-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .85rem; font-weight: 600; }
.why-list .icon { color: var(--c-accent); width: 30px; height: 30px; }
@media (min-width: 900px) { .why-inner { grid-template-columns: 1fr 2fr; align-items: center; } .why-list { grid-template-columns: repeat(4, 1fr); } }

/* Mobiele sticky add-to-cart */
@media (max-width: 899px) {
	.single-product .product-buy .single_add_to_cart_button { position: relative; }
	.single-product .site-footer { padding-bottom: 0; }
}

/* Cart / checkout / account */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table img { width: 64px; border-radius: 8px; }
.woocommerce .cart-collaterals { max-width: 480px; margin-left: auto; }
.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce #place_order { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; background: var(--c-accent); color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.woocommerce .button { min-height: 44px; padding: 0 20px; background: var(--c-accent); color: #fff; border-radius: 10px; border: 0; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
@media (min-width: 720px) { .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48%; float: left; } .woocommerce form .form-row-last { float: right; } .woocommerce form .form-row-wide { clear: both; } }
.woocommerce-checkout #payment { background: var(--c-cream); border-radius: var(--radius); padding: 16px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
@media (min-width: 900px) {
	.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
	.woocommerce-MyAccount-navigation a { border-radius: 10px; }
}
@media (max-width: 719px) {
	.woocommerce table.shop_table_responsive tr td::before { content: attr(data-title) ": "; font-weight: 600; }
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr, .woocommerce table.shop_table_responsive td { display: block; text-align: right; }
}

.swatch.swatch-text { width: auto; min-width: 44px; height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.swatch.swatch-text[aria-checked="true"] { border-color: var(--c-accent); color: var(--c-accent); }

/* YITH-wishlist: alleen hartje op kaarten, volle knop op productpagina */
.card-wish .yith-wcwl-add-to-wishlist, .card-wish .yith-wcwl-add-button { margin: 0; }
.card-wish a { position: relative; width: 36px; height: 36px; font-size: 0; line-height: 0; color: transparent; text-decoration: none; overflow: hidden; }
.card-wish a::before { content: ""; position: absolute; inset: 0; background: var(--c-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.2-9.4C1.6 7.2 3.8 4.200 6.800 4.200c2 0 3.500 1 5.200 3 1.700-2 3.200-3 5.200-3 3 0 5.200 3 4 6.400C19.500 15.400 12 20 12 20Z'/%3E%3C/svg%3E") center/20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.2-9.4C1.6 7.2 3.8 4.200 6.800 4.200c2 0 3.500 1 5.200 3 1.700-2 3.200-3 5.200-3 3 0 5.200 3 4 6.400C19.500 15.400 12 20 12 20Z'/%3E%3C/svg%3E") center/20px no-repeat; }
.card-wish .yith-wcwl-wishlistaddedbrowse a::before, .card-wish .yith-wcwl-wishlistexistsbrowse a::before { background: var(--c-accent); }
.card-wish img, .card-wish svg, .card-wish .ajax-loading { display: none; }
.product-wish .yith-wcwl-add-to-wishlist, .product-wish .yith-wcwl-add-button { width: 100%; margin: 0; }
.product-wish a { width: 100%; }
.product-wish img.yith-wcwl-icon, .product-wish svg { width: 20px; height: 20px; }

.btn-block { width: 100%; min-height: 52px; }
.btn:disabled { background: var(--c-beige); color: var(--c-muted); cursor: not-allowed; }
.badge:has(+ *), .badge { max-width: calc(100% - 56px); }

/* ===== v2: design update ===== */
.grid-products.cols-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-products.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-products.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.card-media { aspect-ratio: 1 / 1.05; }
.card-body { gap: 4px; }
.card-body .price { font-size: .95rem; }
.card-stock { margin: 0; color: var(--c-muted); font-size: .8rem; }
.card-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: auto; padding: 0 12px; border: 0; border-radius: 8px; background: var(--c-accent); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.card-body > .price + .card-swatches, .card-body > .price + .card-stock { margin-top: 0; }
.card-body > :nth-last-child(2):not(.card-btn) { margin-bottom: 8px; }
.card-btn:hover { background: var(--c-accent-dark); color: #fff; }
.card-btn .icon { width: 16px; height: 16px; }
.card-btn.added { background: #2f7d4f; }
.card-btn.loading { opacity: .6; }
.card-foot, .cart-btn { display: none; }
.badge { max-width: calc(100% - 60px); }

/* Archive hero */
.archive-hero { padding: 0; background: var(--c-cream); gap: 0; }
.archive-hero-copy { padding: 28px 24px; }
.archive-hero .hero-eyebrow { margin-bottom: 10px; }
.archive-hero-img { order: 2; }
.archive-hero-img img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 0; }
@media (min-width: 900px) {
	.archive-hero { grid-template-columns: 1fr 1fr; min-height: 260px; }
	.archive-hero:not(.has-image) { grid-template-columns: 1fr; }
	.archive-hero-copy { padding: 40px 48px; align-self: center; }
	.archive-hero-img { position: relative; }
	.archive-hero-img img { position: absolute; inset: 0; max-height: none; }
}
.is-umrah .archive-hero { background: var(--c-cream); }

/* Subcategory icons */
.subcats { gap: 8px; justify-content: flex-start; }
.subcats a { flex-direction: column; border: 0; padding: 0; gap: 8px; width: 92px; white-space: normal; text-align: center; font-size: .8rem; }
.subcat-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fbeef2; color: var(--c-accent); transition: background .2s; }
.subcat-icon .icon { width: 28px; height: 28px; }
.subcats a:hover .subcat-icon { background: #f6d5df; }
@media (min-width: 900px) { .subcats { justify-content: space-between; flex-wrap: nowrap; } .subcats a { width: auto; flex: 1; } }

/* Toolbar */
.shop-toolbar { justify-content: space-between; }
.shop-count { order: 0; margin: 0; font: 500 1.2rem var(--font-serif); }
.shop-count span { font: 400 .85rem var(--font-sans); color: var(--c-muted); margin-left: 6px; }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .85rem; color: var(--c-muted); }
.sort .woocommerce-ordering { margin: 0; }
.sort select { min-height: 40px; font-size: .85rem; }
.shop-toolbar .woocommerce-result-count { display: none; }

/* Filters v2 */
.cat-tree a { display: flex; align-items: center; gap: 4px; min-height: 34px; text-decoration: none; font-size: .9rem; }
.cat-tree .icon { width: 12px; height: 12px; color: var(--c-muted); }
.cat-tree li:first-child a { font-weight: 600; }
.cat-tree [aria-current] { color: var(--c-accent); font-weight: 600; }
.count { color: var(--c-muted); font-size: .85em; margin-left: auto; }
.cat-tree .count { margin-left: 4px; }
.filter-opt .count { margin-left: 4px; }
.filter-box[style] { border-radius: 50%; border-color: rgba(0, 0, 0, .2); background: var(--swatch); }
.filter-opt.is-on .filter-box[style] { background: var(--swatch); outline: 2px solid var(--c-accent); outline-offset: 2px; }
.range { position: relative; height: 24px; margin: 6px 4px 0; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--c-line); }
.range::after { content: ""; position: absolute; top: 10px; height: 4px; border-radius: 2px; background: var(--c-accent); left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); }
.range input { position: absolute; inset: 0; width: 100%; min-height: 0; height: 24px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
.range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c-accent); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c-accent); cursor: pointer; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.range-label { margin: 10px 0 0; font-size: .85rem; color: var(--c-muted); }
.range-label output { font-weight: 600; color: var(--c-ink); }
.price-form { display: block; }

/* Single product v2 */
.badge-inline { background: #f6d5df; color: var(--c-accent-dark); }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.qty-fake { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 10px; min-height: 52px; color: var(--c-muted); }
.qty-fake span { display: inline-flex; width: 36px; justify-content: center; align-items: center; }
.qty-fake .icon { width: 16px; height: 16px; }
.btn-muted { flex: 1; min-height: 52px; background: var(--c-beige); color: #8a7c70; }
.btn-muted:hover { background: var(--c-accent); color: #fff; }
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.quantity input.qty { width: 48px; min-height: 52px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--c-muted); }
.qty-btn:hover { color: var(--c-accent); }
.variations th label::after { content: ""; }
.kit-media { aspect-ratio: 4 / 3; }

/* Notify dialog */
.notify-dialog { width: min(92vw, 420px); padding: 28px 24px 24px; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.notify-dialog::backdrop { background: rgba(20, 18, 17, .55); }
.notify-form h2 { font-size: 1.6rem; margin-bottom: 8px; }
.notify-product { font-weight: 600; margin: 0 0 6px; }
.notify-form input[type="email"] { margin: 8px 0 12px; }
.notify-close { position: absolute; top: 6px; right: 6px; }
.notify-msg { min-height: 1.5em; font-size: .9rem; margin: 0 0 8px; }
.notify-msg.is-error { color: #c0392b; }
.notify-msg.is-ok { color: #2f7d4f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* equal card images */
.card-media > a { position: absolute; inset: 0; display: block; }
.card-media > a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .badge, .card-media .card-wish { z-index: 2; }

@media (min-width: 900px) {
	.archive-hero { align-items: stretch; padding: 0; }
	.archive-hero-img { min-height: 260px; }
}

/* square images (1:1) as in the design */
.card-media { aspect-ratio: 1 / 1; }

/* Shop landing: category overview */
.landing-hero { background: var(--c-cream); border-radius: var(--radius); overflow: hidden; margin: 0 var(--gutter); }
.landing-hero .container { padding-inline: 0; }
.landing-hero-inner { display: grid; }
.landing-hero-copy { padding: 32px 24px; }
.landing-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: 12px; }
.landing-hero-media img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; }
@media (min-width: 900px) {
	.landing-hero-inner { grid-template-columns: 1fr 1fr; min-height: 320px; }
	.landing-hero-copy { padding: 48px; align-self: center; }
	.landing-hero-media { position: relative; }
	.landing-hero-media img { position: absolute; inset: 0; max-height: none; object-position: 40% 20%; }
}
@media (min-width: 1280px) { .landing-hero { margin-inline: auto; max-width: calc(var(--maxw) - 2 * var(--gutter)); } }
.landing-cats { padding-block: 24px 40px; }
.landing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .landing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .landing-grid { grid-template-columns: repeat(4, 1fr); } }
.landing-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.landing-card:hover { box-shadow: 0 8px 26px rgba(40, 20, 10, .13); transform: translateY(-2px); color: inherit; }
.landing-media { display: block; aspect-ratio: 16 / 10; background: var(--c-cream); }
.landing-media img { width: 100%; height: 100%; object-fit: cover; }
.landing-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; flex: 1; background: var(--c-cream); }
.landing-icon { color: var(--c-accent); }
.landing-icon .icon { width: 28px; height: 28px; }
.landing-body strong { font: 600 1.1rem var(--font-sans); }
.landing-text { color: #3a3430; font-size: .88rem; }
.landing-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.landing-link .icon { width: 14px; height: 14px; color: var(--c-accent); }

.landing-media { position: relative; }
.landing-media img { position: absolute; inset: 0; }
.landing-link { white-space: nowrap; }
@media (max-width: 479px) { .landing-link { font-size: .76rem; padding: 8px 12px; gap: 6px; } .landing-body { padding: 14px 12px; } }

/* ===== Category + shop hero: same overlapping fade ===== */
.archive-hero, .landing-hero { position: relative; overflow: hidden; display: block; background: var(--c-cream); padding: 0; min-height: 230px; }
.archive-hero-copy, .landing-hero-copy { position: relative; z-index: 2; max-width: 68%; padding: 28px 20px; }
.archive-hero-img, .landing-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 72%; min-height: 0; z-index: 1; order: 0; }
.archive-hero-img img, .landing-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.archive-hero-img::after, .landing-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-cream) 0%, rgba(var(--cream-rgb), .9) 22%, rgba(var(--cream-rgb), .4) 50%, rgba(var(--cream-rgb), 0) 80%); }
.landing-hero-inner { display: block; min-height: 0; position: static; }
.landing-hero .container { position: static; }
@media (min-width: 900px) {
	.archive-hero, .landing-hero { min-height: 300px; }
	.archive-hero:not(.has-image) { min-height: 0; }
	.archive-hero-copy, .landing-hero-copy { max-width: 560px; padding: 48px; }
	.archive-hero-img, .landing-hero-media { width: 62%; }
	.archive-hero-img::after, .landing-hero-media::after { background: linear-gradient(90deg, var(--c-cream) 0%, rgba(var(--cream-rgb), .92) 14%, rgba(var(--cream-rgb), .5) 36%, rgba(var(--cream-rgb), 0) 66%); }
}
.archive-hero:not(.has-image) .archive-hero-copy { max-width: none; }

/* Category + shop hero: vertically centered text */
.archive-hero { display: flex; align-items: center; }
.archive-hero-copy { width: 100%; }
.landing-hero .landing-hero-inner { display: flex; align-items: center; min-height: 230px; }
.landing-hero-copy { width: 100%; }
@media (min-width: 900px) { .landing-hero .landing-hero-inner { min-height: 300px; } .archive-hero-copy, .landing-hero-copy { width: auto; } }

/* Mobile category/shop hero: more compact */
@media (max-width: 899px) {
	.archive-hero, .landing-hero { min-height: 240px; }
	.archive-hero-copy, .landing-hero-copy { max-width: 62%; padding: 22px 16px 22px 20px; }
	.archive-hero .page-title, .landing-hero h1 { font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.12; }
	.archive-hero .hero-eyebrow, .landing-hero .hero-eyebrow { font-size: .66rem; }
	.archive-desc, .landing-hero .hero-text { font-size: .8rem; line-height: 1.45; }
	.archive-hero .btn, .landing-hero .btn { min-height: 40px; padding: 0 14px; font-size: .8rem; }
	.archive-hero-img img, .landing-hero-media img { object-position: 78% center; }
	.archive-hero-img, .landing-hero-media { width: 80%; }
}
