/* ==============================================
   CROWN GEM — SHOP CSS
   Matches Luxury Crown Gems UI Design
   ============================================== */

/* Dedicated Shop Container */
.sh-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ===== HERO ===== */
.sh-hero {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.2) 100%),
              url('../img/shop/1.png') center right / cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.sh-hero_content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.sh-hero_content .section-label {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.sh-hero_title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  color: #8C6430;
  line-height: 1.1;
}

/* ===== SHOP BODY LAYOUT ===== */
.sh-body {
  padding: 48px 0 80px;
  background: #ffffff;
}

.sh-body_inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sh-sidebar-form {
  margin: 0;
}

.sh-sidebar {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: var(--radius-lg);
  padding: 0;
  position: sticky;
  top: 100px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sh-filter-block {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(228, 220, 206, 0.6);
}

.sh-filter-block_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sh-filter-block_title {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.sh-filter-icon {
  background: transparent;
  border: none;
  color: #666666;
  cursor: pointer;
}

/* Range input */
.sh-price-range {
  position: relative;
  height: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.sh-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #E2DDD5;
  border-radius: 2px;
  outline: none;
  position: absolute;
  left: 0;
  pointer-events: none;
}

.sh-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(198, 154, 89, 0.4);
}

.sh-price-display {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.sh-filter-btn {
  width: 100%;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.sh-filter-btn:hover {
  background: var(--gold-dark);
}

/* Custom Checkbox */
.sh-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444444;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.sh-check input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.sh-check_label {
  flex-grow: 1;
}

.sh-check_count {
  font-size: 11.5px;
  color: var(--muted);
}

.sh-reset-btn {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #666666;
  text-decoration: none;
  transition: color var(--transition);
  background: #F4EFE6;
}

.sh-reset-btn:hover {
  color: var(--gold);
}

/* Active Filter Tags */
.sh-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sh-tag {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #444444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.sh-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Toolbar */
.sh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}

.sh-toolbar_count {
  font-size: 13.5px;
  color: #666666;
}

.sh-toolbar_right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sh-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #555555;
}

.sh-select {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
}

.sh-view-toggle {
  display: flex;
  gap: 4px;
}

.sh-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(228, 220, 206, 0.8);
  background: #FAF8F5;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.sh-view-btn--active,
.sh-view-btn:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

/* ===== PRODUCT GRID ===== */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sh-product {
  background: #FAF8F5;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 220, 206, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.sh-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--gold);
}

.sh-product_img-wrap {
  height: 200px;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid rgba(228, 220, 206, 0.5);
}

.sh-product_img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sh-product_img-wrap img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.sh-product:hover .sh-product_img-wrap img {
  transform: scale(1.05);
}

.sh-product_wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.sh-product_wish:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.sh-product_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sh-product_top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 10px;
}

.sh-product_name {
  margin: 0;
}

.sh-product_name a {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  line-height: 1.2;
}

.sh-product_price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.sh-product_sub {
  font-size: 12.5px;
  color: #555555;
  margin-bottom: 4px;
}

.sh-product_detail {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.sh-product_actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.sh-btn-cart {
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.sh-btn-cart:hover {
  background: var(--gold-dark);
}

.sh-btn-buy {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.sh-btn-buy:hover {
  background: var(--gold);
  color: #ffffff;
}

/* List View Variant */
.sh-grid--list {
  grid-template-columns: 1fr;
}

.sh-grid--list .sh-product {
  flex-direction: row;
}

.sh-grid--list .sh-product_img-wrap {
  width: 240px;
  height: auto;
  border-bottom: none;
  border-right: 1px solid rgba(228, 220, 206, 0.5);
  flex-shrink: 0;
}

/* Pagination */
.sh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.sh-page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(228, 220, 206, 0.8);
  background: #FAF8F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.sh-page-btn:hover,
.sh-page-btn--active {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 1100px) {
  .sh-body_inner { grid-template-columns: 1fr; }
  .sh-sidebar { position: static; margin-bottom: 30px; }
  .sh-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sh-hero_title { font-size: 42px; }
  .sh-container { padding: 0 20px; }
}

@media (max-width: 520px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-toolbar { flex-direction: column; align-items: flex-start; }
}