/* ===== SHOP / PRODUCT CATALOG ===== */

.shop-section { padding: 60px 0 100px; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

.shop-sidebar {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.shop-sidebar h3 {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.category-tree { list-style: none; }
.category-tree > li { margin-bottom: 4px; }
.category-tree a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text2);
  border-radius: 8px;
  transition: var(--transition);
}
.category-tree a:hover, .category-tree a.active, .cat-link.active {
  background: var(--gold-light);
  color: var(--dark);
  font-weight: 600;
}
.category-tree ul { list-style: none; margin-left: 12px; margin-top: 2px; }
.category-tree ul a { font-size: 13px; padding: 6px 12px; }

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,165,0,0.3);
}
.category-card-img {
  aspect-ratio: 4/3;
  background: var(--light);
  overflow: hidden;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover .category-card-img img { transform: scale(1.05); }
.category-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.category-placeholder svg { width: 48px; height: 48px; }
.category-card-body { padding: 20px; }
.category-card-body h3 {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.category-card-body p { font-size: 13px; color: var(--text2); margin-bottom: 10px; line-height: 1.5; }
.category-arrow { font-size: 13px; font-weight: 600; color: var(--gold); }

/* Product list grid */
.product-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.product-list-header h2 { font-family: var(--font-h); font-size: 22px; font-weight: 700; }
.product-list-header span { font-size: 14px; color: var(--text3); }

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.shop-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,165,0,0.25);
}
.shop-product-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--offwhite);
  overflow: hidden;
}
.shop-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}
.shop-product-img img.img-placeholder { opacity: 0.85; }
.shop-product-card:hover .shop-product-img img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.product-img-placeholder svg { width: 48px; height: 48px; }
.product-img-placeholder.large { min-height: 400px; }
.product-img-placeholder.large svg { width: 80px; height: 80px; }

.discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.discount-badge-lg {
  position: absolute;
  top: 16px; left: 16px;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 2;
}

.shop-product-body { padding: 16px 20px 20px; }
.product-brand { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.shop-product-body h3 {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 8px;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sku { font-size: 12px; color: var(--text3); display: block; margin-bottom: 6px; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--text); }
.price-old { font-size: 14px; color: var(--text3); text-decoration: line-through; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--offwhite);
  border-radius: var(--radius);
}
.empty-state p { color: var(--text2); margin-bottom: 20px; }

/* ===== PRODUCT DETAIL ===== */
.page-header-sm { padding: 40px 0; }
.product-detail-section { padding: 40px 0 80px; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.gallery-main-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--offwhite);
}
.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-main-img img.img-placeholder { object-fit: contain; padding: 24px; box-sizing: border-box; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb-btn {
  width: 72px; height: 72px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--offwhite);
  padding: 0;
  transition: var(--transition);
}
.thumb-btn.active, .thumb-btn:hover { border-color: var(--gold); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.product-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 1px solid var(--border);
  border-radius: 50%;
  text-align: center;
  padding: 8px;
  background: var(--white);
}
.feature-label { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.2; }
.feature-value { font-size: 10px; color: var(--text3); margin-top: 2px; }

.product-brand-logo {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 800;
  color: var(--text3);
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text);
}
.product-pricing { margin-bottom: 20px; }
.price-main { font-size: 32px; font-weight: 800; color: var(--text); }
.price-strike { font-size: 18px; color: var(--text3); text-decoration: line-through; margin-left: 12px; }

.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}
.product-specs th, .product-specs td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.product-specs th { width: 120px; color: var(--text2); font-weight: 600; }
.product-specs td { color: var(--text); }

.product-option { margin-bottom: 16px; }
.product-option label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.product-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.product-qty-row label { font-size: 13px; font-weight: 600; }
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  border: none;
  background: var(--offwhite);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--gold-light); }
.qty-selector input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}
.btn-whatsapp svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  color: #fff;
}

.product-description {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.product-description h3 {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-description p, .desc-full {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float svg { width: 24px; height: 24px; }
.whatsapp-float:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  color: #fff;
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .category-grid, .product-list-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .category-grid, .product-list-grid { grid-template-columns: 1fr; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
}
