

:root{
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,0.76);
  --line: rgba(15, 23, 42, 0.14);
  --text: #0b1220;
  --muted: #475569;
  --accent: #16a34a;
  --accent-2: #065f46;
  --accent-soft: rgba(22, 163, 74, 0.10);
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
  --shadow-soft: 0 10px 28px rgba(2, 6, 23, 0.08);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{ max-width:100%; overflow-x:hidden; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 55%, #f8fafc 100%);
}

a{ color: inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid rgba(22, 163, 74, 0.55);
  outline-offset: 2px;
}

.page{ min-height:100vh; display:flex; flex-direction:column; }
main{ flex:1; }


.nav-store{
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.55);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(6, 95, 70, 0.98));
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.30);
  color: #ecfdf5 !important;
  display:inline-flex;
  align-items:center;
  gap: 0.4rem;
}
.nav-store:hover, .nav-store:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.34);
}


.product-hero{
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2.6rem;
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.4rem;
  align-items:start;
}
.product-hero > *{ min-width:0; }

@media (max-width: 920px){
  .product-hero{ grid-template-columns: 1fr; padding: 1.25rem 1rem 2.2rem; }
}


.product-media{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}
@media (min-width: 921px){
  .product-media{ position: sticky; top: 92px; }
}

.product-gallery{ display:flex; flex-direction:column; gap: 0.75rem; }

.product-gallery-main{
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(520px 280px at 20% 15%, rgba(22, 163, 74, 0.12), transparent 60%),
    radial-gradient(420px 240px at 95% 10%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-gallery-main img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.product-gallery-thumbs{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.5rem;
}
@media (max-width: 520px){
  .product-gallery-thumbs{ grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
}
.product-gallery-thumbs .thumb{
  width:100%;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.46);
  padding: 0.25rem;
  background: rgba(255,255,255,0.92);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  transition: transform 120ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.product-gallery-thumbs .thumb:hover{ transform: translateY(-1px); border-color: rgba(22, 163, 74, 0.45); }
.product-gallery-thumbs .thumb.is-active{
  border-color: rgba(22, 163, 74, 0.65);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22);
}
.product-gallery-thumbs .thumb img{ width:100%; height:100%; object-fit: contain; display:block; }

.product-media-note{
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}


.product-media-extras{
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}
.product-media-extras:empty{ display:none; }


.product-info{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1rem 1.1rem;
}

.product-back-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.product-info h1{
  margin:0 0 0.5rem;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  letter-spacing: -0.02em;
  overflow-wrap:anywhere;
}

.product-category{
  display:inline-flex;
  align-items:center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(255,255,255,0.65);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  margin-bottom: 0.6rem;
}

.product-price{
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.45rem;
}
.product-desc{
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.45;
  overflow-wrap:anywhere;
}

.product-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.product-actions--top{ margin: 0 0 0.95rem; }


.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor:pointer;
  white-space:nowrap;
  user-select:none;
  transition: transform 120ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.btn-sm{ padding: 0.48rem 0.85rem; font-size: 0.84rem; }
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.98), rgba(6, 95, 70, 0.98));
  border-color: rgba(22, 163, 74, 0.65);
  color: #ecfdf5;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}
.btn-primary:hover{ box-shadow: 0 14px 34px rgba(22, 163, 74, 0.24); }
.btn-outline{
  background: rgba(255,255,255,0.92);
  border-color: rgba(148, 163, 184, 0.60);
  color: var(--text);
  font-weight: 850;
}
.btn-outline:hover{
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}
.btn-ghost{
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.18);
  color: var(--accent-2);
  font-weight: 850;
}
.btn-ghost:hover{ background: rgba(22, 163, 74, 0.12); }

.btn[disabled]{ opacity:0.55; cursor:not-allowed; transform:none; }


.config-card{
  margin: 1rem 0 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(620px 220px at 10% 0%, rgba(22, 163, 74, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.90));
}
.config-card h2{
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.config-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
}
@media (max-width: 700px){ .config-grid{ grid-template-columns: 1fr; } }

.config-card label{
  display:flex;
  flex-direction:column;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.85);
}

.field-hint{
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(71, 85, 105, 0.95);
}
.config-card select, .config-card textarea{
  width:100%;
  padding: 0.62rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255,255,255,0.95);
  font: inherit;
  font-weight: 650;
  color: var(--text);
}
.config-linux{ margin-top: 0.75rem; }
.config-total{ margin-top: 0.9rem; display:grid; gap: 0.25rem; }
.config-total .row{
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.config-total .grand{
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 900;
  color: var(--text);
  font-size: 1.08rem;
  margin-top: 0.3rem;
}
.cfg-msg{ margin-top: 0.65rem; color: var(--accent-2); font-weight: 850; font-size: 0.95rem; }


.product-specs{
  margin-top: 0.95rem;
}
.product-details{
  margin-top: 1rem;
  display:grid;
  gap: 0.9rem;
}
.detail-card{
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255,255,255,0.92);
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.detail-card h2{
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.spec-bullets{ margin: 0.25rem 0 0; padding-left: 1.15rem; color: var(--text); }
.spec-bullets li + li{ margin-top: 0.25rem; }

.spec-table{
  width:100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td{
  text-align:left;
  padding: 0.5rem 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  vertical-align: top;
}
.spec-table th{ width: 42%; color: rgba(15, 23, 42, 0.80); font-weight: 900; }
.spec-table td{ color: var(--text); }

.pill-row{ display:flex; flex-wrap:wrap; gap:0.35rem; margin-top: 0.55rem; }
.pill{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: var(--accent-2);
}


.review-carousel{
  display:flex;
  align-items:stretch;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: calc(var(--radius) + 2px);
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
}
.review-nav{
  width: 2.55rem;
  min-width: 2.55rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}
.review-nav:hover{ transform: translateY(-1px); border-color: rgba(22, 163, 74, 0.40); }
.review-body{ flex:1; min-width:0; }
.review-stars{ font-size: 1.05rem; letter-spacing: 0.12rem; color: rgba(15, 23, 42, 0.90); }
.review-text{ margin: 0.35rem 0 0.65rem; font-size: 1.02rem; line-height: 1.45; }
.review-meta{ display:flex; flex-wrap:wrap; gap: 0.45rem; align-items:center; color: var(--muted); font-size: 0.92rem; }
.review-dot{ opacity: 0.65; }
.review-link{ margin-left:auto; color: var(--accent-2); font-weight: 900; }
.review-link:hover{ text-decoration: underline; }

@media (max-width: 520px){
  .review-carousel{ padding: 0.75rem; }
  .review-nav{ width: 2.2rem; min-width: 2.2rem; border-radius: 14px; }
  .review-text{ font-size: 1rem; }
}


.not-found{
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align:center;
}


@media (max-width: 860px){
  body{ padding-bottom: 92px; }
  .product-actions--top{ display:none; }
  .product-actions:not(.product-actions--top){
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.86);
    border-top: 1px solid rgba(148, 163, 184, 0.40);
    backdrop-filter: blur(10px);
    z-index: 70;
    justify-content: center;
  }
  .product-actions:not(.product-actions--top) .btn{
    flex: 1;
    min-width: 150px;
    max-width: 520px;
  }
}
