/* ============================================================
   SMKIO — page.css
   Shared styles for shop / cart / checkout / register pages
   ============================================================ */

/* ---------- Current nav state ---------- */
.nav__link.is-current{color:var(--gold)}
.nav__link.is-current::after{width:100%}
.icon-btn.is-current{color:var(--gold)}

/* ---------- Page hero ---------- */
.page-hero{
  position:relative;
  background:
    radial-gradient(800px 400px at 80% 10%,rgba(31,138,120,.1),transparent 55%),
    linear-gradient(160deg,#f2f7f5,#e6efec);
  padding:6rem 2rem 5rem;
  text-align:left;
  border-bottom:1px solid var(--line-dark);
  overflow:hidden;
}
.page-hero--small{padding:4.5rem 2rem 3.6rem}
.page-hero__inner{max-width:1060px;margin:0 auto}
.page-hero__title{
  font-family:var(--serif);
  font-weight:800;
  font-size:clamp(2.4rem,5vw,3.6rem);
  line-height:1.1;
  margin-bottom:.9rem;
  color:var(--ink);
}
.page-hero__sub{color:var(--muted);font-weight:400;font-size:1rem;max-width:640px}
.page-body .page-hero .hero__eyebrow{justify-content:flex-start}
.page-body .page-hero .hero__eyebrow::before{display:none}

/* ---------- Cart page ---------- */
.cart-page{padding:4.5rem 2rem 6rem;max-width:1100px;margin:0 auto}
.cart-page__wrap{display:grid;grid-template-columns:1fr 380px;gap:2.4rem;align-items:start}
.cart-page__items{display:flex;flex-direction:column;gap:1rem}
.cart-row{
  display:flex;align-items:center;gap:1.2rem;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:18px;
  padding:1.2rem 1.4rem;
  box-shadow:0 6px 20px rgba(14,26,36,.05);
  transition:border-color .3s;
}
.cart-row:hover{border-color:rgba(31,138,120,.4)}
.cart-row__thumb{
  width:64px;height:64px;flex-shrink:0;border-radius:12px;
  background:radial-gradient(120px 80px at 50% 30%,rgba(31,138,120,.14),transparent 70%),#eef2f4;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.cart-row__thumb svg{width:62%;height:62%}
.cart-row__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cart-row__info{flex:1;min-width:0}
.cart-row__name{font-family:var(--serif);font-size:1.12rem;font-weight:700}
.cart-row__meta{color:var(--muted);font-size:.74rem;margin:.2rem 0 .7rem}
.cart-row__qty{display:flex;align-items:center;gap:.5rem}
.cart-row__qty span{font-size:.9rem;min-width:22px;text-align:center}
.cart-row__right{text-align:right;flex-shrink:0}
.cart-row__price{font-family:var(--serif);font-size:1.3rem;font-weight:700;color:var(--ink);margin-bottom:.5rem}
.cart-row__remove{
  color:var(--muted);font-size:.68rem;text-transform:uppercase;
  letter-spacing:.12em;transition:color .3s;
}
.cart-row__remove:hover{color:#d64550}

.cart-summary{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:20px;
  padding:1.8rem 1.8rem 1.6rem;
  position:sticky;top:90px;
  box-shadow:0 6px 24px rgba(14,26,36,.06);
}
.cart-summary__title{
  font-family:var(--serif);font-weight:700;font-size:1.3rem;
  letter-spacing:.04em;margin-bottom:1.2rem;
}
.cart-summary__row{
  display:flex;justify-content:space-between;align-items:center;
  padding:.55rem 0;color:var(--muted);font-size:.9rem;
}
.cart-summary__row strong{color:var(--ink);font-family:var(--serif);font-size:1.05rem;font-weight:700}
.cart-summary__row--total{
  border-top:1px solid var(--line-dark);margin-top:.5rem;padding-top:1rem;
}
.cart-summary__row--total span{color:var(--ink);letter-spacing:.1em;text-transform:uppercase;font-size:.76rem;font-weight:700}
.cart-summary__row--total strong{font-size:1.6rem;color:var(--ink);font-weight:800}
.cart-summary__continue{margin-top:.7rem}

.cart-empty{text-align:center;padding:4rem 1rem;border:1px dashed var(--line);border-radius:18px}
.cart-empty__icon{font-size:2.6rem;margin-bottom:1rem}
.cart-empty h3{font-family:var(--serif);font-size:1.6rem;font-weight:700;margin-bottom:.5rem}
.cart-empty p{color:var(--muted);font-weight:400;margin-bottom:1.6rem}

/* ---------- Checkout ---------- */
.checkout{padding:4rem 2rem 6rem;max-width:1100px;margin:0 auto}
.checkout__wrap{display:grid;grid-template-columns:1fr 400px;gap:2.4rem;align-items:start}
.checkout__form{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:2rem 2rem 2.2rem;
  box-shadow:0 6px 24px rgba(14,26,36,.05);
}
.checkout__section-title{
  font-family:var(--serif);font-weight:700;font-size:1.25rem;
  letter-spacing:.04em;margin-bottom:1.3rem;color:var(--ink);
}
.checkout__section-title--mt{margin-top:2rem}
.checkout__grid2{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}

.field{margin-bottom:1.1rem}
.field label{
  display:block;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);margin-bottom:.5rem;
  font-weight:600;
}
.field input,.field select{
  width:100%;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--ink);padding:.95em 1.1em;
  font-family:inherit;font-size:.9rem;outline:none;
  transition:border-color .3s;
  appearance:none;
}
.field select option{background:var(--paper-2);color:var(--ink)}
.field input::placeholder{color:rgba(14,26,36,.35)}
.field input:focus,.field select:focus{border-color:var(--gold)}

.checkout__summary{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:20px;
  padding:1.8rem;
  position:sticky;top:90px;
  box-shadow:0 6px 24px rgba(14,26,36,.06);
}
.co-item{
  display:flex;align-items:center;gap:.8rem;
  padding:.7rem 0;border-bottom:1px solid var(--line-dark);
}
.co-item__thumb{width:40px;height:40px;flex-shrink:0;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#eef2f4;overflow:hidden}
.co-item__thumb svg{width:70%;height:70%}
.co-item__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.co-item__name{flex:1;font-size:.86rem;color:var(--ink);min-width:0}
.co-item__name em{color:var(--muted);font-style:normal;font-size:.74rem}
.co-item__variant{display:block;margin-top:2px}
.co-item__price{font-family:var(--serif);font-weight:700;color:var(--ink);font-size:1rem}
.checkout__empty{color:var(--muted);font-weight:400;text-align:center;padding:1.4rem 0;line-height:2}
.checkout__empty a{color:var(--gold)}

.order-success{
  position:fixed;inset:0;z-index:1000;
  background:rgba(14,26,36,.5);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:1.5rem;
  opacity:0;visibility:hidden;transition:.4s;
}
.order-success.show{opacity:1;visibility:visible}
.order-success__card{
  max-width:440px;width:100%;text-align:center;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:24px;
  padding:3rem 2.4rem;
  box-shadow:0 30px 80px rgba(14,26,36,.2);
}
.order-success__mark{
  width:72px;height:72px;margin:0 auto 1.4rem;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  color:#fff;font-size:2rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.order-success__card h2{font-family:var(--serif);font-weight:800;font-size:1.9rem;margin-bottom:.7rem}
.order-success__card p{color:var(--muted);font-weight:400;margin-bottom:1.8rem}

/* ---------- Auth / Register ---------- */
.auth{padding:4rem 2rem 6rem}
.auth__card{
  max-width:480px;margin:0 auto;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:2.6rem 2.4rem;
  box-shadow:0 6px 24px rgba(14,26,36,.06);
}
.auth__foot{text-align:center;color:var(--muted);font-size:.84rem;margin-top:1.4rem}
.auth__foot a{color:var(--gold)}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .cart-page__wrap,.checkout__wrap{grid-template-columns:1fr}
  .cart-summary,.checkout__summary{position:static;margin-top:.5rem}
}
@media(max-width:600px){
  .checkout__grid2{grid-template-columns:1fr}
  .cart-row{flex-wrap:wrap}
  .cart-row__right{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:.4rem}
}

/* ---------- Centered page hero (category + shop pages) ---------- */
.page-hero--center{text-align:center}
.page-hero--center .page-hero__sub{margin-left:auto;margin-right:auto}
.page-body .page-hero--center .hero__eyebrow{justify-content:center}
