/* ==========================================================================
   R.K Plywood & Hardware — Live Catalog & Ordering Styles
   Matches dark luxury theme (--bg-primary, --accent, Playfair Display)
   ========================================================================== */

/* Search Bar */
.catalog-search-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
}

.catalog-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 9999px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.catalog-search-box:focus-within {
  border-color: var(--accent, #C8860A);
  box-shadow: 0 0 20px rgba(200, 134, 10, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.catalog-search-icon {
  font-size: 1.1rem;
  color: var(--accent, #C8860A);
  opacity: 0.8;
}

.catalog-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
}

.catalog-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.catalog-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.catalog-search-clear:hover {
  color: #FFFFFF;
}

/* Category Filter Tabs Counter Badge */
.tab-btn .tab-count {
  font-size: 0.72rem;
  margin-left: 6px;
  opacity: 0.6;
  font-weight: 500;
}

.tab-btn.active .tab-count {
  opacity: 0.9;
  color: var(--accent, #C8860A);
}

/* Product Cards — Premium Clean Hardware E-commerce Layout */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 134, 10, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 25px rgba(200, 134, 10, 0.12);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.product-card-top {
  display: flex;
  flex-direction: column;
}

/* Image Container with Crisp White Studio Backdrop */
.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  background: #FFFFFF;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-img-wrap .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.product-brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #C8860A);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.product-pricing-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price-current {
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.product-price-mrp {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.product-discount-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* WhatsApp Action Button with SVG */
.product-order-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #25D366;
  color: #000000;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.product-order-cta:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #000000;
}

.product-order-cta svg {
  flex-shrink: 0;
}

/* Pagination / Load More */
.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.catalog-load-more-btn {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--accent, #C8860A);
  color: var(--accent, #C8860A);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.catalog-load-more-btn:hover {
  background: var(--accent, #C8860A);
  color: #000000;
  box-shadow: 0 4px 20px rgba(200, 134, 10, 0.3);
}

/* Loading & Empty States */
.catalog-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.catalog-empty h4 {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

/* Navbar Catalog Badge */
.nav-catalog-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, #C8860A, #E0A838);
  color: #000000;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.2;
}

/* Full Catalog CTA Banner (on index.html) */
.catalog-cta-banner {
  margin-top: 48px;
  position: relative;
  background: linear-gradient(135deg, rgba(200, 134, 10, 0.08) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(200, 134, 10, 0.3);
  border-radius: var(--r-lg, 18px);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.catalog-cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 134, 10, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.catalog-cta-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.catalog-cta-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #C8860A);
  margin-bottom: 8px;
}

.catalog-cta-content h3 {
  font-size: 1.4rem;
  font-family: var(--font-serif, 'Playfair Display', serif);
  color: #FFFFFF;
  margin-bottom: 8px;
  font-weight: 700;
}

.catalog-cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

.catalog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #C8860A, #E0A838);
  color: #000000;
  padding: 16px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 134, 10, 0.35);
  position: relative;
  z-index: 1;
}

.catalog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 134, 10, 0.5);
  color: #000000;
}

@media (max-width: 868px) {
  .catalog-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .catalog-cta-content p {
    margin-bottom: 20px;
  }
  .catalog-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Catalog Page Dedicated Header */
.catalog-header-section {
  padding: 140px 0 30px;
  text-align: center;
  position: relative;
}

.catalog-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 134, 10, 0.12);
  border: 1px solid rgba(200, 134, 10, 0.35);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, #C8860A);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.catalog-header-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.catalog-header-desc {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Catalog Info / WhatsApp Bar */
.catalog-help-bar {
  margin: 60px 0 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md, 12px);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.catalog-help-text h4 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.catalog-help-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin: 0;
}

.catalog-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #000000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.catalog-help-btn:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  color: #000000;
}

@media (max-width: 768px) {
  .catalog-help-bar {
    flex-direction: column;
    text-align: center;
  }
}

