/* =============================================
   XIMEE JEWELRY — Shop Page (Tiffany-Inspired)
   ============================================= */

/* ---- Minimal Scroll Hero ---- */
.shop-minimal-hero {
  padding-top: calc(var(--header-height, 80px) + 40px);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  position: relative;
}

.scroll-indicator-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B49B7A;
  margin-bottom: 15px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #B49B7A, transparent);
  animation: scrollDrop 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: translateY(20px) scaleY(0); opacity: 0; }
}

.shop-features-bar {
  width: 100%;
  background: rgba(200, 180, 150, 0.05);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  padding: 24px 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.feature-item svg {
  width: 16px; height: 16px;
  stroke: #B49B7A;
}

.feature-item:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(0,0,0,0.1);
  margin-left: 40px;
}

@media (max-width: 840px) {
  .shop-features-bar { gap: 20px; padding: 16px; }
  .feature-item:not(:last-child)::after { display: none; }
  .feature-item { width: calc(50% - 20px); justify-content: flex-start; }
}

/* ---- Hero Banner Removed ---- */

/* =============================================
   SPOTLIGHT GRID — 3 Cột
   ============================================= */
.spotlight-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Tự động canh giữa nếu chỉ có 1 hoặc 2 sản phẩm */
  gap: 2px;
}
.spotlight-grid > * {
  /* Mỗi sản phẩm chiếm 1/3 trừ đi khe hở */
  flex: 0 0 calc(33.333% - 1.34px);
  max-width: 440px;
}

/* =============================================
   SPOTLIGHT — Hot & New Section
   ============================================= */
.spotlight-section {
  padding: 56px 0 48px;
  background: var(--color-bg-alt, #fafafa);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-top: 32px;
}
.spotlight-header {
  text-align: center;
  margin-bottom: 36px;
}
.spotlight-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  background: #fff0e0;
  color: #b07020;
  border: 1px solid rgba(180,110,0,0.22);
}
.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
}
.spotlight-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
}

/* =============================================
   DIVIDER
   ============================================= */
.shop-all-divider {
  text-align: center;
  padding: 40px 20px 0;
  background: var(--color-bg);
}
.shop-all-divider span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* -------- Filter Tabs (LIGHT style, no dark bg) -------- */
.shop-filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.shop-filter-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.shop-filter-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  display: inline-block;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted, #767676);
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: #C9A96E;
  transition: left 0.3s ease, right 0.3s ease;
}
.filter-tab:hover { color: var(--color-text, #1D1D1D); }
.filter-tab.active { color: var(--color-text, #1D1D1D); font-weight: 600; }
.filter-tab.active::after { left: 14px; right: 14px; }

.shop-sort-select {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  flex-shrink: 0;
}
.shop-sort-select:focus { outline: none; border-color: #C9A96E; }

/* ---- Shop Section ---- */
.shop-section { padding: 40px 0 var(--section-padding, 80px); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.shop-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}

/* ---- Products Grid ---- */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* ---- Product Card (Tiffany Style) ---- */
.product-card-tiffany {
  position: relative;
  background: var(--color-bg, #fff);
  overflow: hidden;
  cursor: pointer;
}

.pct-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f5f5;
}
.pct-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.product-card-tiffany:hover .pct-image-wrap img { transform: scale(1.07); }

.pct-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #C9A96E;
  color: #fff;
  padding: 4px 10px;
  font-weight: 600;
  z-index: 2;
}

.pct-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.08) 70%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.33s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.product-card-tiffany:hover .pct-actions { transform: translateY(0); }

.pct-btn-cart {
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  color: #111;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pct-btn-cart:hover { background: #C9A96E; color: #fff; }

.pct-btn-view {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.38);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.pct-btn-view:hover { border-color: #C9A96E; color: #C9A96E; }

.pct-info {
  padding: 14px 14px 22px;
  background: var(--color-bg, #fff);
}
.pct-cat {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 5px;
  font-weight: 500;
}
.pct-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 9px;
}
.pct-prices { display: flex; align-items: baseline; gap: 8px; }
.pct-price {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text);
  font-weight: 500;
}
.pct-price-orig { font-size: 0.75rem; color: #bbb; text-decoration: line-through; }

/* ---- Stagger Animation ---- */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card-tiffany { animation: cardFadeUp 0.45s ease both; }

/* ---- Empty state ---- */
.shop-empty {
  text-align: center;
  padding: 80px 20px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .shop-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 840px) {
  .shop-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .spotlight-grid > * { flex: 0 0 calc(50% - 1px); } /* 2 cột trên iPad */
  .filter-tab { padding: 10px 12px; font-size: 0.68rem; }
}
@media (max-width: 480px) {
  .spotlight-grid > * { flex: 0 0 100%; } /* 1 cột trên mobile */
  .shop-hero-title { font-size: 2.2rem; }
  .pct-info { padding: 10px 8px 16px; }
  .pct-name { font-size: 0.88rem; }
}
