/* Custom Premium Styling for Rice Seed Landing Page */

:root {
  --primary-color: #00a859;
  --primary-dark: #008746;
  --primary-light: #eafaf1;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  
  /* Secondary backgrounds & components */
  --badge-yield-bg: #f1f5f9;
  --badge-yield-text: #334155;
  --badge-expected-bg: #ecfdf5;
  --badge-expected-text: #047857;
  --price-tile-bg: #f8fafc;
  --price-tile-border: #e2e8f0;
  --call-btn-bg: #f1f5f9;
  --call-btn-text: #1e293b;
  --invoice-details-bg: #f1f5f9;
  
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-english: 'Outfit', 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 25px -5px rgba(0, 168, 89, 0.08), 0 10px 10px -5px rgba(0, 168, 89, 0.04);
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.green-text {
  color: var(--primary-color);
}

.hidden {
  display: none !important;
}

/* Header */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-call-btn {
  background-color: var(--primary-light);
  border: 1.5px solid rgba(0, 168, 89, 0.15);
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all var(--transition-fast);
}

.header-call-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.header-call-btn svg {
  width: 20px;
  height: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.order-btn-nav {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.order-btn-nav:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(circle at top, var(--primary-light) 0%, transparent 60%);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

/* Badges layout matching mobile screenshot grid */
.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 380px;
  margin: 0 auto;
  padding: 0 1rem;
}

.badge {
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-normal);
}

.badge:hover {
  border-color: var(--primary-color);
}

.hero-badges .badge:last-child {
  grid-column: 1 / span 2;
  width: auto;
  justify-self: center;
  max-width: max-content;
  border-color: rgba(0, 168, 89, 0.2);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loader */
.loader {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Products Section */
.products-section {
  padding: 2rem 0 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Product Card - thick green border on active */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  
  /* Sequential slide and fade-in loader */
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card:hover, .product-card.selected {
  border: 3px solid #00c853;
  box-shadow: var(--shadow-premium);
}

.product-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

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

.product-card-header {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}

/* Bestseller Badge (সর্বাধিক বিক্রিত) */
.bestseller-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #f97316; /* Vibrant Orange */
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 5;
}

/* Specs list design matching screenshot */
.product-specs {
  margin: 1.25rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.spec-label {
  color: var(--text-dark);
  font-weight: 600;
}

.spec-value-badge {
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.yield-time-badge {
  background-color: var(--badge-yield-bg);
  color: var(--badge-yield-text);
}

.expected-yield-badge {
  background-color: var(--badge-expected-bg);
  color: var(--badge-expected-text);
}

/* Price List Styling matching screenshot grid */
.price-list-area {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.price-list-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.price-tile {
  background-color: var(--price-tile-bg);
  border: 1px solid var(--price-tile-border);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.tile-qty {
  font-size: 0.95rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.2rem;
}

.tile-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Button styled in solid green matching screenshot */
.product-action-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-bangla);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  box-shadow: 0 4px 6px rgba(0, 168, 89, 0.15);
  transition: var(--transition-fast);
}

.product-action-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 12px rgba(0, 168, 89, 0.25);
}

.btn-arrow {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

/* Checkout Grid */
.order-section {
  padding-bottom: 6rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-bangla);
  font-size: 1.05rem;
  background-color: #f8fafc;
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-bangla);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 168, 89, 0.2);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 12px rgba(0, 168, 89, 0.3);
}

.submit-btn:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Call to Order */
.call-order-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-color);
  text-align: center;
}

.call-order-area p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--call-btn-bg);
  color: var(--call-btn-text);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.call-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.call-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

/* Summary Card */
.summary-card {
  border-color: var(--primary-light);
}

.summary-title {
  font-family: var(--font-english);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.summary-item-card {
  background-color: var(--primary-light);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.summary-label {
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.summary-product-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.quantity-selector-area {
  margin-bottom: 2rem;
}

.quantity-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  display: block;
}

.quantity-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Custom Radio Package Option */
.pkg-option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.pkg-option-label:hover {
  border-color: #cbd5e1;
}

.pkg-option-input {
  display: none;
}

.pkg-option-input:checked + .pkg-option-label {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.pkg-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pkg-radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition-fast);
}

.pkg-option-input:checked + .pkg-option-label .pkg-radio-dot {
  border-color: var(--primary-color);
}

.pkg-option-input:checked + .pkg-option-label .pkg-radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pkg-price {
  font-family: var(--font-english);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Price breakdown */
.price-breakdown {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 1.2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 500;
}

.summary-divider {
  margin: 0.8rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.total-row {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.total-price {
  color: var(--text-dark);
  font-family: var(--font-english);
  font-size: 1.5rem;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background-color: var(--white);
  border-radius: 24px;
  max-width: 450px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  padding: 15px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.invoice-details {
  background-color: var(--invoice-details-bg);
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  font-family: var(--font-english);
}

.modal-close-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-bangla);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid #1e293b;
}

.site-footer p {
  font-size: 0.95rem;
}

/* Media Queries */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .summary-card {
    order: -1; /* Summary card goes first on mobile/tablet */
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Spacing Requirements: uniform narrow margins on mobile for both products and checkout cards */
  .products-section.container,
  .order-section.container {
    padding: 0 0.75rem; /* 12px margin from screen edges */
  }
  
  .checkout-card {
    padding: 1.25rem 1rem; /* Maximize interior space in checkout cards */
  }
  
  .checkout-grid {
    gap: 1.25rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Request Product Banner */
.request-product-banner {
  margin-bottom: 4rem;
  text-align: center;
}

.request-product-banner-card {
  background-color: var(--white);
  border: 2px dashed var(--primary-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.request-product-banner-card:hover {
  transform: translateY(-2px);
}

.request-product-banner-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.request-product-banner-card p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Product Features List */
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  background-color: var(--primary-light);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 89, 0.08);
}

.product-features-list li {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-features-list li span:first-child {
  flex-shrink: 0;
  line-height: 1;
}

/* Progressive Image Loading styling */
.product-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-container .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
  border: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform var(--transition-normal);
}

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

.product-img-container .product-card-img.loaded {
  opacity: 1 !important;
}

.img-loader-spinner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 168, 89, 0.12);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.img-loader-spinner.hidden {
  opacity: 0;
  pointer-events: none;
}


