/* WordPress-side additions to the Brownietale design: header actions and cart link. */
.btc-header-actions{display:flex;align-items:center;gap:14px}
.btc-cart-link,.btc-account-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--yellow);color:var(--ink);transition:transform .25s ease}
.btc-cart-link:hover,.btc-account-link:hover{transform:translateY(-2px)}
@media(max-width:760px){.btc-header-actions{gap:8px}}
.btc-cart-count{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--ink);color:#fff;font:700 11px/20px Manrope,Arial,sans-serif;text-align:center}
/* Decorations (statement cloud, tilted tickers, CTA photo) extend past the viewport on phones, which made the
   whole page zoom out and scroll sideways. Clip at the page edge; `clip` (unlike hidden) keeps sticky/scroll behaviour intact. */
#main-content{overflow-x:hidden;overflow-x:clip}
@media(max-width:760px){
	/* The care note's cloud kept its proportions and ended above the paragraph, leaving text over the photo. Stretch it to the note. */
	.care-note{background-image:url('../img/scallop-fill.svg');padding:64px 30px 72px}
	/* Carousel arrows sat on top of the section heading ("Our goodies", "More delights"); put them under the carousel. */
	.section:not(.drink-section) .carousel-wrap .carousel-controls{position:static;justify-content:center;margin-top:18px}
}
/* WooCommerce notices ("added to your cart" etc.) on redesigned product pages. */
.btc-notices:empty{display:none}
.btc-notices .woocommerce-message,.btc-notices .woocommerce-info,.btc-notices .woocommerce-error{list-style:none;margin:0 0 28px;padding:16px 20px;border-radius:16px;background:var(--paper);border:1px solid var(--line);font-size:15px;display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between}
.btc-notices .woocommerce-error{border-color:#c0392b55}
.btc-notices .woocommerce-error li{list-style:none}
.btc-notices .button{min-height:40px;padding:8px 18px;background:var(--yellow);border-radius:999px;font-size:14px;order:2}
button.order-product{cursor:pointer}
.order-product.is-disabled{opacity:.5;cursor:not-allowed}
.btc-intro p:last-child{margin-bottom:0}
/* WooCommerce variation form (variable products) inside the design. */
.btc-variations{margin:30px 0}
.btc-variations table.variations{border-collapse:collapse;margin-bottom:18px}
.btc-variations table.variations th,.btc-variations table.variations td{padding:6px 12px 6px 0;text-align:left}
.btc-variations select{min-height:46px;padding:0 14px;border:1px solid var(--ink);border-radius:999px;background:transparent;font:inherit}
.btc-variations .reset_variations{font-size:13px;margin-left:10px}
.btc-variations .woocommerce-variation-add-to-cart{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.btc-variations .single_add_to_cart_button{min-height:50px;padding:0 26px;border-radius:999px;background:var(--yellow);color:var(--ink);border:0;font-weight:600;cursor:pointer}
.btc-variations .single_add_to_cart_button.disabled{opacity:.5}
.btc-variations .woocommerce-variation-price{margin-bottom:12px;font-size:18px}
/* Images carry width/height attributes (no layout shift while loading). Where the design sizes an image by width only,
   the height attribute would stretch it; :where() has zero specificity, so any height the design sets still wins. */
:where(img){height:auto}
/* Rosette arrow buttons (category stage + carousels): the design draws them as a white rosette image, but its hover rule
   set a plain yellow background, which replaced the image with a yellow square. Hover now swaps to a yellow rosette. */
.category-controls button:hover,.carousel-controls button:hover:not(:disabled){background:transparent url('../img/rosette-yellow.svg') center/contain no-repeat}
/* Sticky header: once the page scrolls past it, the header bar is fixed to the top (below the admin bar when logged in).
   A spacer of the same height takes its place so the page doesn't jump. */
.site-header.is-stuck{position:fixed;top:var(--wp-admin--admin-bar--height,0px);left:0;right:0;z-index:1000;box-shadow:0 8px 24px rgba(85,45,36,.08);animation:btc-header-in .35s ease both}
.btc-header-spacer{display:none}
.btc-header-spacer.is-on{display:block}
@keyframes btc-header-in{from{transform:translateY(-100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.site-header.is-stuck{animation:none}}
@media screen and (max-width:600px){.admin-bar .site-header.is-stuck{top:0}}
/* Header on laptops: the design's 8% side padding left too little room once the menu grew, so items wrapped onto two lines. */
.desktop-nav>a,.nav-drop>button{white-space:nowrap}
@media(min-width:1101px) and (max-width:1439px){.site-header{padding:0 clamp(24px,3vw,60px)}.desktop-nav{gap:clamp(18px,1.8vw,32px)}}
/* Phones: the "Crafted with our care" photo is wide while its frame is tall, so centre the crop on the brownies (right side). */
@media(max-width:760px){.photo-frame img{object-position:78% 50%}}
/* Tap targets of at least 24px (WCAG 2.5.8) for the small text links on product pages. */
.back-link{display:inline-flex;align-items:center;min-height:32px}
.detail-meta a{display:inline-flex;align-items:center;min-height:28px}
/* WordPress/WooCommerce visually-hidden labels. */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
/* Variable products: option selects and the "clear" link, in the design's style. */
.btc-variation-form .btc-variation-field{display:grid;gap:8px;margin:28px 0 0}
.btc-variation-form label{font-size:14px;opacity:.75}
.btc-variation-form select{min-height:50px;max-width:360px;padding:0 44px 0 20px;border:1px solid var(--ink);border-radius:999px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23552d24' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 20px center;font:inherit;color:inherit;appearance:none;-webkit-appearance:none}
.btc-variation-form .reset_variations{display:inline-block;margin-top:10px;font-size:13px;text-decoration:underline}
.btc-variation-form .woocommerce-variation-price{display:none} /* shown in the main price line instead */
.btc-variation-form .woocommerce-variation-availability p{margin:6px 0 0;font-size:14px}
.btc-variation-form .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed}
/* Arabic: the design fonts (Boldonse, Manrope, American Scribe) have no Arabic letters. These faces are registered under the
   same family names but only for Arabic characters, so every rule using those fonts picks up Arabic glyphs automatically,
   and browsers only download them on pages that actually contain Arabic. Lalezar (headings) + Baloo Bhaijaan 2 (text, one variable file for all weights). */
@font-face{font-family:BaristiDisplay;src:url('../fonts/lalezar-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:Scribe;src:url('../fonts/lalezar-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:Manrope;src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
/* Theme pages (cart, checkout, account, builder) use the theme's Cabin / Caveat / Bebas Neue, which have no Arabic letters:
   give them the same Arabic fonts. Weights match the theme's own @font-face rules so browsers combine them. */
@font-face{font-family:"Cabin";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Cabin";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Cabin";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Cabin";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Caveat";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Caveat";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Caveat";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Caveat";src:url('../fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Bebas Neue";src:url('../fonts/lalezar-arabic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
/* Language switcher: a pill in the header on larger screens, a link at the end of the phone menu. */
/* Language switch: last item of the desktop menu, styled like the other menu links. */
.desktop-nav>.btc-lang-link{white-space:nowrap}
/* Its label is in the other language, so size it like that language's menu (Arabic letters run smaller). */
.desktop-nav>a.btc-lang-link[lang^="ar"]{font-size:17px;transform:translateY(-10px)}
.desktop-nav>a.btc-lang-link[lang^="en"]{font-size:13px;transform:translateY(6px)}
/* (The nudges line the letters up with the other menu items: Arabic letters sit lower in their line box.) */

/* Header logo, a little larger than the design. */
.site-header .logo{width:210px}
.site-header .logo img{height:55px}
@media(max-width:760px){.site-header .logo{width:172px}.site-header .logo img{height:52px}}
/* Narrow phones: the logo and the three round buttons must fit in one row, or the page grows wider than the screen. */
@media(max-width:400px){.site-header .logo{width:150px}.site-header .logo img{height:46px}.btc-header-actions{gap:6px}}
.mobile-nav .btc-lang-mobile{margin-top:8px;padding-top:14px;border-top:1px solid var(--line);font-size:20px}
/* Below 1280px the full menu, Order now, cart, account and language no longer fit on one line, so the header switches to the
   compact layout (menu button) the design uses below 1100px; the language link then sits at the end of that menu. */
@media(max-width:1279px){.btc-lang-link{display:none}}
@media(min-width:1101px) and (max-width:1279px){.desktop-nav,.header-order{display:none}.menu-toggle{display:flex}}

/* Home hero: "Create your own brownie" button, centred at the bottom of the hero (where the scroll arrow was). */
.hero .hero-cta{position:absolute;z-index:7;left:0;right:0;margin:0 auto;width:max-content;bottom:90px;white-space:nowrap;box-shadow:0 10px 24px #552d241f}
@media(min-width:1700px){.hero .hero-cta{bottom:80px}}
@media(max-width:1100px){.hero .hero-cta{bottom:65px}}
@media(max-width:760px){.hero .hero-cta{bottom:55px}}
.hero .hero-cta{font-size:19px;min-height:66px;padding:16px 34px;gap:20px}
.hero .hero-cta .button-label{height:28px;line-height:28px}
.hero .hero-cta .arrow{font-size:26px}
@media(max-width:760px){.hero .hero-cta{font-size:16px;min-height:56px;padding:13px 26px;gap:14px}.hero .hero-cta .button-label{height:24px;line-height:24px}.hero .hero-cta .arrow{font-size:22px}}

/* Home "Choose your favorite": the stage shows three cards (left, centre, right) and rotates through every category.
   Cards outside those three positions wait hidden in the centre; before the script runs, only the first three show. */
.category-stage .category:not([data-slot="-1"]):not([data-slot="0"]):not([data-slot="1"])[data-slot],
.category-stage .category:nth-child(n+4):not([data-slot]){opacity:0;visibility:hidden;pointer-events:none;transform:translateX(0) scale(.7);z-index:0;transition:transform 1s var(--ease),opacity .6s,visibility 0s .6s}
.category-stage .category[data-slot="-1"],.category-stage .category[data-slot="0"],.category-stage .category[data-slot="1"]{visibility:visible;transition:transform 1s var(--ease),opacity .8s,visibility 0s}

/* Drawn arrow icons (replace arrow characters, which some phones show as colour emoji). */
.btc-icon{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.125em;overflow:visible}
.button .arrow .btc-icon{width:1.05em;height:1.05em}
.category-controls .btc-icon,.carousel-controls .btc-icon{width:.85em;height:.85em;vertical-align:middle}

/* Product photos are regular photos (with their own background), not floating cut-outs: they sit inside the
   card / product panel with rounded corners, square, untilted. */
.product-card,.shop .product-card{margin-top:0}
.product-grid.carousel{padding-top:20px}
.product-card .product-image,.shop .product-card .product-image{height:auto;aspect-ratio:1/1;margin:8px 8px 0;overflow:hidden;border-radius:10px;background:#fff}
.product-card .product-image img,.product-card:nth-child(2n) .product-image img{width:100%;height:100%;object-fit:cover;filter:none;transform:none;transition:transform .8s var(--ease)}
.product-card .product-image:hover img,.product-card:nth-child(2n) .product-image:hover img{transform:scale(1.05)}
.detail-art,.detail-art.detail-art{margin-top:0;padding:14px;height:auto;aspect-ratio:1/1;overflow:hidden}
.detail-art>.detail-photo,.detail-art>.detail-photo[src]{width:100%;height:100%;object-fit:cover;transform:none;filter:none;border-radius:12px}

/* Product cards: price under the name, then quantity stepper + "Add to cart" (products with options keep a link). */
.card-info>.price{display:block;margin:-8px 0 14px;font:600 14px/1.3 Manrope,Arial,sans-serif}
.card-buy{margin-top:auto;display:flex;gap:8px;align-items:stretch}
.card-qty{display:flex;align-items:center;flex:none;height:40px;border:1px solid var(--ink);border-radius:999px;background:#fff;overflow:hidden}
.card-qty button{width:32px;height:100%;display:flex;align-items:center;justify-content:center;font:500 18px/1 Manrope,Arial,sans-serif;color:var(--ink)}
.card-qty button:hover{background:var(--yellow)}
.card-qty input{width:30px;height:100%;border:0;padding:0;text-align:center;font:600 14px/1 Manrope,Arial,sans-serif;background:transparent;color:var(--ink);-moz-appearance:textfield;appearance:textfield}
.card-qty input::-webkit-outer-spin-button,.card-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.card-add{flex:1;min-width:0;height:40px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:999px;background:var(--ink);color:#fff;font:600 13px/1 Manrope,Arial,sans-serif;white-space:nowrap;transition:background .25s,color .25s}
.card-add:hover{background:#3d1f19}
.card-add .btc-icon{width:17px;height:17px}
.card-add.is-busy{opacity:.65;cursor:progress}
.card-add.is-added{background:#2f7d4f}
.card-add span{white-space:nowrap}
.card-info>.card-bottom{margin-top:auto}

/* Shop on phones: two products per row. */
@media(max-width:760px){
	.shop .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
	.shop .product-card .product-image{margin:5px 5px 0;border-radius:8px}
	.shop .card-info{padding:11px 9px 10px}
	.shop .card-info h3{font-size:15px;line-height:1.25;min-height:0;margin:0 0 12px}
	.shop .card-info>.price{font-size:13px;margin:-4px 0 10px}
	.shop .card-buy{flex-direction:column;gap:6px}
	.shop .card-qty{height:36px;justify-content:space-between}
	.shop .card-qty input{flex:1}
	.shop .card-add{height:38px;font-size:12px;padding:0 8px;flex:none}
	.shop .card-bottom .button{width:100%;justify-content:center}
}

/* Product names on cards: the site's text font, bold, normal case, a little smaller with more line spacing
   (the display font in capitals was heavy and cramped on two-line names). */
.product-card .card-info h3,.shop .product-card .card-info h3{font-family:Manrope,Arial,sans-serif;font-weight:700;text-transform:none;letter-spacing:-.01em;font-size:18px;line-height:1.35;min-height:0;margin:0 0 12px}
.product-card .card-info>.price{margin:0 0 14px}
@media(max-width:1100px){.product-card .card-info h3,.shop .product-card .card-info h3{font-size:17px}}
@media(max-width:760px){
	.product-card .card-info h3{font-size:16px}
	.shop .product-card .card-info h3{font-size:14.5px;line-height:1.4;margin:0 0 6px}
	.shop .product-card .card-info>.price{margin:0 0 10px}
}

/* Shop: four products per row on desktop (three on small laptops/tablets, two on phones). */
@media(min-width:1101px){.shop .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 22px}}
@media(min-width:761px) and (max-width:1100px){.shop .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 18px}}

/* "More delights" on theme product pages (the brownie builder): the site's product cards in a grid. */
.btc-related{max-width:1280px;margin:0 auto;padding:70px var(--gutter,40px) 80px;background:var(--cream)}
.btc-related .section-heading{margin-bottom:28px}
.btc-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
@media(max-width:1100px){.btc-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.btc-related-grid>.product-card:nth-child(4){display:none}}
@media(max-width:760px){
	.btc-related{padding:46px 16px 56px}
	.btc-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
	.btc-related-grid>.product-card:nth-child(4){display:flex}
	.btc-related .product-card .product-image{margin:5px 5px 0;border-radius:8px}
	.btc-related .card-info{padding:11px 9px 10px}
	.btc-related .product-card .card-info h3{font-size:14.5px;line-height:1.4;margin:0 0 6px}
	.btc-related .product-card .card-info>.price{font-size:13px;margin:0 0 10px}
	.btc-related .card-buy{flex-direction:column;gap:6px}
	.btc-related .card-qty{height:36px;justify-content:space-between}
	.btc-related .card-qty input{flex:1}
	.btc-related .card-add{height:38px;font-size:12px;padding:0 8px;flex:none}
}
/* Theme pages don't get the design's base heading rules, so the related heading sets them itself. */
.btc-related .section-heading h2{font-family:BaristiDisplay,Impact,sans-serif;font-weight:400;text-transform:uppercase;color:var(--ink);margin:0}
