/* components.css */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}
.btn-primary:hover {
  background: #256628;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}

/* Header & Nav Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover {
  background: rgba(46, 125, 50, 0.1);
  transform: scale(1.1);
}
.icon-btn .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #A5D6A7;
  border: 1px solid rgba(165, 214, 167, 0.4);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-md);
}

/* Product Cards */
.product-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.dark-theme .product-card {
  background: #2A2A2A;
  border-color: rgba(255,255,255,0.08);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.15);
}
.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: #f4f4f4;
}
.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
.product-info {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}
.product-info p {
  font-size: 0.9rem;
  color: #666;
}
.dark-theme .product-info p {
  color: #aaa;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.dark-theme .feature-card {
  background: #252525;
  border-color: rgba(255,255,255,0.05);
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  fill: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 0.85rem;
  color: #777;
}
.dark-theme .feature-card p { color: #aaa; }

/* Certifications */
.cert-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s;
}
.dark-theme .cert-card { background: #252525; }
.cert-card:hover { transform: translateY(-4px); }
.cert-card img {
  max-width: 120px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto var(--space-xs);
}
.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Form Styling */
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dark-theme input, .dark-theme textarea {
  background: #2E2E2E;
  border-color: #444;
  color: #fff;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Alert Boxes */
.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #C8E6C9;
}
.alert-error {
  background: #FFEBEE;
  color: #B71C1C;
  border: 1px solid #FFCDD2;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.dark-theme .modal-content {
  background: #222;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

/* Responsive navigation drawer */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .dark-theme .main-nav {
    background: #1A1A1A;
  }
  .main-nav.active {
    max-height: 300px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   Product Specifications Modal System - Apple / Luxury Inspired
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 30, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  display: flex !important;
}

.modal-card-container {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(46, 125, 50, 0.15);
  transform: scale(0.95) translateY(20px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.5rem;
  box-sizing: border-box;
}

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F4F1E6;
  border: none;
  color: #2E7D32;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #2E7D32;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.modal-grid-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.2rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .modal-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-card-container {
    padding: 1.8rem 1.2rem;
  }
}

.modal-product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.modal-cat-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2E7D32;
  margin-bottom: 6px;
  display: block;
}

.modal-product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 10px;
  line-height: 1.2;
}

.modal-product-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555555;
  margin-bottom: 1.5rem;
}

.modal-sku-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 13.5px;
}

.modal-sku-table th {
  background: #F4F1E6;
  color: #2E7D32;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid rgba(46, 125, 50, 0.2);
}

.modal-sku-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #333333;
}

.modal-sku-table tr:nth-child(even) td {
  background: rgba(250, 250, 247, 0.6);
}

.modal-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-modal-quote {
  background: #2E7D32;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
  transition: all 0.25s ease;
}

.btn-modal-quote:hover {
  background: #236327;
  transform: translateY(-2px);
}

/* ═══ B2B STICKY CONVERSION BAR (CRO) ═══ */
.b2b-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #FFFFFF;
  z-index: 1900;
  padding: 10px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.b2b-sticky-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.b2b-sticky-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.b2b-sticky-badge {
  background: #FFD54F;
  color: #1B5E20;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.b2b-sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sticky-rfq {
  background: #FFFFFF;
  color: #1B5E20;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sticky-rfq:hover {
  background: #F1F8E9;
  transform: translateY(-1px);
}

.btn-sticky-catalog {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sticky-catalog:hover {
  background: rgba(255, 255, 255, 0.25);
}

.b2b-sticky-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.b2b-sticky-close:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .b2b-sticky-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .b2b-sticky-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn-sticky-rfq, .btn-sticky-catalog {
    flex: 1;
    text-align: center;
  }
}

