/* ============================================================================
   Silver House — Trang con "Sản phẩm" của /run-test-3/
   Dùng lại biến, font (Inter + Playfair Display), container 1340px và bảng màu
   của run-test-3.css. File này chỉ bổ sung phần riêng của trang.
   ========================================================================= */

.rt3-shop {
  background: #f4eee5;
  color: #3d2b20;
}

/* --- Header: nền đặc (không có hero tối ở dưới như trang chủ) --- */
.rt3-shop-header {
  position: sticky;
  top: 0;
  background: #241a12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rt3-shop-header .rt3-header-inner {
  height: 96px;
  padding: 0 40px;
}

.rt3-shop .rt3-nav a.is-current {
  color: #e2c9a4;
}

.rt3-shop .rt3-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #e2c9a4;
}

/* --- Hero trang sản phẩm --- */
.rt3-shop-hero {
  padding: 88px 0 64px;
  background: linear-gradient(180deg, #efe6d9, #f4eee5);
  border-bottom: 1px solid rgba(120, 92, 62, 0.14);
}

.rt3-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b7358;
}

.rt3-crumb a { color: #8b7358; transition: color 260ms ease; }
.rt3-crumb a:hover { color: #3d2b20; }
.rt3-crumb b { color: #3d2b20; font-weight: 500; }

.rt3-shop-hero h1 {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #3d2b20;
}

.rt3 .rt3-shop-lead {
  margin: 42px 0 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 28px;
  color: #766253;
}

.rt3-shop-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(120, 92, 62, 0.18);
}

.rt3-shop-stats b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: #8e6444;
  line-height: 1;
}

.rt3-shop-stats span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #96806a;
}

/* --- Thanh lọc --- */
.rt3-shop-body { padding: 64px 0 112px; }

.rt3-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.rt3-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rt3-shop-filters button {
  padding: 9px 18px;
  border: 1px solid #bda68d;
  border-radius: 999px;
  background: transparent;
  color: #6d5947;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}

.rt3-shop-filters button:hover { border-color: #8e6444; color: #3d2b20; }

.rt3-shop-filters button.is-active {
  border-color: #8e6444;
  background: #8e6444;
  color: #fff;
}

.rt3-shop-count {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #96806a;
}

.rt3-shop-count b { color: #3d2b20; font-weight: 600; }

/* --- Lưới sản phẩm --- */
.rt3-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
}

.rt3-shop-card[hidden] { display: none; }

.rt3-shop-card {
  display: flex;
  flex-direction: column;
  animation: rt3ShopIn 700ms cubic-bezier(0.2, 0.72, 0.2, 1) calc(var(--i, 0) * 70ms) 1 normal none;
}

@keyframes rt3ShopIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.rt3-shop-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #d7c5af;
  box-shadow: 0 14px 30px rgba(67, 42, 25, 0.08);
}

.rt3-shop-media img {
  display: block;
  width: 100%;
  height: auto;              /* thuộc tính height trong HTML đè aspect-ratio nếu không đặt auto */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.rt3-shop-card:hover .rt3-shop-media img { transform: scale(1.05); }

.rt3-shop-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(28, 18, 12, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff8ef;
}

.rt3-shop-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 16px;
}

.rt3-shop-info h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: #3d2b20;
}

.rt3 .rt3-shop-desc {
  margin: 8px 0 14px;
  font-size: 12px;
  line-height: 22px;
  color: #7d6b5d;
}

.rt3-shop-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 92, 62, 0.16);
}

.rt3-shop-foot b { font-size: 13px; font-weight: 600; color: #9b704d; }

.rt3-shop-foot a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e6444;
  transition: color 260ms ease;
}

.rt3-shop-foot a:hover { color: #3d2b20; }

.rt3 .rt3-shop-empty {
  margin: 48px 0 0;
  text-align: center;
  font-size: 13px;
  color: #96806a;
}

/* --- CTA cuối trang --- */
.rt3-shop-cta {
  padding: 96px 0;
  background: #2c1d14;
  color: #fff8ef;
}

.rt3-shop-cta .rt3-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.rt3-shop-cta h2 {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  color: #fff8ef;
}

.rt3-shop-cta p:not(.rt3-eyebrow) {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 26px;
  color: rgba(255, 248, 239, 0.66);
}

.rt3-shop-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* --- Responsive --- */
@media (max-width: 1180px) {
  .rt3-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .rt3-shop-header .rt3-header-inner { height: auto; padding: 20px 20px 16px; }
  .rt3-shop-hero { padding: 56px 0 48px; }
  .rt3-shop-stats { gap: 32px; }
  .rt3-shop-cta .rt3-shell { grid-template-columns: 1fr; }
  .rt3-shop-cta-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .rt3-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .rt3-shop-body { padding: 48px 0 80px; }
  .rt3-shop-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rt3-shop-card { animation: none; }
  .rt3-shop-media img { transition: none; }
}

/* =========================================================================
   Hàng lọc thứ hai: chất liệu + sắp xếp
   ========================================================================= */

.rt3-shop-bar-2 {
  margin-top: -20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(142, 100, 68, 0.16);
}

.rt3-shop-loc {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rt3-shop-loc-nhan,
.rt3-shop-sap-xep > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #96806a;
}

.rt3-shop-filters-nho button {
  padding: 7px 14px;
  font-size: 9.5px;
}

.rt3-shop-sap-xep {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt3-shop-sap-xep select {
  padding: 9px 14px;
  border: 1px solid #bda68d;
  border-radius: 999px;
  background: transparent;
  color: #3d2b20;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.rt3-shop-sap-xep select:focus-visible { outline: 2px solid #8e6444; outline-offset: 2px; }

/* =========================================================================
   Ảnh thứ hai khi rê chuột (ảnh đeo thực tế)
   ========================================================================= */

.rt3-shop-anh-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms ease;
}

.rt3-shop-card.co-anh-2:hover .rt3-shop-anh-2,
.rt3-shop-card.co-anh-2:focus-within .rt3-shop-anh-2 { opacity: 1; }

/* Có ảnh thứ hai thì bỏ hiệu ứng phóng to để hai ảnh chồng khít nhau. */
.rt3-shop-card.co-anh-2:hover .rt3-shop-media img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rt3-shop-anh-2 { transition: none; }
}

/* =========================================================================
   Best seller
   ========================================================================= */

.rt3-best-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.rt3-best-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.rt3-best-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #d7c5af;
  box-shadow: 0 14px 30px rgba(67, 42, 25, 0.08);
  transition: transform 700ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.rt3-best-card:hover img { transform: translateY(-6px); }

.rt3-best-hang {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8e6444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.rt3-best-card b { margin-top: 12px; font-size: 16px; font-weight: 500; color: #3d2b20; }
.rt3-best-card small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #96806a; }
.rt3-best-card strong { font-size: 15px; font-weight: 600; color: #8e6444; }

/* =========================================================================
   Hướng dẫn vệ sinh & điều khoản bảo hành
   ========================================================================= */

.rt3-care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rt3-care-grid article {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(142, 100, 68, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.55);
}

.rt3-care-grid span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #8e6444;
}

.rt3-care-grid p { margin: 0; font-size: 14.5px; line-height: 1.62; color: #5c4736; }

.rt3-warranty-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.rt3-warranty-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 24px;
  border: 1px solid rgba(142, 100, 68, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
}

.rt3-warranty-list span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8e6444;
}

.rt3-warranty-list p { margin: 0; font-size: 15px; line-height: 1.66; color: #4a3628; }

.rt3-note-lon {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .rt3-best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .rt3-best-grid { grid-template-columns: minmax(0, 1fr); }
  .rt3-shop-bar-2 { flex-direction: column; align-items: flex-start; gap: 16px; }
}
