/*
Theme Name: The Adorned Fox
Theme URI: https://slategray-leopard-492172.hostingersite.com/
Author: The Adorned Fox
Description: A cozy retro computer desktop for The Adorned Fox. The home page is a working desktop with windows, icons and a dock; shop, cart and checkout pages open as pink windows in the same room. Built for WooCommerce.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: adorned-fox
*/

/* ---------- every page except the home desktop ---------- */
:root{
  --ink:#43291f; --ink-soft:#7d5a4b;
  --frame:#f9c3bb; --frame-line:#d98f88; --bar-a:#fbcac2; --bar-b:#f5aea7;
  --cream:#fbf1e4; --paper:#fdf7ee; --rose:#d2716d; --pill-line:#d7b4a2;
  --hand:'Gochi Hand',cursive; --ui:'Nunito',system-ui,sans-serif;
}
*{box-sizing:border-box}
body.taf-page{margin:0;min-height:100vh;font-family:var(--ui);color:var(--ink);background:#e9c3b8;display:flex;flex-direction:column;align-items:center;padding:0 16px 32px}
.taf-room{position:fixed;inset:0;z-index:-1;background:url(assets/art/plate.jpg) center/cover}
.taf-page img{max-width:100%;height:auto}
.taf-page a{color:#a84f4b}

.taf-top{width:100%;max-width:1100px;display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.taf-home,.taf-cart{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-family:var(--hand);font-size:24px;
  background:linear-gradient(#fdf5ea,#f7e7d4);border:1.5px solid var(--pill-line);border-radius:999px;padding:4px 16px 4px 6px;box-shadow:0 2px 3px rgba(90,50,35,.18)}
.taf-home img,.taf-cart img{width:42px;height:42px;object-fit:contain}
.taf-cart{position:relative;padding:4px 10px}
.taf-cart em{position:absolute;right:-4px;top:-4px;min-width:22px;height:22px;border-radius:11px;background:var(--rose);color:#fff;font:800 13px/22px var(--ui);font-style:normal;text-align:center;padding:0 5px}

.taf-win{width:100%;max-width:1100px;background:var(--frame);border:2px solid var(--frame-line);border-radius:12px;padding:0 6px 6px;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.35),0 16px 34px rgba(95,45,40,.28)}
.taf-bar{display:flex;align-items:center;gap:10px;height:44px;padding:0 4px 0 6px}
.taf-bar b{flex:1;font-family:var(--hand);font-weight:400;font-size:23px;color:#3d2720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.taf-appicon{width:28px;height:28px;flex:none;border-radius:6px;border:1.5px solid var(--frame-line);background:#fff6f4;position:relative}
.taf-appicon::after{content:"♥";position:absolute;inset:0;display:grid;place-items:center;color:#e0807a;font-size:16px;line-height:1}
.taf-x{width:33px;height:31px;display:grid;place-items:center;border:2px solid #4a3029;border-radius:5px;background:linear-gradient(#fff9f3,#f3e1d3)}
.taf-x:hover{background:#fff}
.taf-x svg{width:16px;height:16px;stroke:#3d2720;stroke-width:2.2;fill:none;stroke-linecap:round}
.taf-body{background:var(--paper);border:1.5px solid var(--frame-line);border-radius:8px;padding:28px clamp(16px,4vw,44px) 40px;min-height:50vh;line-height:1.6}
.taf-body h1,.taf-body h2,.taf-body .woocommerce-products-header__title{font-family:var(--hand);font-weight:400;color:#3d2720;line-height:1.2}
.taf-body h1,.taf-body .page-title{font-size:clamp(30px,4vw,42px);margin:0 0 18px}
.taf-entry + .taf-entry{margin-top:28px;padding-top:28px;border-top:1.5px dashed var(--pill-line)}

/* WooCommerce: buttons, product grid, notices */
.taf-body .button,.taf-body button.button,.taf-body input.button,.taf-body .wp-element-button,.taf-body .wc-block-components-button{
  background:var(--rose)!important;color:#fff!important;border:2px solid #b65d59!important;border-radius:999px!important;font-weight:800!important;box-shadow:0 2px 0 #964844;text-decoration:none}
.taf-body .button:hover,.taf-body .wp-element-button:hover{filter:brightness(1.06)}
.taf-body ul.products li.product{padding:0 4px 16px!important;text-align:center}
.taf-body ul.products li.product .woocommerce-loop-product__title{font-family:var(--hand);font-size:22px!important;font-weight:400;color:var(--ink)}
.taf-body .price{color:#a84f4b!important;font-weight:800}
.taf-body .woocommerce-info,.taf-body .woocommerce-message{border-top-color:var(--rose)!important;background:#fdeee9}
.taf-body .woocommerce-info::before,.taf-body .woocommerce-message::before{color:var(--rose)!important}
.taf-body input[type=text],.taf-body input[type=email],.taf-body input[type=tel],.taf-body input[type=number],.taf-body select,.taf-body textarea{border:1.5px solid var(--pill-line);border-radius:6px;padding:8px 10px;font:inherit;background:#fff}

/* Scalloped product photos: shop grid, and the main photo on product pages (the frame also clips the hover zoom) */
.taf-body{--taf-scallop:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="42"/><circle cx="91.5" cy="50" r="8.5"/><circle cx="87.39" cy="68.01" r="8.5"/><circle cx="75.87" cy="82.45" r="8.5"/><circle cx="59.23" cy="90.46" r="8.5"/><circle cx="40.77" cy="90.46" r="8.5"/><circle cx="24.13" cy="82.45" r="8.5"/><circle cx="12.61" cy="68.01" r="8.5"/><circle cx="8.5" cy="50" r="8.5"/><circle cx="12.61" cy="31.99" r="8.5"/><circle cx="24.13" cy="17.55" r="8.5"/><circle cx="40.77" cy="9.54" r="8.5"/><circle cx="59.23" cy="9.54" r="8.5"/><circle cx="75.87" cy="17.55" r="8.5"/><circle cx="87.39" cy="31.99" r="8.5"/></svg>')}
.taf-body ul.products li.product a img{aspect-ratio:1;object-fit:cover;-webkit-mask:var(--taf-scallop) center/100% 100% no-repeat;mask:var(--taf-scallop) center/100% 100% no-repeat}
.taf-body .woocommerce-product-gallery__image > a > img{aspect-ratio:1;object-fit:cover}
.taf-body .woocommerce-product-gallery__image{-webkit-mask:var(--taf-scallop) center/100% 100% no-repeat;mask:var(--taf-scallop) center/100% 100% no-repeat}
/* the smaller photos under it: little circles */
.taf-body .woocommerce-product-gallery .flex-control-thumbs li{padding:4px}
.taf-body .woocommerce-product-gallery .flex-control-thumbs li img{aspect-ratio:1;object-fit:cover;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px var(--frame-line)}

/* Product page tabs: pink file-folder tabs */
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs{list-style:none;margin:0;padding:0 0 0 14px;display:flex;gap:6px;flex-wrap:wrap;position:relative;z-index:1;overflow:visible;background:none;border:0}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs::before,.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li::before,.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li::after{display:none}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li{margin:0;padding:0;border:0;border-radius:0;background:none}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li a{display:block;font-family:var(--hand);font-weight:400;font-size:22px;line-height:1;color:var(--ink-soft);text-decoration:none;padding:11px 20px 9px;
  background:linear-gradient(#fbe3dd,#f6cfc7);border:1.5px solid var(--frame-line);border-bottom:none;border-radius:14px 14px 0 0;margin-bottom:-1.5px}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li a::before{content:"♡ ";color:#e0807a}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li.active a{background:#fffdf9;color:#3d2720;padding-bottom:11px}
.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li.active a::before{content:"♥ "}
.taf-body .woocommerce-tabs.wc-tabs-wrapper .panel.wc-tab{background:#fffdf9;border:1.5px solid var(--frame-line);border-radius:14px;padding:22px 26px;margin:0 0 2em}
@media (max-width:600px){
  .taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs{flex-wrap:nowrap;padding-left:0;gap:3px}
  .taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li{flex:1 1 0;min-width:0;display:flex}
  .taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li a{flex:1;font-size:17px;line-height:1.1;text-align:center;padding:9px 6px 7px;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:center}
  .taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li a::before,.taf-body .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs li.active a::before{content:""}
  .taf-body .woocommerce-tabs.wc-tabs-wrapper .panel.wc-tab{padding:18px 16px}
}

.taf-foot{width:100%;max-width:1100px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 4px 0;font-family:var(--hand);font-size:20px}
.taf-foot a,.taf-foot span{background:rgba(253,245,234,.85);border-radius:999px;padding:2px 14px;color:var(--ink);text-decoration:none}

/* custom order request form */
.taf-co{max-width:560px}
.taf-co label{display:block;font-weight:800;margin-bottom:4px}
.taf-co input[type=text],.taf-co input[type=email],.taf-co textarea{width:100%;box-sizing:border-box}
.taf-co-trap{position:absolute;left:-9999px}
.taf-co-error{background:#fdeee9;border-left:4px solid var(--rose);padding:8px 12px;border-radius:4px}
.taf-co-thanks{background:#fdeee9;border:1.5px solid var(--frame-line);border-radius:10px;padding:14px 18px;max-width:560px}
.taf-co .button{padding:10px 24px!important;font:800 16px var(--ui)!important;cursor:pointer}

/* Our Story page photos */
.taf-story-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2vw,16px);max-width:720px;margin:26px 0 8px}
.taf-story-photos figure{margin:0;background:#fff;padding:8px 8px 10px;border-radius:4px;box-shadow:0 2px 5px rgba(80,40,30,.18)}
.taf-story-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:2px}

/* wholesale */
.taf-ws-on{background:#fdeee9;border:1.5px dashed var(--frame-line);border-radius:10px;padding:8px 14px;font-weight:700}
