/* ==========================================================================
   Fiora – catalogue styles (replaces WooCommerce default CSS)
   ========================================================================== */

/* Catalogue hero (compact: products must be visible on the first screen) */
.catalog-hero { padding-block: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.catalog-hero__inner { display: flex; gap: 20px; align-items: center; }
.catalog-hero__thumb { flex: none; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.catalog-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-hero .page-title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: .2em; }
.catalog-hero .page-lead { font-size: 1rem; max-width: 60ch; }
.catalog-hero .page-lead p { margin: 0; }
.catalog-hero .breadcrumb ol { margin-bottom: 10px; }
@media (min-width: 768px) { .catalog-hero__thumb { width: 120px; height: 120px; border-radius: 28px; } .catalog-hero__inner { gap: 32px; } }

/* Category pills */
.cat-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--f-bg); border-block: 1px solid var(--f-line); }
.cat-nav__list { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__list li { scroll-snap-align: start; flex: none; }
.cat-nav__pill { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--pill); border: 1.5px solid var(--f-line); font-weight: 700; font-size: .9rem; white-space: nowrap; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.cat-nav__pill:hover { border-color: var(--f-dark); color: var(--f-dark); }
.cat-nav__pill.is-active { background: var(--f-dark); color: #fff; border-color: var(--f-dark); }
@media (min-width: 1360px) { .cat-nav__list { padding-inline: 0; } }

/* Catalogue bar */
.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.catalog__count { margin: 0; font-size: .85rem; color: var(--f-muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce-ordering select { padding: 8px 32px 8px 12px; border-radius: var(--pill); border: 1.5px solid var(--f-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23371E30'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center / 18px; font-size: .85rem; font-weight: 700; appearance: none; -webkit-appearance: none; color: var(--f-dark); }
.catalog__empty { text-align: center; padding: 60px 0; }

/* Product grid & cards */
ul.products { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; } }
@media (min-width: 1200px) { ul.products { gap: 40px 28px; } }
ul.products--single { display: block; }
ul.products--scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
ul.products--scroll::-webkit-scrollbar { display: none; }
ul.products--scroll > li { flex: 0 0 68vw; max-width: 320px; scroll-snap-align: start; }
@media (min-width: 768px) { ul.products--scroll > li { flex-basis: 300px; } }
@media (min-width: 1360px) { ul.products--scroll { padding-inline: 0; } }

.card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.card__media { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; background: var(--f-mauve); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.card__img--alt { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; }
.card:hover .card__img { transform: scale(1.04); }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--f-primary); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--pill); }
.card__badge--sale { left: auto; right: 10px; background: var(--f-green); }
.card__badge + .card__badge--sale { }
.card__body { display: flex; flex-direction: column; gap: 4px; }
.card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--f-muted); margin: 0; }
.card__cat a:hover { color: var(--f-primary); }
.card__title { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0; font-weight: 600; line-height: 1.2; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--f-primary); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: .9rem; }
.card .price { white-space: nowrap; }
.card__dims { display: inline-flex; align-items: center; gap: .35em; color: var(--f-muted); font-size: .82rem; font-weight: 600; }
.card__cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 800; color: var(--f-primary); margin-top: 4px; }
.card__cta .icon { transition: transform .25s var(--ease); }
.card__cta:hover .icon { transform: translateX(4px); }
@media (max-width: 767px) { .card__cta { display: none; } .card__meta { flex-direction: column; gap: 2px; } }

/* Price */
.price { font-weight: 800; color: var(--f-dark); font-size: 1rem; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3em; }
.price del { color: var(--f-muted); font-weight: 500; opacity: .8; }
.price ins { text-decoration: none; }
.price__suffix { font-size: .78em; font-weight: 600; color: var(--f-muted); }
.price--ask { font-weight: 700; color: var(--f-green); }
.woocommerce-Price-amount { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */
.product-page__crumbs { padding-top: 18px; }
.product-page__grid { display: grid; gap: 28px; padding-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .product-page__grid { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(32px, 4vw, 72px); align-items: start; } .product-page__summary { position: sticky; top: calc(var(--header-h) + 20px); } }

/* Gallery: photo + thumbnails always visible together (no scrolling to switch photo) */
.pgallery { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pgallery__main { position: relative; grid-area: main; display: flex; flex-direction: column; gap: 10px; }
.pgallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--f-mauve); -webkit-overflow-scrolling: touch; }
.pgallery__track::-webkit-scrollbar { display: none; }
.pgallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/5; max-height: min(72vh, 760px); }
.pgallery__slide a { display: block; height: 100%; cursor: zoom-in; }
.pgallery__img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--f-dark); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; }
.pgallery__arrow:hover { background: var(--f-primary); color: #fff; transform: translateY(-50%) scale(1.06); }
.pgallery__arrow--prev { left: 12px; }
.pgallery__arrow--next { right: 12px; }
.pgallery__dots { display: flex; justify-content: center; gap: 6px; }
.pgallery__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--f-dark-rgb), .2); transition: background .2s, transform .2s; }
.pgallery__dots span.is-active { background: var(--f-primary); transform: scale(1.2); }
.pgallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pgallery__thumbs::-webkit-scrollbar { display: none; }
.pgallery__thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; transition: border-color .2s, opacity .2s; background: var(--f-mauve); opacity: .75; }
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb.is-active { border-color: var(--f-primary); opacity: 1; }
.pgallery__thumb:hover { opacity: 1; }
@media (max-width: 639px) { .pgallery__arrow { display: none; } .pgallery__thumbs { display: none; } }
@media (min-width: 640px) { .pgallery__slide { aspect-ratio: 1; } .pgallery__dots { display: none; } }
@media (min-width: 1024px) {
	/* Thumbnails as a vertical strip on the left, same height as the photo */
	.pgallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumbs main"; gap: 14px; align-items: start; }
	.pgallery__track { grid-area: main; }
	.pgallery__arrow { display: grid; }
	.pgallery__thumbs { grid-area: thumbs; flex-direction: column; overflow-y: auto; overflow-x: hidden; max-height: min(72vh, 760px); padding: 0 2px 0 0; }
	.pgallery__thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); }
	.pgallery__slide { aspect-ratio: 4/5; }
}
@media (min-width: 1280px) { .pgallery__slide { aspect-ratio: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(var(--f-dark-rgb), .96); display: flex; align-items: center; justify-content: center; padding: 20px; animation: lbIn .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--f-primary); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
body.lightbox-open { overflow: hidden; }

/* Summary */
.product-summary { display: flex; flex-direction: column; gap: 18px; }
.product-summary__cat { margin: 0; }
.product-summary__title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0; font-weight: 500; letter-spacing: -.03em; }
.product-summary__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--f-line); }
.product-summary__price-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--f-muted); }
.product-summary__price .price { font-size: clamp(1.5rem, 3vw, 2rem); font-family: var(--f-font-heading); font-weight: 600; color: var(--f-primary); }
.product-summary__price .price__suffix { font-family: var(--f-font-body); font-size: .5em; }
.product-summary__excerpt { color: rgba(var(--f-dark-rgb), .85); font-size: 1.05rem; }
.product-summary__excerpt p:last-child { margin: 0; }
.specs { margin: 0; display: grid; gap: 0; border: 1px solid var(--f-line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.specs__row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; }
.specs__row + .specs__row { border-top: 1px solid var(--f-line); }
.specs dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--f-muted); display: inline-flex; align-items: center; gap: .4em; }
.specs dt .icon { color: var(--f-primary); }
.specs dd { margin: 0; font-weight: 600; }
.product-summary .cta-group { margin-top: 6px; }
.product-summary .cta-group .btn { flex: 1 1 auto; }
.product-summary__note { font-size: .85rem; color: var(--f-muted); margin: 0; }
.product-summary__tags { font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.product-summary__tags-label { font-weight: 700; color: var(--f-muted); margin-right: 4px; }
.product-summary__tags .tag a { display: inline-block; padding: 4px 10px; border-radius: var(--pill); background: rgba(var(--f-dark-rgb), .06); font-weight: 600; }
.product-summary__tags .tag a:hover { background: var(--f-peach); color: var(--f-dark); }

/* Description */
.product-page__description { padding-bottom: clamp(24px, 4vw, 48px); }
.product-desc { display: grid; gap: 12px; padding-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--f-line); }
.product-desc__title { font-size: 1.4rem; margin: 0; }
@media (min-width: 900px) { .product-desc { grid-template-columns: 1fr 2fr; gap: 48px; } }

/* Related */
.related { padding-top: clamp(24px, 4vw, 48px); }

/* Sticky product bar (mobile) – price hidden by default, show when room */
@media (min-width: 480px) { .sticky-cta--product .sticky-cta__price { display: block; font-size: .95rem; flex: none; } .sticky-cta--product .sticky-cta__price .price__suffix { display: none; } }
.sticky-cta--product .btn--wa { flex: 0 0 auto; width: 48px; padding: 0; }
.sticky-cta--product .btn--wa span { display: none; }
@media (min-width: 600px) { .sticky-cta--product .btn--wa { width: auto; padding-inline: 1em; } .sticky-cta--product .btn--wa span { display: inline; } }

/* Hide anything cart-related that a plugin might still print */
.add_to_cart_button, .single_add_to_cart_button, .cart, form.cart, .woocommerce-mini-cart, .wc-block-mini-cart, .quantity, .wc-block-cart, .wc-block-checkout, .woocommerce-shipping-calculator { display: none !important; }

/* Woo notices (kept minimal) */
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--f-line); margin-bottom: 20px; }
.woocommerce-error { border-color: rgba(var(--f-primary-rgb), .4); }
