/* ============================================================
   shop.css  v2 — Beautiful product cards with real images
   ============================================================ */
:root {
  --green:       #2d6a4f;
  --green-dark:  #1a3d27;
  --green-light: #52b788;
  --green-bg:    #f0f9f0;
  --green-pale:  #d8f3dc;
  --gold:        #d4a017;
  --orange:      #f77e28;
  --orange-dark: #be4f04;
  --red:         #e13131;
  --shadow-sm:   0 2px 12px rgba(45,106,79,.08);
  --shadow-md:   0 8px 32px rgba(45,106,79,.15);
  --radius-card: 16px;
  --radius-img:  16px 16px 0 0;
}

/* ── Breadcrumb ── */
.breadcrumb{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#94a3b8;margin-bottom:1.5rem;padding-top:1rem;flex-wrap:wrap}
.breadcrumb a{color:var(--green);text-decoration:none;transition:.2s}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{color:#cbd5e1}

/* ── Shop page shell ── */
.shop-page{padding:90px 0 4rem;background:#f8fffe;min-height:100vh}
.shop-layout{display:grid;grid-template-columns:230px 1fr;gap:2rem;align-items:start}
.shop-sidebar{position:sticky;top:90px}

/* ── Sidebar cards ── */
.filter-card{background:#fff;border-radius:14px;padding:1.25rem;margin-bottom:.875rem;box-shadow:var(--shadow-sm);border:1px solid rgba(82,183,136,.12)}
.filter-card h3{font-size:.82rem;font-weight:800;color:var(--green-dark);margin-bottom:.875rem;text-transform:uppercase;letter-spacing:.04em;display:flex;align-items:center;gap:.4rem}
.cat-list{display:flex;flex-direction:column;gap:.15rem}
.cat-list a{display:flex;align-items:center;justify-content:space-between;padding:.475rem .75rem;border-radius:8px;font-size:.85rem;color:#475569;text-decoration:none;transition:.15s;font-weight:600}
.cat-list a:hover{background:var(--green-bg);color:var(--green)}
.cat-list a.active{background:var(--green-pale);color:var(--green-dark);font-weight:700}
.cat-count{background:#e2e8f0;color:#64748b;border-radius:50px;padding:1px 8px;font-size:.68rem;font-weight:700;min-width:22px;text-align:center}
.cat-list a.active .cat-count{background:var(--green-light);color:#fff}
.search-wrap{display:flex;gap:.375rem}
.search-inp{flex:1;padding:.575rem .275rem;border:1.5px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-family:'Sarabun',sans-serif;transition:.2s;background:#fafafa}
.search-inp:focus{outline:none;border-color:var(--green-light);background:#fff;box-shadow:0 0 0 3px rgba(82,183,136,.1)}
.search-btn{padding:.575rem .875rem;background:var(--green);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;transition:.2s}
.search-btn:hover{background:var(--green-dark)}
.promo-widget .promo-item{padding:.5rem 0;border-bottom:1px solid #f0f9f0}
.promo-item:last-child{border:none}
.promo-name{font-size:.82rem;font-weight:700;color:var(--green-dark);line-height:1.3}
.promo-end{font-size:.7rem;color:#94a3b8;margin-top:.1rem}

/* ── Shop topbar ── */
/* ← critical: ป้องกัน grid child (shop-main) ขยายเกิน parent column */
.shop-main {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.shop-topbar{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:1.5rem;flex-wrap:wrap;gap:.75rem}
.shop-title h1{font-family:'Playfair Display',serif;font-size:1.6rem;color:var(--green-dark);margin:0}
.product-count{font-size:.8rem;color:#94a3b8;margin-top:.2rem}
.sort-select{padding:.5rem 1rem;border:1.5px solid #e2e8f0;border-radius:8px;font-family:'Sarabun',sans-serif;font-size:.85rem;cursor:pointer;background:#fff;color:var(--green-dark);font-weight:600}
.sort-select:focus{outline:none;border-color:var(--green-light)}

/* ══════════════════════════════════════════
   PRODUCT GRID & CARDS  (core fix)
══════════════════════════════════════════ */
.products-grid-shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,1fr) ป้องกัน blowout */
  gap: 1.375rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.product-card-shop {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #e8f5ee;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;       /* ไม่ขยายเกิน grid cell */
  min-width: 0;      /* ป้องกัน overflow */
  box-sizing: border-box;
}
.product-card-shop:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Image wrapper — ขนาดตายตัว 300×300 */
.product-img-wrap {
  display: block;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 1 / 1;                  /* ← สี่เหลี่ยมเสมอ */
  overflow: hidden;
  background: var(--green-bg);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;                     /* ← รูปเต็มพื้นที่ ไม่บิด */
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.product-card-shop:hover .product-img-wrap img {
  transform: scale(1.06);               /* ← zoom เบาๆ เมื่อ hover */
}

/* Emoji fallback */
.product-emoji-lg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}

/* Image overlay on hover */
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,61,39,.35) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.product-card-shop:hover .product-img-wrap::after { opacity: 1; }

/* Quick-view button (ปรากฏตอน hover) */
.product-img-wrap .quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  color: var(--green);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 2;
  text-decoration: none;
  font-family: 'Sarabun', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.product-card-shop:hover .product-img-wrap .quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product body */
.product-body {
  padding: 1rem 1rem .875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-dark);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--green); }
.product-desc {
  font-size: .75rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rating-row { display:flex;align-items:center;gap:.35rem;margin-bottom:.5rem }
.stars-sm   { color:var(--gold);font-size:.82rem;letter-spacing:.05em }
.review-cnt { font-size:.7rem;color:#94a3b8 }

.no-review  { font-size:.7rem;color:#cbd5e1;font-weight:600 }

.price-row   { display:flex;align-items:baseline;gap:.45rem;margin-bottom:.55rem;flex-wrap:wrap }
.price-main  { font-family:'Playfair Display',serif;font-size:1.15rem;color:var(--green);font-weight:700 }
.price-original{ font-size:.8rem;color:#b0b7c0;text-decoration:line-through }
.price-sale  { font-family:'Playfair Display',serif;font-size:1.15rem;color:#dc2626;font-weight:700 }

/* Stock status pill */
.stock-pill{display:inline-flex;align-items:center;gap:.25rem;align-self:flex-start;font-size:.7rem;font-weight:700;padding:.18rem .55rem;border-radius:50px;margin-bottom:.1rem}
.stock-pill.in { background:#dcfce7;color:#15803d }
.stock-pill.low{ background:#fef3c7;color:#b45309 }
.stock-pill.out{ background:#fee2e2;color:#b91c1c }

/* Action buttons — pushed to bottom of card */
.card-actions {
  display: flex;
  gap: .5rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #f0f9f0;
}
.btn-detail {
  flex: 1;
  padding: .5rem .625rem;
  text-align: center;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}
.btn-detail:hover { background: var(--green-pale); }
.btn-cart-sm {
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-cart-sm:hover { background: var(--orange-dark); transform: scale(1.1); }
.btn-cart-sm:active { transform: scale(.96); }

/* Keyboard accessibility */
.product-img-wrap:focus-visible,
.btn-detail:focus-visible,
.btn-cart-sm:focus-visible,
.product-name:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Badge overlays */
.card-badges {
  position: absolute;
  top: .625rem;
  left: .625rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: flex-start;
}
.product-card-shop .badge-bestseller,
.product-card-shop .badge-new,
.product-card-shop .badge-hot,
.product-card-shop .badge-sale {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.badge-bestseller { background: #f59e0b; color: #fff; }
.badge-new        { background: #3b82f6; color: #fff; }
.badge-hot        { background: #ef4444; color: #fff; }
.badge-sale       { background: #8b5cf6; color: #fff; }

/* Discount % badge — top-right */
.discount-badge {
  position: absolute;
  top: .625rem;
  right: .625rem;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 4px 9px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(220,38,38,.35);
}

/* Out-of-stock treatment */
.product-card-shop.is-out .product-img-wrap img,
.product-card-shop.is-out .product-emoji-lg { filter: grayscale(.85); opacity: .6; }
.img-stock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.42);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .03em;
}

/* ── Empty state ── */
.empty-state{text-align:center;padding:4rem 2rem;background:#fff;border-radius:14px}
.empty-state h3{font-family:'Playfair Display',serif;color:var(--green-dark);margin-bottom:.5rem}
.empty-state p{color:#64748b;margin-bottom:1.25rem}
.btn-green{display:inline-block;padding:.75rem 1.75rem;background:var(--green);color:#fff;border-radius:50px;font-weight:700;text-decoration:none;transition:.2s}
.btn-green:hover{background:var(--green-dark)}

/* ── Pagination ── */
.pagination{display:flex;gap:.375rem;justify-content:center;margin-top:2rem}
.pag-btn{width:38px;height:38px;border-radius:10px;border:1.5px solid #e2e8f0;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;text-decoration:none;color:#64748b;transition:.2s}
.pag-btn:hover,.pag-btn.active{background:var(--green);color:#fff;border-color:var(--green)}

/* ══════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════ */
.product-page{padding:90px 0 4rem;background:var(--green-bg);min-height:100vh}
.product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin-bottom:2rem}
.product-gallery .main-img-box{border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 4px 24px rgba(45,106,79,.1);aspect-ratio:1/1}
.product-gallery .main-img-box img{width:100%;height:100%;object-fit:cover}
.product-title{font-family:'Playfair Display',serif;font-size:1.8rem;color:var(--green-dark);margin:.75rem 0 .25rem;line-height:1.3}
.product-en{color:#94a3b8;font-size:.85rem;margin-bottom:1rem}
.rating-bar{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}
.stars-lg{color:var(--gold);font-size:1.1rem}
.rating-num{font-weight:700;color:var(--green-dark)}
.review-count-text{font-size:.82rem;color:#94a3b8}
.price-section{display:flex;align-items:baseline;gap:.75rem;margin-bottom:1rem}
.price-now{font-family:'Playfair Display',serif;font-size:2rem;color:var(--green);font-weight:700}
.price-was{font-size:1rem;color:#94a3b8;text-decoration:line-through}
.discount-pct{background:#dc2626;color:#fff;padding:3px 10px;border-radius:50px;font-size:.75rem;font-weight:700}
.product-short-desc{color:#334155;line-height:1.7;margin-bottom:1rem}
.stock-badge{padding:.4rem .875rem;border-radius:8px;font-size:.85rem;font-weight:700;display:inline-block;margin-bottom:1rem}
.stock-badge.in{background:#dcfce7;color:#15803d}
.stock-badge.low{background:#fef9c3;color:#a16207}
.stock-badge.out{background:#fee2e2;color:#b91c1c}
.qty-cart-row{display:flex;gap:.75rem;align-items:center;margin-bottom:.75rem}
.qty-ctrl{display:flex;align-items:center;border:1.5px solid #e2e8f0;border-radius:10px;overflow:hidden}
.qty-ctrl button{width:36px;height:40px;border:none;background:var(--green-bg);color:var(--green);font-size:1.2rem;font-weight:700;cursor:pointer;transition:.15s}
.qty-ctrl button:hover{background:var(--green-pale)}
.qty-ctrl input{width:48px;height:40px;border:none;text-align:center;font-family:'Sarabun',sans-serif;font-size:.95rem;font-weight:700;color:var(--green-dark)}
.btn-add-cart{flex:1;padding:.75rem;background:linear-gradient(135deg,var(--orange),var(--orange-dark));color:#fff;border:none;border-radius:50px;font-size:.95rem;font-weight:700;font-family:'Sarabun',sans-serif;cursor:pointer;transition:.2s}
.btn-add-cart:hover{transform:translateY(-1px);box-shadow:0 4px 16px rgba(45,106,79,.3)}
.btn-buy-now{display:block;padding:.75rem;background:transparent;color:var(--red);border:2px solid var(--orange-dark);border-radius:50px;font-size:.95rem;font-weight:700;text-align:center;cursor:pointer;transition:.2s;text-decoration:none;margin-bottom:1rem}
.btn-buy-now:hover{background:var(--green-bg)}
.product-meta{font-size:.82rem;color:#64748b;line-height:1.9;border-top:1px solid var(--green-pale);padding-top:.875rem;margin:.875rem 0}
.product-meta span{color:var(--green-dark);font-weight:700;margin-right:.35rem}
.product-meta a{color:var(--green);text-decoration:none}
.share-row{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:#64748b;flex-wrap:wrap}
.share-btn{padding:3px 10px;border-radius:50px;background:#1877f2;color:#fff;font-size:.75rem;font-weight:700;text-decoration:none}
.share-btn.line{background:#06c755}

/* Tabs */
.product-tabs{background:#fff;border-radius:20px;padding:1.75rem;box-shadow:0 4px 24px rgba(45,106,79,.08);margin-bottom:2rem}
.tab-nav{display:flex;gap:.25rem;border-bottom:2px solid var(--green-pale);margin-bottom:1.5rem}
.tab-btn{padding:.625rem 1.25rem;font-size:.88rem;font-weight:700;color:#64748b;border:none;background:none;cursor:pointer;border-bottom:3px solid transparent;transition:.2s;font-family:'Sarabun',sans-serif}
.tab-btn.active{color:var(--green);border-bottom-color:var(--green)}
.desc-html{line-height:1.9;color:#334155}
.desc-html h2{font-family:'Playfair Display',serif;color:var(--green-dark);margin:1.5rem 0 .75rem;font-size:1.5rem}
.desc-html h3{font-family:'Playfair Display',serif;color:var(--green-dark);margin:1.25rem 0 .6rem;font-size:1.2rem}
.desc-html h4{color:var(--green-dark);margin:1rem 0 .5rem;font-size:1.05rem;font-weight:700}
.desc-html p{margin:.6rem 0}
.desc-html ul,.desc-html ol{margin:.75rem 0;padding-left:1.75rem}
.desc-html li{margin:.3rem 0}
.desc-html a{color:var(--green);text-decoration:underline}
.desc-html blockquote{border-left:4px solid var(--green-light);padding:.5rem 1rem;margin:1rem 0;background:var(--green-bg);border-radius:0 8px 8px 0;color:#475569}
.desc-html img{max-width:100%;border-radius:8px;margin:.75rem 0}
.shipping-info-list{list-style:none;padding:0}
.shipping-info-list li{padding:.625rem .875rem;background:var(--green-bg);border-radius:8px;margin-bottom:.5rem;font-size:.875rem;color:#334155}

/* Reviews */
.rating-summary{display:flex;gap:2rem;align-items:center;padding:1.25rem;background:var(--green-bg);border-radius:12px;margin-bottom:1.5rem}
.rating-big{font-family:'Playfair Display',serif;font-size:3rem;color:var(--green-dark);line-height:1}
.rating-big small{font-size:1rem;color:#94a3b8}
.rating-bars{flex:1}
.rating-bar-row{display:flex;align-items:center;gap:.5rem;font-size:.78rem;margin-bottom:.25rem}
.bar-bg{flex:1;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}
.bar-fill{height:100%;background:var(--gold);border-radius:4px;transition:.5s}
.bar-cnt{width:20px;text-align:right;color:#94a3b8}
.review-item{padding:1rem 0;border-bottom:1px solid var(--green-pale)}
.rv-header{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap;margin-bottom:.375rem}
.rv-header strong{color:var(--green-dark)}
.verified-badge{background:#dcfce7;color:#15803d;padding:2px 7px;border-radius:50px;font-size:.68rem;font-weight:700}
.rv-stars{color:var(--gold)}
.rv-date{font-size:.72rem;color:#94a3b8;margin-left:auto}
.rv-title{font-weight:700;font-size:.875rem;color:var(--green-dark);margin-bottom:.25rem}
.rv-content{font-size:.875rem;color:#334155;line-height:1.6}
.review-form-wrap{margin-top:1.75rem;padding-top:1.5rem;border-top:2px solid var(--green-pale)}
.review-form-wrap h3{font-family:'Playfair Display',serif;color:var(--green-dark);margin-bottom:1rem}
.form-group-review{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.875rem}
.form-group-review label{font-size:.8rem;font-weight:700;color:#64748b}
.review-input{padding:.65rem 1rem;border:1.5px solid #e2e8f0;border-radius:10px;font-size:.875rem;font-family:'Sarabun',sans-serif;width:100%;background:#f8fafc;transition:.2s}
.review-input:focus{outline:none;border-color:var(--green-light);background:#fff}
.star-select-wrap{margin-bottom:.875rem}
.star-caption{font-size:.8rem;font-weight:700;color:#64748b;display:block;margin-bottom:.5rem}
.star-val-label{font-size:.8rem;font-weight:400;color:#2d6a4f;margin-left:.5rem}
/* Pure CSS star rating — DOM order 5,4,3,2,1 + row-reverse = visual order 1,2,3,4,5 */
.star-select{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:0}
.star-select input[type="radio"]{display:none}
.star-select label{font-size:2.2rem;cursor:pointer;color:#d1d5db;transition:color .1s,transform .1s;padding:0 .1rem;line-height:1;user-select:none}
/* ดาวที่ถูกเลือก (checked) และดาวค่าน้อยกว่า (siblings ถัดไปใน DOM = ซ้ายในภาพ) */
.star-select input[type="radio"]:checked~label{color:#f59e0b}
/* เมื่อ hover container: reset ทั้งหมดเพื่อให้ preview hover ชนะ */
.star-select:hover label{color:#d1d5db}
/* hover preview: ดาวที่ชี้และดาวค่าน้อยกว่า */
.star-select label:hover,.star-select label:hover~label{color:#f59e0b}
.star-select label:hover{transform:scale(1.15)}
.btn-submit-review{padding:.75rem 1.75rem;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;border:none;border-radius:50px;font-size:.9rem;font-weight:700;font-family:'Sarabun',sans-serif;cursor:pointer;transition:.2s}
.btn-submit-review:hover{transform:translateY(-1px)}

/* Related products */
.related-section{margin-bottom:3rem}
.related-section h2{font-family:'Playfair Display',serif;color:var(--green-dark);margin-bottom:1rem}
.related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.related-card{background:#fff;border-radius:12px;overflow:hidden;text-decoration:none;transition:.2s;box-shadow:0 2px 10px rgba(45,106,79,.07);border:1.5px solid transparent}
.related-card:hover{border-color:var(--green-light);transform:translateY(-3px)}
.related-img{width:100%;aspect-ratio:1/1;overflow:hidden;background:var(--green-bg)}
.related-img img{width:100%;height:100%;object-fit:cover;transition:.3s}
.related-card:hover .related-img img{transform:scale(1.07)}
.related-emoji{font-size:2.5rem;width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:var(--green-bg)}
.related-info{padding:.625rem .75rem}
.related-name{font-size:.82rem;font-weight:700;color:var(--green-dark);margin-bottom:.25rem;margin-top: 1rem; margin-left: 1rem; line-height:2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.related-price{font-size:.88rem;color:var(--green);font-weight:700; margin-bottom:1rem; margin-left: 1rem;}

/* Badge large */
.badge-lg{display:inline-block;padding:4px 12px;border-radius:50px;font-size:.78rem;font-weight:700;margin-bottom:.75rem}
.badge-bestseller.badge-lg{background:#f59e0b;color:#fff}
.badge-new.badge-lg{background:#3b82f6;color:#fff}
.badge-hot.badge-lg{background:#ef4444;color:#fff}
.badge-sale.badge-lg{background:#8b5cf6;color:#fff}

/* ── Responsive ── */
@media(max-width:1024px){
  .shop-layout{grid-template-columns:1fr}
  .shop-sidebar{position:static}
  .products-grid-shop{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
  .product-detail-grid{grid-template-columns:1fr}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .products-grid-shop{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .products-grid-shop{grid-template-columns:repeat(2,minmax(0,1fr));gap:.625rem}
  .product-body{padding:.75rem .625rem}
}
@media(max-width:360px){
  .products-grid-shop{grid-template-columns:1fr}
}
