html, body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
}

.header{
  height:56px;
  background:#0b1220;
  display:flex;
  align-items:center;
  justify-content:center;
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
}

.header img{
  height:60%;
}

.header::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}

.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  margin-top: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
}

.footer-content {
  position: relative;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
}

.footer-center {
  margin: 0;
}

.footer-update {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

/* Mobile behavior */
@media (max-width: 600px) {
  .footer-content {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .footer-update {
    position: static;
    transform: none;
  }
}

.color-dot {
  border: 1px solid rgba(0,0,0,0.15);
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #ee4d2d;
  margin-bottom: 10px;
  text-align: center;
}

h2 {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #444;
  margin-bottom: 35px;
  text-align: center;
}

.products {
  display: grid;
  gap: 25px;
  width: 100%;
  max-width: 1500px;
}

@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .products {
    grid-template-columns: repeat(1, 1fr);
  }
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.product-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 12px;
}

.product-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-slider img.active {
  opacity: 1;
}

.product-slider .prev,
.product-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 2;
}

.product-slider .prev { left: 8px; }
.product-slider .next { right: 8px; }

.product-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:5px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.color-options {
  display:flex;
  gap:10px;
}

.color-dot {
  width:18px;
  height:18px;
  border-radius:50%;
  cursor:pointer;
  border:2px solid transparent;
  transition:0.2s ease;
}

.color-dot.active {
  border:2px solid #ee4d2d;
  transform:scale(1.15);
}

.product-price {
  font-size: 1.6rem;
  color: #ee4d2d;
  font-weight: 700;
  margin: 10px 0 4px 0;
  display:flex;
  align-items:center;
  gap:8px;
}

.selected-color {
  font-size:0.9rem;
  font-weight:700;
}

.product-note {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
}

.variant-group {
  margin-top: 15px;
}

.variant-group label {
  font-size:0.8rem;
  font-weight:600;
  color:#555;
}

.variant-options {
  display:flex;
  gap:10px;
  margin-top:8px;
  flex-wrap:wrap;
}

.variant {
  padding:6px 14px;
  border:1px solid #ddd;
  border-radius:6px;
  cursor:pointer;
  font-size:0.8rem;
  transition:0.2s;
  background:#fff;
}

.variant:hover {
  border-color:#ee4d2d;
}

.variant.active {
  border-color:#ee4d2d;
  background:#fff3ef;
  color:#ee4d2d;
}

.variant.disabled {
  opacity:0.35;
  cursor:not-allowed;
}

.buy-button {
  margin-top: 25px;
  background: #ee4d2d;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.buy-button:hover {
  background: #d63f22;
}

.specs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.specs-modal.active {
  display: flex;
}

.specs-content {
  background: #fff;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  box-sizing: border-box;
}

#closeModal {
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s ease;
}

#closeModal:hover {
  background: rgba(0,0,0,0.08);
}

#specsText {
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 8px;
  line-height: 1.5;
  box-sizing: border-box;
}

.color-dot.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.floating-btn{
  position:fixed;
  bottom:24px;
  right:24px;
  width:56px;
  height:56px;
  background:#0084ff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,132,255,.45);
  z-index:2000;
  transition:.25s ease
}

.floating-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(0,132,255,.6)
}

.floating-btn svg{
  width:28px;
  height:28px
}