/* ==========================================================================
   VARI ESSENTIAL - CATEGORY PRODUCTS PAGE STYLES (HORIZONTAL CARD LAYOUT)
   ========================================================================== */

/* Category Switcher Tabs in Hero */
.cat-switcher-wrap {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(254, 231, 213, 0.12);
  border: 1px solid rgba(254, 231, 213, 0.25);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-switch-pill:hover {
  background: rgba(254, 231, 213, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.cat-switch-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 92, 2, 0.35);
}

.cat-switch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Category Products Section */
.cat-products-section {
  background: var(--paper);
  padding: 72px 0 96px;
}

.prod-section-header {
  margin-bottom: 40px;
}

.prod-section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--green-dk);
  margin-bottom: 8px;
}

.prod-section-header p {
  color: #4A5951;
  font-size: 1.05rem;
  max-width: 65ch;
  margin: 0;
}

/* Horizontal Product Cards Stack */
.prod-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prod-card-h {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 74, 51, 0.08);
  box-shadow: 0 12px 32px rgba(15, 74, 51, 0.05);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.prod-card-h:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 74, 51, 0.11);
  border-color: rgba(15, 74, 51, 0.18);
}

/* Visual Column */
.prod-visual {
  background: var(--paper, #FFF6EE);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  min-height: 280px;
}

.prod-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prod-card-h:hover .prod-img {
  transform: scale(1.05);
}

.prod-tag-pill {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 74, 51, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-dk);
  box-shadow: 0 4px 12px rgba(15, 74, 51, 0.08);
}

/* Info Column */
.prod-info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.prod-header h3 {
  font-size: 1.65rem;
  color: var(--green-dk);
  margin-bottom: 6px;
  line-height: 1.25;
}

.prod-subtitle {
  color: var(--orange);
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.02em;
}

.prod-desc {
  font-size: 0.94rem;
  color: #4A5951;
  line-height: 1.65;
  margin: 0;
}

/* Specs Box (Mockup Match) */
.prod-specs-box {
  background: var(--paper);
  border: 1px solid rgba(15, 74, 51, 0.08);
  border-radius: 16px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.prod-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prod-spec-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7B8F84;
}

.prod-spec-val {
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--green-dk);
}

/* Action Buttons */
.prod-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-quick-specs {
  background: var(--green-dk);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-quick-specs:hover {
  background: var(--green);
  transform: translateY(-2px);
  color: #fff;
}

.btn-inquire-b2b {
  background: #25D366;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-inquire-b2b:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  color: #fff;
}

/* Quick Specs Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 74, 51, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(15, 74, 51, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(15, 74, 51, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  font-size: 1.45rem;
  color: var(--green-dk);
  margin-bottom: 4px;
}

.modal-header p {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: rgba(15, 74, 51, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-dk);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(15, 74, 51, 0.16);
  transform: scale(1.08);
}

.modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-spec-table tr {
  border-bottom: 1px solid rgba(15, 74, 51, 0.08);
}

.modal-spec-table td {
  padding: 10px 0;
  font-size: 0.92rem;
}

.modal-spec-table td:first-child {
  color: #7B8F84;
  font-weight: 600;
  width: 40%;
}

.modal-spec-table td:last-child {
  color: var(--green-dk);
  font-weight: 700;
}

.modal-footer {
  padding: 18px 28px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(15, 74, 51, 0.08);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .prod-card-h {
    grid-template-columns: 1fr;
  }
  .prod-visual {
    padding: 0;
    height: 240px;
    min-height: 240px;
  }
  .prod-img {
    height: 240px;
    min-height: 240px;
  }
  .prod-specs-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .prod-info {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .prod-specs-box {
    grid-template-columns: 1fr;
  }
  .prod-actions {
    flex-direction: column;
    width: 100%;
  }
  .prod-actions a,
  .prod-actions button {
    width: 100%;
    justify-content: center;
  }
}
