/* ==========================================================================
   THE SACRED CODE — Shop & Category Responsive CSS
   Fonts: Playfair Display & Poppins
   ========================================================================== */

/* ---------- Page Banner & Breadcrumb ---------- */
.tsc-page-banner {
  background: var(--background);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.tsc-page-banner h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tsc-page-banner p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
  font-family: var(--font-body);
}

.tsc-page-banner .banner-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 240px;
  margin-left: auto;
  border: 1px solid var(--border);
}

.tsc-page-banner .banner-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.tsc-breadcrumb-nav {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.tsc-breadcrumb-nav .breadcrumb-item a {
  color: var(--accent);
  font-family: var(--font-body);
}

.tsc-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--primary);
}

.tsc-breadcrumb-nav .breadcrumb-item.active {
  color: var(--foreground);
  font-weight: 600;
  font-family: var(--font-body);
}

/* ---------- Toolbar & Sort ---------- */
.tsc-toolbar-section {
  background: var(--background);
}

.tsc-item-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.tsc-sort-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tsc-sort-select:focus {
  border-color: var(--primary);
}

/* Mobile Filter Toggle Button */
.btn-mobile-filter {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-mobile-filter:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

/* ---------- Shop Hero Banner ---------- */
.tsc-category-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #3F5B2B;
  color: #ffffff;
  padding: 2.2rem 0;
  border-bottom: 2px solid var(--primary);
}

.tsc-category-hero .category-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.78;
  filter: contrast(1.08) brightness(0.92);
  transition: transform 10s ease;
}

.tsc-category-hero:hover .category-hero-bg {
  transform: scale(1.03);
}

.tsc-category-hero .category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(41, 59, 28, 0.95) 0%,
    rgba(63, 91, 43, 0.85) 40%,
    rgba(88, 125, 62, 0.50) 70%,
    rgba(88, 125, 62, 0.15) 100%
  );
  z-index: 1;
}

.tsc-hero-gold-glow {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(226, 211, 117, 0.3) 0%,
    rgba(226, 211, 117, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.tsc-category-hero .category-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tsc-category-hero .eyebrow-line {
  width: 36px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.tsc-category-hero .category-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #faf6ee;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tsc-category-hero .category-hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--primary);
  font-family: var(--font-display) !important;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tsc-category-hero .category-hero-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Category Pills in Hero */
.tsc-hero-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.tsc-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 211, 117, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: #faf6ee;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tsc-hero-pill:hover,
.tsc-hero-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(184, 134, 75, 0.3);
  transform: translateY(-1px);
}

/* Hero Showcase Frame */
.tsc-hero-showcase {
  position: relative;
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 211, 117, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.tsc-hero-showcase img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.tsc-hero-showcase-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(41, 59, 28, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #ffffff;
}

.tsc-hero-showcase-badge h6 {
  font-family: var(--font-display) !important;
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 2px;
}

.tsc-hero-showcase-badge p {
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ---------- Sidebar Filters ---------- */
.tsc-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tsc-filters h5 {
  font-family: var(--font-display) !important;
  font-size: 1.25rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tsc-filter-group {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.tsc-filter-group:last-of-type {
  border-bottom: none;
}

.tsc-filter-group .filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  font-family: var(--font-body);
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tsc-filter-group .form-check-label {
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-body);
  cursor: pointer;
}

.tsc-filter-group .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-clear-all {
  width: 100%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-all:hover {
  background: var(--accent);
  color: #ffffff;
}

.tsc-custom-art-card {
  background: var(--secondary);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 24px 20px;
  margin-top: 24px;
  border: 1px solid var(--border);
}

.tsc-custom-art-card .frame-illustration {
  border: 1px solid var(--primary);
  padding: 12px;
  margin: 0 auto 12px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display) !important;
  font-size: 24px;
  color: var(--primary);
  background: var(--card);
  border-radius: var(--radius-sm);
}

.tsc-custom-art-card h6 {
  font-family: var(--font-display) !important;
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.tsc-custom-art-card p {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

/* ---------- Product Card (Shop Variant) ---------- */
.tsc-product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tsc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.tsc-product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--secondary);
}

.tsc-product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tsc-product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.tsc-badge-bestseller {
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.tsc-product-card .card-icons {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.tsc-product-card:hover .card-icons {
  opacity: 1;
}

.tsc-product-card .card-icons button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tsc-product-card .card-icons button:hover,
.tsc-product-card .card-icons button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tsc-product-card .card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.tsc-product-card .card-title {
  font-family: var(--font-body) !important;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.tsc-product-card .card-title a {
  color: var(--accent);
  font-family: var(--font-body);
}

.tsc-product-card .card-title a:hover {
  color: var(--primary);
}

.tsc-product-card .card-price {
  font-size: 1.25rem;
  color: var(--foreground);
  font-weight: 600;
  font-family: var(--font-body) !important;
}

/* ---------- Pagination ---------- */
.tsc-pagination-wrap {
  margin-top: 40px;
  margin-bottom: 24px;
}

.tsc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tsc-pagination-btn,
.tsc-pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tsc-pagination-btn:hover:not(.active),
.tsc-pagination button:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.tsc-pagination-btn.active,
.tsc-pagination button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tsc-pagination-info {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--muted-foreground);
  margin-top: 8px;
}

/* ---------- Trust Strip ---------- */
.tsc-trust-strip {
  background: var(--secondary);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.tsc-trust-item {
  text-align: center;
  padding: 0 12px;
}

.tsc-trust-item i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.tsc-trust-item h6 {
  font-size: 1.125rem;
  color: var(--accent);
  font-family: var(--font-display) !important;
  font-weight: 600;
  margin-bottom: 6px;
}

.tsc-trust-item p {
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .btn-mobile-filter {
    display: flex;
  }
  .tsc-filters-wrap {
    display: none;
  }
  .tsc-filters-wrap.show-mobile {
    display: block;
    margin-bottom: 24px;
  }
  .tsc-category-hero {
    padding: 1.8rem 0;
    min-height: 200px;
  }
  .tsc-category-hero .category-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 33, 19, 0.92) 0%,
      rgba(17, 48, 26, 0.75) 50%,
      rgba(17, 48, 26, 0.35) 100%
    );
  }
  .tsc-hero-showcase {
    margin-top: 1rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .tsc-category-hero {
    padding: 1.5rem 0;
    min-height: 180px;
    text-align: center;
  }
  .tsc-category-hero .category-eyebrow {
    justify-content: center;
  }
  .tsc-hero-pills-wrap {
    justify-content: center;
  }
  .tsc-hero-showcase img {
    height: 220px;
  }
  .tsc-trust-item {
    margin-bottom: 24px;
  }
  .tsc-trust-item:last-child {
    margin-bottom: 0;
  }
}
