:root{
  --bg:#0f0b08;
  --card:#1b1511;
  --muted:#c8b9aa;
  --text:#fff8f1;
  --accent:#d58a5c;
  --accent2:#a8623f;
  --border: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --cream:#f5eee7;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(213,138,92,.16), transparent 60%),
    linear-gradient(180deg, #120d0a 0%, #0f0b08 100%);
}

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

.container{
  max-width:1100px;
  margin:0 auto;
  padding:22px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 18px;
  border:1px solid var(--border);
  background:rgba(27,21,17,.82);
  backdrop-filter:blur(10px);
  border-radius:18px;
  box-shadow:var(--shadow);
  position:sticky;
  top:14px;
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.nav-logo{
  height:48px;
  width:auto;
  object-fit:contain;
  display:block;
  border-radius:10px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-text h1{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
  line-height:1.1;
}

.brand-text .small{
  font-size:12px;
  color:var(--muted);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
}

.btn{
  cursor:pointer;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  transition:transform .08s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.14);
}

.btn:active{
  transform:translateY(1px);
}

.btn-primary{
  border:none;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff7f2;
  font-weight:700;
}

.btn-primary:hover{
  filter:saturate(1.05) brightness(1.03);
}

.btn-danger{
  border:1px solid rgba(255,80,80,.25);
  background:rgba(255,80,80,.12);
}

.btn-link{
  background:transparent;
  border:none;
  color:var(--muted);
  cursor:pointer;
  padding:8px 10px;
}

.btn-link:hover{
  color:var(--text);
}

.hero{
  margin-top:18px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-inner{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:0;
  align-items:center;
}

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

.hero-copy{
  padding:30px;
}

.hero-copy h2{
  margin:0 0 12px 0;
  font-size:34px;
  letter-spacing:.2px;
}

.hero-copy p{
  margin:0 0 14px 0;
  color:var(--muted);
  line-height:1.6;
}

.hero-copy .mini{
  font-size:13px;
  color:rgba(200,185,170,.9);
}

.hero-photo{
  min-height:320px;
  border-radius:16px;
  overflow:hidden;
  background:none !important;
  background-image:none !important;
  box-shadow:none !important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 24px 20px 0;
  position:relative;
}

.hero-photo::before,
.hero-photo::after{
  content:none !important;
  display:none !important;
}

.hero-photo img{
  width:100%;
  max-width:340px;
  height:auto;
  max-height:280px;
  object-fit:contain;
  display:block;
  margin:0 auto;
  border-radius:18px;
}

.section-title{
  margin:24px 0 10px 0;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}

.section-title h3{
  margin:0;
  font-size:22px;
}

.section-title p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

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

@media (max-width:950px){
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
}

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

.card{
  border:1px solid var(--border);
  background:rgba(27,21,17,.82);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}

.card-media{
  position:relative;
  height:230px;
  overflow:hidden;
  background:#140f0c;
}

.media-stage{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#140f0c;
}

.stage-media{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  background:#140f0c;
}

/* Use contain only when needed by adding class in JS if you want later */
.stage-media.is-contain{
  object-fit:contain;
  padding:10px;
}

.media-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:rgba(20,15,12,.76);
  color:#fff;
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, background .15s ease;
  z-index:2;
}

.card-media:hover .media-arrow,
.card-media:focus-within .media-arrow{
  opacity:1;
  pointer-events:auto;
}

.media-arrow:hover{
  background:rgba(20,15,12,.95);
}

.media-arrow-left{left:10px}
.media-arrow-right{right:10px}

.card-body{
  padding:15px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card-body h4{
  margin:0;
  font-size:16px;
}

.card-body p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.price{
  font-weight:800;
}

.small{
  font-size:12px;
  color:var(--muted);
}

.footer{
  margin:26px 0 14px 0;
  color:rgba(200,185,170,.85);
  font-size:12px;
  text-align:center;
}

.cart-wrap{
  margin-top:18px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
}

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

.panel{
  border:1px solid var(--border);
  background:rgba(27,21,17,.82);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.panel-header{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.panel-header h3{
  margin:0;
  font-size:16px;
}

.panel-body{
  padding:14px 16px;
}

.item{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.item:last-child{
  border-bottom:none;
}

.thumb{
  width:72px;
  height:72px;
  border-radius:14px;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.08);
}

.item h4{
  margin:0;
  font-size:14px;
}

.item .meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.qty{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}

.qty input{
  width:62px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

.hr{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:12px 0;
}

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

.row strong{
  font-size:14px;
}

.row span{
  color:var(--muted);
  font-size:13px;
}

.total{
  font-size:18px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

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

label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px;
}

input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}

textarea{
  min-height:86px;
  resize:vertical;
}

.notice{
  font-size:12px;
  color:rgba(200,185,170,.9);
  line-height:1.45;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(255,255,255,.03);
  padding:10px 12px;
  border-radius:14px;
}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background:rgba(27,21,17,.96);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}
