/* ============================================================
   ELECTROSHOP - Main Stylesheet
   ============================================================ */

:root {
  --green: #7fad39;
  --green-dark: #6b9430;
  --green-light: #eaf4d5;
  --orange: #f28b00;
  --teal: #0f9b72;
  --dark: #1c1c1c;
  --body-bg: #f5f7f2;
  --card-bg: #ffffff;
  --border: #e8eee0;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== BASE ===== */
body {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  background: var(--body-bg);
  min-height: 100vh;
  color: var(--dark);
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark) !important;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--green);
}

.nav-link.organic-nav {
  font-weight: 600;
  color: #333 !important;
  font-size: 14px;
  padding: 8px 12px;
  transition: 0.2s;
}

.nav-link.organic-nav:hover {
  color: var(--green) !important;
}

.cart-badge {
  font-size: 10px;
  padding: 3px 6px;
  top: -5px;
  right: -10px;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #1c2f0e 0%, #2f5016 45%, #4a7a1e 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(127, 173, 57, 0.25) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237fad39' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(127, 173, 57, 0.2);
  color: #b8e55a;
  border: 1px solid rgba(127, 173, 57, 0.4);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.hero-highlight {
  background: linear-gradient(90deg, #7fad39, #b8e55a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 440px;
}

.hero-btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s;
  box-shadow: 0 4px 18px rgba(127, 173, 57, 0.4);
}

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

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-stats {
  margin-top: 2rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  align-self: stretch;
}

/* ===== FEATURE STRIP ===== */
.feature-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  padding: 8px;
}

.feature-item small {
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}

.feature-icon {
  font-size: 22px;
  color: var(--green);
  flex-shrink: 0;
}

/* ===== PRODUCTS SECTION ===== */
.products-bg {
  background: var(--body-bg);
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e3000f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  z-index: 3;
  letter-spacing: 0.3px;
}

.product-img-link {
  display: block;
  overflow: hidden;
  background: #f9fdf4;
}

.product-img-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name a {
  color: var(--dark);
  text-decoration: none;
}

.product-name a:hover {
  color: var(--green);
}

.product-rating {
  font-size: 12px;
  color: #f5a623;
}

.rating-count {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 3px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.original-price {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: line-through;
}

.sale-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.qty-input {
  width: 58px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  background: #f5f7f2;
  outline: none;
  transition: 0.2s;
  flex-shrink: 0;
}

.qty-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 173, 57, 0.15);
}

.cart-form {
  display: flex;
}

.btn-add-cart {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: var(--green-dark);
}

/* ===== PROMO BANNERS ===== */
.promo-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  color: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.promo-card::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.promo-green {
  background: linear-gradient(135deg, #5a9a1e, #7fad39);
}

.promo-orange {
  background: linear-gradient(135deg, #c96a00, #f28b00);
}

.promo-teal {
  background: linear-gradient(135deg, #0a7055, #0f9b72);
}

.promo-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  opacity: 0.9;
}

.promo-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.promo-text {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.promo-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  transition: 0.2s;
}

.promo-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #f0fae0 0%, #e3f5c4 100%);
}

.newsletter-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(127, 173, 57, 0.15);
}

.nl-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.nl-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
}

.nl-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.nl-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nl-input-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
}

.nl-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 14px;
}

.nl-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: 0.2s;
}

.nl-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 173, 57, 0.15);
}

.nl-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.nl-btn:hover {
  background: var(--green-dark);
}

.nl-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== GLOBAL UTILS ===== */
.btn-primary {
  background: var(--green) !important;
  border-color: var(--green) !important;
}

.btn-primary:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
}

.btn-outline-success {
  border-color: var(--green) !important;
  color: var(--green) !important;
}

.btn-outline-success:hover {
  background: var(--green) !important;
  color: #fff !important;
}

.w-fit {
  width: fit-content;
}

footer a.text-white-50:hover {
  color: var(--green) !important;
  transition: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero-section {
    min-height: 220px;
  }

  .hero-overlay {
    min-height: 220px;
    padding: 20px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 0.88rem;
  }

  .hero-stats {
    gap: 14px !important;
    margin-top: 1rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 10px;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  /* ── Product Card Mobile ── */
  .product-img-wrap {
    height: 130px;
    /* smaller image on mobile */
  }

  .product-info {
    padding: 10px 10px 10px;
  }

  .product-name {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .product-rating {
    font-size: 10px;
  }

  .rating-count {
    font-size: 10px;
  }

  .sale-price {
    font-size: 14px;
  }

  .original-price {
    font-size: 11px;
  }

  /* Stack qty + button vertically on mobile */
  .product-actions {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .qty-input {
    width: 100%;
    /* full width on mobile */
    padding: 6px 4px;
    font-size: 13px;
  }

  .cart-form {
    width: 100%;
  }

  .btn-add-cart {
    width: 100%;
    font-size: 11px;
    padding: 7px 6px;
    white-space: normal;
    /* allow wrap if needed */
    text-align: center;
  }

  /* ── Newsletter ── */
  .newsletter-card {
    padding: 24px 16px;
  }

  .nl-title {
    font-size: 1.4rem;
  }

  .nl-fields {
    flex-direction: column;
  }

  .nl-btn {
    width: 100%;
  }

  /* ── Feature strip ── */
  .feature-item {
    font-size: 11px;
    gap: 6px;
  }

  .feature-icon {
    font-size: 16px;
  }

  /* ── Promo Cards ── */
  .promo-card {
    padding: 22px 18px;
  }

  .promo-title {
    font-size: 1rem;
  }

  /* ── Info grid (profile/order pages) ── */
  .od-info-grid,
  .info-grid {
    grid-template-columns: 1fr !important;
  }

  .od-body,
  .invoice-body {
    padding: 20px 16px !important;
  }

  .od-header,
  .invoice-header {
    padding: 20px 16px !important;
    flex-direction: column;
    gap: 10px;
  }

  .od-header .meta,
  .invoice-header .inv-meta {
    text-align: left !important;
  }

  /* ── Profile orders table ── */
  .orders-table thead th:nth-child(3) {
    display: none;
  }

  .orders-table tbody td:nth-child(3) {
    display: none;
  }

  /* ── Checkout payment options ── */
  .pay-option-wrap {
    grid-template-columns: 1fr !important;
  }

  /* ── Invoice wrapper ── */
  .invoice-wrapper,
  .od-wrapper,
  .pr-wrapper,
  .profile-wrapper {
    padding: 0 10px 40px !important;
    margin: 16px auto !important;
  }

  /* ── Action buttons ── */
  .action-btns,
  .pr-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btns a,
  .action-btns button,
  .pr-btns a,
  .pr-btns button {
    width: 100%;
    justify-content: center;
  }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  .product-img-wrap {
    height: 110px;
  }

  .product-name {
    font-size: 11px;
  }

  .sale-price {
    font-size: 13px;
  }

  .btn-add-cart {
    font-size: 10px;
    padding: 6px 4px;
  }
}