/*
  Home page and shared shell after "Flower Shop.pdf" (desktop 1440 px, mobile 390 px).
  Loaded last: the top bar, header, product cards and footer change on every page;
  the home sections are scoped to .home-page.
*/
:root{
  --pdf-serif:"Lora",Georgia,"Times New Roman",serif;
  --pdf-num:"Wix Madefor Display","Onest",system-ui,sans-serif;
  --pdf-pink:#fdebeb;--pdf-pink-line:#f4c9c9;--pdf-cream:#f8f6f2;--pdf-card-line:#eaeaea;
}

/* ---------- Top bar ---------- */
.service-bar{background:var(--forest);color:#fff;border-bottom:0;font:500 15px/1.2 var(--sans)}
.service-bar .shell{min-height:56px}
.service-hours strong{font-weight:700;color:#fff}
.service-hours .icon,.service-contacts .icon{width:24px;height:24px;color:#fff;stroke-width:1.6}
.service-contacts{gap:22px;--icon-cut:var(--forest)}
.service-contacts a,.service-phone{color:#fff;font-weight:500}
.service-contacts a:hover{color:#fff;opacity:.8}
.service-phone .icon{width:20px;height:20px}

/* ---------- Header ---------- */
.site-header{background:rgb(255 255 255/.94);border-bottom:1px solid var(--line)}
.header-row{min-height:84px}
.city{padding:8px 4px;background:transparent;font:500 15px/1 var(--sans)}
.city:hover{color:var(--forest)}
.city .icon{width:22px;height:22px;color:var(--text)}
.city .icon-sm{color:var(--text)}
.header-actions .icon-link .icon{stroke-width:1.7}
.partner-cta{min-height:44px;margin-left:14px;padding:0 18px;border-radius:8px;font:500 15px/1 var(--sans)}

/* ---------- Product card (catalogue, favourites, shops, recommendations) ---------- */
.product-card{display:flex;flex-direction:column;border:1px solid var(--pdf-card-line);border-radius:16px;background:#fff;overflow:hidden;transition:box-shadow .2s}
.product-card:hover{box-shadow:0 10px 28px rgb(32 44 28/.08)}
.product-image{aspect-ratio:292/343;border-radius:0}
.product-media>.favorite-form{top:12px;right:12px}
.product-media .favorite-button{min-width:44px;min-height:44px;border:0;box-shadow:0 2px 8px rgb(0 0 0/.08);color:var(--text)}
.product-media .favorite-button[aria-pressed="true"]{color:var(--red)}
.card-dimensions{left:auto;right:14px;bottom:14px;display:grid;gap:8px;padding:9px 10px 9px 8px;border-radius:10px;background:rgb(255 255 255/.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font:600 12px/1 var(--pdf-num);color:var(--forest)}
.card-dimensions>span{display:flex;align-items:center;gap:10px;white-space:nowrap}
.card-dimensions .icon{width:18px;height:18px}
.product-copy{display:flex;flex-direction:column;flex:1;padding:16px 14px 14px}
.product-copy>*{align-self:stretch;grid-column:auto;grid-row:auto}
.product-copy h3{font:700 18px/1.3 var(--pdf-serif);color:var(--text)}
.product-copy h3 a:hover{color:var(--forest)}
.product-price{margin-top:10px;font:700 20px/1.2 var(--pdf-num);letter-spacing:0}
.product-price b{font-weight:700}
.product-pay{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-height:0;margin-top:12px;padding:12px 0 0;border:0;border-top:1px solid var(--pdf-card-line);font:400 12px/1.4 var(--sans);color:var(--text-soft)}
.product-pay b{font:700 14px/1.3 var(--pdf-num);color:var(--forest)}
.pay-badge{width:20px;height:20px;font-size:12px}
.product-meta{margin-top:12px;padding-top:12px;border-top:1px solid var(--pdf-card-line);font:400 12px/1.45 var(--sans);color:var(--muted)}
.product-pay+.product-meta{margin-top:6px;padding-top:0;border-top:0}
.product-copy .notice{margin-top:12px}
.basket-add-form{order:5;margin:auto 0 0;padding-top:12px}
.product-copy>.button-pill{order:5;margin-top:auto}
.product-copy>.button-pill,.basket-add-form .button-pill{width:100%;min-height:40px;border-radius:20px;background:var(--forest);color:#fff;font:500 15px/1 var(--sans)}
.product-copy>.button-pill:hover,.basket-add-form .button-pill:hover{background:var(--forest-hover);color:#fff}
.product-copy .admin-price-link{order:6;margin-top:10px;font-size:12px}
.product-copy>.button-pill{margin-top:12px}
.product-copy:has(>.button-pill) .product-meta{margin-bottom:0}
@media(max-width:759px){
  .product-copy{padding:12px 10px 10px}
  .product-copy h3{font-size:16px}
  .product-price{margin-top:6px;font-size:17px}
  .product-pay,.product-meta{margin-top:8px;padding-top:8px}
  .product-pay b{font-size:13px}
  .card-dimensions{right:8px;bottom:8px;gap:6px;padding:7px 8px 7px 6px;font-size:11px}
  .card-dimensions .icon{width:15px;height:15px}
  .product-media>.favorite-form{top:8px;right:8px}
  .product-media .favorite-button{min-width:38px;min-height:38px}
  .product-copy>.button-pill,.basket-add-form .button-pill{min-height:38px;font-size:14px}
}

/* ---------- Size details: product page and size choice ---------- */
.size-details{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:14px;font:400 14px/1.4 var(--sans);color:var(--text-soft)}
.size-details>span{display:inline-flex;align-items:center;gap:6px}
.size-wrapping i{width:14px;height:14px;border:1px solid var(--border-strong);border-radius:50%;background:var(--swatch)}
.size-option .size-details{margin-top:4px;gap:2px 10px;font-size:12px;color:var(--muted)}

/* ---------- Home: categories under the header ---------- */
.home-page{--page:#fdfdfd}
/* Only the sort order is left of the filter bar: categories, flowers and prices have their tiles. */
.home-page .filter-bar,.home-page .filter-bar:has(.pop){position:static;justify-content:flex-end;margin:16px 0 0;padding:0;background:none}
.home-page .filter-pills{flex:0 0 auto}
.home-categories{margin-top:20px}
/* Seven columns as in the design; fewer categories stay on the left. */
.home-category-list{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.home-category-list li{display:flex;justify-content:center}
.home-category-list li:first-child{justify-content:flex-start}
.home-page .category-circle{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:100px;font:500 16px/1.2 var(--sans);color:var(--text);white-space:nowrap}
.home-page .category-image{width:104px;height:104px;padding:4px;border:2px solid transparent;border-radius:50%;background:transparent;box-shadow:none;transform:none}
.home-page .category-image img{width:100%;height:100%;object-fit:contain}
.home-page .category-circle:hover .category-image{border-color:var(--sage-strong);background:transparent;transform:none}
.home-page .category-circle.is-active{color:var(--forest);font-weight:600}
.home-page .category-circle.is-active .category-image{border-color:var(--forest);background:transparent;box-shadow:none}

/* ---------- Home: banner ---------- */
.home-page .hero-wrap[data-carousel]{margin-top:24px}
.home-page [data-carousel] .hero{height:clamp(260px,26vw,376px);border-radius:24px;background:#ece5d8}
.home-page .hero-slide:not(.hero-slide-photo)::after{content:none}
.home-page .hero-copy{max-width:640px;padding-left:clamp(28px,4vw,56px)}
.home-page [data-carousel] .hero-copy h2{font:500 clamp(36px,3.9vw,56px)/1.25 var(--pdf-serif);letter-spacing:0;color:var(--forest)}
.home-page [data-carousel] .hero-lead{max-width:430px;margin-top:12px;font:500 16px/1.4 var(--sans);color:#45433f}
.home-page [data-carousel] .hero-copy .button{min-height:48px;margin-top:28px;padding:0 18px;border-radius:8px;font:500 16px/1 var(--sans)}
.home-page .hero-controls{position:static;justify-content:center;width:auto;height:32px;margin:6px 0 0;padding:0;background:transparent}
.home-page .carousel-pause{position:absolute;right:0;bottom:0;color:var(--muted)}
.home-page .hero-wrap[data-carousel]{position:relative}

/* ---------- Home: price tiles ---------- */
.home-prices{margin-top:12px}
.home-page .price-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2.2vw,32px);margin:0;padding:0;list-style:none}
.home-page .price-tile{display:flex;align-items:center;justify-content:center;gap:12px;min-height:82px;padding:0 16px;border:1px solid transparent;border-radius:12px;background:var(--pdf-pink);font:500 20px/1.2 var(--pdf-num);color:var(--text);white-space:nowrap}
.home-page .price-tile .icon{width:30px;height:30px;color:var(--text);stroke-width:1.6}
.home-page .price-tile:hover{border-color:var(--pdf-pink-line)}
.home-page .price-tiles.has-active .price-tile:not(.is-active){background:#fdf4f4;color:var(--text-soft)}
.home-page .price-tile.is-active{border-color:var(--forest);background:var(--pdf-pink);color:var(--forest);font-weight:700}
.home-page .price-tile.is-active .icon{color:var(--forest)}

/* ---------- Home: catalogue ---------- */
.home-page .receiving-panel{margin-top:24px}
.home-page .listing{margin-top:44px}
.home-page .listing-head h2{font:500 clamp(30px,2.9vw,42px)/1.25 var(--pdf-serif);letter-spacing:0;color:var(--forest)}
.home-page .flower-rail{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;margin-top:22px;overflow-x:auto;scrollbar-width:none}
.home-page .flower-rail::-webkit-scrollbar{display:none}
.home-page .flower{flex:none;flex-direction:column;align-items:center;gap:8px;width:auto;min-width:96px;padding:0;border:0;border-radius:0;background:transparent;font:500 16px/1.2 var(--sans);color:var(--text)}
.home-page .flower-image,.home-page .flower:hover .flower-image,.home-page .flower.is-active .flower-image{width:100px;height:100px;padding:6px;border:2px solid transparent;border-radius:50%;background:transparent}
.home-page .flower:hover{color:var(--forest)}
.home-page .flower:hover .flower-image{border-color:var(--sage-strong)}
.home-page .flower.is-active{background:transparent;color:var(--forest);font-weight:600}
.home-page .flower.is-active .flower-image{border-color:var(--forest);background:transparent}
.home-page .flower .flower-count{display:none}
.home-page .listing .product-grid{gap:24px}

/* ---------- Home: reviews and questions ---------- */
.home-page .section{margin-top:64px}
.home-page .section-title{font:500 clamp(28px,2.9vw,42px)/1.25 var(--pdf-serif);letter-spacing:0;color:var(--forest)}
.home-page .reviews-rail{display:flex;gap:16px;margin-top:24px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}
.home-page .reviews-rail::-webkit-scrollbar{display:none}
.home-page .review{display:flex;gap:16px;flex:none;width:min(415px,85vw);min-height:155px;margin:0;padding:20px;border:0;border-radius:16px;background:var(--pdf-cream);scroll-snap-align:start}
.home-page .review-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;flex:none}
.home-page .review-avatar-placeholder{display:grid;place-items:center;background:#ff9fce;color:#fff}
.home-page .review figcaption{font:700 18px/1.3 var(--pdf-serif);color:var(--text)}
.home-page .review blockquote{margin:10px 0 0;font:500 16px/1.3 var(--sans);color:var(--text)}
.home-page .faq{display:grid;gap:16px;margin-top:26px}
.home-page .faq-item{border-radius:16px;background:var(--pdf-cream)}
.home-page .faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 18px;font:700 18px/1.3 var(--pdf-serif);color:var(--text);cursor:pointer;list-style:none}
.home-page .faq-item summary::-webkit-details-marker{display:none}
.home-page .faq-item summary .icon{flex:none;width:18px;height:18px;stroke-width:2.2;transition:transform .2s}
.home-page .faq-item[open] summary .icon{transform:rotate(180deg)}
.home-page .faq-item p{padding:0 18px 18px;font:400 16px/1.4 var(--sans);color:var(--muted)}

/* ---------- Home: loyalty banner ---------- */
.home-loyalty{position:relative;display:flex;align-items:center;min-height:328px;margin-top:64px;border-radius:12px;overflow:hidden;background:#fde8e8}
.home-loyalty-media{position:absolute;inset:0 0 0 auto;width:62%;height:100%;object-fit:cover;object-position:30% 40%}
.home-loyalty::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#fde8e8 0%,#fde8e8 36%,rgb(253 232 232/0) 52%)}
.home-loyalty-copy{position:relative;z-index:2;max-width:440px;padding:32px}
.home-loyalty-eyebrow{font:400 16px/1.25 var(--pdf-serif);text-transform:uppercase;color:var(--text-soft)}
.home-loyalty h2{margin-top:6px;font:500 32px/1.28 var(--pdf-serif);color:var(--text)}
.home-loyalty-copy>p:not(.home-loyalty-eyebrow){max-width:350px;margin-top:16px;font:500 16px/1.3 var(--pdf-serif);color:var(--text-soft)}
.home-loyalty .button{min-height:48px;margin-top:28px;padding:0 16px;border-radius:8px;background:#fff;color:var(--text);font:600 14px/1 var(--sans);box-shadow:none}
.home-loyalty .button:hover{background:var(--pdf-cream)}
.home-loyalty .button .icon{width:18px;height:18px}

/* ---------- Footer ---------- */
.site-footer{background:var(--pdf-cream);font:400 16px/1.4 var(--pdf-serif);color:var(--text-soft)}
.footer-col h2{margin-bottom:20px;font:700 16px/1.5 var(--pdf-serif);letter-spacing:0;text-transform:none;color:var(--text-soft)}
.footer-col a,.footer-col p{line-height:1.5}
.footer-catalogue a,.footer-info a{margin-bottom:16px}
.footer-contacts a,.footer-contacts p{margin-bottom:16px}
.footer-col .muted-link{font-family:var(--pdf-serif);font-size:15px}
.social-links a{box-shadow:none}
.footer-bottom small,.footer-bottom a{font-size:15px;color:var(--text-soft)}

/* ---------- Tablets ---------- */
@media(max-width:1180px){
  .home-category-list{display:flex;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gutter));padding-inline:var(--gutter)}
  .home-category-list::-webkit-scrollbar{display:none}
  .home-page .price-tile{font-size:17px}
  .home-page .flower-rail{justify-content:flex-start}
}
@media(max-width:1023px){
  .home-page .listing .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- Phones (design frame 390 px) ---------- */
@media(max-width:759px){
  .service-bar{font-size:13px}
  .service-bar .shell{min-height:44px}
  .service-hours .icon{width:22px;height:22px}
  .header-row{min-height:64px}
  .city{font-size:15px}
  .home-categories{margin-top:14px}
  .home-page .category-circle{min-width:84px;gap:6px;font-size:13px}
  .home-page .category-image{width:76px;height:76px}
  .home-page .hero-wrap[data-carousel]{margin-top:16px}
  .home-page [data-carousel] .hero,.home-page [data-carousel] .hero-slide{height:auto;min-height:180px;border-radius:20px}
  .home-page [data-carousel] .hero-copy{max-width:62%;padding:18px 0 18px 18px}
  .home-page [data-carousel] .hero-copy h2{font-size:24px;line-height:1.2}
  .home-page [data-carousel] .hero-lead{display:block;margin-top:6px;font-size:13px;line-height:1.35}
  .home-page [data-carousel] .hero-copy .button{min-height:40px;margin-top:12px;padding:0 14px;font-size:14px}
  .home-page .hero-controls{margin:4px 0 0}
  .home-prices{margin-top:8px}
  .home-page .price-tiles{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gutter));padding-inline:var(--gutter)}
  .home-page .price-tiles::-webkit-scrollbar{display:none}
  .home-page .price-tiles li{flex:1 0 auto}
  .home-page .price-tile{min-height:42px;padding:0 10px;border-radius:12px;font-size:13px}
  .home-page .price-tile .icon{display:none}
  .home-page .receiving-panel{margin-top:16px}
  .home-page .listing{margin-top:28px}
  .home-page .listing-head h2{font-size:30px}
  .home-page .flower-rail{display:flex;gap:6px;margin:16px calc(-1*var(--gutter)) 0;padding-inline:var(--gutter)}
  .home-page .flower{min-width:72px;gap:6px;font-size:13px}
  .home-page .flower-image,.home-page .flower:hover .flower-image,.home-page .flower.is-active .flower-image{width:68px;height:68px;padding:4px}
  .home-page .listing .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
  .home-page .section{margin-top:44px}
  .home-page .section-title{font-size:26px}
  .home-page .reviews-rail{flex-direction:column;overflow:visible}
  .home-page .review{width:auto;min-height:0;padding:16px}
  .home-page .review figcaption{font-size:16px}
  .home-page .review blockquote{font-size:14px}
  .home-page .faq-item summary{font-size:16px;padding:12px 14px}
  .home-page .faq-item p{padding:0 14px 14px;font-size:14px}
  .home-loyalty{display:block;min-height:0;margin-top:44px}
  .home-loyalty-media{position:absolute;inset:auto 0 0 auto;width:58%;height:100%;object-position:20% 50%}
  .home-loyalty::before{background:linear-gradient(90deg,#fde8e8 0%,#fde8e8 48%,rgb(253 232 232/.4) 80%,rgb(253 232 232/0) 100%)}
  .home-loyalty-copy{max-width:70%;padding:22px 18px}
  .home-loyalty-eyebrow{font-size:13px}
  .home-loyalty h2{font-size:24px}
  .home-loyalty-copy>p:not(.home-loyalty-eyebrow){font-size:14px}
  .home-loyalty .button{min-height:42px;margin-top:18px;white-space:normal;text-align:left}
  .site-footer{font-size:15px}
}
@media(max-width:400px){
  .home-loyalty-copy{max-width:78%}
}

/* ---------- Basket (Flower Shop.pdf, page 21) ---------- */
.basket-page,.checkout-page{--page:#fdfdfd}
.basket-title{font:500 clamp(36px,3.6vw,52px)/1.2 var(--pdf-serif);color:var(--forest)}
.basket-page .basket-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:32px;align-items:start;margin-top:24px}
.basket-main{display:grid;gap:16px;min-width:0}
.basket-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.basket-toolbar form{margin:0}
.basket-toolbar .button{gap:8px;border-radius:8px}
.basket-group{display:grid;gap:14px}
.basket-group-head h2{font:500 22px/1.25 var(--pdf-serif);color:var(--forest)}
.basket-page .basket-line{display:grid;grid-template-columns:176px minmax(0,1fr);gap:18px;padding:16px;border-radius:16px;background:var(--pdf-cream)}
.basket-line-photo{display:block;border-radius:12px;overflow:hidden;background:#ece8df}
.basket-line-photo img{width:100%;height:100%;min-height:176px;object-fit:cover}
.basket-line-body{display:grid;gap:10px;align-content:space-between;min-width:0}
.basket-line-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.basket-line-head h3{font:700 20px/1.3 var(--pdf-serif);color:var(--text)}
.basket-line-head h3 a:hover{color:var(--forest)}
.basket-line-head .muted{margin-top:2px}
.basket-page .basket-size{display:inline-block;margin-top:6px;padding:3px 10px;border-radius:999px;background:#fbe4e4;font-size:12px;font-weight:500}
.basket-dims{display:flex;flex:none;gap:12px;padding:6px 12px;border-radius:10px;background:#ece8df;font:600 12px/1 var(--pdf-num);color:var(--forest)}
.basket-dims>span{display:inline-flex;align-items:center;gap:6px}
.basket-line-foot{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.basket-line-foot form{margin:0}
.quantity-stepper{display:flex;align-items:center;height:42px;padding:0 4px;border-radius:10px;background:#fff}
.quantity-stepper form{display:flex}
.quantity-stepper button{display:grid;place-items:center;width:34px;height:34px;border-radius:8px}
.quantity-stepper button:hover{background:var(--pdf-cream)}
.quantity-stepper input[type=number]{width:40px;min-height:0;height:34px;padding:0;border:0;background:none;text-align:center;font:600 16px/1 var(--sans);-moz-appearance:textfield;box-shadow:none}
.quantity-stepper input::-webkit-outer-spin-button,.quantity-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.round-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:var(--text)}
.round-icon:hover{color:var(--red-dark)}
.basket-line-foot .favorite-form{margin:0}
.basket-line-foot .favorite-button{min-width:42px;min-height:42px;padding:8px;border:0;box-shadow:none}
.basket-line-price{display:grid;justify-items:end;margin-left:auto}
.basket-line-price .money{font:700 22px/1.2 var(--pdf-num)}
.basket-page .basket-postcard textarea{background:#fff}
.basket-summary,.checkout-summary{position:sticky;top:100px;display:grid;gap:12px;padding:20px;border-radius:16px;background:var(--pdf-cream)}
.basket-summary h2,.checkout-summary h2{font:500 24px/1.25 var(--pdf-serif);color:var(--text)}
.basket-summary .summary-row,.checkout-summary .summary-row{display:flex;justify-content:space-between;gap:12px;font-size:16px}
.basket-summary .total-row,.checkout-summary .total-row{padding-top:12px;border-top:1px solid var(--border-strong);font-size:18px}
.basket-summary .product-pay{margin:0;padding:12px 0 0}
.basket-summary .button,.checkout-summary .button{min-height:50px;border-radius:8px}
.basket-secure{display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.basket-more{justify-self:center;font-size:14px}
.basket-suggestions{margin-top:64px}
.basket-suggestions .section-title{margin-bottom:24px;font:500 clamp(28px,2.9vw,42px)/1.25 var(--pdf-serif);color:var(--forest)}

/* ---------- Checkout (Flower Shop.pdf, pages 23-26) ---------- */
/* Checkout after the mockup (pages 25–26): the order on top, steps as cards, the total at the end. */
.checkout-page .checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-areas:"main order" "main summary";grid-template-rows:auto 1fr;gap:28px 40px;align-items:start;margin-top:12px}
.checkout-order{grid-area:order;display:grid;gap:16px}
.checkout-main{grid-area:main;display:grid;gap:32px;min-width:0}
.checkout-page .checkout-summary{grid-area:summary}
.checkout-step h2{font:500 clamp(28px,2.6vw,36px)/1.2 var(--pdf-serif);color:var(--forest)}
.checkout-step p{margin-top:6px;color:var(--muted);font-size:15px}
.checkout-order .checkout-step h2{font-size:clamp(26px,2.2vw,32px)}
.checkout-section{display:grid;gap:16px}
.checkout-card{display:grid;gap:14px;padding:24px;border:1px solid #eceae4;border-radius:16px;background:var(--pdf-cream);min-width:0;margin:0}
.checkout-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:8px 12px}
.checkout-section-head .money{font:700 18px/1.2 var(--pdf-num);white-space:nowrap}
.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.checkout-fields[hidden]{display:none}
.checkout-fields .field,.checkout-card>.field{margin-bottom:8px}
.checkout-fields .address-field{grid-column:1/-1}
.checkout-page .field label{color:var(--text);font-weight:600}
.checkout-card input:not([type=radio]):not([type=checkbox]),.checkout-card select,.checkout-card textarea{background:#fbfbf8;border:1px solid #d9d8d0;border-radius:10px}
.checkout-card .delivery-contact-choice,.checkout-card.payment-choice{border:0;padding:0;margin:0;min-width:0}
.checkout-card.payment-choice{padding:24px;border:1px solid #eceae4}
.checkout-card .delivery-contact-choice legend{margin-bottom:10px;font-weight:600}
.checkout-card .delivery-contact-choice>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.checkout-card .delivery-contact-choice label{display:flex;align-items:center;gap:12px;min-height:54px;padding:12px 16px;border:1px solid var(--border-strong);border-radius:12px;background:#fff;font-weight:500;cursor:pointer}
.checkout-card .delivery-contact-choice label:has(input:checked){border:1px solid var(--forest);background:#e8e9e2}
.checkout-page input[type=radio]{width:22px;height:22px;flex:none;margin:0;accent-color:var(--forest)}
/* Address: saved ones as radio cards, a new one in its own card. */
.exact-address{display:grid;gap:16px}
.exact-address[hidden]{display:none}
.address-source{display:grid;gap:12px}
.address-source-head{display:flex;align-items:center;gap:14px;font-weight:600;font-size:16px;cursor:pointer}
.saved-addresses{display:grid;gap:12px;padding-left:36px}
.saved-address{position:relative;border:1px solid #d9d8d0;border-radius:12px;background:#f8f7f3}
.saved-address:has(input:checked){border-color:var(--forest);background:#e8e9e2}
.saved-address-pick{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:12px;padding:14px 110px 14px 16px;cursor:pointer}
.saved-address-icon{display:grid;place-items:center;color:var(--text)}
.saved-address-text{display:grid;gap:2px;min-width:0}
.saved-address-text strong{font-weight:700}
.saved-address-text span{color:var(--text-soft);font-size:14px;overflow-wrap:anywhere}
.saved-address-edit{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-weight:700;font-size:14px;color:var(--text);text-decoration:underline;text-underline-offset:3px}
.new-address{display:grid;gap:16px;padding:20px;border:1px solid #d9d8d0;border-radius:14px;background:#fff}
.new-address-head{font:500 22px/1.25 var(--pdf-serif);color:var(--forest)}
.new-address-icon{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--pdf-pink);color:var(--red)}
.new-address-icon .icon{width:22px;height:22px}
.address-input{position:relative}
.address-input input{padding-right:44px}
.address-input .icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--text)}
/* Interval: the day in a list, the time as buttons. */
.slot-field.is-enhanced .slot-native{display:none}
.slot-picker{display:grid;gap:10px}
.slot-picker[hidden]{display:none}
.slot-day{position:relative}
.slot-day .icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--text)}
.checkout-card .slot-day select{padding-left:44px}
.slot-times-label{margin-top:6px;font:600 14px/1.4 var(--sans);color:var(--text)}
.slot-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.slot-time{min-height:52px;padding:10px;border:1px solid #d9d8d0;border-radius:10px;background:#fbfbf8;font:600 15px/1.2 var(--pdf-num);color:var(--text);cursor:pointer}
.slot-time:hover{border-color:var(--forest)}
.slot-time[aria-pressed="true"]{border-color:var(--forest);background:#e8e9e2;color:var(--forest)}
.slot-note:empty{display:none}
.slot-note{color:var(--muted);font-size:14px}
/* Payment as radio cards. */
.payment-choice{display:grid;gap:12px}
.payment-choice .payment-option{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:start;gap:12px;padding:16px 18px;border:1px solid #d9d8d0;border-radius:14px;background:#fff;cursor:pointer}
.payment-choice .payment-option[hidden]{display:none}
.payment-choice .payment-option:has(input:checked){border-color:var(--forest);background:#fff;box-shadow:inset 0 0 0 1px var(--forest)}
.payment-icon{display:grid;place-items:center;height:22px}
.payment-option .payment-icon .icon{width:22px;height:22px}
.payment-text{display:grid;gap:6px}
.payment-text strong{font-size:17px;font-weight:700}
.payment-text .muted{font-size:14px}
.payment-parts{font-size:14px;color:var(--text-soft)}
.payment-parts b{color:var(--text);white-space:nowrap}
.payment-marks{display:flex;align-items:center;gap:10px;font:800 12px/1 var(--sans)}
.mark-mir{color:#0f754e;letter-spacing:.02em}
.mark-visa{color:#1a1f71;font-style:italic;font-size:13px}
.mark-sbp{color:#5b57a2}
.mark-mc{display:inline-flex}
.mark-mc i{width:14px;height:14px;border-radius:50%;background:#eb001b}
.mark-mc i+i{margin-left:-6px;background:#f79e1b;opacity:.9}
.checkout-summary .muted{font-size:14px}
.checkout-items{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.checkout-items li{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;padding:12px;border-radius:14px;background:var(--pdf-cream)}
.checkout-items img{width:92px;height:92px;border-radius:10px;object-fit:cover}
.checkout-items h3{font:500 19px/1.3 var(--pdf-serif);color:var(--forest)}
.checkout-items .muted{margin-top:2px;font-size:13px}
.checkout-postcard{overflow-wrap:anywhere}
.checkout-item-price{display:flex;align-items:baseline;gap:8px;margin-top:6px}
.checkout-item-price strong{font:700 18px/1.2 var(--pdf-num)}
@media(max-width:1023px){
  .basket-page .basket-layout,.checkout-page .checkout-layout{grid-template-columns:minmax(0,1fr)}
  .checkout-page .checkout-layout{grid-template-areas:"order" "main" "summary";grid-template-rows:auto}
  .basket-summary,.checkout-summary{position:static}
}
@media(max-width:759px){
  .basket-page .basket-line{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}
  .basket-line-photo img{min-height:110px}
  .basket-line-head{flex-direction:column}
  .basket-line-head h3{font-size:17px}
  .basket-line-price .money{font-size:18px}
  .basket-line-foot{grid-column:1/-1}
  .checkout-fields{grid-template-columns:minmax(0,1fr)}
  .checkout-card,.checkout-card.payment-choice{padding:16px}
  .checkout-main{gap:28px}
  .checkout-card .delivery-contact-choice>div{grid-template-columns:minmax(0,1fr)}
  .saved-addresses{padding-left:0}
  .saved-address-pick{padding:14px 16px 44px}
  .saved-address-edit{top:auto;bottom:14px;transform:none}
  .new-address{padding:16px}
  .new-address-head{font-size:20px}
  .slot-times{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Popups after the mockup (pages 27–30): sign in before checkout and «Заказ оформлен!». */
.popup{width:min(514px,calc(100% - 40px));max-width:none;max-height:calc(100% - 40px);padding:0;border:0;border-radius:16px;background:#fff;color:var(--text);box-shadow:0 24px 60px rgb(20 30 15/.18);overflow:auto}
.popup::backdrop{background:rgb(120 125 115/.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.popup-body{position:relative;display:grid;justify-items:center;gap:14px;padding:28px 32px 30px;text-align:center}
.popup h2{font:500 32px/1.25 var(--pdf-serif);color:var(--text);max-width:320px}
.popup p{color:var(--text-soft);font-size:16px;line-height:1.45}
.popup-emblem{width:216px;height:auto}
.popup-actions{display:grid;gap:12px;width:100%;margin-top:10px}
.popup-actions .button{min-height:52px;border-radius:8px;font-size:16px}
.popup-actions .button-secondary{border:1px solid var(--forest);background:#fff;color:var(--text)}
.popup-link{margin-top:6px;padding:4px;border:0;background:none;font:600 16px/1.3 var(--sans);color:var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.popup-check{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--forest);color:#fff;box-shadow:0 0 0 4px #dfe5d8}
.popup-check .icon{width:28px;height:28px}
.popup-note{display:flex;align-items:center;gap:14px;width:100%;margin-top:6px;padding:18px 16px;border-radius:12px;background:var(--pdf-pink);text-align:left}
.popup .popup-note{color:var(--text);font-weight:600;font-size:15px}
.popup-note .icon{flex:none;width:22px;height:22px}
.popup-placed .popup-body>*:not(.popup-petal){position:relative;z-index:1}
.popup-petal{position:absolute;width:44px;height:auto;pointer-events:none}
.popup-petal-1{left:28px;top:104px;transform:rotate(18deg)}
.popup-petal-2{right:82px;top:36px;width:30px;transform:rotate(-58deg)}
.popup-petal-3{right:36px;top:76px;transform:rotate(8deg)}
.popup-petal-4{left:64px;bottom:22px;width:38px;transform:rotate(-70deg)}
@media(max-width:759px){
  .popup{width:calc(100% - 32px)}
  .popup-body{padding:22px 18px 24px}
  .popup h2{font-size:28px}
  .popup-petal-1{left:14px;top:20px}
  .popup-petal-3{right:20px;top:16px;width:36px}
  .popup-petal-2{right:76px;top:58px;width:24px}
  .popup-petal-4{left:30px;bottom:6px}
}

/* Bouquet page after the mockup (pages 7–8): gallery with a thumbnail rail, title and price,
   folding «Состав / Доставка / Сервис», size chips, extras, buy row and what comes with it. */
.product-page .product-detail{grid-template-columns:minmax(0,660px) minmax(0,1fr);gap:48px;margin:16px 0 48px}
.product-page .bouquet-gallery{--gallery-thumb-width:128px;--gallery-gap:24px}
.product-page .bouquet-gallery-main .detail-photo{border-radius:12px}
.product-page .bouquet-gallery-thumbnail{border-radius:10px;border-color:transparent}
.product-page .bouquet-gallery-thumbnail[aria-current="true"]{border-color:var(--forest)}
.product-info{display:grid;align-content:start;gap:14px;min-width:0}
.product-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.product-page .product-head h1{margin:0;font:500 clamp(30px,2.6vw,38px)/1.2 var(--pdf-serif);color:var(--text)}
.product-page .product-head .detail-price{margin:0;font:700 26px/1.2 var(--pdf-num);color:var(--text);white-space:nowrap}
.product-page .detail-description{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.product-page .admin-price-link{justify-self:start;font-size:14px}
.product-sections{display:grid}
.product-section{border-bottom:1px solid var(--line)}
.product-section summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 0;cursor:pointer;list-style:none}
.product-section summary::-webkit-details-marker{display:none}
.product-section summary>span{display:grid;gap:4px}
.product-section summary b{font:500 18px/1.3 var(--pdf-serif);color:var(--text)}
.product-section summary .icon{flex:none;margin-top:3px;transition:transform .2s}
.product-section[open] summary .icon{transform:rotate(180deg)}
.product-section-note{font:400 14px/1.4 var(--pdf-serif);color:var(--muted)}
.product-section-body{display:grid;gap:10px;padding:0 0 16px;font-size:15px}
.product-section-body p{margin:0}
.product-section-body .flower-tags,.product-section-body .bouquet-tags{margin:0}
.product-size-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.product-size-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.product-size-list .money{margin-left:auto;font-weight:600}
.product-size-list .size-details{font-size:13px;color:var(--muted)}
.product-purchase-form{display:grid;gap:14px}
.product-page .size-chips{margin:6px 0 0}
.size-chip-row{display:flex;flex-wrap:wrap;gap:12px}
.size-chip{position:relative;display:grid;justify-items:center;align-content:center;gap:2px;min-width:76px;min-height:64px;padding:8px 12px;border:1px solid #ead9c7;border-radius:12px;background:#fffaf2;cursor:pointer;text-align:center}
.size-chip input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.size-chip:has(input:focus-visible){outline:3px solid var(--forest);outline-offset:2px}
.size-chip-label{font:700 15px/1.2 var(--pdf-num);color:var(--text)}
.size-chip-stems{font-size:12px;font-weight:600;color:var(--text-soft)}
.size-chip:has(input:checked){border-color:var(--forest);background:var(--forest)}
.size-chip:has(input:checked) .size-chip-label,.size-chip:has(input:checked) .size-chip-stems{color:#fff}
.product-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px 16px}
/* The form melts into the grid: options span the row, the heart sits next to the buy button. */
.product-actions .product-purchase-form{display:contents}
.product-actions .product-purchase-form>:not(.product-buy){grid-column:1/-1}
.product-buy .button{width:100%;min-height:50px;border-radius:8px;font-size:17px}
.product-page .product-buy-favorite .favorite-form{margin:0}
.product-page .product-buy-favorite .favorite-button{display:grid;place-items:center;width:50px;height:50px;padding:0;border:1px solid var(--border-strong);border-radius:8px;background:#fff;color:var(--text)}
.product-page .product-buy-favorite .favorite-button[aria-pressed="true"]{color:var(--red)}
.product-page .product-buy-favorite.is-alone .favorite-button{width:auto;padding:0 16px;display:inline-flex;gap:8px}
.product-page .product-info .product-pay{grid-row:auto;margin:0;padding:0;border:0;font-size:14px;color:var(--text-soft)}
.product-page .product-info .product-pay b{font:700 16px/1.3 var(--pdf-num);color:var(--forest)}
.product-page .product-info .pay-label{flex:none;order:1}
.product-page .product-info .pay-badge{order:0}
.product-included{margin-top:8px}
.product-included h2{margin-bottom:16px;font:500 clamp(24px,2.2vw,30px)/1.25 var(--pdf-serif);color:var(--text)}
.product-included ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.product-included li{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid #eceae4;border-radius:12px;background:var(--pdf-cream);font-weight:600;font-size:16px;line-height:1.25}
.product-included-icon{display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:10px;background:var(--pdf-pink);color:#b4475a}
.product-included-icon .icon{width:30px;height:30px;stroke-width:1.5}
.product-more .section-title{font:500 clamp(30px,3vw,44px)/1.2 var(--pdf-serif);color:var(--forest)}
@media(max-width:1023px){
  .product-page .product-detail{grid-template-columns:minmax(0,1fr);gap:24px}
  .product-included ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:759px){
  .product-page .bouquet-gallery{--gallery-thumb-width:72px;--gallery-gap:12px}
  .product-page .product-head h1{font-size:24px}
  .product-page .product-head .detail-price{font-size:24px}
  .size-chip-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .size-chip{display:flex;justify-content:center;align-items:center;gap:8px;min-height:50px;border-radius:24px}
  .product-included ul{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .product-included li{flex:0 0 140px;flex-direction:column;align-items:flex-start;padding:0;border:0;background:none;scroll-snap-align:start}
  .product-included-icon{width:140px;height:140px;border-radius:14px}
  .product-included-icon .icon{width:48px;height:48px}
}

/* Account popups after the mockup (pages 9, 33, 42, 48, 49, 51). */
.popup-wide{width:min(560px,calc(100% - 40px))}
.popup-form{display:grid;justify-items:center;gap:10px;width:100%;text-align:center}
.popup-form h2{max-width:none;font:500 28px/1.25 var(--pdf-serif);color:var(--forest)}
.popup-intro{max-width:440px;color:var(--muted);font-size:15px}
.popup-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--pdf-pink);color:#c0303f}
.popup-icon .icon{width:24px;height:24px}
.popup-photo{width:100%;height:170px;margin-bottom:6px;border-radius:12px;object-fit:cover;object-position:50% 58%}
.popup-form form{width:100%;margin-top:8px;text-align:left}
.popup-form .account-form-grid{grid-template-columns:minmax(0,1fr)}
.popup-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px;grid-column:1/-1}
.popup-form-actions .button{min-height:52px;border-radius:8px;font-size:16px}
.popup-form-actions .button-secondary{border:1px solid var(--forest);background:#fff;color:var(--text)}
.account-form-page .popup-form{max-width:560px;margin:0 auto}
.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.profile-facts div{display:grid;gap:6px}
.profile-facts dt{font-weight:600;font-size:14px;color:var(--text)}
.profile-facts dd{margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fbfbf8;color:var(--text-soft);overflow-wrap:anywhere}
.password-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.password-row>div{display:grid;gap:4px}
.password-row span{color:var(--text-soft);letter-spacing:.08em}
.password-row-action{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font-weight:700;cursor:pointer}
/* «10 цветочков — букет в подарок» for guests: copy on the left, peonies on the right. */
.popup-loyalty{width:min(880px,calc(100% - 40px));background:#fdf0f0}
.popup-loyalty-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch}
.popup-loyalty-copy{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start;padding:32px 28px 28px 32px}
.popup-loyalty .popup-actions .button{white-space:normal;text-align:center}
.popup-eyebrow{font:600 13px/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-soft)}
.popup-loyalty h2{max-width:none;font:500 32px/1.2 var(--pdf-serif);color:var(--text)}
.popup-loyalty h2 span{color:#c06a7c}
.popup-loyalty h3{margin-top:6px;font:700 18px/1.3 var(--sans)}
.popup-loyalty p{color:var(--text-soft);font-size:15px}
.popup-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:step}
.popup-steps li{display:flex;align-items:center;gap:12px;font-weight:600;font-size:15px;counter-increment:step}
.popup-steps li::before{content:counter(step);display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#f6d7da;font-weight:700}
.popup-loyalty .popup-note{margin-top:4px;background:#fff;color:var(--text);font-weight:600}
.popup-loyalty .popup-link{justify-self:center}
.popup-loyalty-media{width:100%;height:100%;min-height:100%;object-fit:cover}
@media(max-width:759px){
  .popup-form-actions{grid-template-columns:minmax(0,1fr)}
  .profile-facts{grid-template-columns:minmax(0,1fr)}
  .password-row{flex-direction:column;align-items:flex-start}
  .popup-loyalty-grid{grid-template-columns:minmax(0,1fr)}
  .popup-loyalty-media{order:-1;height:180px;min-height:0}
  .popup-loyalty-copy{padding:20px 18px 22px}
  .popup-loyalty h2{font-size:27px}
}
