/* Clinicella — shop, cart, contact and legal page styles (uses the site's CSS variables) */

/* Header cart button */
.cart-btn{position:relative;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--navy);flex-shrink:0}
.cart-btn:hover{background:var(--aqua)}
.cart-btn svg{width:20px;height:20px}
.cart-btn .count{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--teal);color:#fff;font-size:.7rem;font-weight:800;display:grid;place-items:center;line-height:1}
.cart-btn .count[hidden]{display:none}
.cart-btn.bump{animation:bump .45s ease}
@keyframes bump{40%{transform:scale(1.18)}}

/* Product card */
.shop-sec{background:var(--aqua)}
.prod-wrap{max-width:980px;margin:44px auto 0}
.prod-card{display:grid;grid-template-columns:300px 1fr;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.prod-media{background:linear-gradient(150deg,var(--teal) 0%,var(--navy) 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:36px 24px;color:#fff;text-align:center}
.prod-ico{width:120px;height:120px;border-radius:32px;background:rgba(255,255,255,.12);display:grid;place-items:center}
.prod-ico svg{width:64px;height:64px}
.prod-badge{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:rgba(255,255,255,.16);padding:7px 14px;border-radius:999px}
.prod-body{padding:34px 36px}
.prod-body h3{font-size:1.45rem;margin-bottom:10px}
.prod-short{color:var(--muted);margin-bottom:16px}
.prod-feats{list-style:none;display:grid;gap:8px;margin-bottom:22px;font-size:.93rem}
.prod-feats li{display:flex;gap:10px;align-items:flex-start}
.prod-feats li::before{content:"✓";flex-shrink:0;width:20px;height:20px;border-radius:50%;background:var(--mint);color:var(--teal-dark);display:grid;place-items:center;font-size:.7rem;font-weight:800;margin-top:2px}
.prod-price{display:flex;align-items:baseline;gap:12px;margin-bottom:18px;padding-top:18px;border-top:1px solid var(--line)}
.prod-price strong{font-size:2.2rem;font-weight:800;color:var(--navy);line-height:1}
.prod-price small{color:var(--muted);font-size:.82rem;font-weight:500}
.prod-form{display:grid;grid-template-columns:1fr 150px;gap:14px}
.prod-form .field{margin-bottom:14px}
.prod-body .js-add{width:100%;justify-content:center}
.prod-more{display:inline-block;margin-top:14px;color:var(--teal);font-weight:700;font-size:.9rem}
.prod-added{margin-top:14px;padding:12px 14px;border-radius:12px;background:#E8F7EE;color:#1C6B3C;font-weight:600;font-size:.9rem}
.prod-added a{text-decoration:underline}
.prod-added[hidden]{display:none}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#FBFDFD;height:47px}
.qty button{width:40px;height:100%;border:0;background:none;font-size:1.15rem;color:var(--navy);cursor:pointer;font-family:inherit}
.qty button:hover{background:var(--mint)}
.qty input{width:100%;min-width:0;border:0;text-align:center;font-family:inherit;font-weight:700;font-size:.95rem;background:none;-moz-appearance:textfield;appearance:textfield}
.qty input::-webkit-inner-spin-button,.qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.field select{appearance:auto}

/* Payment logos */
.paylogos{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.paylogo{width:62px;height:40px;border-radius:8px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;padding:6px 8px}
.paylogo svg{width:100%;height:100%}
.secure-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:.84rem;color:var(--muted)}
.secure-row .lock{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#1C6B3C}
.secure-row .lock svg{width:16px;height:16px}

/* Contact section */
.contact-sec{background:#fff}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:44px}
.contact-card{border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;display:flex;gap:16px;align-items:flex-start;background:#fff}
.contact-card .ico{width:44px;height:44px;border-radius:12px;background:var(--mint);color:var(--teal-dark);display:grid;place-items:center;flex-shrink:0}
.contact-card .ico svg{width:22px;height:22px}
.contact-card small{display:block;font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.contact-card div>span,.contact-card div>a{font-weight:600;color:var(--navy);word-break:break-word}
.contact-card a:hover{color:var(--teal)}
.contact-card.wide{grid-column:1/-1}

/* Footer additions */
.foot-legal{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 18px;font-size:.86rem}
.foot-legal a:hover{color:#fff}
.foot-pay{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:22px;font-size:.82rem}
.foot-pay .paylogo{border-color:transparent}
.foot-company{font-size:.8rem;line-height:1.6;margin-bottom:18px;opacity:.85}
.foot-bottom a{margin-left:0}
.foot-bottom span:last-child{display:flex;gap:18px;flex-wrap:wrap}

/* Sub pages */
.sub-hero{background:linear-gradient(180deg,var(--aqua) 0%,#fff 100%);padding:48px 0 8px}
.sub-hero h1{color:var(--navy)}
.crumb{font-size:.85rem;color:var(--muted);margin-bottom:14px;display:inline-block;font-weight:600}
.crumb:hover{color:var(--teal)}
.sub-main{padding:28px 0 88px}
.doc{max-width:860px}
.doc .lead-p{font-size:1.08rem;color:var(--muted);margin-bottom:8px}
.doc h3{font-size:1rem;margin:22px 0 8px}
.policy table th{width:34%}
.doc-full{max-width:none}

/* Cart page */
.cart-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:32px;align-items:start}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 28px;box-shadow:0 4px 18px rgba(56,35,89,.05)}
.panel h2{font-size:1.25rem;margin-bottom:18px}
.cart-head,.cart-row{display:grid;grid-template-columns:1.7fr .8fr 130px .7fr auto;gap:12px;align-items:center}
.cart-head{font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-bottom:10px;border-bottom:1px solid var(--line)}
.cart-row{padding:16px 0;border-bottom:1px solid var(--line)}
.cart-name small{display:block;color:var(--muted);font-size:.82rem}
.cart-unit small{display:none}
.cart-sum{font-weight:700;color:var(--navy)}
.cart-rm{border:0;background:none;color:var(--muted);font-family:inherit;font-size:.82rem;cursor:pointer;text-decoration:underline}
.cart-rm:hover{color:#B3261E}
.cart-row .qty{height:40px}
.cart-totals{margin-top:16px;display:grid;gap:8px}
.cart-totals>div{display:flex;justify-content:space-between}
.cart-totals .grand{font-size:1.2rem;font-weight:800;color:var(--navy);padding-top:10px;border-top:1px solid var(--line)}
.cart-totals .muted{font-size:.8rem;color:var(--muted)}
.cart-cont{display:inline-block;margin-top:18px;font-weight:700;color:var(--teal);font-size:.9rem}
.cart-empty{text-align:center;padding:30px 0}
.cart-empty p{margin-bottom:18px;color:var(--muted)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:.86rem;margin-bottom:12px}
.check input{margin-top:4px;width:17px;height:17px;accent-color:var(--teal);flex-shrink:0}
.check a{color:var(--teal);font-weight:600;text-decoration:underline}
.ck-err{background:#FDECEA;color:#8C1D18;border-radius:10px;padding:10px 12px;font-size:.86rem;margin-bottom:12px}
.cart-layout[hidden],.ck-err[hidden],#checkout[hidden],#orderDone[hidden]{display:none}
#checkoutForm .btn{width:100%;justify-content:center;margin-top:6px}
.done{text-align:center;max-width:640px;margin:0 auto}
.done .ok{width:72px;height:72px;border-radius:50%;background:#E8F7EE;color:#1C6B3C;display:grid;place-items:center;margin:0 auto 18px;font-size:2rem}
.done p{color:var(--muted);margin:12px 0 24px}
.done .btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.done .btns [hidden]{display:none}

@media (max-width:1024px){
  .cart-layout{grid-template-columns:1fr}
  .prod-card{grid-template-columns:1fr}
  .prod-media{flex-direction:row;padding:24px}
  .prod-ico{width:72px;height:72px;border-radius:20px}
  .prod-ico svg{width:40px;height:40px}
}
@media (max-width:760px){
  .contact-grid{grid-template-columns:1fr}
  .prod-body{padding:24px 20px}
  .prod-form{grid-template-columns:1fr}
  .panel{padding:20px 16px}
  .cart-head{display:none}
  .cart-row{grid-template-columns:1fr auto;grid-template-areas:"n n" "u s" "q r";row-gap:10px}
  .cart-name{grid-area:n}.cart-unit{grid-area:u;font-size:.88rem}.cart-sum{grid-area:s;text-align:right}.cart-row .qty{grid-area:q;width:130px}.cart-rm{grid-area:r;justify-self:end}
  .cart-unit small{display:inline;margin-right:6px;color:var(--muted)}
  .policy table th{width:auto}
  .policy table,.policy tbody,.policy tr,.policy th,.policy td{display:block;width:100%}
  .policy tr{border:1px solid var(--line);border-radius:10px;margin-bottom:8px;overflow:hidden}
  .policy th,.policy td{border:0}
}
