* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #0a0e1a;
  margin: 0;
  padding: 0;
  color: #e8eaf0;
}

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: #0d1221;
  border-bottom: 1px solid #1e2a45;
}

.header-brand {
  border-left: 3px solid #3b82f6;
  padding-left: 16px;
}

.header-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3b82f6;
  display: block;
  margin-bottom: 4px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 2px;
  color: #f0f4ff;
}

.store-subtitle {
  font-size: 23px;
  color: #556080;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  border: 1px solid #1e2a45;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 20px;
}

.contact-label { color: #556080; font-size: 16px; }
.contact-number { font-weight: 500; color: #e8eaf0; font-size: 16px; }

.admin-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.admin-btn:hover { opacity: 0.8; }

.header-divider {
  height: 3px;
  background: linear-gradient(to right, #3b82f6 0%, #1e2a45 50%, transparent 100%);
}

/* ── PRODUCTS ── */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 32px 40px;
}

.product {
  background: #0d1221;
  border: 1px solid #1e2a45;
  border-radius: 12px;
  overflow: hidden;
  width: 240px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.product:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59,130,246,0.15);
}

.img-wrap {
  position: relative;
  cursor: pointer;
  padding: 10px;
}

.img-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
  border-radius: 8px;
  border: 1px solid #1e2a45;
}

.img-wrap:hover img { filter: brightness(0.5); }

.img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.img-wrap:hover .img-overlay { opacity: 1; }
.overlay-icon { font-size: 24px; }

.overlay-text {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.product-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product h2 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  color: #e8eaf0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1e2a45;
  padding-top: 10px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-normal {
  font-size: 20px;
  font-weight: 700;
  color: #e8eaf0;
}

.price-old {
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  position: relative;
}

.price-new {
  font-size: 22px;
  font-weight: 700;
  color: #f87171;
}

button {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.8; }

/* ── MODALS ── */
.modal-bg, .buy-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-bg.open, .buy-modal-bg.open { display: flex; }

.modal {
  background: #0d1221;
  border: 1px solid #1e2a45;
  border-radius: 16px;
  padding: 20px;
  max-width: 700px;
  width: 92%;
  position: relative;
}

.buy-modal {
  background: #0d1221;
  border: 1px solid #1e2a45;
  border-radius: 16px;
  padding: 0;
  max-width: 900px;
  width: 92%;
  position: relative;
  display: flex;
  overflow: hidden;
}

.buy-modal-left {
  flex: 1;
  padding: 40px 36px;
  text-align: left;
}

.buy-modal-desc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 16px;
  color: #f0f4ff;
}

.buy-modal-desc {
  font-size: 15px;
  color: #8896b0;
  line-height: 1.8;
  margin: 0;
}

.buy-modal-right {
  flex: 1;
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.buy-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 24px;
  color: #f0f4ff;
}

.bank-logos {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 24px;
}

.bank-item img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.account-number {
  font-size: 18px;
  font-weight: 500;
  color: #e8eaf0;
  letter-spacing: 0.05em;
}

.buy-modal-note {
  font-size: 14px;
  color: #8896b0;
  margin: 0;
  border-top: 1px solid #1e2a45;
  padding-top: 16px;
  text-align: center;
}

.modal-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-main {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(59,130,246,0.7);
  color: #fff;
  border: none;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  transition: background 0.15s;
}

.arrow:hover { background: #3b82f6; }
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.modal-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #556080;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #556080;
  padding: 0;
  z-index: 10;
}

.modal-close:hover { opacity: 0.6; }

.admin-btn {
  font-size: 22px !important;
  padding: 10px 22px !important;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
    text-align: center;
  }

  .header-brand {
    border-left: 3px solid #3b82f6;
    border-right: 3px solid #3b82f6;
    padding: 0 16px;
    text-align: center;
  }

  .header-tag {
    text-align: center;
  }

  h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .store-subtitle {
    font-size: 13px;
    text-align: center;
  }

  .header-right {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .contact-bar {
    font-size: 12px;
    padding: 6px 14px;
  }

  .contact-label { font-size: 12px; }
  .contact-number { font-size: 12px; }

  .admin-btn {
    font-size: 13px !important;
    padding: 7px 14px !important;
  }

  .product-grid {
    padding: 16px;
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product {
    width: 100%;
  }

  .product h2 {
    font-size: 12px;
  }

  .price-normal {
    font-size: 14px;
  }

  .price-new {
    font-size: 15px;
  }

  .price-old {
    font-size: 11px;
  }

  button {
    font-size: 11px;
    padding: 6px 10px;
  }

  .buy-modal {
    flex-direction: column;
    width: 96%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .buy-modal-left {
    padding: 24px 20px;
  }

  .buy-modal-right {
    padding: 24px 20px;
  }

  .buy-modal-divider {
    width: 100%;
    height: 1px;
    margin: 0 24px;
  }

  .buy-modal-desc-title {
    font-size: 1.1rem;
  }

  .buy-modal-desc {
    font-size: 13px;
  }

  .buy-modal-title {
    font-size: 1.1rem;
  }

  .bank-item img {
    height: 45px;
  }

  .account-number {
    font-size: 14px;
  }

  .buy-modal-note {
    font-size: 12px;
  }

  .modal {
    width: 98%;
    padding: 12px;
  }
}

.delivery-banner {
  text-align: center;
  padding: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  animation: glow 2s ease-in-out infinite;
  background: #0d1221;
  border-bottom: 1px solid #1e2a45;
}

@keyframes glow {
  0%   { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.4); }
  50%  { color: #f87171; text-shadow: 0 0 16px rgba(248,113,113,0.8); }
  100% { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.4); }
}