:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0ea5a4;
  --accent-600: #089e9b;
  --shadow: 0 6px 18px rgba(11, 14, 26, 0.06);
  --radius: 14px;
  --max-width: 1180px;
  --gap: 0.25rem;
  --card-padding: 0.15rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.disclaimer {
	color: darkgray;
  text-align: center;
	font-style: italic;
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem
}

.controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.search {
  background: var(--card);
  border: 1px solid rgba(11, 18, 31, 0.06);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 260px;
  box-shadow: var(--shadow);
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
}

@media (max-width: 700px) {

  .controls {
    justify-content: center;
    width: 100%;
  }

  .search {
    width: 100%;
    max-width: 100%;
  }

}

.card-hidden {
  display: none !important;
}

/* product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start; /* 🔑 THIS FIXES IT */
}

/* responsive breakpoints */
@media (min-width:560px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:880px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width:1180px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* product card */
.shop-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:focus-within .media {
  position: relative;
  min-height: 100px;
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #eef, #f8fbff);
}

/* maintain aspect ratio and cover */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.content {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem
}

.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
}

h2 {
  font-size: 1rem;
  margin: 0
}

p.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: left;
	height: 50px;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.tag {
  background: #f1f6f6;
  color: #065f5d;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem
}

.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center
}

/* small helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* empty state */
.empty {
  padding: 3rem;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow)
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center
}


* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg), #eef2f7);
  color: var(--text);

}

.product-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width:900px) {
  .product-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

/* Gallery */
.product-gallery {
  display: grid;
  gap: 0.75rem;
}

.product-main-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.product-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-ref {
  font-size: 0.85rem;
  color: var(--muted);
}

h1 {
  font-size: 1.4rem;
  margin: 0;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-600);
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-details {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
	font-weight: bold;
}


.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* === Mobile base font scaling === */
@media (max-width: 767px) {
  html {
    font-size: 16px;  /* default desktop font-size is usually 14px; increase to 16px on mobile */
  }

  /* Optional: slightly increase line-height for readability */
  body {
    line-height: 1.5;
  }
}
/* === Mobile search box improvements === */
@media (max-width: 767px) {
  .search {
    min-width: 100% !important;      /* search box stretches across container */
    padding: 0.65rem 0.8rem;         /* slightly larger padding for touch */
  }

  .search input {
    font-size: 1rem !important;      /* larger, readable text on mobile */
    padding: 0.2rem 0;               /* remove extra internal spacing */
  }
}

/* === Mobile-friendly buttons and inputs === */
@media (max-width: 767px) {
  .search input {
    padding: 0.7rem 0.8rem;  /* taller input box */
    font-size: 1rem;         /* slightly bigger text inside input */
  }



  /* Optional: add more spacing between product cards */
  .grid {
    gap: 0.5rem;             /* slightly larger gap for touch-friendly spacing */
  }
}

li {
    font-size: 14px;
    margin-left: 10px;
    list-style-type: disc;
 }
 
 .shop-card {
  position: relative;
  overflow: hidden;
}

.shop-card.sold {
  opacity: 0.85;
}

.sold-banner {
  position: absolute;
  top: 18px;
  left: -45px;
  width: 160px;
  padding: 10px 0;
  background: #c00;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  transform: rotate(-45deg);
  z-index: 10;
  pointer-events: none;
}

.product-main-image img,
.product-main-image video {
    width: 100%;
    height: auto;
    display: block;
}

.product-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}