/* REWAA 38.5A — faithful hierarchy for product hero and purchase panel.
   Scoped to product detail only; no changes to catalog cards / checkout. */
.p384-page.p385a-page{} /* Styles below also apply to the existing p384-page wrapper. */
.p384-page .product-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,3vw,48px);align-items:start}
.p384-page .product-buy-panel{border:0;background:transparent;box-shadow:none;padding:0;min-width:0}
.p384-page .product-title-block{border:0;border-bottom:1px solid #dbe5f1;padding-bottom:17px;margin-bottom:15px}
.p384-page .product-title-block h1{color:#091d39;line-height:1.45;font-size:clamp(23px,2.3vw,37px);letter-spacing:-.015em}
.p384-page .product-short{color:#55708f;line-height:1.85;font-size:12px}
.p384-page .p384-main{border-radius:23px;overflow:hidden;box-shadow:0 16px 45px -33px #091d39}
.p384-page .p384-thumbs>.gallery-thumb{border-radius:16px;overflow:hidden}
.p384-page .p385a-gallery-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-start;top:14px;right:14px;max-width:calc(100% - 105px)}
.p384-page .p385a-gallery-badges[hidden]{display:none!important}
.p384-page .p385a-gallery-badges .badge{font-size:10.5px;min-height:29px;padding:7px 11px;border-radius:10px;box-shadow:0 3px 12px rgba(11,25,46,.17)}
.p384-page .p385a-gallery-actions{display:flex;flex-direction:column;gap:8px;left:13px;top:13px;right:auto}
.p384-page .p385a-gallery-actions>.round-action{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;border:1px solid #d8e3f0;background:#fff;color:#1d375b;box-shadow:0 5px 15px rgba(8,21,46,.13)}
.p384-page .p385a-gallery-actions>.round-action:hover,.p384-page .p385a-gallery-actions>.round-action:focus-visible{color:#16a8d9;transform:translateY(-1px)}
.p384-page .p385a-price-box{background:transparent;border:0;border-radius:0;padding:18px 0 14px;margin:0}
.p384-page .p385a-price-eyebrow{display:flex;align-items:center;gap:6px;color:#58718e;font-size:10px;font-weight:800;margin-bottom:7px}
.p384-page .p385a-price-main{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:baseline;min-height:52px}
.p384-page .p385a-price-main>#product-price{font:800 clamp(30px,3.4vw,43px)/1.4 Alexandria,sans-serif;color:#071b35;letter-spacing:-.035em}
.p384-page .p385a-price-main>s{order:2;color:#7b8da5;font-size:13px}
.p384-page .p385a-price-main .p385a-price-save{color:#009c62;font-size:12px;font-weight:800}
.p384-page .p385a-price-main .p385a-discount-pill{font-size:11px;font-weight:800;border-radius:8px;background:#cb281e;color:white;padding:8px 10px;white-space:nowrap}
.p384-page .p385a-tax-note{display:inline-flex;gap:5px;align-items:center;color:#607996;margin-top:3px}
.p384-page .p385a-tax-note svg{color:#008b61}
.p384-page .p385a-notice{font-size:11px;border-radius:10px;margin:4px 0 11px}
.p384-page .p385a-offer{margin:13px 0 12px;padding:17px clamp(12px,2vw,22px);border:1px solid #f3c5c5;border-radius:18px;background:linear-gradient(115deg,#fff 0%,#fff9f8 40%,#fff0ee 100%);box-shadow:0 8px 28px -26px #ae1a12;color:#0b203d}
.p384-page .p385a-offer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.p384-page .p385a-offer-mark{display:inline-flex;align-items:center;gap:6px;background:#bf281e;color:white;border-radius:9px;padding:6px 10px;font-weight:800;font-size:10px}
.p384-page .p385a-offer-head>strong{border-radius:8px;background:#09223e;color:#71d6f6;padding:6px 10px;font-size:11px}
.p384-page .p385a-offer h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font:800 17px/1.6 Alexandria,sans-serif;margin:13px 0 5px}
.p384-page .p385a-offer h2 span{background:#c62820;color:white;border-radius:8px;padding:5px 8px;font-weight:800;font-size:10px;line-height:1.4}
.p384-page .p385a-offer>p{font-size:11px;line-height:1.9;color:#536b86;margin:3px 0 13px}
.p384-page .p385a-timer-label{color:#4a607c;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700}
.p384-page .p385a-timer-units{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:7px}
.p384-page .p385a-timer-unit{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:56px}
.p384-page .p385a-timer-unit b{font-family:Alexandria,sans-serif;font-size:22px;line-height:1.3;min-width:56px;text-align:center;color:#80d6ff;background:#071c36;border-radius:11px;padding:7px 8px;font-variant-numeric:tabular-nums}
.p384-page .p385a-timer-unit small{color:#5c7089;font-size:10px}
.p384-page .p385a-offer-stock{margin-top:17px}
.p384-page .p385a-offer-stock-text{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#546a86;font-size:10px;margin-bottom:7px}
.p384-page .p385a-offer-stock-text b{color:#c62d27}
.p384-page .p385a-progress{height:7px;border-radius:100px;overflow:hidden;background:#e2eaf5}
.p384-page .p385a-progress span{display:block;height:100%;border-radius:100px;background:linear-gradient(90deg,#26b2e3,#be251d)}
.p384-page .p385a-coupon{margin:11px 0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dce6f3;border-radius:16px;background:#fff;padding:13px}
.p384-page .p385a-coupon-icon{width:38px;height:38px;border-radius:11px;background:#eff5fc;color:#254d80;display:grid;place-items:center}
.p384-page .p385a-coupon-content{min-width:0}.p384-page .p385a-coupon-content strong{font-size:11.5px;color:#101f38}
.p384-page .p385a-coupon-content p{font-size:10.5px;color:#536d8a;line-height:1.7;margin:3px 0 0}
.p384-page .p385a-coupon-content small{font-size:9px;color:#2675a8}
.p384-page .p385a-coupon-code{min-width:92px;border:1px dashed #82acee;background:#f2f7ff;color:#173866;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 9px;font-size:11px;font-weight:800;cursor:pointer;direction:ltr}
.p384-page .p385a-coupon-code:hover,.p384-page .p385a-coupon-code:focus-visible{border-color:#2360b8;background:#e6f0ff}
.p384-page .p385a-hero-message{margin:11px 0;display:flex;align-items:start;gap:8px;color:#446887;border-radius:10px;background:#f4f8ff;padding:11px;font-size:10.5px}
.p384-page .p385a-hero-message svg{flex:none}
.p384-page .p385a-availability{border-radius:12px;margin-top:13px}
.p384-page .p385a-checkout-box{border:1px solid #dce6f2;border-radius:17px;background:#fff;padding:16px;margin-top:13px;box-shadow:0 12px 26px -30px #13213c}
.p384-page .p385a-order-grid{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;margin-bottom:13px}
.p384-page .p385a-qty-wrap label{font-weight:800;font-size:11px;color:#1b2c46;display:block;margin-bottom:6px}
.p384-page .p385a-qty-wrap>small{font-size:9px;color:#6a84a2;display:block;margin-top:5px}
.p384-page .p385a-qty{display:flex;width:100%;height:45px;border:1px solid #d9e3f1;border-radius:11px;overflow:hidden}
.p384-page .p385a-qty button{height:100%;border:0;width:42px;background:#fff;color:#0c2d55;display:grid;place-items:center;cursor:pointer}
.p384-page .p385a-qty input{width:calc(100% - 84px);border:0;border-inline:1px solid #e6edf5;font-size:13px;font-weight:800;text-align:center}
.p384-page .p385a-order-total{border-radius:11px;padding:11px 13px;background:#f5f8fc;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}
.p384-page .p385a-order-total>span{font-size:9px;color:#6d85a2}.p384-page .p385a-order-total>b{font:800 20px Alexandria,sans-serif;color:#0a1b35}.p384-page .p385a-order-total>small{font-size:9px;color:#128968}
.p384-page .p385a-add{width:100%;height:51px;border:0;border-radius:12px;font:800 15px Alexandria,sans-serif;background:#17346b;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.p384-page .p385a-add:hover{background:#214994}.p384-page .p385a-add:disabled{opacity:.5;cursor:not-allowed}
.p384-page .p385a-secondary-actions{display:flex;gap:9px;align-items:center;margin-top:9px}
.p384-page .p385a-buy-now{margin:0;flex:1;height:45px;border:0;border-radius:11px;background:#071c35;color:#8de1ff;font-weight:800;font-size:12px;cursor:pointer}
.p384-page .p385a-round{flex:0 0 42px;height:44px;display:grid;place-items:center;background:#fff;border:1px solid #d6e2f1;border-radius:11px;color:#284565;cursor:pointer}
.p384-page .p385a-round:hover,.p384-page .p385a-round:focus-visible,.p384-page .p385a-round.active{border-color:#9cb8e9;background:#eff5ff;color:#183d92}
.p384-page .p385a-round.wishlist-toggle.active{color:#c4283c}
.p384-page .p385a-round.compare-toggle.active{background:#ecf2ff}
.p384-page .p385a-secondary-actions button:focus-visible,.p384-page .p385a-timer-unit:focus-visible{outline:3px solid #35a7df;outline-offset:2px}
@media(max-width:1020px){.p384-page .product-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.p384-page .p385a-timer-unit{min-width:47px}.p384-page .p385a-timer-unit b{min-width:47px;font-size:17px}}
@media(max-width:850px){.p384-page .product-hero-grid{grid-template-columns:1fr}.p384-page .product-gallery{max-width:640px;width:100%;margin-inline:auto}.p384-page .product-buy-panel{max-width:640px;width:100%;margin-inline:auto}.p384-page .p385a-gallery-actions{left:10px;top:10px}}
@media(max-width:480px){.p384-page .p385a-offer{padding:13px}.p384-page .p385a-offer h2{font-size:14px}.p384-page .p385a-timer-unit{min-width:49px}.p384-page .p385a-timer-unit b{min-width:49px;font-size:17px}.p384-page .p385a-timer-units{gap:7px;justify-content:center}.p384-page .p385a-order-grid{grid-template-columns:119px minmax(0,1fr);gap:8px}.p384-page .p385a-order-total>b{font-size:16px}.p384-page .p385a-price-main>#product-price{font-size:29px}.p384-page .p385a-coupon{grid-template-columns:34px minmax(0,1fr)}.p384-page .p385a-coupon-code{grid-column:1/-1;width:100%}.p384-page .p385a-qty{height:42px}.p384-page .p385a-qty button{width:33px}.p384-page .p385a-qty input{width:calc(100% - 66px)}.p384-page .p385a-secondary-actions{gap:6px}.p384-page .p385a-round{flex-basis:38px;height:42px}}
@media(prefers-reduced-motion:reduce){.p384-page .p385a-gallery-actions>.round-action{transition:none}.p384-page .p385a-add{transition:none}}
