:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#666;
  --line:#e8e8e8;
  --max:1100px;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{
  width:min(var(--max), 92%);
  margin:0 auto;
}

/* Header */
.header{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:10;
}
.header__inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand__logo{height:44px;width:auto}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav__link{
  font-size:14px;
  letter-spacing:.2px;
  padding:10px 6px;
}
.nav__link:hover{opacity:.7}

.header__actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.icon-btn{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  font-size:14px;
}
.icon-btn:hover{opacity:.7}

.burger{
  display:none;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:8px;
}
.burger span{
  display:block;
  height:2px;
  background:#111;
  margin:5px 0;
}

/* Hero */
.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  align-items:end;
}
.hero__media{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.85);
}
.hero__content{
  position:relative;
  padding:80px 0 48px;
}
.hero__title{
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing:-.5px;
  color:#fff;
  max-width:16ch;
}
.hero__subtitle{
  color:#fff;
  margin-top:12px;
  max-width:48ch;
  line-height:1.4;
  opacity:.92;
}
.hero__cta{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
}
.btn--primary{
  background:#111;
  color:#fff;
}
.btn--primary:hover{opacity:.85}

.btn--ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.7);
}
.btn--ghost:hover{opacity:.85}

/* Sections */
.section{padding:48px 0}
.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:14px;
}
.section__head h2{font-size:20px}
.link{font-size:14px;color:var(--muted)}
.link:hover{opacity:.7}

/* Cards grid */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f6f6f6;
  min-height:220px;
}
.card:hover{opacity:.9}
.card__label{
  position:absolute;
  left:12px;
  bottom:12px;
  background:rgba(17,17,17,.85);
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
}

/* Promo */
.promo{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fafafa;
}
.promo__inner{
  padding:14px 0;
  text-align:center;
  color:#222;
}
.promo strong{font-weight:700}

/* Footer */
.footer{
  padding:36px 0;
}
.footer__inner{
  display:flex;
  gap:24px;
  justify-content:space-between;
  align-items:flex-start;
  border-top:1px solid var(--line);
  padding-top:24px;
}
.footer__logo{height:24px;margin-bottom:10px}
.footer__cols{
  display:grid;
  grid-template-columns:repeat(2, minmax(140px, 1fr));
  gap:24px;
}
.footer h4{font-size:14px;margin-bottom:10px}
.footer a{
  display:block;
  font-size:14px;
  color:var(--muted);
  margin:8px 0;
}
.footer a:hover{opacity:.7}
.muted{color:var(--muted);line-height:1.5}

/* Responsive */
@media (max-width: 900px){
  .grid-3{grid-template-columns:1fr;}
  .nav{display:none;}
  .burger{display:inline-block;}
}

/* Shop page */
.page{ padding: 28px 0 52px; }
.page__head{ margin: 10px 0 18px; }
.page__title{ font-size: 28px; letter-spacing: -.3px; }
.page__sub{ color: var(--muted); margin-top: 6px; }

.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin: 18px 0 18px;
}

.pill{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
}
.pill:hover{ opacity:.8; }

.select{
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.product{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.product img{
  width:100%;
  height:240px;
  object-fit:cover;
  transition:transform .35s ease;
}
.product:hover img{ transform:scale(1.03); }

.product__meta{
  padding:12px 12px 14px;
}
.product__name{
  font-size:14px;
  font-weight:700;
  margin-bottom:6px;
}
.product__price{
  font-size:14px;
  color: var(--muted);
}

/* Responsive shop grid */
@media (max-width: 1000px){
  .product-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 520px){
  .product-grid{ grid-template-columns:1fr; }
}

/* Product page */
.product-page{ padding: 22px 0 60px; }

.backlink{
  display:inline-block;
  margin: 8px 0 18px;
  font-size:14px;
  color: var(--muted);
}
.backlink:hover{ opacity:.75; }

.product-layout{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items:start;
}

.gallery{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.gallery__main{
  width:100%;
  height:520px;
  object-fit:cover;
}
.gallery__thumbs{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid var(--line);
  background:#fafafa;
}
.thumb{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  width:72px;
  height:72px;
  padding:0;
  background:#fff;
  cursor:pointer;
}
.thumb img{ width:100%; height:100%; object-fit:cover; }
.thumb.is-active{ outline:2px solid #111; }

.details__title{
  font-size: 28px;
  letter-spacing:-.3px;
}
.details__price{
  margin-top:8px;
  font-size:16px;
  font-weight:700;
}
.details__desc{
  margin-top:12px;
  color: var(--muted);
  line-height:1.5;
}

.divider{
  height:1px;
  background: var(--line);
  margin:18px 0;
}

.option{ margin-bottom: 14px; }
.option__row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:10px;
}
.option__title{ font-size:14px; }

.sizes{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:10px;
}
.size{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 0;
  cursor:pointer;
  font-weight:700;
}
.size:hover{ opacity:.85; }
.size.is-selected{
  border-color:#111;
  outline:2px solid #111;
  outline-offset:-2px;
}

.qty{
  display:flex;
  align-items:center;
  gap:10px;
  width: fit-content;
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  background:#fff;
}
.qty__btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:18px;
}
.qty__btn:hover{ opacity:.85; }
.qty__input{
  width:64px;
  text-align:center;
  border:none;
  outline:none;
  font-size:14px;
}

.btn--full{ width:100%; }

.small{ font-size:13px; }

.bullets{
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  line-height:1.8;
  font-size:14px;
}

/* Responsive product page */
@media (max-width: 900px){
  .product-layout{ grid-template-columns:1fr; }
  .gallery__main{ height:380px; }
  .sizes{ grid-template-columns: repeat(3, 1fr); }
}

/* Cart */
.cart__grid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items:start;
}
.cart-item{
  display:flex;
  gap:14px;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  padding:12px;
  margin-bottom:12px;
}
.cart-item__img{
  width:110px;
  height:110px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
}
.cart-item__info{ flex:1; }
.cart-item__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.cart-item__name{ font-weight:700; font-size:14px; }
.cart-item__meta{ color:var(--muted); font-size:13px; margin-top:4px; }
.cart-item__price{ font-weight:700; font-size:14px; }

.cart-item__actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
  align-items:center;
}
.cart-form{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cart-qty{
  width:72px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 10px;
  background:#fff;
}

.cart__summary{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
  position:sticky;
  top:84px;
}
.cart__summary h3{ font-size:16px; margin-bottom:10px; }
.cart__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  font-size:14px;
}
.cart__total{ font-weight:800; }

@media (max-width: 900px){
  .cart__grid{ grid-template-columns:1fr; }
  .cart__summary{ position:static; }
}

/* Checkout */
.checkout-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
  align-items:start;
}
.panel{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.panel__title{
  font-size:16px;
  margin-bottom:12px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
.form-grid .full{ grid-column: 1 / -1; }

.label{
  display:block;
  font-size:13px;
  color: var(--muted);
  margin-bottom:6px;
}
.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
}
.input:focus{ border-color:#111; }

.sum-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.sum-item:last-child{ border-bottom:none; }
.sum-name{ font-weight:700; font-size:14px; }
.sum-price{ font-weight:700; font-size:14px; }
.sum-meta{ font-size:13px; margin-top:4px; }

@media (max-width: 900px){
  .checkout-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

.product__stock {
  font-size: 13px;
  margin-top: 4px;
  color: #666;
}

.product__stock--out {
  color: #b00020;
  font-weight: 700;
}

.product--soldout {
  opacity: 0.75;
}

.icon-btn:hover {
  opacity: 0.7;
}

.fa-instagram:hover {
  color: #e1306c;
}

.featured-grid {
  gap: 20px;
}

.feature-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
}

.feature-card__media {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Essentials layout */
.feature-card__media--essentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px 160px;
  gap: 8px;
}

.feature-card__media--essentials img:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.feature-card__media--essentials img:nth-child(2),
.feature-card__media--essentials img:nth-child(3) {
  height: 100%;
}

.feature-card .card__label {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
}

.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-card__media {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover swap */
.hover-swap .img-main,
.hover-swap .img-hover {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease;
}

.hover-swap .img-main {
  opacity: 1;
}

.hover-swap .img-hover {
  opacity: 0;
}

.hover-swap:hover .img-main {
  opacity: 0;
}

.hover-swap:hover .img-hover {
  opacity: 1;
}