* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background-color: rgb(255, 255, 255);
  color: #000000;
}

.disp-msg {
  background-color: #ffcdcd;
  border: 1px solid #ffbaba;
  color: #d41010;
  padding: 16px 20px;
  margin: 65px 5px 0 5px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.disp-msg p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.btn-verify {
    display: inline-block;
    padding: 2px 5px;
    font-size: 16px;
    margin-left: 2px 0 0 2px ;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-verify:hover {
    background-color: #0056b3;
}

/* ══════════════════════════════════════════════════
   PRODUCT GRID — single source of truth for sizing.
   !important used deliberately so no leftover/duplicate
   rule anywhere else in this file can silently override it.
   ══════════════════════════════════════════════════ */

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 10px 16px !important;
  align-items: stretch !important;
}

.product-grid .product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  max-width: 100% !important;
  padding: 30px 8px 8px 8px !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left;
  align-items: flex-start;
}

.product-grid .container-image {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 6px;
}

.product-grid .container-image > a {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
}

.product-grid .img-product {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform ease-in-out 500ms;
  transform: scale(1.0);
}

.product-grid .img-product:hover {
  transform: scale(1.1);
}

.product-grid .product .description {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  height: 2.8em !important;
  line-height: 1.4 !important;
  width: 100%;
  overflow: hidden !important;
  text-align: left;
  margin: 4px 0 2px 0 !important;
}

.product-grid .product .view-details-link {
  display: block !important;
  height: 1.2em !important;
  line-height: 1.2 !important;
  margin: 0 0 6px 0 !important;
}

.product-grid .product .currency {
  height: 1.4em !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  margin: 4px 0 8px 0 !important;
}

.product-grid .product .description a {
  text-decoration: none;
  font-weight: bold;
  color: black;
}

.product-grid .product .link-product {
  display: block !important;
  height: 1.3em !important;
  line-height: 1.3 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  width: 100%;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 600;
}

.product-grid .product a:hover {
  text-decoration: underline;
}

.product-grid .product p {
  color: rgb(0, 0, 0);
  text-align: left;
}

.badge-wrapper {
  position: relative;
  display: inline-block;
}

#ordersCount {
  position: absolute;
  top: -10px;
  right: -17px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  display: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — guaranteed 2 columns on every phone size.
   NOTE: deliberately NOT touching .img-product or
   .container-image sizing here — they stay responsive
   via the rules above at every breakpoint.
   ══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .product-grid .product {
    padding: 26px 6px 6px 6px !important;
  }
  .product-grid .img-product:hover {
    transform: none;
  }
}