/*
Theme Name: Sunny Day Figurines
Theme URI: https://example.com/
Author: Sunny Day Portrait & Pet Sculpture Studio
Description: Premium WooCommerce theme for photo-based custom 3D figurines.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sunny-day-figurines
*/

:root {
  --sdf-ink: #101111;
  --sdf-cream: #f7f0e4;
  --sdf-sand: #e8ddc8;
  --sdf-paper: #fffdf8;
  --sdf-gold: #b78239;
  --sdf-gold-dark: #8e5d24;
  --sdf-green: #1dcc62;
  --sdf-line: rgba(23, 20, 15, 0.16);
  --sdf-radius: 8px;
  --sdf-shadow: 0 18px 50px rgba(24, 20, 13, 0.12);
  --sdf-serif: Georgia, 'Times New Roman', serif;
  --sdf-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sdf-ink); background: var(--sdf-cream); font-family: var(--sdf-sans); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute!important; width: 1px; word-wrap: normal!important; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sdf-green); color: #062111; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.sdf-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 17, 17, .94); color: #fff; backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.12); }
.sdf-header__inner { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sdf-brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--sdf-serif); font-size: 1.15rem; text-decoration: none; letter-spacing: .01em; }
.sdf-brand__mark { width: 30px; height: 30px; border: 1px solid var(--sdf-gold); border-radius: 50%; display: grid; place-items: center; color: var(--sdf-gold); font-size: .75rem; }
.sdf-nav { display: flex; align-items: center; gap: 1.2rem; }
.sdf-nav a { font-size: .86rem; color: rgba(255,255,255,.84); text-decoration: none; }
.sdf-nav a:hover, .sdf-nav a:focus { color: #fff; }
.sdf-cart-link { display: inline-flex; align-items: center; gap: .4rem; color: #fff!important; border: 1px solid rgba(255,255,255,.3); padding: .5rem .7rem; border-radius: 999px; }
.sdf-cart-count { background: var(--sdf-green); color: #06190d; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; display: inline-grid; place-items: center; font-size: .73rem; font-weight: 700; }
.sdf-menu-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 6px; padding: .4rem .6rem; }

.sdf-main { overflow: clip; }
.sdf-container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.sdf-section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.sdf-section--dark { background: var(--sdf-ink); color: #fff; }
.sdf-section--sand { background: var(--sdf-sand); }
.sdf-section__eyebrow { margin: 0 0 .65rem; color: var(--sdf-gold-dark); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sdf-section--dark .sdf-section__eyebrow { color: #e1ad5e; }
.sdf-section h2 { margin: 0; font-family: var(--sdf-serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: 0; }
.sdf-section__intro { max-width: 650px; margin: 1rem auto 0; color: rgba(16,17,17,.68); }
.sdf-section--dark .sdf-section__intro { color: rgba(255,255,255,.72); }
.sdf-section__head { text-align: center; margin-bottom: 2.5rem; }

.sdf-hero { min-height: min(760px, 86vh); display: grid; align-items: end; position: relative; background: #111; color: #fff; }
.sdf-hero__media { position: absolute; inset: 0; }
.sdf-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .67; }
.sdf-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.82)); }
.sdf-hero__content { position: relative; z-index: 1; width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) 0 4rem; text-align: center; }
.sdf-hero h1 { margin: 0; font-family: var(--sdf-serif); font-size: clamp(2.6rem, 7vw, 5.7rem); line-height: .98; font-weight: 500; }
.sdf-hero p { max-width: 700px; margin: 1.2rem auto 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); }
.sdf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.sdf-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.35rem; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.sdf-button:hover, .sdf-button:focus-visible { transform: translateY(-2px); }
.sdf-button--green { background: var(--sdf-green); color: #06190d; }
.sdf-button--gold { background: var(--sdf-gold); color: #fff; }
.sdf-button--outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }

.sdf-hotspot-image { position: relative; overflow: hidden; border-radius: var(--sdf-radius); }
.sdf-hotspot-image img { width: 100%; }
.sdf-hotspot { position: absolute; display: block; border: 1px solid rgba(255,255,255,.7); background: rgba(10,10,10,.13); border-radius: 5px; transition: background .2s ease, border-color .2s ease; }
.sdf-hotspot:hover, .sdf-hotspot:focus-visible { background: rgba(29,204,98,.22); border-color: var(--sdf-green); }
.sdf-hotspot__label { position: absolute; left: 50%; bottom: .55rem; transform: translateX(-50%); white-space: nowrap; background: rgba(0,0,0,.78); color: #fff; border-radius: 999px; padding: .28rem .55rem; font-size: .68rem; pointer-events: none; }
.sdf-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sdf-product-card { position: relative; background: var(--sdf-paper); border: 1px solid var(--sdf-line); border-radius: var(--sdf-radius); overflow: hidden; box-shadow: var(--sdf-shadow); }
.sdf-product-card img { aspect-ratio: 1.25 / 1; object-fit: cover; }
.sdf-product-card__body { padding: 1rem; }
.sdf-product-card h3 { margin: 0; font-family: var(--sdf-serif); font-size: 1.4rem; font-weight: 500; }
.sdf-product-card p { margin: .4rem 0 1rem; color: rgba(16,17,17,.64); font-size: .9rem; }
.sdf-product-card__link { color: var(--sdf-gold-dark); font-weight: 700; font-size: .83rem; text-decoration: none; }
.sdf-badge { position: absolute; top: .75rem; left: .75rem; background: var(--sdf-green); color: #06190d; padding: .28rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }

.sdf-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 2rem; }
.sdf-feature-card { padding: 1.4rem 1.1rem; border: 1px solid var(--sdf-line); border-radius: var(--sdf-radius); background: rgba(255,255,255,.54); }
.sdf-feature-card h3 { margin: .9rem 0 .4rem; font-family: var(--sdf-serif); font-size: 1.15rem; font-weight: 500; }
.sdf-feature-card p { margin: 0; color: rgba(16,17,17,.64); font-size: .86rem; }
.sdf-feature-card__icon { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--sdf-gold); border-radius: 50%; color: var(--sdf-gold-dark); font-weight: 700; }

.sdf-process { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; position: relative; }
.sdf-process:before { content: ''; position: absolute; top: 1.5rem; left: 8%; right: 8%; height: 1px; background: var(--sdf-line); }
.sdf-process__item { position: relative; text-align: center; }
.sdf-process__number { width: 3rem; height: 3rem; margin: 0 auto 1rem; display: grid; place-items: center; border: 1px solid var(--sdf-gold); border-radius: 50%; background: var(--sdf-cream); color: var(--sdf-gold-dark); font-family: var(--sdf-serif); }
.sdf-process h3 { margin: 0; font-size: .95rem; }
.sdf-process p { margin: .35rem 0 0; font-size: .75rem; color: rgba(16,17,17,.6); }

.sdf-studio { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.sdf-studio__media img { width: 100%; aspect-ratio: 1.2 / .78; object-fit: cover; border-radius: var(--sdf-radius); }
.sdf-studio h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.sdf-studio p { color: rgba(255,255,255,.72); }
.sdf-studio__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.5rem; }
.sdf-studio__fact { border: 1px solid rgba(222,170,91,.45); border-radius: var(--sdf-radius); padding: .9rem; }
.sdf-studio__fact strong { display: block; color: #e2ae62; font-family: var(--sdf-serif); font-weight: 500; }
.sdf-studio__fact span { display: block; margin-top: .2rem; color: rgba(255,255,255,.66); font-size: .8rem; }

.sdf-benefits { max-width: 850px; margin: 0 auto; display: grid; gap: .55rem; }
.sdf-benefit { display: flex; align-items: center; gap: .65rem; padding: .72rem .9rem; border: 1px solid rgba(183,130,57,.35); border-radius: 999px; background: rgba(255,255,255,.32); font-size: .88rem; }
.sdf-benefit:before { content: '✓'; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--sdf-gold); border-radius: 50%; color: var(--sdf-gold-dark); font-weight: 800; }

.sdf-before-after { max-width: 900px; margin: 0 auto; }
.sdf-ba { position: relative; overflow: hidden; border-radius: var(--sdf-radius); background: #111; aspect-ratio: 16 / 9; }
.sdf-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sdf-ba__after { clip-path: inset(0 0 0 50%); }
.sdf-ba__handle { position: absolute; inset: 0 auto 0 50%; width: 3px; background: #fff; transform: translateX(-50%); cursor: ew-resize; }
.sdf-ba__handle:after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-weight: 800; }

.sdf-review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.sdf-review { background: var(--sdf-paper); border: 1px solid var(--sdf-line); border-radius: var(--sdf-radius); overflow: hidden; }
.sdf-review img { aspect-ratio: 1 / 1; object-fit: cover; }
.sdf-review__body { padding: .9rem; }
.sdf-review__stars { color: var(--sdf-gold); letter-spacing: .12em; font-size: .8rem; }
.sdf-review h3 { margin: .25rem 0; font-family: var(--sdf-serif); font-size: 1rem; font-weight: 500; }
.sdf-review p { margin: 0; color: rgba(16,17,17,.65); font-size: .78rem; }

.sdf-faq { max-width: 820px; margin: 0 auto; }
.sdf-faq details { border-bottom: 1px solid rgba(255,255,255,.18); }
.sdf-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-family: var(--sdf-serif); font-size: 1.05rem; }
.sdf-faq summary::-webkit-details-marker { display: none; }
.sdf-faq summary:after { content: '+'; color: #e0ab5d; font-family: var(--sdf-sans); }
.sdf-faq details[open] summary:after { content: '−'; }
.sdf-faq details p { margin: 0 0 1.1rem; color: rgba(255,255,255,.68); font-size: .9rem; }

.sdf-footer { background: #0b0c0c; color: rgba(255,255,255,.68); padding: 3rem 0 1.4rem; }
.sdf-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
.sdf-footer h2, .sdf-footer h3 { color: #fff; font-family: var(--sdf-serif); font-weight: 500; }
.sdf-footer h2 { margin-top: 0; font-size: 1.2rem; }
.sdf-footer h3 { margin: 0 0 .6rem; font-size: 1rem; }
.sdf-footer p { margin: .4rem 0; font-size: .86rem; }
.sdf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .86rem; }
.sdf-footer a { color: inherit; text-decoration: none; }
.sdf-footer a:hover { color: #fff; }
.sdf-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .75rem; }

.sdf-shop-shell { padding: 4rem 0 6rem; }
.sdf-shop-shell .woocommerce-breadcrumb { color: rgba(16,17,17,.6); font-size: .83rem; }
.sdf-product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sdf-product-gallery { display: grid; gap: .75rem; }
.sdf-product-gallery__main { border-radius: var(--sdf-radius); overflow: hidden; background: #fff; }
.sdf-product-gallery__main img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sdf-product-gallery__placeholder { aspect-ratio: 1; background: #e8ddc8; }
.sdf-product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.sdf-product-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: #fff; cursor: pointer; }
.sdf-product-gallery__thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sdf-product-gallery__thumb.is-active { border-color: var(--sdf-gold-dark); }
.sdf-product-gallery__thumb:focus-visible { outline: 3px solid rgba(29,204,98,.4); outline-offset: 2px; }
.sdf-product-info .product_title { margin: 0; font-family: var(--sdf-serif); font-size: 3.4rem; line-height: 1.05; font-weight: 500; }
.sdf-product-info .price { color: var(--sdf-gold-dark); font-size: 1.35rem; font-weight: 800; }
.sdf-product-info .woocommerce-product-details__short-description { color: rgba(16,17,17,.68); }
.sdf-product-info form.cart { margin-top: 1.5rem; }
.sdf-product-info form.cart .quantity { display: none; }
.sdf-product-info .single_add_to_cart_button { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--sdf-green); color: #06190d; font-weight: 800; cursor: pointer; }
.sdf-product-info .single_add_to_cart_button:hover, .sdf-product-info .single_add_to_cart_button:focus-visible { background: #58e58d; }
.sdf-product-meta { display: grid; gap: .45rem; margin-top: 1.5rem; color: rgba(16,17,17,.6); font-size: .82rem; }
.sdf-product-meta a { color: var(--sdf-gold-dark); }
.sdf-product-details { width: min(100%, 1000px); margin: 5rem auto 0; line-height: 0; overflow: hidden; }
.sdf-product-details img { display: block; width: 100%; height: auto; margin: 0; }

.sdf-sticky-cart { display: none; }
.sdf-slice-band { position: relative; margin: 0; padding: 0; line-height: 0; overflow: hidden; background: #111; }
.sdf-slice-band picture, .sdf-slice-band img { display: block; width: 100%; height: auto; }
.sdf-slice-hotspots { position: absolute; inset: 0; z-index: 2; }
.sdf-slice-hotspots a { position: absolute; display: block; border-radius: 6px; }
.sdf-slice-hotspots a:hover, .sdf-slice-hotspots a:focus-visible { outline: 2px solid var(--sdf-green); outline-offset: 2px; background: rgba(29,204,98,.16); }
.sdf-live-cta { background: var(--sdf-cream); text-align: center; padding: clamp(4rem, 8vw, 7rem) 0; line-height: 1.55; }
.sdf-live-cta h2, .sdf-live-faq h2 { margin: 0; font-family: var(--sdf-serif); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 500; line-height: 1.08; }
.sdf-live-cta p:not(.sdf-section__eyebrow) { max-width: 680px; margin: 1rem auto 0; color: rgba(16,17,17,.68); }
.sdf-button--outline-dark { border-color: var(--sdf-gold-dark); color: var(--sdf-gold-dark); }
.sdf-live-faq { background: var(--sdf-ink); color: #fff; padding: clamp(4rem, 8vw, 7rem) 0; line-height: 1.55; }
.sdf-live-faq .sdf-section__eyebrow { color: #e1ad5e; }
.sdf-live-faq .sdf-faq { margin-top: 2rem; }

@media (max-width: 900px) {
  .sdf-nav { position: absolute; top: 73px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem; background: #101111; border-bottom: 1px solid rgba(255,255,255,.15); }
  .sdf-nav.is-open { display: flex; }
  .sdf-nav a { padding: .5rem 0; }
  .sdf-menu-toggle { display: inline-flex; }
  .sdf-header__inner { min-height: 68px; }
  .sdf-product-grid { grid-template-columns: repeat(2, 1fr); }
  .sdf-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sdf-process { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .sdf-process:before { display: none; }
  .sdf-studio { grid-template-columns: 1fr; }
  .sdf-review-grid { grid-template-columns: repeat(2, 1fr); }
  .sdf-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .sdf-product-layout { grid-template-columns: 1fr; }
  .sdf-product-info .product_title { font-size: 2.8rem; }
}

@media (max-width: 560px) {
  .sdf-container, .sdf-header__inner, .sdf-hero__content { width: min(100% - 1.2rem, 1200px); }
  .sdf-section { padding: 3.4rem 0; }
  .sdf-product-grid, .sdf-feature-grid, .sdf-review-grid { grid-template-columns: 1fr; }
  .sdf-studio__facts { grid-template-columns: 1fr; }
  .sdf-process { grid-template-columns: repeat(2, 1fr); }
  .sdf-footer__grid { grid-template-columns: 1fr; }
  .sdf-hero { min-height: 680px; }
  .sdf-hero__media img { object-position: 57% center; }
  .sdf-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .sdf-actions { flex-direction: column; align-items: stretch; }
  .sdf-button { width: 100%; }
  .sdf-shop-shell { padding-top: 2rem; }
  .sdf-product-layout { gap: 1.5rem; }
  .sdf-product-gallery__thumbs { gap: .35rem; }
  .sdf-product-info .product_title { font-size: 2.35rem; }
  .sdf-product-details { margin-top: 3rem; }
  .sdf-sticky-cart { position: fixed; left: .6rem; right: .6rem; bottom: .6rem; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem .55rem .9rem; border: 1px solid rgba(16,17,17,.15); border-radius: 999px; background: rgba(255,253,248,.94); box-shadow: 0 10px 30px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
  .sdf-sticky-cart strong { font-size: .9rem; }
  .sdf-sticky-cart .sdf-button { width: auto; min-height: 40px; padding: .55rem .9rem; }
}
