@charset "utf-8";

/* Product page: photos and the buy block, how to brew with a timer, the description and the specs, similar and recently
   viewed products, the bottom bar on phones, photos full screen. The base, cards and the cup are in shop.css */

/* the color of the infusion (--tea, set by the template) tints the glow behind the photos and the brewing block;
   amber for what isn't brewed */
.pp{--tint:var(--tea,var(--amber));padding-bottom:var(--sec);}

/* TOP: breadcrumbs, photos and the buy block */

.pp-top{position:relative;isolation:isolate;padding-bottom:clamp(56px,6vw,96px);overflow:clip;}
.pp-top::before{content:"";position:absolute;top:-220px;left:calc(50% - 820px);z-index:-1;width:1150px;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--tint) 38%,transparent),color-mix(in srgb,var(--tint) 12%,transparent) 55%,transparent);pointer-events:none;}
.pp .crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;padding:22px 0 20px;color:var(--ink-3);font-size:13.5px;}
.pp .crumbs a{transition:color .2s;}
.pp .crumbs a:hover{color:var(--jade);}
.pp .crumbs i{font-style:normal;opacity:.55;}
.pp-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(32px,4.5vw,76px);align-items:start;}

/* photos: a strip snapped by scrolling inside a white frame (the photos are shot on white), thumbnails below. Not sticky:
   Chrome puts a sticky block on a layer of its own, and everything drawn after it on layers too */
.gal-stage{position:relative;aspect-ratio:1;overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 0 0 1px var(--line),0 44px 70px -44px rgba(40,30,15,.5);}
.gal-track{display:flex;height:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;}
.gal-track::-webkit-scrollbar{display:none;}
.gal-track:focus-visible{outline-offset:-4px;border-radius:inherit;}
.gal-slide{display:grid;flex:0 0 100%;place-items:center;margin:0;padding:6%;scroll-snap-align:start;cursor:zoom-in;}
.gal-slide img{width:100%;height:100%;object-fit:contain;}
.gal-btn,.gal-zoom{position:absolute;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:var(--shadow);color:var(--ink);transition:opacity .2s,color .2s;}
.gal-btn:hover,.gal-zoom:hover{color:var(--jade);}
.gal-btn{top:50%;margin-top:-23px;opacity:0;}
.gal-btn .ic,.gal-zoom .ic{width:22px;height:22px;stroke-width:2;}
.gal-prev{left:14px;}
.gal-next{right:14px;}
.gal-stage:hover .gal-btn,.gal-btn:focus-visible{opacity:1;}
.gal-zoom{right:16px;bottom:16px;}
.gal-count{position:absolute;bottom:26px;left:20px;padding:3px 10px;border-radius:999px;background:rgba(15,32,27,.62);color:#fff;font-size:12.5px;font-variant-numeric:tabular-nums;}
.gal .badge{top:20px;left:20px;padding:6px 12px;font-size:13.5px;}
.gal-thumbs{position:relative;display:flex;gap:10px;margin-top:14px;padding:3px;overflow-x:auto;scrollbar-width:none;}
.gal-thumbs::-webkit-scrollbar{display:none;}
.gal-thumb{flex:0 0 74px;aspect-ratio:1;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line);opacity:.6;transition:opacity .2s,box-shadow .2s;}
.gal-thumb:hover{opacity:1;}
.gal-thumb[aria-current]{opacity:1;box-shadow:0 0 0 2px var(--jade);}
.gal-thumb img{width:100%;height:100%;object-fit:cover;}

.pp-info{padding-top:4px;}
.pp h1{margin-top:12px;font-family:var(--serif);font-weight:600;font-size:clamp(38px,2.3vw + 20px,62px);line-height:1;letter-spacing:-.015em;text-wrap:balance;}
.pp-lead{max-width:36em;margin-top:16px;color:var(--ink-2);font-size:16.5px;}
.pp-lead span{color:var(--ink-3);}

/* the buy block: a card with the price, how much to take, the button and the stock */
.pp-buy{margin-top:28px;padding:26px 28px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);box-shadow:var(--shadow);}
.pp-pr{gap:2px 14px;font-size:15px;}
.pp-pr .now{font-family:var(--serif);font-weight:600;font-size:clamp(40px,1.4vw + 26px,52px);line-height:1;letter-spacing:-.01em;font-variant-numeric:lining-nums;}
.pp-pr .old{font-size:19px;}
.pp-pr .unit{color:var(--ink-3);}
/* the ruble sign in the text font: the heading font has no such glyph, and the fallback one came out big and bold. The
   space before it is in the same small font: narrow on the page, a space in copied text */
.pp-pr .rub{font-family:var(--sans);font-weight:500;font-size:.55em;}
.pp-pot{margin-top:8px;color:var(--ink-2);font-size:14.5px;}
.pp-noprice{font-family:var(--serif);font-weight:600;font-size:28px;line-height:1.15;}
.pp-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:22px;}
.pp-amounts button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:10px 6px;border:1.5px solid var(--line-2);border-radius:var(--r-sm);background:var(--card);transition:border-color .2s,background-color .2s,box-shadow .2s;}
.pp-amounts button:hover{border-color:var(--ink);}
.pp-amounts b{font-size:16px;}
.pp-amounts small{color:var(--ink-3);font-size:13px;}
.pp-amounts [aria-pressed="true"]{border-color:var(--jade);background:color-mix(in srgb,var(--jade) 7%,#fff);box-shadow:inset 0 0 0 1px var(--jade);}
.pp-amounts [aria-pressed="true"] small{color:var(--jade);}
.pp-pots{min-height:1.5em;margin-top:10px;color:var(--ink-3);font-size:13.5px;}
/* the button, then the counter with a field and the sum (shop.js); a card's button is in shop.css */
.pp-buybox{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:18px;}
.pp-buybox .buy-add{display:flex;flex:1;align-items:center;justify-content:center;gap:10px;height:58px;border:0;background:var(--jade);box-shadow:0 16px 30px -16px rgba(31,91,74,.85);color:#fff;font-size:16.5px;}
.pp-buybox .buy-add:hover{background:var(--jade-2);color:#fff;}
.pp-buybox .buy-add .ic{width:21px;height:21px;}
.pp-buybox .buy-qty{height:58px;padding:0 5px;border:1.5px solid var(--line-2);background:var(--card);color:var(--ink);}
.pp-buybox .buy-qty button{width:46px;height:46px;}
.pp-buybox .buy-qty button:hover{background:var(--paper-2);}
.buy-field{display:flex;align-items:baseline;gap:4px;padding:0 2px;font-weight:800;font-size:19px;cursor:text;}
.buy-field input{width:4ch;padding:0;border:0;background:none;font-weight:800;text-align:right;font-variant-numeric:tabular-nums;}
.buy-field input:focus{outline:none;}
.buy-field:focus-within{box-shadow:0 2px 0 var(--jade);}
.buy-field span{color:var(--ink-3);font-weight:600;font-size:15px;}
.buy-total{display:none;font-weight:800;font-size:22px;white-space:nowrap;}
.pp-buybox.is-in .buy-total{display:block;}
.pp-in{display:none;align-items:center;gap:8px;margin-top:12px;color:var(--jade);font-weight:600;font-size:14.5px;}
.pp-in .ic{width:18px;height:18px;stroke-width:2.2;}
.pp-in a{text-decoration:underline;text-underline-offset:3px;}
.pp-buybox.is-in + .pp-in{display:flex;}
.pp-stock{display:grid;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);color:var(--ink-2);font-size:14.5px;}
.pp-stock li{position:relative;padding-left:22px;}
/* a dot: green — in stock, amber — on its way, copper — we can bring it, gray — out */
.pp-stock li::before{content:"";position:absolute;top:.55em;left:2px;width:9px;height:9px;border-radius:50%;background:#2f9467;box-shadow:0 0 0 4px rgba(47,148,103,.16);}
.pp-stock .is-out::before{background:var(--ink-3);box-shadow:0 0 0 4px rgba(115,108,96,.14);}
.pp-stock .is-way::before{background:var(--amber);box-shadow:0 0 0 4px rgba(232,167,74,.22);}
.pp-stock .is-order::before{background:var(--copper);box-shadow:0 0 0 4px rgba(178,68,28,.14);}
.pp-stock small{color:var(--ink-3);font-size:13px;}
.pp-stock a{color:var(--jade);font-weight:600;white-space:nowrap;}

/* the shop's terms: delivery with how much is left until it's free (product.js), pickup, cashback */
.pp-perks{display:grid;gap:16px;margin-top:26px;}
.pp-perks li{display:flex;align-items:flex-start;gap:14px;}
.pp-perks .ic{width:42px;height:42px;padding:10px;border-radius:50%;background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--jade);stroke-width:1.6;}
.pp-perks p{display:flex;flex-direction:column;gap:2px;padding-top:1px;color:var(--ink-2);font-size:14px;line-height:1.45;}
.pp-perks b{color:var(--ink);font-size:15px;}
.pp-free{display:block;max-width:340px;margin-top:8px;}
.pp-free i{position:relative;display:block;height:5px;overflow:hidden;border-radius:3px;background:var(--line);}
.pp-free i::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--jade),#3d8f6f);transform:scaleX(var(--p,0));transform-origin:0 50%;transition:transform .6s var(--ease);}
.pp-free span{display:block;margin-top:6px;color:var(--jade);font-weight:600;font-size:13.5px;}
.pp-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:24px;}
.pp-share{display:inline-flex;align-items:center;gap:8px;color:var(--ink-2);font-weight:600;font-size:15px;transition:color .2s;}
.pp-share:hover{color:var(--jade);}
.pp-share .ic{width:19px;height:19px;}

/* HOW TO BREW: the night background tinted by the infusion; three steps from the label and a cup that brews on a
   timer: the water darkens to the color of the tea while the ring runs out and steam rises (product.js) */

.pp-brew{position:relative;padding:var(--sec) 0;background:radial-gradient(900px 560px at 88% 30%,color-mix(in srgb,var(--tint) 32%,transparent),transparent 62%),radial-gradient(900px 500px at 0% 100%,rgba(31,91,74,.42),transparent 60%),var(--night);color:var(--cream);}
.pp-brew .sec-title{color:#fff;}
.pp-brew .sec-sub{color:rgba(241,233,218,.76);}
.pp-brew-in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:clamp(40px,6vw,96px);align-items:center;}
.pp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:36px;}
.pp-steps div{display:flex;flex-direction:column;gap:16px;padding:22px 22px 24px;border:1px solid var(--night-line);border-radius:var(--r);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));}
/* a name in two lines: the icon stays by the first line, and the values of all three still line up at the bottom */
.pp-steps dt{display:flex;align-items:flex-start;gap:10px;color:rgba(241,233,218,.72);font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;}
.pp-steps dt .ic{width:24px;height:24px;margin-top:calc((1lh - 24px) / 2);color:var(--gold);}
/* lining figures, as on the timer: the serif's own figures go up and down */
.pp-steps dd{margin-top:auto;font-family:var(--serif);font-weight:600;font-size:clamp(24px,1vw + 16px,31px);line-height:1.1;font-variant-numeric:lining-nums;color:#fff;}

/* without JS there is no timer */
.pp-timer{display:none;}
.js .pp-timer{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;}
.pp-cup{position:relative;display:grid;place-items:center;width:min(300px,72vw);aspect-ratio:1;}
.pp-cup .cup{width:74%;}
.pp-ring{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:2.5;transform:rotate(-90deg);}
.pp-ring circle{stroke:rgba(241,233,218,.14);}
/* the running ring only while brewing and after: at rest its round cap would show as a dot */
.pp-ring .pp-ring-run{stroke:var(--amber);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;opacity:0;transition:stroke-dashoffset .3s linear;}
.pp-timer:is(.is-brewing,.is-done) .pp-ring-run{opacity:1;}
.cup-water{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#fbf7ee,#efe5d1);opacity:0;transition:opacity .3s linear;}
.cup-leaves{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.pp-steam{position:absolute;bottom:64%;left:50%;width:46%;height:42%;opacity:0;transform:translateX(-50%);transition:opacity .8s;pointer-events:none;}
.pp-steam i{position:absolute;bottom:0;width:30%;height:85%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.42),transparent);filter:blur(5px);opacity:0;}
.pp-steam i:nth-child(1){left:6%;}
.pp-steam i:nth-child(2){left:35%;animation-delay:1s;}
.pp-steam i:nth-child(3){left:64%;animation-delay:2s;}
.pp-timer.is-brewing .pp-steam{opacity:1;}
.pp-timer.is-brewing .pp-steam i{animation:steam 3s ease-in-out infinite;}
.pp-clock{display:flex;flex-direction:column;align-items:center;gap:6px;}
.pp-clock b{color:#fff;font-family:var(--serif);font-weight:600;font-size:64px;line-height:1;font-variant-numeric:lining-nums tabular-nums;transition:color .4s;}
.pp-clock span{color:var(--gold);font-size:12.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.pp-timer.is-done .pp-clock b{color:var(--amber);}
.pp-times{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;transition:opacity .3s;}
.pp-times button{padding:8px 16px;border:1.5px solid rgba(241,233,218,.28);border-radius:999px;color:var(--cream);font-weight:600;font-size:14px;transition:border-color .2s,background-color .2s,color .2s;}
.pp-times button:hover{border-color:var(--cream);}
.pp-times [aria-pressed="true"]{border-color:var(--cream);background:var(--cream);color:var(--night);}
.pp-timer.is-brewing .pp-times{opacity:.35;pointer-events:none;}
.pp-go{min-width:220px;}
@keyframes steam{0%{opacity:0;transform:translateY(30%) scale(.7);}35%{opacity:.85;}100%{opacity:0;transform:translateY(-70%) scale(1.25);}}

/* ABOUT: the description as an article, the specs beside it */

.pp-about-in{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:clamp(36px,5vw,88px);align-items:start;}
.pp-about-in.is-specs{grid-template-columns:minmax(0,640px);}
.pp-text{max-width:68ch;margin-top:26px;color:var(--ink-2);font-size:17px;line-height:1.75;}
.pp-text p,.pp-text ul,.pp-text ol{margin:0 0 14px;}
.pp-text h2,.pp-text h3,.pp-text h4{margin:34px 0 10px;color:var(--ink);font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.1;}
.pp-text h2 strong,.pp-text h3 strong{font-weight:inherit;}
.pp-text strong,.pp-text b{color:var(--ink);font-weight:700;}
.pp-text ul{padding-left:1.2em;list-style:disc;}
.pp-text ol{padding-left:1.4em;list-style:decimal;}
.pp-text li + li{margin-top:6px;}
.pp-text a{color:var(--jade);text-decoration:underline;text-underline-offset:3px;}
.pp-text img{height:auto;margin:20px 0;border-radius:var(--r-sm);}
/* the first letter of the description, as in a book */
.pp-text.has-cap > p:first-child::first-letter,.pp-text.has-cap > div:first-child > p:first-child::first-letter{float:left;margin:.07em .12em 0 0;color:var(--copper);font-family:var(--serif);font-weight:600;font-size:3.4em;line-height:.8;}
.pp-specs{padding:28px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);box-shadow:var(--shadow);}
.pp-specs h2{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.1;}
.pp-specs dl{margin-top:14px;}
.pp-specs dl div{display:grid;grid-template-columns:minmax(96px,38%) 1fr;gap:14px;padding:12px 0;border-top:1px solid var(--line);font-size:14.5px;}
.pp-specs dl div:first-child{border-top:0;}
.pp-specs dt{color:var(--ink-3);}
.pp-specs dd{font-weight:600;}
.pp-specs dd a{color:var(--jade);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--jade) 35%,transparent);text-underline-offset:3px;transition:text-decoration-color .2s;}
.pp-specs dd a:hover{text-decoration-color:currentColor;}
.pp-docs{display:grid;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line);}
.pp-docs a{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14.5px;}
.pp-docs a:hover{color:var(--jade);}
.pp-docs .ic{width:22px;height:22px;color:var(--copper);}

/* SIMILAR AND RECENTLY VIEWED: a strip scrolled sideways, arrows on wide screens */

.pp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;}
.pp-arrows{display:flex;flex:none;gap:8px;}
.pp-arrows button{display:grid;place-items:center;width:46px;height:46px;border:1.5px solid var(--line-2);border-radius:50%;background:var(--card);color:var(--ink);transition:border-color .2s,opacity .2s;}
.pp-arrows button:hover{border-color:var(--ink);}
.pp-arrows button:disabled{opacity:.35;cursor:default;}
.pp-arrows .ic{width:20px;height:20px;stroke-width:2;}
/* the strip itself is in shop.css: here five cards to a screen */
.pp-row{--card-w:calc((100% - 64px) / 5);}

/* the bottom bar: phones and tablets only */
.pp-bar{display:none;}

/* PHOTOS FULL SCREEN (product.js): the biggest photos on a dark background, one by one; a click zooms in */

.lb{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:#0d1512;color:#fff;}
.lb::backdrop{background:rgba(5,10,8,.7);}
.lb-track{display:flex;width:100%;height:100%;overflow-x:auto;overscroll-behavior:contain;scroll-snap-type:x mandatory;scrollbar-width:none;}
.lb-track::-webkit-scrollbar{display:none;}
.lb-slide{display:grid;flex:0 0 100%;place-items:center;margin:0;overflow:hidden;scroll-snap-align:start;}
.lb-slide img{width:auto;height:auto;max-width:min(94vw,1400px);max-height:90vh;border-radius:14px;background:#fff;cursor:zoom-in;transition:transform .35s var(--ease);}
.lb-slide.is-zoom img{cursor:zoom-out;touch-action:none;transform:scale(2.2);}
/* zoomed in, the strip stands still: a finger moves the photo instead */
.lb.is-zoomed .lb-track{overflow:hidden;}
.lb-btn{position:absolute;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;transition:background-color .2s;}
.lb-btn:hover{background:rgba(255,255,255,.24);}
.lb-btn .ic{width:24px;height:24px;stroke-width:2;}
.lb-close{top:18px;right:18px;}
.lb-prev,.lb-next{top:50%;margin-top:-26px;}
.lb-prev{left:18px;}
.lb-next{right:18px;}
.lb-count{position:absolute;top:32px;left:26px;color:rgba(255,255,255,.75);font-size:14px;font-variant-numeric:tabular-nums;}

/* MOTION: steam only while the timer runs (the cup brews as it comes into view — shop.css) */

@media (prefers-reduced-motion:reduce){
	.pp-steam{display:none;}
}

/* WIDTHS */

@media (max-width:1199px){
	.pp-row{--card-w:calc((100% - 48px) / 4);}
}

@media (max-width:999px){
	/* minmax(0, …): a 1fr column is never narrower than its content, and the strip of thumbnails is wider than a phone */
	.pp-grid{grid-template-columns:minmax(0,1fr);}
	.gal{width:100%;max-width:640px;margin:0 auto;}
	.pp-info{padding-top:0;}
	.pp-brew-in,.pp-about-in{grid-template-columns:minmax(0,1fr);}
	.pp-row{--card-w:calc((100% - 32px) / 3.3);}
	.pp-arrows{display:none;}

	/* the bottom bar: shown once the buy block has scrolled away; the footer ends above it */
	.js .pp-bar{position:fixed;right:0;bottom:0;left:0;z-index:80;display:block;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -12px 30px -14px rgba(30,25,15,.3);visibility:hidden;transform:translateY(105%);transition:transform .3s var(--ease),visibility .3s;}
	.pp-bar.is-on{visibility:visible;transform:none;}
	.pp-bar-in{display:flex;align-items:center;gap:12px;max-width:640px;margin:0 auto;}
	.pp-bar img{flex:none;width:46px;height:46px;border-radius:12px;background:#fff;object-fit:cover;box-shadow:0 0 0 1px var(--line);}
	.pp-bar-t{display:flex;flex:1;flex-direction:column;min-width:0;}
	.pp-bar-t span{overflow:hidden;color:var(--ink-2);font-size:13px;white-space:nowrap;text-overflow:ellipsis;}
	.pp-bar-t b{font-size:17px;font-weight:800;}
	.pp-bar-t small{color:var(--ink-3);font-size:12.5px;font-weight:500;}
	.pp-bar .buy{flex:0 0 150px;margin:0;}
	.js .product .ftr{padding-bottom:110px;}
}

@media (max-width:760px){
	.pp .crumbs{padding:16px 0 14px;font-size:12.5px;}
	.gal-stage{border-radius:22px;}
	.gal-btn{display:none;}
	.gal-thumbs{gap:8px;margin-top:10px;}
	.gal-thumb{flex-basis:58px;border-radius:12px;}
	.pp h1{font-size:clamp(34px,9vw,44px);}
	.pp-lead{font-size:15.5px;}
	.pp-buy{margin-top:22px;padding:20px 18px;}
	.pp-pr .now{font-size:42px;}
	.pp-buybox .buy-add,.pp-buybox .buy-qty{height:54px;}
	.pp-steps{grid-template-columns:1fr;gap:10px;}
	.pp-steps div{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;}
	.pp-steps dd{margin-top:0;font-size:23px;text-align:right;}
	.pp-clock b{font-size:54px;}
	.pp-text{font-size:16px;}
	.pp-specs{padding:22px 20px;}
	.lb-prev,.lb-next{display:none;}
}

@media (max-width:400px){
	.pp-amounts{gap:6px;}
	.pp-buybox .buy-qty button{width:40px;}
}
