/*
Theme Name: Beach Bunnies
Description: Editorial WooCommerce theme for Beach Bunnies Boutique.
Version: 1.0.0
Requires PHP: 8.0
*/
:root{--bb-text:#211e1b;--bb-night:#332924;--bb-sand:#f2ede5;--bb-line:#d8d0c5;--bb-white:#fff}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;color:var(--bb-text);background:var(--bb-white);font:15px/1.5 Arial,Helvetica,sans-serif}
a{color:inherit;text-underline-offset:3px}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid #87674e;outline-offset:4px}
button,input,select,textarea{font:inherit;color:inherit}
button,summary{cursor:pointer}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.bb-skip:focus{position:fixed;z-index:9;width:auto;height:auto;margin:0;padding:12px;clip:auto;background:#fff}
.bb-content{width:100%;max-width:1540px;padding-inline:clamp(16px,3vw,48px);margin-inline:auto}
.bb-announcement{text-align:center;padding:6px 16px;background:var(--bb-sand);font-size:12px}
.bb-header{position:relative;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;min-height:76px;padding-inline:clamp(12px,3vw,48px);background:#fff;border-bottom:1px solid var(--bb-line)}
.bb-brand{grid-column:2;display:flex;align-items:center;justify-self:center;gap:10px;text-decoration:none;font:600 18px Georgia,serif}
.bb-brand-label{letter-spacing:.12em}
.bb-brand img{display:block;width:66px;height:66px;object-fit:contain}
.bb-desktop-nav{grid-column:1;grid-row:1;display:flex;align-items:center;gap:clamp(8px,1.3vw,22px);white-space:nowrap}
.bb-desktop-nav>a,.bb-desktop-nav summary{display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:13px}
summary{list-style:none}
summary::-webkit-details-marker{display:none}
.bb-nav-menu summary::after{content:"";margin-left:5px;width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg) translateY(-2px)}
.bb-nav-menu[open] summary::after{transform:rotate(225deg)}
.bb-mega{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.bb-desktop-nav .bb-mega{position:absolute;top:100%;inset-inline:0;padding:30px clamp(16px,4vw,70px);background:#fff;box-shadow:0 16px 20px #39281d1d;border-top:1px solid var(--bb-line)}
.bb-mega-group p{font-weight:bold;margin:0 0 6px}
.bb-mega a{display:block;position:relative;padding:4px 0;text-decoration:none}
.bb-mega a:hover,.bb-desktop-nav>a:hover{text-decoration:underline}
.bb-mega-photo img{max-height:232px;width:100%;object-fit:cover}
.bb-header-tools{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:4px}
.bb-icon-button{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:inherit;text-decoration:none}
.bb-search-panel{position:absolute;right:10px;top:100%;width:min(440px,calc(100vw - 20px));padding:20px;background:#fff;box-shadow:0 12px 20px #39281d26}
.bb-search,.bb-newsletter form{display:flex;gap:6px}
.bb-search input,.bb-newsletter input{width:100%;min-width:0;min-height:44px;border:1px solid var(--bb-line);padding:8px 12px;background:#fff}
.bb-search button,.bb-newsletter button{border:1px solid var(--bb-night);background:var(--bb-night);color:#fff;padding:8px 12px}
.bb-mobile-toggle {display:none}
.bb-mobile-drawer{width:min(390px,90vw);max-height:none;height:100dvh;border:0;margin:0;padding:16px;overflow:auto;overscroll-behavior:contain;color:var(--bb-text)}
.bb-mobile-drawer::backdrop{background:#211e1b88}
.bb-drawer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.bb-drawer-top a{font-family:Georgia,serif;text-decoration:none}
.bb-mobile-close{font-size:26px}
.bb-mobile-drawer nav>details,.bb-mobile-drawer nav>a,.bb-drawer-account{display:block;border-bottom:1px solid var(--bb-line)}
.bb-mobile-drawer nav>a,.bb-mobile-drawer summary,.bb-drawer-account{min-height:46px;padding:12px 4px;text-decoration:none}
.bb-mobile-drawer .bb-mega{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 6px 14px}
.bb-mobile-drawer .bb-mega a{min-height:35px}
.bb-mobile-drawer .bb-mega-photo{display:none}
.bb-hero,.bb-editorial{position:relative;background:#464039;overflow:hidden;color:#fff}
.bb-hero{min-height:420px;height:clamp(480px,61vw,850px)}
.bb-hero picture,.bb-hero img,.bb-editorial img{display:block;width:100%;height:100%}
.bb-hero img{object-fit:cover;object-position:center}
.bb-hero::after,.bb-category-grid>a::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#211b17ae,transparent 65%)}
.bb-hero-copy{position:absolute;inset:auto 6% clamp(26px,5vw,72px);z-index:1}
.bb-hero-copy{text-align:right}
.bb-hero h1,.bb-editorial h2{margin:0 0 18px;font:400 clamp(36px,5.5vw,84px)/1.04 Georgia,serif}
.bb-button{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;background:var(--bb-night);color:#fff;text-decoration:none;font-size:13px}
.bb-button-light{background:#fff;color:var(--bb-text)}
.bb-section-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:30px 0 12px}
.bb-section-heading h2,.bb-instagram h2{margin:0;font-size:19px;font-weight:500}
.bb-home-products{padding-bottom:26px}
.bb-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.bb-category-grid>a{position:relative;display:block;aspect-ratio:0.93;background:var(--bb-night);color:#fff}
.bb-category-grid img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 40%}
.bb-category-grid>a>div{position:absolute;z-index:1;inset:auto 6% 5%}
.bb-category-grid h2{margin:0 0 6px;font:400 clamp(28px,4vw,58px)/1 Georgia,serif}
.bb-category-grid span{text-decoration:underline}
.bb-editorial{display:grid;grid-template-columns:1fr 1fr;min-height:clamp(330px,43vw,640px);background:var(--bb-night)}
.bb-editorial img{max-height:640px;background:#efefef;object-fit:contain}
.bb-editorial>div{align-self:center;padding:32px clamp(20px,5vw,72px)}
.bb-instagram{padding-block:24px 32px}
.bb-instagram-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.bb-instagram-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.bb-footer{background:var(--bb-sand);padding-block:54px 20px}
.bb-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.45fr);gap:32px}
.bb-footer-grid h2{font-size:15px;margin:0 0 14px}
.bb-footer-grid p{margin:0 0 12px}
.bb-footer-grid>div>a{display:block;margin:5px 0}
.bb-social{display:flex;gap:6px;margin:-3px 0 7px}
.bb-social a{display:grid;width:40px;height:40px;place-items:center}
.bb-social svg{width:19px;height:19px}
.bb-footer-base{display:flex;justify-content:space-between;align-items:center;margin-top:28px;gap:12px}
.bb-footer-base img{width:94px;max-height:75px;object-fit:contain}
.bb-page,.bb-store{padding-block:30px 60px}
.bb-page article{max-width:850px}
.bb-page article:has(.bb-about){max-width:1120px;margin-inline:auto}
.bb-about>section{margin-bottom:clamp(38px,6vw,76px)}
.bb-about h2{font:400 clamp(25px,3.4vw,46px)/1.1 Georgia,serif;margin-block:0 18px}
.bb-about .bb-about-label{font-size:14px;margin-block:0 12px}
.bb-about-lead{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(24px,5vw,70px);background:var(--bb-sand);padding:clamp(18px,4vw,48px)}
.bb-about figure{margin:0;min-width:0}
.bb-about figure img{width:100%;height:auto;display:block}
.bb-about figcaption{margin-top:8px;font-size:14px}
.bb-about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,3vw,36px);margin-top:24px}
@media(max-width:620px){.bb-about-lead{grid-template-columns:1fr}}
.bb-page p{max-width:75ch}
.bb-page h1,.bb-store h1{font:400 clamp(30px,4vw,54px)/1.12 Georgia,serif}
.bb-catalog-navigation{display:flex;gap:4px 18px;flex-wrap:wrap;border-bottom:1px solid var(--bb-line);padding-bottom:14px;margin-bottom:22px}
.bb-catalog-navigation a{display:flex;align-items:center;min-height:36px;text-decoration:none}
.bb-catalog-navigation a:hover,.bb-catalog-navigation a:focus-visible{text-decoration:underline}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products[class] li.product,.woocommerce-page ul.products[class] li.product{float:none;margin:0;width:auto;min-width:0;display:flex;flex-direction:column}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{flex:1}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:2/3;object-fit:contain;background:#f6f3ef;margin-bottom:6px}
.woocommerce ul.products li.product .button{align-self:flex-start;margin-top:6px;min-height:40px;font-size:13px}
.woocommerce div.product div.images img{object-fit:contain}
.woocommerce div.product .woocommerce-product-gallery{container-type:inline-size;opacity:1!important}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image{width:100cqw;float:left}
.woocommerce div.product form.cart .variations select,.woocommerce .woocommerce-ordering select{max-width:100%}
.woocommerce div.product form.cart .variations select{min-height:44px}
.woocommerce div.product form.cart .variations .bb-variation-select{position:absolute;width:1px;height:1px;min-width:0;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bb-variation-options{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.bb-variation-options button{min-width:44px;min-height:44px;padding:6px 10px;border:1px solid var(--bb-line);background:#fff}
.bb-variation-options button[aria-pressed=true]{color:#fff;background:var(--bb-night);border-color:var(--bb-night)}
.bb-variation-options button:disabled{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.woocommerce div.product form.cart .single_add_to_cart_button{min-height:44px;background:var(--bb-night);color:#fff}
.woocommerce .reset_variations{border:0;background:none;text-decoration:underline;padding:10px;min-height:44px}
.woocommerce table,.woocommerce form,.wc-block-components-sidebar{min-width:0;overflow-wrap:anywhere}
@media(max-width:920px){
  .bb-mobile-toggle{display:grid;grid-column:1;grid-row:1}
  .bb-desktop-nav{display:none}
  .bb-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .bb-header{min-height:66px}
  .bb-header-tools{gap:0}
  .bb-brand img{width:57px;height:57px}
  .bb-brand-label{display:none}
  .bb-account{display:none}
  .bb-hero{height:min(75vh,670px);min-height:430px}
  .bb-hero img{object-position:center}
  .bb-hero-copy{inset-inline:20px}
  .bb-editorial{grid-template-columns:1fr}
  .bb-editorial img{max-height:460px}
  .bb-hero-copy{text-align:left}
  .bb-category-grid{gap:2px}
  .bb-category-grid>a{aspect-ratio:0.67}
  .bb-category-grid h2{font-size:24px}
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px}
  .bb-newsletter{grid-column:1/-1}
  .bb-footer{padding-top:35px}
  .bb-footer-grid{gap:24px 14px}
  .bb-instagram-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none}
}
