@import url("./sani_theme.css");
/* Phase 5: Full-bleed SANI wine experience. No product cards or page sections. */
:root{color-scheme:light;--p5-ink:#27345d;--p5-ink-soft:#46516c;--p5-rose:#eaa0b8;--p5-edge:clamp(22px,4.1vw,78px)}
*,*::before,*::after{box-sizing:border-box}
html{min-width:280px;scroll-behavior:smooth}
body.sani-p5{margin:0;min-width:280px;min-height:100%;color:var(--p5-ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.7}
button:focus-visible,a:focus-visible{outline:3px solid #e592b1;outline-offset:4px}
.p5-experience{position:relative;min-height:100dvh;isolation:isolate;background:radial-gradient(ellipse 50% 65% at 79% 56%,rgba(245,247,252,.98),rgba(226,231,242,.78) 70%,transparent 100%),radial-gradient(ellipse 90% 85% at 25% 8%,var(--sani-white),#ecf0f6 75%,#c5c8d1 118%);overflow:hidden}
.p5-experience::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 64% 60% at 44% 96%,rgba(124,137,170,.22),transparent 72%);pointer-events:none;z-index:-1}
.p5-header{position:absolute;inset:clamp(20px,3.5vw,46px) var(--p5-edge) auto;z-index:10;display:flex;justify-content:space-between;align-items:flex-start;gap:22px}
.p5-wordmark{font:700 clamp(30px,3.5vw,47px)/.88 'DM Sans',Arial,sans-serif;letter-spacing:-.092em;text-decoration:none;color:var(--p5-ink);display:inline-flex;flex-direction:column;gap:9px}
.p5-wordmark span{font-size:9px;font-weight:700;letter-spacing:.48em;padding-left:4px}
.p5-actions{display:flex;align-items:center;gap:15px}
.p5-icon-button,.p5-home-button{position:relative;display:grid;place-items:center;border:0;border-radius:15px;background:rgba(255,255,255,.79);color:var(--p5-ink);width:52px;height:52px;box-shadow:0 10px 32px rgba(67,76,116,.04);text-decoration:none;transition:transform .2s,background .2s}
.p5-icon-button:hover,.p5-home-button:hover{transform:translateY(-2px);background:white}
.p5-icon-button svg{width:28px;height:28px}
.p5-bag-badge{position:absolute;top:3px;right:3px;display:grid;place-items:center;border-radius:20px;background:#e684a4;color:#fff;font:700 10px Arial,sans-serif;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff}
.p5-bag-badge[hidden]{display:none}
.p5-home-button{background:var(--sani-primary);color:#f5f5f8;border:2px solid #f7f6f8;font:600 25px/1 'Playfair Display',Georgia,serif}
.p5-main{min-height:100dvh;position:relative;display:flex;align-items:stretch}
.p5-ambient{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 78% at 75% 70%,rgba(255,255,255,.28),transparent 78%)}
.p5-shadow{position:absolute;bottom:7.5%;right:10%;width:39vw;max-width:650px;height:clamp(25px,5vw,70px);border-radius:50%;background:rgba(26,32,53,.13);filter:blur(34px);z-index:0;pointer-events:none}
.p5-bottle-wrap{position:absolute;right:clamp(32px,10vw,175px);top:clamp(105px,13vh,185px);bottom:clamp(42px,6vh,95px);width:42%;z-index:1;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.p5-bottle{display:block;height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(20px 29px 23px rgba(25,29,50,.20));transform-origin:50% 80%;transition:opacity .25s ease,transform .43s cubic-bezier(.22,.76,.24,1)}
.p5-information{z-index:2;position:relative;display:flex;flex-direction:column;justify-content:space-between;width:min(49%,720px);min-width:0;margin-left:clamp(35px,9vw,175px);padding:clamp(158px,20vh,240px) 0 clamp(88px,11vh,122px)}
.p5-wine-badge{display:inline-block;background:#ed9ab5;color:white;padding:7px 11px;border-radius:6px;letter-spacing:.09em;text-transform:uppercase;font:700 10px/1.2 'DM Sans',sans-serif}
.p5-intro h1{display:flex;flex-direction:column;gap:0;font:600 clamp(70px,7.5vw,125px)/.97 'Playfair Display',Georgia,serif;letter-spacing:-.06em;margin:24px 0 23px;color:#27345d}
.p5-intro h1 span,.p5-intro h1 em{display:block;font-style:normal}
.p5-intro h1 em{font-weight:600}
.p5-tagline{margin:0 0 18px;font:500 15px/1.5 'DM Sans',sans-serif;color:#4a5572}
.p5-description{max-width:450px;margin:0 0 22px;color:#545e71;font-size:14px;line-height:1.7}
.p5-facts{display:grid;gap:13px;margin:0;padding:0;max-width:410px}
.p5-facts>div{display:grid;gap:3px}
.p5-facts dt{color:#27345d;font:700 12px/1.3 'DM Sans',sans-serif}
.p5-facts dd{margin:0;color:#566073;font:400 12px/1.45 'DM Sans',sans-serif}
.p5-purchase{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:clamp(36px,5vh,70px)}
.p5-price-row{display:flex;align-items:baseline;gap:12px}
.p5-price{font:700 clamp(29px,3.4vw,45px)/1 'DM Sans',sans-serif;letter-spacing:-.06em;color:#1f2c56;white-space:nowrap}
.p5-unit{font-size:12px;color:#5f6982}
.p5-purchase-controls{display:flex;align-items:center;gap:14px}
.p5-quantity{display:flex;justify-content:space-between;align-items:center;gap:4px;border-radius:17px;background:rgba(218,226,241,.68);padding:3px 5px;min-width:150px;height:53px}
.p5-quantity button{border:0;background:transparent;width:43px;height:43px;border-radius:12px;color:#2e3b60;font-size:19px;transition:background .2s}
.p5-quantity button:hover{background:rgba(255,255,255,.68)}
.p5-quantity output{font:700 13px/1 'DM Sans',sans-serif;min-width:22px;text-align:center}
.p5-switch-icon{height:53px;width:54px;border:0;border-radius:17px;background:rgba(218,226,241,.68);display:grid;place-items:center;color:#56647d}
.p5-switch-icon svg{width:24px;height:24px}
.p5-switch-icon:hover{background:rgba(198,209,234,.86)}
.p5-primary{display:flex;align-items:center;justify-content:center;gap:11px;min-height:54px;min-width:205px;padding:14px 28px;border:0;border-radius:12px;background:var(--sani-primary);color:#fff;font:700 13px/1.3 'DM Sans',sans-serif;box-shadow:0 14px 28px rgba(42,55,102,.20);transition:transform .23s,background .23s,box-shadow .23s}
.p5-primary:hover{transform:translateY(-2px);background:#35477b;box-shadow:0 18px 31px rgba(42,55,102,.24)}
.p5-primary.is-loading::before{content:"";width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:p5-spin .7s linear infinite}
@keyframes p5-spin{to{transform:rotate(360deg)}}
.p5-secondary{border:0;background:transparent;padding:5px 0;color:#344678;font:600 12px 'DM Sans',sans-serif;text-decoration:underline;text-underline-offset:5px}
.p5-secondary[hidden]{display:none}
.p5-fineprint{display:block;max-width:300px;color:#788198;font-size:10px;line-height:1.6}
.p5-carousel{position:absolute;bottom:clamp(25px,5.3vh,60px);right:var(--p5-edge);z-index:5;display:flex;align-items:center;gap:11px;color:#455272;font:700 11px 'DM Sans',sans-serif;letter-spacing:.09em}
.p5-slide-arrow{width:37px;height:37px;border:1px solid rgba(49,62,101,.16);border-radius:50%;background:rgba(255,255,255,.5);display:grid;place-items:center;color:var(--p5-ink)}
.p5-slide-arrow:hover{background:#fff}.p5-slide-arrow svg{width:17px;height:17px}
.p5-status{position:fixed;bottom:15px;left:50%;transform:translate(-50%,15px);z-index:30;max-width:min(90vw,400px);padding:11px 18px;border-radius:50px;background:var(--sani-primary);color:#fff;box-shadow:0 10px 25px #27345d33;font:600 12px/1.5 'DM Sans',sans-serif;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.p5-status.is-visible{opacity:1;transform:translate(-50%,0)}.p5-status.is-error{background:#8b394a}
.p5-experience.is-changing .p5-intro,.p5-experience.is-changing .p5-purchase{opacity:.28;transform:translateX(-10px)}
.p5-experience.is-changing .p5-bottle{opacity:0;transform:translateX(28px) scale(.97)}
.p5-intro,.p5-purchase{transition:opacity .23s ease,transform .23s ease}
.p5-experience[data-mode="selection"] .p5-wine-badge{background:#435c85}
.p5-experience[data-mode="selection"] .p5-description{max-width:430px}
@media(max-width:1100px) and (min-width:701px){
 .p5-information{margin-left:6vw;width:52%;padding-top:19vh}
 .p5-intro h1{font-size:clamp(61px,7.9vw,91px)}
 .p5-bottle-wrap{right:3.5vw;width:43%}
 .p5-description{max-width:330px}
}
@media(max-width:700px){
 :root{--p5-edge:clamp(20px,6vw,33px)}
 .p5-experience{background:radial-gradient(ellipse 75% 80% at 74% 64%,#f6f8fd 0%,#e9edf6 60%,transparent 100%),radial-gradient(ellipse 105% 90% at 7% 4%,var(--sani-white),#e6eaf2 98%)}
 .p5-header{top:clamp(23px,3.6vh,36px);left:clamp(30px,10vw,48px);right:clamp(24px,8vw,38px);align-items:center}
 .p5-wordmark{font-size:clamp(30px,8vw,37px)}.p5-wordmark span{font-size:8px}
 .p5-actions{gap:9px}.p5-icon-button,.p5-home-button{width:44px;height:44px;border-radius:13px}
 .p5-icon-button svg{width:25px;height:25px}.p5-home-button{font-size:23px}
 .p5-main{min-height:max(100svh,720px)}
 .p5-information{margin-left:clamp(30px,10vw,48px);width:52%;padding:clamp(143px,17svh,175px) 0 89px;min-height:max(100svh,720px)}
 .p5-wine-badge{font-size:9px;padding:5px 8px;letter-spacing:0}
 .p5-intro h1{font-size:clamp(39px,11.2vw,56px);letter-spacing:-.067em;line-height:1.03;margin:13px 0 25px}
 .p5-tagline{font-size:10px;line-height:1.6;max-width:186px;margin-bottom:12px}
 .p5-description{font-size:10.5px;line-height:1.75;max-width:170px;margin-bottom:17px}
 .p5-facts{gap:13px;max-width:176px}.p5-facts dt{font-size:10.5px}.p5-facts dd{font-size:10px;line-height:1.4}
 .p5-purchase{margin-top:auto;gap:14px;padding-top:19px;align-items:flex-start}
 .p5-price{font-size:clamp(25px,7vw,31px)}.p5-unit{font-size:10px}
 .p5-purchase-controls{gap:10px}
 .p5-quantity{min-width:104px;height:44px;padding:2px;border-radius:12px}
 .p5-quantity button{width:31px;height:36px;font-size:17px;border-radius:9px}
 .p5-quantity output{min-width:16px;font-size:11px}
 .p5-switch-icon{height:44px;width:43px;border-radius:12px}.p5-switch-icon svg{width:20px;height:20px}
 .p5-primary{min-height:48px;min-width:162px;padding:12px 20px;font-size:12px;border-radius:11px}
 .p5-secondary{font-size:11px}.p5-fineprint{font-size:9px;max-width:175px}
 .p5-bottle-wrap{right:-15vw;top:clamp(117px,14svh,147px);bottom:clamp(89px,12svh,125px);width:62%;justify-content:flex-end}
 .p5-bottle{height:100%;width:auto;max-width:none;filter:drop-shadow(12px 22px 17px rgba(18,21,36,.22))}
 .p5-shadow{bottom:12%;right:-8%;width:64%;height:35px;filter:blur(24px)}
 .p5-carousel{right:clamp(16px,6vw,30px);bottom:max(21px,env(safe-area-inset-bottom));gap:6px;font-size:10px}
 .p5-slide-arrow{width:29px;height:29px}.p5-slide-arrow svg{width:15px;height:15px}
}
@media(max-width:375px){
 .p5-main,.p5-information{min-height:max(100svh,688px)}
 .p5-information{width:54%;padding-top:134px}
 .p5-intro h1{font-size:clamp(37px,10.7vw,42px)}
 .p5-description{font-size:10px}.p5-facts{gap:10px}
 .p5-bottle-wrap{right:-19vw;bottom:105px;top:135px}
 .p5-purchase{gap:11px}
}
@media(max-height:700px) and (min-width:701px){
 .p5-information{padding-top:130px;padding-bottom:70px}
 .p5-intro h1{font-size:clamp(59px,6.4vw,95px);margin:14px 0}
 .p5-description{margin-bottom:10px}.p5-facts{gap:7px}.p5-purchase{margin-top:24px;gap:9px}
 .p5-bottle-wrap{top:100px;bottom:35px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}
}
/* Laptop-height refinement: keep the complete purchase interface within one screen. */
@media (min-width:701px) and (max-height:900px){
 .p5-information{padding-top:clamp(110px,15vh,135px);padding-bottom:clamp(45px,6vh,60px)}
 .p5-intro h1{font-size:clamp(58px,5.4vw,76px);margin:11px 0 12px}
 .p5-tagline{margin-bottom:9px;font-size:13px}
 .p5-description{margin-bottom:10px;font-size:12px;line-height:1.55}
 .p5-facts{gap:6px}
 .p5-facts dt,.p5-facts dd{font-size:11px}
 .p5-purchase{margin-top:14px;gap:10px}
 .p5-price{font-size:33px}
 .p5-quantity,.p5-switch-icon{height:46px}
 .p5-quantity button{height:38px}
 .p5-primary{min-height:48px}
 .p5-bottle-wrap{top:105px;bottom:55px}
 .p5-carousel{bottom:23px}
}

/* Phase 5.1 — single-viewport refinement (no redesign).
   The older 688px / 720px mobile minimums caused scrolling on short phones.
   Fit all existing information and buttons inside the visible page instead. */
@media (max-width:700px) {
  .p5-main,.p5-information { min-height:100dvh; }
}
@media (max-width:700px) and (max-height:780px) {
  .p5-header { top:clamp(13px,2.5dvh,19px);left:clamp(22px,8vw,32px);right:clamp(18px,6vw,25px); }
  .p5-wordmark { font-size:clamp(26px,8vw,30px);gap:5px; }
  .p5-wordmark span { font-size:7px; }
  .p5-icon-button,.p5-home-button { width:39px;height:39px;border-radius:11px; }
  .p5-icon-button svg { width:23px;height:23px; }
  .p5-home-button { font-size:20px; }
  .p5-information { width:55%;margin-left:clamp(22px,8vw,32px);padding:clamp(84px,14dvh,112px) 0 clamp(40px,7dvh,52px); }
  .p5-wine-badge { font-size:8px;padding:4px 6px; }
  .p5-intro h1 { font-size:clamp(34px,10.6vw,43px);line-height:1;margin:8px 0 9px; }
  .p5-tagline { font-size:9.5px;line-height:1.3;margin-bottom:7px; }
  .p5-description { font-size:9.5px;line-height:1.38;margin-bottom:8px;max-width:185px; }
  .p5-facts { gap:5px;max-width:185px; }
  .p5-facts>div { gap:1px; }
  .p5-facts dt { font-size:9.5px;line-height:1.2; }
  .p5-facts dd { font-size:9px;line-height:1.28; }
  .p5-purchase { margin-top:auto;gap:7px;padding-top:9px; }
  .p5-price-row { gap:7px; }
  .p5-price { font-size:clamp(23px,6.8vw,28px); }
  .p5-unit { font-size:9px; }
  .p5-purchase-controls { gap:8px; }
  .p5-quantity { height:38px;min-width:103px;border-radius:10px; }
  .p5-quantity button { height:33px;width:31px; }
  .p5-switch-icon { height:38px;width:38px;border-radius:10px; }
  .p5-primary { min-width:150px;min-height:41px;padding:9px 16px;font-size:11px; }
  .p5-secondary { font-size:10px;line-height:1.2; }
  .p5-fineprint { font-size:8.5px;line-height:1.28;max-width:175px; }
  .p5-bottle-wrap { top:clamp(95px,16dvh,126px);bottom:clamp(42px,9dvh,65px);right:-19vw;width:62%; }
  .p5-shadow { bottom:10%; }
  .p5-carousel { bottom:max(9px,env(safe-area-inset-bottom)); }
}
/* Desktop with plenty of pixels but limited vertical space. */
@media (min-width:701px) and (min-height:901px) {
  .p5-information { padding-top:clamp(142px,15dvh,175px);padding-bottom:clamp(48px,6dvh,75px); }
  .p5-intro h1 { font-size:clamp(70px,5.6vw,106px);margin:14px 0 17px; }
  .p5-tagline { margin-bottom:11px; }
  .p5-description { margin-bottom:13px;line-height:1.5; }
  .p5-facts { gap:8px; }
  .p5-purchase { margin-top:15px;gap:12px; }
}
@media (min-width:701px) and (max-height:650px) {
  .p5-information { padding-top:clamp(86px,15dvh,104px);padding-bottom:clamp(32px,7dvh,46px); }
  .p5-intro h1 { font-size:clamp(48px,5vw,68px);margin:6px 0 8px; }
  .p5-tagline { font-size:12px;margin-bottom:6px; }
  .p5-description { font-size:11px;line-height:1.4;margin-bottom:6px; }
  .p5-facts { gap:4px; }
  .p5-facts dt,.p5-facts dd { font-size:10px;line-height:1.2; }
  .p5-purchase { margin-top:8px;gap:6px; }
  .p5-price { font-size:29px; }
  .p5-quantity,.p5-switch-icon { height:38px; }
  .p5-quantity button { height:34px; }
  .p5-primary { min-height:39px;padding:9px 19px; }
  .p5-carousel { bottom:12px; }
  .p5-bottle-wrap { top:90px;bottom:40px; }
}
/* Bag mode adds Continue Exploring; keep that extra action within the viewport. */
@media (max-width:700px) {
  .p5-experience[data-mode="selection"] .p5-purchase { gap:clamp(7px,1dvh,10px); }
}
@media (min-width:701px) and (max-height:900px) {
  .p5-experience[data-mode="selection"] .p5-purchase { gap:7px; }
}
@media (min-width:701px) and (max-height:650px) {
  .p5-experience[data-mode="selection"] .p5-information { padding-bottom:25px; }
  .p5-experience[data-mode="selection"] .p5-purchase { gap:5px; }
}
