html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* SHOP INTRO CARD */
.shop-intro-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 20px auto 30px;
}

/* DESCRIPTION */
.shop-hero .shop-description {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.95;
}
.shop-intro-card .shop-description {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 22px;
}
form {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* RATING CARD */
.rating-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.08),
        rgba(13, 148, 136, 0.08)
    );
    border-radius: 14px;
}

@media (max-width: 600px) {
  .rating-card {
    flex-direction: column;
    align-items: stretch;
  }

  .rating-btn {
    width: 100%;
    text-align: center;
  }
}


/* RATING TITLE */
.rating-title {
    font-weight: 600;
    color: #1e3a8a; /* royal blue */
    font-size: 15px;
}

/* SELECT */
.rating-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #f4f1f8;
    font-size: 14px;
    outline: none;
}

.rating-select:focus {
    border-color: #0d9488;
}

/* BUTTON */
.rating-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #1e3a8a, #0d9488);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}


/* =========================
   PAGE WRAPPER
========================= */
.shop-page {
  padding: 30px;
  animation: fadeIn 0.8s ease;
}

/* =========================
   HERO / BRAND
========================= */
.shop-hero {
  background: linear-gradient(135deg, #084298, #0fb9b1);
  color: #fff;
  padding: 40px 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  text-align: center;
  position: static;
}

.shop-name {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}


/* =========================
   LOCATION
========================= */
.shop-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 15px;
  color: whitesmoke;
}

.shop-location img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.shop-location:hover img {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .shop-location {
    font-size: 16px;
  }

  .shop-location img {
    width: 26px;
    height: 26px;
  }
  .products-grid {
    max-height: none;
    overflow-y: visible;
  }
}

/* =========================
   MAP
========================= */
.shop-map {
  margin-top: 16px;
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(7, 17, 37, 0.15);
  animation: fadeUp 0.6s ease;
}

.shop-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  color: #eaf6ff;
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

/* =========================
   ALERTS
========================= */
.alerts {
  margin-bottom: 20px;
}

.alert-success {
  background: #e7f7f6;
  color: #055160;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* =========================
   PRODUCTS SECTION
========================= */
.products-section {
  margin-top: 20px;
}

.section-title {
  font-size: 22px;
  color: #084298;
  margin-bottom: 15px;
}

/* =========================
   GRID + SCROLL
========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  /* max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px; */
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.products-grid::-webkit-scrollbar {
  width: 6px;
}

.products-grid::-webkit-scrollbar-thumb {
  background: #0fb9b1;
  border-radius: 6px;
}

/* =========================
   PRODUCT CARD (CLICKABLE)
========================= */
.product-card-link {
  text-decoration: none;
  color: inherit;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  animation: slideUp 0.6s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px rgba(8,66,152,0.3);
}

/* =========================
   PRODUCT IMAGE
========================= */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f3f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔑 fills perfectly */
  object-position: center;
}

.product-img.active {
  display: block;
}

/* IMAGE ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 5;
}

.arrow.left { left: 8px; }
.arrow.right { right: 8px; }

.arrow:hover {
  background: #0fb9b1;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* =========================
   PRODUCT INFO
========================= */
.product-info {
  padding: 16px 18px 20px;
  text-align: center;
}

.product-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #084298;
}

.product-info .price {
  font-size: 15px;
  font-weight: 700;
  color: #0fb9b1;
}
.product-card,
.product-image,
.product-img {
  max-width: 100%;
}
.map-link {
  position: static;
}


/* =========================
   EMPTY STATE
========================= */
.no-products {
  text-align: center;
  color: #777;
  font-size: 15px;
  margin-top: 20px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  .shop-name {
    font-size: 24px;
  }

  .products-grid {
    max-height: none;
  }

  .product-info h4 {
    font-size: 14px;
  }
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 600px) {
  .shop-page {
    padding: 12px;
  }
  .product-image {
    aspect-ratio: 1 / 1;
  }

  .product-image img[src*="placeholder"] {
    width: 55%;
    height: 55%;
  }
}

/* ==============================
   MOBILE: INSTAGRAM-STYLE GRID
============================== */
@media (max-width: 600px) {

  /* 3 columns grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-right: 0;
    max-height: none;
    overflow-x: hidden;
  }

  /* Compact product card */
  .product-card {
    border-radius: 8px;
    box-shadow: none;
    animation: none;
    background: #fff;
    overflow: hidden;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Image dominates card */
  .product-image {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
        width: 100%;
        background: #f4f6f8;
  }
/* Image itself */
  .product-img,
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Hide arrows on mobile */
  .arrow {
    display: none;
  }

  /* Product info (compact) */
  .product-info {
    display: block;
    padding: 6px 6px 8px;
    text-align: left;
  }
    /* Product name (1 line only) */
  .product-info h4 {
    font-size: 10px;
    font-weight: 600;
    color: #084298;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  /* Price */
  .product-info .price {
    font-size: 12px;
    font-weight: bold;
    color: #0fb9b1;
    margin: 0;
    text-align: center;
  }

  /* Smooth tap feedback */
  .product-card:active {
    opacity: 0.85;
    transform: scale(0.98);
  }
}

