:root{
  --vino: #7b1e1e;
  --txt: #ffffff;
  --muted: rgba(255,255,255,.80);
  --stroke: rgba(255,255,255,.18);
  --overlay: rgba(0,0,0,.55);
  --overlay2: rgba(0,0,0,.72);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --panel: rgba(17,24,39,.54);
  --panel2: rgba(17,24,39,.66);
  --textShadow: 0 10px 26px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ height:100%; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--txt);
  background:#0b0d10;
}

.no-scroll{ overflow:hidden; }

/* =========================
   HOME / HERO
========================= */
.hero{
  height:100vh;
  width:100vw;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, var(--overlay2), var(--overlay)),
    url("../assets/hero.jpg") center/cover no-repeat;
  filter: saturate(1.06) contrast(1.06);
  transform: scale(1.02);
  background-position: center 60%;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 35%, rgba(0,0,0,.12), rgba(0,0,0,.62));
}

.hero__top{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  top: 14vh;
  width: min(980px, 92vw);
  text-align:center;
  z-index:2;
}

.brand{
  font-weight:800;
  letter-spacing:-.02em;
  font-size: clamp(44px, 7vw, 92px);
  line-height:1.05;
  margin-bottom: 14px;
  text-shadow: var(--textShadow);
}

.chucky{ color: var(--vino); text-shadow: var(--textShadow); }

.quote{
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  text-shadow: var(--textShadow);
}

.highlight{
  color: var(--vino);
  font-weight: 650;
  text-shadow: var(--textShadow);
}

.hero__center{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  top: 50vh;
  width: min(980px, 92vw);
  text-align:center;
  z-index:2;
}

.lang{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.10);
  color: var(--txt);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing:.01em;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  backdrop-filter: blur(10px);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 160px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}
.btn:active{ transform: translateY(0px) scale(.99); }

.btn:focus-visible,
.pill:focus-visible,
.chip:focus-visible,
.modalClose:focus-visible,
.actionBtn:focus-visible,
.textarea:focus-visible{
  outline: 2px solid rgba(123,30,30,.9);
  outline-offset: 3px;
}

.btn--ghost{
  background: rgba(0,0,0,.30);
  min-width: 150px;
}

.icon{ margin-left: 8px; }

.hero__footer{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 140px;
  z-index:2;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

@media (max-width: 520px){
  .hero__top{ top: 16vh; }
  .hero__footer{ bottom: 170px; }
  .hero::before{ background-position: center 64%; }
}

/* =========================
   INVENTORY PAGES
========================= */
.page{
  min-height: 100vh;
  background: radial-gradient(circle at 40% 0%, rgba(123,30,30,.10), rgba(0,0,0,0)) , #0b0d10;
  color: var(--txt);
  overflow-x: hidden;
}

/* topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px clamp(14px, 3vw, 28px);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.topbar__left{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.brandMini{
  text-decoration:none;
  color: var(--txt);
  font-weight: 900;
  letter-spacing:-.02em;
  font-size: 1.05rem;
}

.subline{
  color: var(--muted);
  font-size: .92rem;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.chip{
  width: 44px;
  height: 42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.chip--active{
  border-color: rgba(123,30,30,.65);
  background: rgba(123,30,30,.18);
  color: #fff;
}

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 28px) 64px;
}

.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.pill{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 650;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pill:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.pill.is-active{
  border-color: rgba(123,30,30,.65);
  background: rgba(123,30,30,.18);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(123,30,30,.18);
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  transition: opacity .14s ease;
}

.grid.fade{ opacity: .35; }

.card{
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  cursor:pointer;
  transform: translateY(0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: var(--panel2);
  box-shadow: 0 22px 60px rgba(0,0,0,.62);
}

.card__img{
  height: 180px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.card__body{ padding: 16px 16px 18px; }

.card__title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.card__meta{
  color: rgba(255,255,255,.74);
  font-size: 13px;
  margin: 2px 0;
}

.card__row{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.card__price{ font-size: 18px; }
.card__cta{ color: rgba(255,255,255,.82); font-weight: 700; }

@media (min-width: 720px){
  .card{ grid-column: span 6; }
  .card__img{ height: 190px; }
}
@media (min-width: 1040px){
  .card{ grid-column: span 4; }
  .card__img{ height: 200px; }
}

/* =========================
   MODAL + GALLERY + DETAILS
========================= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 999;
}
.modal.is-open{ display:block; }

.modalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
}

.modalPanel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 26px));
  max-height: calc(100% - 26px);
  overflow:auto;
  background: rgba(17,24,39,.88);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,.70);
}

.modalHead{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modalTitle{
  font-weight: 900;
  letter-spacing:-.01em;
  font-size: 1.2rem;
}

.modalSub{
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  margin-top: 2px;
}

.modalClose{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  border-radius: 14px;
  height: 40px;
  width: 46px;
  cursor:pointer;
}
.modalClose:hover{ background: rgba(255,255,255,.10); }

.modalBody{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 900px){
  .modalBody{ grid-template-columns: 1fr; }
}

.gallery{
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px){
  .gallery{ border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
}

.mainImg{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.mainImg img{
  width:100%;
  height: 380px;
  object-fit: cover;
  display:block;
}
@media (max-width: 620px){
  .mainImg img{ height: 300px; }
}

.thumbs{
  display:flex;
  gap:10px;
  margin-top: 12px;
  overflow:auto;
  padding-bottom: 6px;
}
.thumb{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  min-width: 92px;
  height: 64px;
  cursor:pointer;
  flex: 0 0 auto;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  opacity:.92;
}
.thumb.is-active{
  border-color: rgba(123,30,30,.65);
  box-shadow: 0 0 0 3px rgba(123,30,30,.18);
}

.details{ padding: 16px; }

.specs{
  margin-top: 6px;
  list-style: none;
  display:grid;
  gap: 8px;
  color: rgba(255,255,255,.86);
  font-size: .95rem;
}

.specs li{
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
}

.specs b{ color: rgba(255,255,255,.95); }

.textarea{
  width:100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  color: #fff;
  padding: 12px 12px;
  outline: none;
  margin-top: 10px;
}

.textarea:focus{
  border-color: rgba(123,30,30,.65);
  box-shadow: 0 0 0 3px rgba(123,30,30,.18);
}

.modalActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.actionBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--txt);
  text-decoration:none;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.actionBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.actionBtn.ghost{ background: rgba(0,0,0,.10); }

.hint{
  margin-top: 10px;
  color: rgba(255,255,255,.70);
  font-size: .85rem;
}
/* ===== Mobile carousel inside modal ===== */
.carouselWrap{
  position: relative;
  margin-top: 6px;
}

.carousel{
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}

.carousel::-webkit-scrollbar{ height: 0; }

.slide{
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}

.slide img{
  width: 100%;
  height: clamp(260px, 42vh, 420px);
  object-fit: cover;
  display: block;
}

/* subtle arrows */
.carouselNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  width: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.carouselNav:hover{
  transform: translateY(-50%) scale(1.02);
  background: rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.22);
}

.carouselNav:active{
  transform: translateY(-50%) scale(.98);
}

.carouselNav.prev{ left: 10px; }
.carouselNav.next{ right: 10px; }

/* dots */
.dots{
  display:flex;
  gap: 8px;
  justify-content:center;
  margin-top: 10px;
  padding-bottom: 2px;
}

.dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.dot:hover{ transform: scale(1.15); }
.dot.is-active{
  background: rgba(123,30,30,.85);
  border-color: rgba(123,30,30,.95);
  transform: scale(1.25);
}

/* make carousel full width in modal left column */
.gallery{ padding: 16px; }
.gallery-container {
  width: 100%;
}

.main-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.main-slider img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 8px;
}

.thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
}

.thumbnails img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.6;
  cursor: pointer;
  transition: 0.3s;
}

.thumbnails img.active {
  opacity: 1;
  border: 2px solid black;
}
