body { overflow-wrap: anywhere; }
.site-logo { display: block; width: 120px; height: auto; object-fit: contain; }
.catalog-card { display: flex; flex-direction: column; gap: .75rem; }
.catalog-card > img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; }
.price { font-weight: 700; font-size: 1.2rem; margin: .65rem 0; }
.preserve-lines { white-space: pre-wrap; }
.fields { display: grid; gap: 1rem; }
.fields label { display: grid; gap: .35rem; font-weight: 600; }
.fields input:not([type=checkbox]), .fields textarea, .cart-row input {
    width: 100%; min-width: 0; padding: .65rem .85rem; border-radius: 8px;
    border: 1px solid #cdbbb1; background: #fff; color: #2d1715; font: inherit;
}
.fields textarea { min-height: 8rem; resize: vertical; }
.fields .check { display: flex; align-items: center; gap: .5rem; }
.fields > .button { justify-self: start; }
.narrow { max-width: 660px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.heading-actions { justify-content: space-between; margin-bottom: 1.25rem; }
.browse-links { margin-top: 1rem; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 1rem; }
.cart-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: .75rem 0; }
.cart-row h2 { font-size: 1.3rem; }
.cart-row input { width: 5rem; }
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.messages { margin-block: 1rem; }
.notice { border: 1px solid #b3d1b2; padding: .75rem 1.7rem; border-radius: 8px; color: #25512c; background: #eef8ed; }
.notice.error { border-color: #e2b4b0; color: #7c2721; background: #fff3f1; }
.admin-header { background: #fff; border-bottom: 1px solid #e7d5cb; padding: 1rem 0; }
.admin-header > .actions { justify-content: space-between; }
.admin-main { padding-block: 2rem 4rem; }
.admin-main h1, .admin-main h2 { margin-bottom: .65rem; }
.admin-thumbnail { width: 120px; border-radius: 8px; }
.table-wrap { overflow-x: auto; margin: .75rem 0; border-radius: 8px; border: 1px solid #e7d5cb; }
table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid #eee1da; vertical-align: top; }
th { background: #f5e9e2; }
.order-detail { margin-top: 1rem; }
.order-items { margin-block: 1rem; padding-left: 1.3rem; }
.button:disabled { opacity: .6; cursor: wait; }
.break-word { overflow-wrap: anywhere; }
@media (max-width: 680px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .site-logo { width: 100px; }
    .order-detail h1 { font-size: clamp(1.35rem, 5vw, 2rem); }
}

@media (max-width: 820px) {
    .site-nav { overflow-y: auto; height: 100dvh; }
}

.site-nav .icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink, #34202c); }
.site-nav .icon-link svg { width: 22px; height: 22px; }
.site-nav .icon-link:not(.button)::after { content: none; }
.site-nav .icon-link:hover, .site-nav .icon-link:focus-visible { background: #f0e4e7; outline-offset: 2px; }
.catalog-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.catalog-filters label, .product-purchase label { display: grid; gap: .25rem; font-weight: 650; }
.catalog-filters input, .catalog-filters select, .product-purchase input { min-height: 42px; padding: .5rem .7rem; border: 1px solid #cdbbb1; border-radius: 8px; background: #fff; color: inherit; font: inherit; }
.catalog-filters label:first-child { flex: 1 1 14rem; }
.catalog-filters label:nth-child(2) { flex: 0 1 14rem; }
.product-card-image { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.product-card-image img, .product-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: grid; place-items: center; height: 100%; min-height: 130px; color: #80646d; background: #f2e7e5; }
.product-placeholder svg { width: 38px; height: 38px; }
.catalog-card .product-name { font: inherit; color: inherit; }
.catalog-card form { margin-top: auto; }
.product-crumb { margin-bottom: 1.2rem; color: #694e5b; font-size: .88rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 5vw, 62px); align-items: start; }
.product-figure img { border-radius: 15px; height: auto; aspect-ratio: 1; object-fit: contain; background: #f2eae7; }
.product-figure figcaption { padding-top: .6rem; color: #694e5b; font-size: .84rem; }
.product-summary > h1 { margin-top: .35rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.product-summary > .price { font-size: 1.6rem; }
.product-purchase { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 1rem 0 .75rem; }
.product-purchase input { width: 5.5rem; }
.product-description { margin: 1.4rem 0; border-top: 1px solid #e8d8d5; padding-top: 1.15rem; }
.product-description h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.related-empty { text-align: center; }
@media(max-width: 720px) { .product-detail { grid-template-columns: minmax(0, 1fr); } }
@media(max-width: 820px) { .site-nav .icon-link { border-radius: 8px; background: #f0e4e7; } }


/* Keep the shop tools visible when the studio menu collapses. */
.shop-header { background:#fff9f2; border-bottom:1px solid #e8d9d5; color:#452034; backdrop-filter:none; }
.shop-header .nav-wrap { min-height:72px; gap:clamp(8px,2vw,28px); }
.shop-header .site-nav { margin-left:auto; gap:clamp(10px,1.6vw,24px); }
.shop-header .site-logo { width:94px; }
.shop-tools { display:flex; justify-content:flex-end; align-items:center; gap:clamp(2px,.7vw,9px); }
.shop-tools .icon-link, .shop-cart .icon-link { position:relative; display:inline-grid; place-items:center; width:42px; height:42px; border:0; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }
.shop-tools .icon-link:hover, .shop-tools .icon-link[aria-current], .shop-tools .icon-link:focus-visible { color:#51273d; background:#f0e4e7; }
.shop-tools svg, .shop-cart .icon-link svg, .product-service svg, .shop-button svg { width:21px; height:21px; flex:none; }
.cart-count { position:absolute; right:0; top:0; min-width:17px; padding-inline:3px; background:#f5d293; color:#452034; border-radius:18px; font-size:.66rem; font-weight:800; line-height:17px; text-align:center; }
.shop-header .menu-toggle span { background:#452034; }
.shop-header .menu-toggle { padding:4px; cursor:pointer; }
.narrow { margin-inline:auto; }
.fields.narrow h1, .fields.narrow h2 { text-align:center; }
.fields.narrow > .actions { justify-content:center; }
.fields.narrow > .button, .fields.narrow > a { justify-self:center; }
.fields.narrow > .admin-thumbnail { justify-self:center; }
.admin-main > h1:has(+ form.narrow) { text-align:center; }
.contact-grid form.form-card, .checkout-grid > form { width:100%; max-width:660px; margin-inline:auto; }
.contact-grid form.form-card > h2, .contact-grid form.form-card > .kicker, .checkout-grid > form > h2 { text-align:center; }
.contact-grid form.form-card > .button, .checkout-grid > form > .button { display:flex; width:max-content; margin-inline:auto; }
.checkout-grid { max-width:1020px; margin-inline:auto; }
section:has(> .checkout-grid) > h1 { text-align:center; margin-bottom:1.2rem; }
.shop-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; border-radius:12px; }
.product-page { padding-block:clamp(24px,5vw,54px); }
.product-detail { align-items:start; }
.product-figure { margin:0; }
.product-figure img, .product-figure > .product-placeholder { min-height:0; width:100%; aspect-ratio:1; background:#efe7e2; }
.product-figure img { object-fit:cover; }
.product-summary { padding:clamp(12px,3vw,29px); border:1px solid #eadbd5; border-radius:20px; background:#fffdfb; }
.product-summary > .price { color:#5b233b; }
.product-summary .product-purchase { align-items:center; }
.product-purchase .shop-button { flex:1 1 auto; }
.qty-stepper { display:inline-flex; align-items:center; justify-content:center; justify-self:start; border:1px solid #e7d6d9; border-radius:12px; background:#fff; overflow:hidden; }
.qty-stepper input { width:3rem; min-height:42px; padding:3px; border:0; border-radius:0; background:transparent; font:inherit; color:inherit; text-align:center; appearance:textfield; }
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
.qty-stepper button { display:grid; place-items:center; width:2rem; height:42px; padding:0; border:0; color:#56253c; background:transparent; font:inherit; cursor:pointer; }
.qty-stepper button[hidden], .sticky-buy[hidden] { display:none; }
.qty-stepper button:hover:not(:disabled) { background:#f6e9ed; }
.qty-stepper button:disabled { opacity:.4; }
.product-service { display:flex; align-items:center; gap:8px; color:#653d51; padding-block:.8rem; margin-bottom:.35rem; border-top:1px solid #eadbd5; }
.has-sticky-buy { padding-bottom:calc(98px + env(safe-area-inset-bottom)); }
.sticky-buy { position:fixed; z-index:90; bottom: max(10px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(calc(100% - 24px), 850px); display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 14px; border:1px solid #eadbd5; border-radius:16px; background:#fffdfb; box-shadow:0 10px 35px #45203430; }
.sticky-buy-details { min-width:0; display:flex; align-items:center; gap:10px; }
.sticky-buy-details strong, .sticky-buy-details span { display:block; }
.sticky-buy-image { width:52px; height:52px; flex:none; overflow:hidden; border-radius:8px; }
.sticky-buy-image img, .cart-thumb img { width:100%; height:100%; object-fit:cover; }
.sticky-buy-image .product-placeholder, .cart-thumb .product-placeholder { min-height:0; }
.sticky-buy .shop-button { flex:none; }
.cart-heading { padding:clamp(25px,4vw,50px) 15px; text-align:center; color:#51273d; background:#f2e5db; }
.cart-heading h1 { margin-bottom:.55rem; }
.shop-cart { display:grid; grid-template-columns:minmax(0,2.3fr) minmax(230px,1fr); align-items:start; gap:clamp(16px,4vw,42px); }
.shop-cart-lines { list-style:none; margin:0; padding:0; border-top:1px solid #e8d9d5; }
.shop-cart-line { display:grid; grid-template-columns:minmax(120px,1fr) auto minmax(74px,auto) auto; align-items:center; gap:clamp(8px,1.6vw,20px); padding:14px 0; border-bottom:1px solid #e8d9d5; }
.shop-cart-item { display:flex; align-items:center; gap:12px; min-width:0; }
.shop-cart-item h2 { font-size:1.1rem; line-height:1.3; }
.shop-cart-item p, .cart-totals p { color:#715464; font-size:.88rem; }
.cart-thumb { display:block; width:clamp(48px,7vw,86px); flex:none; aspect-ratio:1; overflow:hidden; background:#f2e7e5; border-radius:10px; }
.cart-quantity { display:grid; gap:3px; justify-items:center; font-size:.86rem; }
.cart-update { border:0; background:none; color:#693249; text-decoration:underline; cursor:pointer; font:inherit; }
.cart-browse { margin-top:1.2rem; }
.cart-totals { padding:clamp(15px,3vw,28px); border:1px solid #e8d9d5; border-radius:16px; background:#fbf2ed; }
.cart-totals h2 { font-size:1.25rem; }
.cart-totals > div { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 0; margin:10px 0 14px; border-block:1px solid #e8d9d5; }
.cart-totals > .button { width:100%; }
.cart-totals > p { text-align:center; margin-top:.6rem; }
.cart-empty { text-align:center; max-width:540px; margin-inline:auto; }
.cart-empty .actions { justify-content:center; margin-top:1rem; }
.course-detail { display:grid; gap:.9rem; }
.course-detail-image { margin:0; }
.course-detail-image img { width:100%; max-height:360px; object-fit:contain; border-radius:12px; background:#f2e7e5; }
@media(max-width:820px) {
    .shop-header .nav-wrap { min-height:60px; }
    .shop-header .shop-tools { margin-left:auto; }
    .shop-header .site-nav { position:absolute; inset:100% 0 auto auto; width:min(100%,330px); height:auto; max-height:70vh; padding:16px 20px; background:#fff9f2; color:#432139; border-radius:0 0 0 12px; transform:none; visibility:hidden; opacity:0; pointer-events:none; }
    .shop-header .site-nav.open { visibility:visible; opacity:1; pointer-events:auto; }
    .shop-cart { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:480px) {
    .shop-header .nav-wrap { width:calc(100% - 18px); gap:4px; }
    .shop-header .site-logo { width:65px; }
    .shop-tools .icon-link { width:34px; height:42px; }
    .shop-tools svg { width:19px; height:19px; }
    .shop-cart-line { grid-template-columns:minmax(0,1fr) auto auto; }
    .shop-cart-item { grid-column:1 / -1; }
    .cart-quantity { justify-self:start; }
    .sticky-buy .shop-button { padding:.55rem .7rem; font-size:.85rem; }
    .sticky-buy-image { display:none; }
}


.shop-cart .danger-icon { color:#922f47; }

.shop-header .site-nav [aria-current="page"] { color:#762c49; font-weight:700; }
.cart-count[hidden], .cart-update[hidden] { display:none; }
.cart-totals [aria-disabled="true"] { opacity:.65; cursor:wait; }
.cart-save-error { grid-column:1 / -1; color:#922f47; }

.footer-policies { flex-wrap:wrap; }
.policy-copy { max-width:780px; margin-inline:auto; }
.policy-copy h2 { font-size:1.2rem; margin:1.45rem 0 .45rem; }
.policy-copy p { margin:.55rem 0; }
.policy-copy a { text-decoration:underline; }
