/*
Theme Name: FIBRA Commerce
Theme URI: https://fibraapparel.com/
Author: FIBRA
Description: FIBRA's existing apparel look with WooCommerce shopping, cart and checkout.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fibra-commerce
*/

html, body { height:auto; min-height:100%; overflow-x:hidden; overflow-y:auto; }
#store { height:auto; min-height:100vh; overflow:visible; }
.topline a { margin-left:auto; position:relative; z-index:1; color:#f8f7f3; font-size:.66rem; letter-spacing:.12em; }
.topline a:hover { text-decoration:underline; }
.header { position:relative; }
.header .fibra-home { grid-column:1; grid-row:1; justify-self:start; }
.header .nav > a { display:flex; align-items:center; }
.fibra-search { display:flex; align-items:center; justify-content:center; gap:12px; padding:16px 5%; border-bottom:1px solid var(--line); }
.fibra-search[hidden] { display:none; }
.fibra-search input { width:min(450px,60vw); padding:12px; border:1px solid var(--line); background:#fff; }
.fibra-search button, .fibra-commerce-page button, .fibra-commerce-page .button, .fibra-product-card .button {
  min-height:42px; padding:10px 18px; border:1px solid var(--ink); background:var(--ink); color:#fff; border-radius:0; cursor:pointer;
}
.fibra-search button:hover, .fibra-commerce-page button:hover, .fibra-commerce-page .button:hover, .fibra-product-card .button:hover { background:#444; color:#fff; }
.fibra-cart-link { position:relative; }
.fibra-cart-count { position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; display:grid; place-items:center; padding:0 3px; border-radius:50%; background:#101010; color:#fff; font-size:11px; }
.fibra-cart-link:hover .fibra-cart-count { background:#fff; color:#101010; }
.hero { min-height:560px; }
.hero-copy .primary, .hero-copy .secondary { text-decoration:none; }
.fibra-shop-preview { padding:clamp(56px,7vw,96px) clamp(18px,4vw,62px); background:#eee8e0; }
.fibra-shop-inner { max-width:1320px; margin:0 auto; }
.fibra-shop-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:26px; }
.fibra-shop-head h2 { margin:10px 0 0; font-size:clamp(2.4rem,4.2vw,4.9rem); line-height:.95; }
.fibra-shop-head > a { border-bottom:1px solid currentColor; font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; padding-bottom:5px; white-space:nowrap; }
.fibra-shop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:25px 14px; }
.fibra-product-card { min-width:0; }
.fibra-product-card img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; background:#e1d8cb; }
.fibra-product-card h2, .fibra-product-card h3 { margin:12px 0 8px; font:400 1.24rem/1.2 Georgia,serif; }
.fibra-price { margin:0 0 12px; font-size:.9rem; }
.fibra-empty { font:400 1.4rem Georgia,serif; }
.fibra-commerce-page { max-width:1240px; min-height:55vh; margin:0 auto; padding:clamp(35px,5vw,76px) clamp(18px,4vw,52px) 90px; }
.fibra-page-title, .fibra-commerce-page .page-title, .fibra-commerce-page .product_title { margin:0 0 32px; font:400 clamp(2.5rem,5vw,4.9rem)/.98 Georgia,serif; letter-spacing:-.045em; }
.fibra-commerce-page .woocommerce-breadcrumb { margin-bottom:30px; color:#555; }
.fibra-commerce-page ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px 14px; padding:0; margin:0; }
.fibra-commerce-page ul.products:before, .fibra-commerce-page ul.products:after { display:none; }
.fibra-commerce-page ul.products li.product { width:auto; float:none; margin:0; min-width:0; }
.fibra-commerce-page ul.products li.product img { aspect-ratio:4/5; object-fit:cover; }
.fibra-commerce-page ul.products li.product h2 { color:var(--ink); font:400 1.25rem Georgia,serif; }
.fibra-commerce-page ul.products li.product .price, .fibra-commerce-page div.product p.price { color:var(--ink); }
.fibra-commerce-page .woocommerce a.button, .fibra-commerce-page .woocommerce button.button, .fibra-commerce-page .woocommerce input.button { border-radius:0; background:var(--ink); color:#fff; }
.fibra-commerce-page .woocommerce a.button:hover, .fibra-commerce-page .woocommerce button.button:hover, .fibra-commerce-page .woocommerce input.button:hover { background:#444; color:#fff; }
.fibra-commerce-page input:not([type=checkbox]):not([type=radio]), .fibra-commerce-page select, .fibra-commerce-page textarea { max-width:100%; padding:10px 12px; border:1px solid #8c8277; background:#fff; color:#101010; }
.fibra-commerce-page .woocommerce-message, .fibra-commerce-page .woocommerce-info { border-top-color:#101010; }
.fibra-commerce-page .woocommerce-message::before, .fibra-commerce-page .woocommerce-info::before { color:#101010; }
.fibra-commerce-page a:not(.button):hover { text-decoration:underline; }
.fibra-footer { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; padding:30px clamp(18px,4vw,62px); background:#101010; color:#f7f3ee; }
.fibra-footer span { font:400 2rem Georgia,serif; letter-spacing:.1em; }
.fibra-footer nav { display:flex; flex-wrap:wrap; gap:25px; font-size:.75rem; text-transform:uppercase; letter-spacing:.14em; }
.fibra-footer a:hover { text-decoration:underline; }
@media(max-width:900px) {
  .fibra-shop-grid, .fibra-commerce-page ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .topline a { font-size:.56rem; }
  .header { height:auto; min-height:72px; grid-template-columns:1fr auto; grid-template-rows:72px auto; column-gap:8px; padding:0 16px 9px; }
  .header .fibra-home { grid-column:1; grid-row:1; }
  .header .nav { grid-column:1/-1; grid-row:2; display:flex; gap:22px; justify-self:stretch; overflow-x:auto; height:auto; padding:6px 0; scrollbar-width:thin; }
  .header .actions { grid-column:2; grid-row:1; }
  .header .icon-button:first-child { display:grid; }
  .hero { height:auto; min-height:0; display:flex; flex-direction:column-reverse; }
  .hero-visual { height:48vh; min-height:300px; }
  .hero-copy { height:auto; min-height:320px; padding:24px 22px 58px; }
  .hero-copy .edition { bottom:14px; }
  .fibra-shop-head { display:block; }
  .fibra-shop-head > a { display:inline-block; margin-top:20px; }
  .fibra-commerce-page { padding:32px 17px 70px; }
  .fibra-commerce-page div.product div.images, .fibra-commerce-page div.product div.summary { float:none; width:100%; }
}
@media(max-width:380px) {
  .fibra-shop-grid, .fibra-commerce-page ul.products { grid-template-columns:1fr; }
  .header .icon-button { width:32px; height:32px; }
}


/* Country selection landing: retain the existing FIBRA store below it. */
.country-layer[hidden]{display:none!important}
.country-layer{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;overflow:hidden;background:#121111}
.country-image{position:absolute;inset:0;overflow:hidden}
.country-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;animation:slowZoom 16s ease-out both}
.country-image:after{content:"";position:absolute;inset:0;background:rgba(12,11,10,.35);backdrop-filter:blur(1px)}
.selector-side{position:relative;z-index:2;display:grid;place-items:center;width:min(400px,calc(100vw - 36px));min-height:0;isolation:auto}
.selector-side:before{display:none}
.selector-card{box-sizing:border-box;width:100%;max-width:400px;margin:0;padding:24px 20px 20px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(27,24,24,.7);color:#f8f5ef;box-shadow:0 24px 75px rgba(0,0,0,.34);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);animation:cardIn .65s var(--ease) both}
.selector-card:hover{transform:none;background:rgba(27,24,24,.7);box-shadow:0 24px 75px rgba(0,0,0,.34)}
.selector-card .brand{display:block;width:145px;max-width:70%;height:auto;margin:0 auto 17px;filter:brightness(0) invert(1)}
.country-select{display:block;width:100%;height:44px;padding:0 12px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:rgba(255,255,255,.18);color:#fff;font-family:inherit;font-size:.82rem;font-weight:400;line-height:1.2;outline:none}
.country-select:focus{border-color:rgba(255,255,255,.58);box-shadow:0 0 0 2px rgba(255,255,255,.14)}
.country-select option{background:#f2f0eb;color:#191716}
.selector-close{right:12px;top:10px;border-color:rgba(255,255,255,.22);background:rgba(20,18,18,.55);color:#fff}
.selector-close:hover{background:rgba(255,255,255,.16);color:#fff;transform:none}
.country-open{overflow:hidden}
@media(max-width:600px){.selector-card{padding:22px 18px 18px;border-radius:13px}.selector-card .brand{width:132px;margin-bottom:15px}.country-image img{object-position:center}}

/* Requested selector adjustment: show the full photo with a clear, right-side panel. */
.country-layer{background:#d7c8b5}
.country-image img{object-fit:contain!important;object-position:center!important;animation:none!important;transform:none!important;filter:none!important}
.country-image:after{background:rgba(12,11,10,.12)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.selector-side{justify-self:end;width:min(360px,calc(100vw - 36px));margin-right:clamp(20px,7vw,100px)}
.selector-card,.selector-card:hover{background:rgba(27,24,24,.14)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none!important}
.selector-close{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
@media(max-width:680px){.country-image img{object-fit:contain!important}.selector-side{justify-self:center;margin-right:0}}

/* Small interaction cues only; the backdrop stays static and sharp. */
.selector-card{animation:selectorFadeIn .32s ease-out both!important}
.country-select{cursor:pointer;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.country-select:hover{background:rgba(255,255,255,.25);border-color:rgba(255,255,255,.34)}
.country-select:focus-visible{outline:2px solid rgba(255,255,255,.78);outline-offset:3px;box-shadow:0 0 0 4px rgba(255,255,255,.12)}
#changeCountry{transition:color .18s ease,opacity .18s ease}
#changeCountry:hover{opacity:.76}
#changeCountry:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@keyframes selectorFadeIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.selector-card{animation:none!important}.country-select,#changeCountry{transition:none!important}}

/* Keep the selector in the clear space above and to the right of the stitched logo. */
@media(min-width:681px){
  .selector-side{position:absolute;top:clamp(98px,13.5vh,165px);left:47%;display:block;width:min(310px,29vw);margin:0}
  .selector-card{width:100%;max-width:none;padding:16px}
  .selector-card .brand{width:110px;margin-bottom:10px}
  .country-select{height:42px}
}
