/* ==========================================================================
   INDIVIDUAL SHOWROOM LEVEL STYLING (IRD MULTI-SHOP - LUXURY STYLES)
   ========================================================================== */

/* Set shop-specific CSS variables dynamically at runtime */
.shop-theme {
  --shop-color-primary: var(--accent-gold);
  --shop-color-secondary: var(--accent-gold-hover);
  --shop-color-primary-rgb: 197, 168, 128; /* Satin Gold RGB for Dark Mode */
  padding-top: 70px; /* Offset completely to sit elegantly below the fixed global header */
}

.theme-light .shop-theme {
  --shop-color-primary-rgb: 150, 125, 91; /* Satin Gold RGB for Light Mode */
}

/* ==========================================================================
   SHOP NAVIGATION HEADER BRAND DETAILS (Injected into global header)
   ========================================================================== */

.shop-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: none;
  background: transparent;
}

/* ==========================================================================
   SHOP LANDING HERO BANNER
   ========================================================================== */

.shop-hero {
  padding: 80px 5%;
  background: linear-gradient(135deg, rgba(var(--shop-color-primary-rgb), 0.05) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
}

.shop-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .shop-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.shop-hero-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--shop-color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.shop-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-family: var(--font-headings);
  text-transform: uppercase;
  color: var(--text-main);
}

.shop-hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.shop-hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
}
.shop-hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--shop-color-primary-rgb), 0.15) 100%);
  pointer-events: none;
}
.shop-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CATALOG GRID & SIDEBAR FILTERING
   ========================================================================== */

.shop-catalog-section {
  max-width: 1200px;
  margin: 0 auto 100px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .shop-catalog-section {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
  backdrop-filter: var(--glass-blur);
}

.filter-block {
  margin-bottom: 30px;
}
.filter-block:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.category-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  margin-bottom: 4px;
}
.category-filter-item:hover, .category-filter-item.active {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}
.category-filter-item.active {
  border-left: 2px solid var(--shop-color-primary);
  color: var(--shop-color-primary);
  border-radius: 0 4px 4px 0;
}

/* Price Range Slider inputs */
.price-range-slider {
  margin-top: 10px;
}
.price-range-val {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--shop-color-primary);
}

/* Product catalog lists */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   PRODUCT CARDS SYSTEM
   ========================================================================== */

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--shop-color-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(var(--shop-color-primary-rgb), 0.15);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.product-card:hover .product-card-image img {
  transform: scale(1.02);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--shop-color-primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
  z-index: 10;
}
.product-card:hover .product-card-actions {
  right: 12px;
}

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.card-action-btn:hover {
  background: var(--shop-color-primary);
  color: #ffffff;
  border-color: var(--shop-color-primary);
}

.product-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  line-height: 1.5;
  color: var(--text-main);
}

.product-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.product-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--shop-color-primary);
}

.product-card-wholesale-info {
  font-size: 8px;
  color: var(--color-success);
  font-weight: 600;
  text-align: right;
  line-height: 1.3;
}

/* ==========================================================================
   OWNER SPOTLIGHT IN SHOP
   ========================================================================== */

.shop-owner-spotlight {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 5%;
  margin-bottom: 100px;
  backdrop-filter: var(--glass-blur);
}

.spotlight-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 768px) {
  .spotlight-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.spotlight-image {
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  background: #090a0d;
}
.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.spotlight-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-family: var(--font-headings);
}
.spotlight-content .spotlight-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--shop-color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.spotlight-content .spotlight-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   SHOP SPECIFIC SYSTEM BUTTON OVERRIDES
   ========================================================================== */

.shop-theme .btn-primary {
  background: linear-gradient(135deg, var(--shop-color-primary), var(--shop-color-secondary));
  box-shadow: 0 4px 14px rgba(var(--shop-color-primary-rgb), 0.15);
}
.shop-theme .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(var(--shop-color-primary-rgb), 0.3);
}

.shop-theme .product-price-tag {
  color: var(--shop-color-primary);
}

.shop-theme .gallery-thumb.active {
  border-color: var(--shop-color-primary);
}
.shop-theme .form-input:focus {
  border-color: var(--shop-color-primary);
  box-shadow: 0 0 0 3px rgba(var(--shop-color-primary-rgb), 0.1);
}
.shop-theme .drawer-title i {
  color: var(--shop-color-primary);
}
.shop-theme .cart-item-price {
  color: var(--shop-color-primary);
}
.shop-theme .wishlist-group-title i {
  color: var(--shop-color-primary);
}
.shop-theme .wishlist-item-title {
  color: var(--text-main);
}
.shop-theme .wishlist-item-info div div:last-child {
  color: var(--shop-color-primary) !important;
}
.shop-theme .modal-header h2 i {
  color: var(--shop-color-primary);
}

.spotlight-nav-btn:hover {
  background: var(--shop-color-primary) !important;
  color: #fff !important;
  border-color: var(--shop-color-primary) !important;
  transform: scale(1.05);
}
