/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 30px;
}

/* =========================
   HEADER + LOGO
========================= */
.site-header {
  width: 100%;
  margin-bottom: 25px;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
}

.brand img {
  height: 90px;
}

@media (max-width: 768px) {
  .brand img {
    height: 42px;
  }
}

/* =========================
   TITLES
========================= */
.site-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
}

@media (max-width: 768px) {
  .site-title {
    font-size: 26px;
  }
}

/* =========================
   FILTER BAR (FIXED)
========================= */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto 35px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  min-width: 160px;
  padding: 10px 14px;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
}

.filter-bar input::placeholder {
  color: #888;
}

.filter-bar select option {
  background: #111;
}

.filter-bar .btn {
  padding: 10px 26px;
  border-radius: 999px;
}

/* =========================
   GRID (FIXED – NO DUPLICATION)
========================= */
.grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* =========================
   CARD (IMPROVED CONTRAST)
========================= */
.card {
  background: radial-gradient(circle at top, #1a1a1a, #0c0c0c);
  padding: 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 35px rgba(0,0,0,0.6);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}

.card h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  color: #fff;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

/* =========================
   IMAGE (4:5)
========================= */
.product-img-45 {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-45 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-45.no-image {
  color: #777;
  font-size: 14px;
}

/* =========================
   VARIANT LIST (READABLE)
========================= */
.variant-list {
  margin-top: 10px;
  font-size: 14px;
}

.variant-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.variant-row strong {
  color: #25d366;
  font-weight: 600;
}

.variant-row span {
  color: #bbb;
}

/* =========================
   ACTION BUTTONS
========================= */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  flex: 1;
}

.btn:hover {
  opacity: 0.9;
}

.whatsapp {
  background: #25D366;
  color: #000;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto 20px;
  text-align: right;
  opacity: 0.7;
  font-size: 14px;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #0f0f0f;
  padding: 30px;
  border-radius: 20px;
}

.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.product-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
}

.product-details h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.variant-select {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  body {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .product-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-details h1 {
    font-size: 24px;
  }
}
/* =========================
   FILTER BAR FINAL FIX
========================= */

/* Prevent button stretching */
.filter-bar .btn {
  flex: unset !important;
  width: auto !important;
  min-width: 120px;
}

/* Keep inputs balanced */
.filter-bar select,
.filter-bar input {
  flex: 0 0 auto;
}

/* Align filter bar nicely */
.filter-bar {
  justify-content: center;
  align-items: center;
}
/* REMOVE BLUE LINK STYLES INSIDE PRODUCT CARD */
.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  text-decoration: none;
}
.card h3 {
  color: #ffffff;
}

.card .category,
.card p {
  color: #b5b5b5;
  font-size: 13px;
}
.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variant-row strong {
  color: #25d366; /* green price */
}

.variant-row span {
  color: #bdbdbd; /* size text */
}
/* BUTTON WRAPPER */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* BUTTON BASE */
.actions .btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* BUY NOW */
.actions .btn:not(.whatsapp) {
  background: #ffffff;
  color: #000000;
}

/* WHATSAPP */
.actions .btn.whatsapp {
  background: #25D366;
  color: #000000;
}
