.shop-page{min-height:70vh;background:#f5ead7;padding-bottom:7rem}
.shop-hero{padding:3.6rem 6vw 3.2rem;text-align:center;color:var(--cream);background:#2a1710 radial-gradient(circle at 50% 40%,rgba(196,137,63,.2),transparent 38%)}
.shop-hero h1{margin:0 0 .7rem;font:500 clamp(3.5rem,7vw,5.8rem)/.92 "Cormorant Garamond",serif}
.shop-hero h1 em{font-weight:500;color:var(--parchment)}
.shop-hero>p:last-child{max-width:650px;margin:auto;color:#d8c5aa}
.shop-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:min(1180px,90%);margin:2.5rem auto 1.5rem}
.shop-bar p{margin:0;color:#72594b}
.cart-toggle{border:1px solid #80572f;background:#2a1710;color:#f7eddb;padding:.8rem 1.1rem;font:600 .7rem Montserrat,sans-serif;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.collection-feature{position:relative;width:min(1180px,90%);margin:0 auto 3rem;overflow:hidden;border:1px solid #b98d5c;background:#24140e;box-shadow:0 25px 60px rgba(60,34,19,.2)}
.collection-feature img{display:block;width:100%;aspect-ratio:16/8;object-fit:cover;object-position:center}
.collection-feature::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(27,14,9,.78) 0%,rgba(27,14,9,.48) 38%,rgba(27,14,9,.06) 68%)}
.collection-feature-copy{position:absolute;z-index:1;left:clamp(1.5rem,5vw,4.5rem);top:50%;width:min(430px,46%);transform:translateY(-50%);color:#f7eddb}
.collection-feature-copy h2{margin:.35rem 0 .8rem;font:500 clamp(2.4rem,4vw,4.5rem)/.92 "Cormorant Garamond",serif}
.collection-feature-copy h2 em{font-weight:500;color:#e7c99c}
.collection-feature-copy>p:last-child{margin:0;color:#e1cfb4;line-height:1.65}
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;width:min(1180px,90%);margin:auto}
.shop-card{background:#f9efdd;border:1px solid #c8a97d;padding:12px;box-shadow:0 23px 54px rgba(60,34,19,.16)}
.shop-card .product-art{height:350px}
.product-photo{display:block;aspect-ratio:1;overflow:hidden;background:#28160f}
.product-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.shop-card:hover .product-photo img{transform:scale(1.018)}
.closer-look{width:min(1180px,90%);margin:5rem auto 0;padding-top:4.5rem;border-top:1px solid #c8a97d}
.closer-look-heading{text-align:center;max-width:680px;margin:0 auto 2.2rem}
.closer-look-heading h2{margin:.25rem 0 .7rem;color:#352016;font:500 clamp(2.7rem,5vw,4.6rem)/.95 "Cormorant Garamond",serif}
.closer-look-heading h2 em{font-weight:500;color:#9a672f}
.closer-look-heading>p:last-child{color:#72594b;line-height:1.7}
.detail-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem}
.detail-gallery figure{margin:0;background:#2a1710;border:1px solid #b98d5c;padding:10px;box-shadow:0 20px 45px rgba(60,34,19,.16)}
.detail-gallery img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.detail-gallery figcaption{padding:.9rem .4rem .4rem;color:#f0dfc4;text-align:center;font:500 1.35rem "Cormorant Garamond",serif}
.shop-info{padding:1.3rem .7rem .9rem}
.shop-info .scripture{margin:0;color:#98662e;font-size:.62rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase}
.shop-title-row{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.shop-title-row h2{margin:.2rem 0;font:600 2.1rem "Cormorant Garamond",serif}
.shop-title-row h2 a:hover{color:#9a672f}
.price{font-weight:600;color:#4a2c20}
.scent{margin:.2rem 0 .9rem;color:#765c4d;font-size:.85rem}
.meaning{min-height:68px;margin:0 0 1.1rem;color:#5e4639;font-size:.86rem;line-height:1.65}
.add-cart{width:100%;border:0;cursor:pointer}
.cart-shade{display:none;position:fixed;inset:0;z-index:80;background:rgba(20,10,7,.58)}
.cart-shade.open{display:block}
.cart-panel{position:absolute;right:0;top:0;width:min(440px,94vw);height:100%;overflow:auto;padding:2rem;background:#f7ecd8;box-shadow:-20px 0 55px rgba(0,0,0,.3)}
.cart-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c9aa7e;padding-bottom:1rem}
.cart-head h2{margin:0;font:600 2.2rem "Cormorant Garamond",serif}
.cart-close{border:0;background:none;font-size:1.8rem;cursor:pointer}
.cart-empty{padding:3rem 0;text-align:center;color:#745d50}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:.5rem;padding:1.2rem 0;border-bottom:1px solid #d0b58f}
.cart-item h3{margin:0;font:600 1.4rem "Cormorant Garamond",serif}
.cart-item p{margin:0;color:#745d50;font-size:.78rem}
.cart-controls{display:flex;align-items:center;gap:.55rem;margin-top:.7rem}
.cart-controls button{width:30px;height:30px;border:1px solid #a77b4e;background:#fff7e7;cursor:pointer}
.cart-remove{color:#7b3d2e;border:0!important;background:none!important;width:auto!important;font-size:.68rem}
.cart-summary{margin-top:1.5rem;padding-top:1rem;border-top:2px solid #9f7547}
.subtotal{display:flex;justify-content:space-between;font-weight:600}
.shipping-note{font-size:.75rem;color:#735b4d}
.checkout-button{width:100%;border:0;opacity:.62;cursor:not-allowed}
.checkout-note{text-align:center;font-size:.72rem;color:#745d50}
.cart-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:900px){.collection-feature img{aspect-ratio:4/5;object-position:center}
.collection-feature::after{background:linear-gradient(0deg,rgba(27,14,9,.82) 0%,rgba(27,14,9,.32) 58%,rgba(27,14,9,.05) 100%)}
.collection-feature-copy{left:1.5rem;right:1.5rem;top:auto;bottom:1.6rem;width:auto;transform:none}
.shop-grid{grid-template-columns:1fr}
.shop-card{width:min(520px,100%);margin:auto}
.shop-card .product-art{height:min(100vw,420px)}
.detail-gallery{grid-template-columns:repeat(2,1fr)}
.detail-gallery figure{width:min(520px,100%);margin:auto}
.closer-look{margin-top:4rem;padding-top:3.5rem}
}
@media(max-width:520px){.shop-hero{padding:3rem 6vw 2.7rem}
.collection-feature{width:92%}
.collection-feature-copy h2{font-size:2.4rem}
.detail-gallery{grid-template-columns:1fr}
.shop-bar{align-items:flex-start}
.shop-bar p{font-size:.84rem}
.shop-title-row{align-items:center}
.meaning{min-height:0}
}
.candle-options{display:grid;gap:1rem;margin:1.2rem 0;color:#4a2c20}
.candle-options label{display:grid;gap:.45rem;font-size:.85rem;font-weight:600}
.candle-options select,.candle-options input,.candle-options textarea{box-sizing:border-box;width:100%;min-width:0;padding:.85rem;border:1px solid #a98056;background:#fffaf0;color:#352016;font:400 1rem/1.5 sans-serif}
.candle-options textarea{resize:vertical}
.candle-options :focus-visible{outline:2px solid #80572f;outline-offset:3px}
.proof-note{font-size:.8rem;line-height:1.6;margin:0;color:#72594b}
.custom-candle-card{grid-column:1/-1;padding:clamp(1.5rem,4vw,3rem)}
.custom-candle-card .shop-info{max-width:680px;margin:auto}
.custom-candle-card h2{font:600 2.5rem/1.1 'Cormorant Garamond',serif}
.cart-item p{overflow-wrap:anywhere;white-space:pre-wrap}

/* Custom scripture candle: an aged parchment label. */
.custom-candle-card{
 position:relative;isolation:isolate;box-sizing:border-box;overflow:hidden;
 padding:clamp(2.5rem,6vw,5rem) clamp(1.65rem,6vw,5rem);
 border:2px solid #714a2d;border-radius:3px;color:#39271c;
 background:
  radial-gradient(ellipse at 0 0,rgba(105,61,28,.3),transparent 32%),
  radial-gradient(ellipse at 100% 100%,rgba(105,61,28,.28),transparent 32%),
  linear-gradient(90deg,rgba(110,64,29,.3),transparent 12%,transparent 88%,rgba(110,64,29,.3)),
  linear-gradient(0deg,rgba(117,68,32,.32),transparent 12%,transparent 88%,rgba(117,68,32,.32)),
  repeating-linear-gradient(113deg,rgba(135,100,61,.025) 0 1px,transparent 1px 5px),#f5e7cd;
 box-shadow:inset 0 0 28px 7px rgba(95,53,23,.36),inset 0 0 4px 2px #8e6038,0 20px 45px rgba(60,34,19,.18);
 scroll-margin-top:2rem;
}
.custom-candle-card::before{content:"";position:absolute;inset:15px;border:3px double #805b36;pointer-events:none;z-index:-1}
.custom-candle-card::after{content:"✦";position:absolute;top:8px;left:50%;transform:translateX(-50%);padding:0 .7rem;color:#6f4829;background:#ead6b4;font-size:1.15rem;line-height:1}
.custom-candle-card .shop-info{padding:0;max-width:680px}
.custom-candle-card .scripture{text-align:center;color:#77532f;font-size:.65rem;letter-spacing:.18em}
.custom-candle-card h2{max-width:580px;margin:.8rem auto 1rem;text-align:center;font-size:clamp(2.3rem,5vw,3.6rem);color:#352217;text-wrap:balance}
.custom-candle-card .price{text-align:center;padding-bottom:1.35rem;margin:0 0 1.5rem;border-bottom:1px solid #b89564;font-size:.85rem}
.custom-candle-card .shop-info>p:not(.scripture):not(.price){line-height:1.75;color:#543d2a}
.custom-candle-card .candle-options{margin:1.6rem 0;gap:1.2rem}
.custom-candle-card .candle-options select,.custom-candle-card .candle-options input,.custom-candle-card .candle-options textarea{border:1px solid #a9885e;border-radius:3px;background:#fffaf0;box-shadow:inset 0 2px 4px rgba(85,54,26,.05)}
.custom-candle-card .add-cart{min-height:52px;background:#4b2d1c;color:#fff4df;border:1px solid #6e482c;box-shadow:0 4px 10px rgba(67,40,20,.15);white-space:normal;line-height:1.5}
.custom-candle-card .add-cart:hover{background:#633d24}
@media(max-width:520px){.custom-candle-card{padding:2.7rem 1.65rem}.custom-candle-card::before{inset:10px}.custom-candle-card::after{top:4px}.custom-candle-card .scripture{letter-spacing:.1em;font-size:.6rem}.custom-candle-card .price{line-height:1.6}}

/* Use the label artwork for the parchment and ornamental frame. */
.custom-candle-card{border:38px solid transparent;border-image:url('/assets/custom-label-frame-soft.png') 110 fill / 38px / 0 stretch;background:#fff9ec;box-shadow:0 20px 45px rgba(60,34,19,.18);padding:2rem clamp(.5rem,3vw,2.5rem);border-radius:0}
.custom-candle-card::before,.custom-candle-card::after{display:none}
.custom-label-emblem{width:126px;height:132px;margin:0 auto 1rem;background-image:url('/assets/custom-label-original.png');background-size:627px 627px;background-position:-247px -42px;background-repeat:no-repeat}
.custom-candle-card h2{color:#17130f;font-weight:700}
.custom-candle-card .candle-options select,.custom-candle-card .candle-options input,.custom-candle-card .candle-options textarea{background:rgba(255,254,249,.94)}
@media(max-width:520px){.custom-candle-card{border-width:25px;border-image-width:25px;padding:1.3rem .3rem}.custom-candle-card h2{font-size:2.15rem}.custom-label-emblem{margin-bottom:.7rem}}

.custom-label-emblem{border-radius:50%;}

/* A compact label builder: preview beside the form. */
.custom-candle-card{border:1px solid #c8a97d;border-image:none;background:#fbf5e9;padding:clamp(1.4rem,4vw,3rem);overflow:visible;box-shadow:0 16px 38px rgba(60,34,19,.12)}
.custom-builder-heading{text-align:center;max-width:730px;margin:0 auto 2rem}
.custom-candle-card .custom-builder-heading h2{font-size:clamp(2.1rem,4vw,3.1rem);margin:.5rem auto .8rem;max-width:700px}
.custom-builder-heading>p:not(.scripture){margin:.4rem 0;color:#66513e;line-height:1.6}
.custom-builder-heading .price{border:0;padding:0;font-size:.85rem}
.custom-builder-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}
.custom-label-preview{margin:0;min-width:0;text-align:center}
.custom-label-preview canvas{display:block;width:100%;max-width:480px;height:auto;aspect-ratio:1;margin:0 auto 1rem;box-shadow:0 8px 24px rgba(71,43,21,.17)}
.custom-label-preview figcaption{font-size:.78rem;line-height:1.6;color:#715336;margin-bottom:.7rem}
.custom-label-preview .proof-note{font-size:.74rem;max-width:430px;margin:auto}
.custom-candle-card .custom-builder-form{max-width:none;width:100%;padding:0}
.custom-builder-form h3{margin:0 0 1rem;font:600 1.8rem 'Cormorant Garamond',serif;color:#3e281b}
.custom-builder-form .candle-options{margin:0 0 1.2rem;gap:1rem}
.preview-label-button{width:100%;background:#e9d4b0;color:#3c281a;border:1px solid #967044;cursor:pointer;min-height:50px}
.preview-label-button:hover{background:#e0c395}
.preview-label-button:focus-visible{outline:2px solid #80572f;outline-offset:3px}
.translation-note{margin-top:-.4rem}
@media(max-width:900px){.custom-candle-card{width:100%;max-width:none}.custom-builder-layout{grid-template-columns:1fr}.custom-label-preview canvas{max-width:410px}.custom-builder-form{max-width:520px!important;margin:auto!important}}

.custom-candle-example{margin:0 0 2rem;text-align:center}
.custom-candle-example img{display:block;width:100%;height:auto}
.custom-candle-example figcaption{margin-top:.7rem;font-size:.8rem;line-height:1.6;color:#715336}

.custom-label-preview[hidden]{display:none}
.custom-builder-layout:not(.has-label-preview){grid-template-columns:minmax(0,1fr)}
.custom-builder-layout:not(.has-label-preview) .custom-builder-form{max-width:600px;margin-inline:auto}

.custom-live-preview canvas{display:block;width:100%;height:auto;aspect-ratio:1672/941}
.custom-live-preview .proof-note{font-size:.8rem;line-height:1.6;color:#715336}

.custom-live-preview canvas{width:100%;max-width:420px;margin-inline:auto;aspect-ratio:650/941}

.candle-options input[type="range"]{width:100%;min-height:44px;accent-color:#80572f;padding:0;cursor:pointer}
.text-size-value{display:block;text-align:right;font-size:.85rem;color:#715336}

/* Keep the candle visible beside the controls while customers personalize it. */
.custom-builder-layout.custom-builder-side-by-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}
.custom-builder-side-by-side .custom-live-preview{position:sticky;top:100px;margin:0;min-width:0}
.custom-builder-side-by-side .custom-live-preview canvas{max-width:360px}
.custom-builder-layout.custom-builder-side-by-side .custom-builder-form{max-width:none;margin:0}
@media(max-width:700px){
 .custom-builder-layout.custom-builder-side-by-side{grid-template-columns:1fr}
 .custom-builder-side-by-side .custom-live-preview{position:static}
 .custom-builder-side-by-side .custom-live-preview canvas{max-width:280px}
}

.cart-item{grid-template-columns:84px minmax(0,1fr);column-gap:.85rem;align-items:start}
.cart-product-picture{display:block;width:84px;height:110px;object-fit:cover;border-radius:4px;grid-column:1;grid-row:1 / span 2}
.cart-custom-picture{height:auto;aspect-ratio:650/941}
.cart-item-details{grid-column:2;grid-row:1;min-width:0}
.cart-item>strong{grid-column:2;grid-row:2;font-size:.9rem}
.cart-controls{flex-wrap:wrap}
/* Keep purchase controls aligned across each collection row. */
.shop-grid>.shop-card:not(.custom-candle-card){display:flex;flex-direction:column;min-width:0}
.shop-grid>.shop-card:not(.custom-candle-card)>.product-photo{flex-shrink:0}
.shop-grid>.shop-card:not(.custom-candle-card)>.shop-info{display:flex;flex-direction:column;flex:1}
.shop-grid>.shop-card:not(.custom-candle-card) .candle-options{margin-top:auto;padding-top:1.2rem}
@media(max-width:380px){.cart-item{grid-template-columns:64px minmax(0,1fr);column-gap:.65rem}.cart-product-picture{width:64px;height:86px}.cart-custom-picture{height:auto}}

/* Preserve the square held-candle photo in the builder and cart. */
.custom-live-preview canvas,.cart-custom-picture{aspect-ratio:974/1254;height:auto}

/* Match the jar size across source photos while leaving room for each flame. */
.shop-card > .product-photo img{--candle-zoom:1.45;transform:scale(var(--candle-zoom));transform-origin:52% 43%}
.shop-card > .product-photo img[src*="give-thanks-psalm-107"]{--candle-zoom:1.1;transform-origin:52% 32%}
.shop-card > .product-photo img[src*="fear-not-lifestyle"]{--candle-zoom:1.4}
.shop-card > .product-photo img[src*="christ-strengthens-me"]{--candle-zoom:1.48;transform-origin:52% 44%}
.shop-card:hover > .product-photo img{transform:scale(var(--candle-zoom))}
