/* ======================================
   ALKES SBS - MEDICAL GREEN STOREFRONT
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ======================================
   RESET & BASE
   ====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f9f4;
  line-height: 1.6;
  color: #1e293b;
}

/* ======================================
   NAVBAR - GLASSMORPHISM STYLE
   ====================================== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: #527226 !important;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: #475569 !important;
  margin: 0 14px;
  padding: 12px 0 !important;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #111827 !important;
  background: transparent;
}

.nav-link.active {
  color: #527226 !important;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: #73963b;
  transition: left .25s ease, right .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

/* Cart in Navbar */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 6px;
}

.nav-cart:hover {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #527226;
}

.nav-cart i {
  font-size: 1.35rem;
  margin: 0;
}

.nav-cart .cart-count-badge {
  position: absolute;
  top: 2px;
  left: 25px;
  right: auto;
  background: #64852f;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ======================================
   HERO SECTION - CLEAN MEDICAL GREEN
   ====================================== */
.hero {
  background:
    radial-gradient(circle at 83% 14%, rgba(125, 157, 67, 0.16), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #fbfcf8 55%, #eef4e5 100%);
  padding: 100px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(111, 143, 55, 0.09);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(205, 220, 176, 0.28);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 900;
  color: #203126;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: #668a2f;
}

.hero p {
  font-size: 1.15rem;
  color: #5d6c61;
  margin-bottom: 35px;
  line-height: 1.8;
  max-width: 500px;
}

.location-badge {
  background: #eef5e4;
  backdrop-filter: blur(10px);
  color: #527226;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 25px;
  border: 1px solid #d2e2b7;
}

.location-badge i {
  margin-right: 8px;
}

.hero img {
  max-width: 100%;
  border-radius: 30px;
  border: 10px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(46, 68, 48, 0.2);
  position: relative;
  z-index: 1;
}

.hero .btn {
  padding: 16px 36px;
  font-weight: 600;
  border-radius: 14px;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.btn-white {
  background: #5f7f2c;
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 28px rgba(95, 127, 44, 0.24);
}

.btn-white:hover {
  background: #4d6923;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 15px 38px rgba(70, 96, 32, 0.28);
}

.btn-outline-light {
  border: 2px solid #a9be85;
  color: #466420;
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover {
  background: #eef5e4;
  border-color: #73963b;
  color: #385018;
  transform: translateY(-4px);
}

/* ======================================
   FEATURES - CARD STYLE
   ====================================== */
.features {
  background: #f7f9f4;
  padding: 120px 0;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 60px;
}

.feature-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid #e1ead4;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: #9ab86a;
  background: #ffffff;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.feature-icon.olive {
  background: linear-gradient(135deg, #73963b 0%, #527226 100%);
  color: #ffffff;
}

.feature-icon.green {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
}

.feature-icon.yellow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.feature-icon.orange {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
}

.feature-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ======================================
   LOKASI SECTION
   ====================================== */
.lokasi-section {
  background: #fef2f2;
  padding: 120px 0;
}

.lokasi-section h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #dc2626;
  margin-bottom: 12px;
}

.lokasi-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 35px;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #dc2626;
}

.info-card h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.info-card h6 i {
  font-size: 1.3rem;
  margin-right: 12px;
}

.info-card p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  padding-left: 35px;
}

.lokasi-section iframe {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ======================================
   CTA SECTION
   ====================================== */
.cta-section {
  padding: 120px 0;
  background: #ffffff;
}

.cta-box {
  background: linear-gradient(135deg, #6f9137 0%, #35592b 100%);
  color: #fff;
  max-width: 900px;
  padding: 70px 50px;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(65, 94, 46, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta-box .btn {
  background: #ffffff;
  color: #527226;
  padding: 16px 40px;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: none;
}

.cta-box .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ======================================
   FOOTER
   ====================================== */
.footer-section {
  background: #1e1e1e;
  color: #ffffff;
  padding: 70px 0 30px;
}

.footer-section h5 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-section .text-muted {
  color: #94a3b8 !important;
  margin-bottom: 35px;
}

.footer-section .social-icons {
  margin-bottom: 35px;
}

.footer-section .icon-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #e2e8f0;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-section .icon-item:hover {
  transform: translateY(-5px);
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}

.footer-section .social-icons img {
  width: 35px;
  height: 35px;
  transition: all 0.3s ease;
}

.footer-section .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 25px;
}

.footer-section .small {
  color: #64748b !important;
}

/* ======================================
   ABOUT PAGE
   ====================================== */
.about {
  padding: 100px 0;
  background: #ffffff;
}

.about img {
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.quote-box {
  max-width: 300px;
  background: #fef2f2 !important;
  border-left: 4px solid #dc2626;
  border-radius: 0 16px 16px 0;
}

.trusted-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  border-radius: 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

/* ======================================
   WHY US SECTION
   ====================================== */
.why-us {
  padding: 120px 0;
  background: #fef2f2;
}

.why-us .card-custom {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid transparent;
}

.why-us .card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: #dc2626;
}

.why-us .card-custom.misi-card {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
}

.why-us .card-custom.misi-card h5,
.why-us .card-custom.misi-card li {
  color: #ffffff;
}

/* ======================================
   VALUES SECTION
   ====================================== */
.values-section {
  padding: 100px 0;
  background: #ffffff;
}

.value-card {
  background: #fef2f2;
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card.border-red {
  border-left-color: #dc2626;
}

.value-card.border-green {
  border-left-color: #16a34a;
}

.value-card.border-yellow {
  border-left-color: #f59e0b;
}

/* ======================================
   CTA BANNER
   ====================================== */
.cta-banner {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 32px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 50px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.cta-banner .btn {
  background: #ffffff;
  color: #dc2626;
  padding: 16px 40px;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: none;
}

.cta-banner .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ======================================
   PRODUK PAGE
   ====================================== */
.produk-hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  position: relative;
  overflow: hidden;
}

.produk-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.produk-hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.produk-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.trusted-text {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight {
  color: #fbbf24;
  font-weight: 700;
}

/* Category Buttons */
.category-wrapper {
  justify-content: center;
}

.category-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #475569;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #fecaca;
}

.category-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

/* ======================================
   PRODUCT CARDS
   ====================================== */
#product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px 10px;
}

.product-item {
  display: flex;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  transition: all 0.4s ease;
  overflow: hidden;
  border: 2px solid transparent;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: #dc2626;
}

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

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

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 180px;
}

.card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.price-btn {
  align-self: center;
  margin-top: auto;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 28px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
  width: 100%;
}

.price-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.detail-btn {
  background: transparent;
  color: #dc2626;
  border: 2px solid #dc2626;
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 10px;
}

.detail-btn:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ======================================
   PRODUCT DETAIL MODAL
   ====================================== */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.product-modal.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #dc2626;
  color: #ffffff;
}

.modal-body {
  display: flex;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  flex: 1;
  min-width: 0;
}

.modal-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-info {
  flex: 1;
  min-width: 0;
}

.modal-info .badge-category {
  background: #fef2f2;
  color: #dc2626;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.modal-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.modal-info .price {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 20px;
}

.modal-info .description {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1rem;
}

.modal-info .features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.modal-info .features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  color: #475569;
}

.modal-info .features-list li i {
  color: #16a34a;
  margin-right: 12px;
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.modal-actions .btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-actions .btn-add-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
}

.modal-actions .btn-buy-now {
  flex: 1;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-actions .btn-buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* ======================================
   POPUP STYLES
   ====================================== */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  text-align: center;
  z-index: 3000;
  opacity: 0;
  animation: popupFadeIn 0.4s ease forwards;
  max-width: 420px;
  width: 90%;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup p {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 30px;
  line-height: 1.6;
}

.popup button {
  margin: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.popup .yes-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.popup .yes-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
}

.popup .no-btn {
  background-color: #f1f5f9;
  color: #475569;
}

.popup .no-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-3px);
}

/* ======================================
   FORM ELEMENTS
   ====================================== */
input[type="number"] {
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  padding: 10px 14px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

input[type="number"]:focus {
  border-color: #dc2626;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
  outline: none;
}

/* ======================================
   ANIMATIONS
   ====================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */
@media (max-width: 1200px) {
  #product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  #product-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .modal-body {
    flex-direction: column;
    padding: 30px;
  }

  .modal-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 0;
    min-height: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    margin: 0 auto 35px;
  }

  .hero img {
    margin-top: 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  #product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .category-wrapper {
    justify-content: center;
    padding: 0 15px;
  }

  .footer-section .social-icons {
    flex-direction: column;
    gap: 15px !important;
  }

  .nav-cart span.cart-text {
    display: none;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  #product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-img {
    height: 160px;
  }

  .card-body {
    padding: 15px;
    min-height: 140px;
  }

  .card-body h5 {
    font-size: 0.85rem;
  }

  .card-body p {
    font-size: 0.75rem;
  }

  .price-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .cta-box {
    padding: 50px 25px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 20px;
    gap: 25px;
  }

  .modal-info h2 {
    font-size: 1.4rem;
  }

  .modal-info .price {
    font-size: 1.5rem;
  }
}

/* ======================================
   PAGINATION
   ====================================== */
.pagination-wrapper {
  gap: 15px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  color: #dc2626;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-num {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-num:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  color: #dc2626;
}

.page-num.active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

/* ======================================
   SCROLLBAR
   ====================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fef2f2;
}

::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* ======================================
   DYNAMIC STOREFRONT
   ====================================== */
.storefront-navbar { padding: 10px 0; }
.storefront-navbar .container-fluid { gap: 22px; }
.nav-search { order: 2; flex: 1; max-width: 620px; height: 46px; display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: .25s ease; }
.nav-search:focus-within { background: #fff; border-color: #73963b; box-shadow: 0 0 0 4px rgba(111,145,55,.12); }
.nav-search i { color: #94a3b8; margin-left: 16px; }
.nav-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: .9rem; }
.nav-search button { align-self: stretch; border: 0; padding: 0 22px; background: #5f7f2c; color: #fff; font-weight: 700; }
.nav-search button:hover { background: #4d6923; }
.front-footer { padding: 64px 0 20px; background: #1f3023; color: #cbd8cc; }
.front-footer h4 { color: #fff; font-weight: 800; }
.front-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
.front-footer a { display: block; color: #cbd5e1; text-decoration: none; margin-bottom: 8px; }
.front-footer a:hover { color: #cfe3a8; }
.front-footer p { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #405344; margin-top: 35px; padding-top: 20px; font-size: .85rem; }
.featured-products, .catalog-section, .product-detail-section { padding: 90px 0; background: #fff; }
.eyebrow { display: inline-block; color: #5f7f2c; font-size: .78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.section-heading-row h2 { font-size: 2.25rem; font-weight: 800; margin: 0; }
.section-heading-row > a { color: #5f7f2c; font-weight: 700; text-decoration: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.store-product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.store-product-card:hover { transform: translateY(-6px); border-color: #c9dba9; box-shadow: 0 20px 45px rgba(41,67,43,.11); }
.product-image-wrap { position: relative; display: block; height: 225px; padding: 18px; background: linear-gradient(145deg,#f5f8ef,#ffffff); overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; transition: transform .35s ease; }
.store-product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 8px; color: #fff; font-size: .68rem; font-weight: 800; }
.product-badge.ready { background: #15803d; }.product-badge.low { background: #d97706; }.product-badge.sold { background: #64748b; }
.store-product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-sku { color: #94a3b8; font-size: .72rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.product-name { color: #172033; font-size: 1rem; font-weight: 750; line-height: 1.4; text-decoration: none; margin: 7px 0 8px; }
.product-name:hover { color: #527226; }
.store-product-body p { color: #64748b; font-size: .82rem; line-height: 1.55; margin-bottom: 14px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; color: #64748b; font-size: .75rem; margin-top: auto; padding-bottom: 15px; }
.product-card-footer { border-top: 1px solid #f1f5f9; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.product-card-footer strong { color: #527226; font-size: 1.08rem; }
.product-action { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eaf2dd; color: #527226; }
.product-action:hover { background: #5f7f2c; color: #fff; }
.catalog-hero { padding: 80px 0 70px; color: #fff; background: linear-gradient(135deg,#35592b,#73963b); }
.catalog-hero .eyebrow { color: #e6f0cf; }.catalog-hero h1 { max-width: 700px; font-size: 2.9rem; font-weight: 900; }.catalog-hero p { opacity: .9; margin: 14px 0 0; }
.catalog-section { background: #f8fafc; }
.catalog-toolbar { display: grid; grid-template-columns: 1fr 180px 190px auto; gap: 12px; padding: 18px; margin-top: -125px; margin-bottom: 34px; position: relative; z-index: 2; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
.catalog-search { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 11px; }.catalog-search i { margin-left: 14px; color: #94a3b8; }.catalog-search input { width: 100%; border: 0; outline: 0; padding: 12px; }
.catalog-toolbar select { border: 1px solid #e2e8f0; border-radius: 11px; padding: 0 12px; background: #fff; }.catalog-toolbar > button { border: 0; border-radius: 11px; padding: 0 24px; background: #dc2626; color: #fff; font-weight: 700; }
.catalog-result { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: #64748b; }.catalog-result strong { color: #0f172a; }.catalog-result a { color: #dc2626; font-weight: 700; text-decoration: none; }
.catalog-pagination { display: flex; justify-content: center; margin-top: 42px; }.catalog-pagination .page-link { color: #dc2626; }.catalog-pagination .active > .page-link { background: #dc2626; border-color: #dc2626; }
.empty-products { padding: 80px 20px; text-align: center; background: #fff; border-radius: 22px; }.empty-products > i { font-size: 3rem; color: #fca5a5; }.empty-products h3 { font-weight: 800; margin-top: 18px; }.empty-products p { color: #64748b; }
.product-detail-section { background: #f8fafc; }.product-breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 25px; color: #94a3b8; font-size: .84rem; }.product-breadcrumb a { color: #64748b; text-decoration: none; }.product-breadcrumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-detail-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 54px; padding: 36px; background: #fff; border-radius: 28px; box-shadow: 0 16px 50px rgba(15,23,42,.08); }
.product-detail-image { position: relative; min-height: 480px; display: grid; place-items: center; padding: 35px; background: linear-gradient(145deg,#fff7f7,#f8fafc); border-radius: 22px; }.product-detail-image img { width: 100%; height: 410px; object-fit: contain; }.detail-stock { position: absolute; top: 18px; left: 18px; padding: 8px 12px; border-radius: 9px; color: #fff; font-size: .75rem; font-weight: 800; }.detail-stock.available { background: #15803d; }.detail-stock.empty { background: #64748b; }
.product-detail-info { padding: 18px 0; }.product-detail-info h1 { font-size: 2.35rem; font-weight: 850; line-height: 1.2; margin: 10px 0; }.detail-rating { display: flex; gap: 12px; align-items: center; }.detail-rating span { color: #f59e0b; letter-spacing: 2px; }.detail-rating small { color: #64748b; }.detail-price { color: #dc2626; font-size: 2rem; font-weight: 900; margin: 24px 0 15px; }.detail-description { color: #64748b; line-height: 1.8; }
.variant-picker { margin-top: 24px; }.variant-picker label { display: block; font-weight: 800; margin-bottom: 10px; }.variant-options { display: flex; flex-wrap: wrap; gap: 9px; }.variant-options button { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; }.variant-options button.active,.variant-options button:hover { border-color: #dc2626; background: #fff1f2; color: #dc2626; }.variant-options small { display: block; color: #94a3b8; font-size: .65rem; }
.purchase-row { display: flex; gap: 12px; margin: 28px 0; }.quantity-control { display: flex; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }.quantity-control button { width: 42px; border: 0; background: #f8fafc; font-size: 1.25rem; }.quantity-control input { width: 48px; border: 0; text-align: center; font-weight: 800; }.add-cart-btn { flex: 1; border: 0; border-radius: 12px; background: #dc2626; color: #fff; font-weight: 800; }.add-cart-btn:disabled { background: #94a3b8; }
.shopping-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; border-top: 1px solid #e2e8f0; padding-top: 22px; }.shopping-benefits span { color: #475569; font-size: .74rem; }.shopping-benefits i { display: block; color: #dc2626; font-size: 1.25rem; margin-bottom: 4px; }.related-section { padding-top: 80px; }

@media (max-width: 1199px) { .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.storefront-navbar .nav-search { max-width: 430px; } }
@media (max-width: 991px) { .storefront-navbar .container-fluid { flex-wrap: wrap; }.nav-search { order: 4; width: 100%; max-width: none; flex-basis: 100%; }.storefront-navbar .navbar-collapse { order: 5 !important; width: 100%; }.product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.catalog-toolbar { grid-template-columns: 1fr 1fr; }.catalog-search { grid-column: 1/-1; }.catalog-toolbar > button { min-height: 46px; }.product-detail-card { grid-template-columns: 1fr; gap: 20px; }.product-detail-image { min-height: 360px; }.product-detail-image img { height: 320px; } }
@media (max-width: 575px) { .navbar-brand { font-size: 1.25rem; }.nav-search button { padding: 0 15px; }.hero { padding: 70px 0; }.hero h1 { font-size: 2.45rem; }.features,.featured-products,.catalog-section,.product-detail-section { padding: 65px 0; }.product-grid { grid-template-columns: 1fr; }.product-image-wrap { height: 270px; }.catalog-hero { padding: 58px 0 100px; }.catalog-hero h1 { font-size: 2.2rem; }.catalog-toolbar { grid-template-columns: 1fr; margin-top: -130px; }.catalog-search { grid-column: auto; }.catalog-toolbar select { min-height: 46px; }.catalog-result { align-items: flex-start; gap: 8px; }.product-detail-card { padding: 18px; border-radius: 20px; }.product-detail-image { min-height: 290px; padding: 20px; }.product-detail-image img { height: 260px; }.product-detail-info h1 { font-size: 1.8rem; }.purchase-row { flex-direction: column; }.add-cart-btn { min-height: 52px; }.shopping-benefits { grid-template-columns: 1fr 1fr; }.section-heading-row h2 { font-size: 1.8rem; } }

.cart-page,.checkout-page{min-height:70vh;padding:75px 0 100px;background:#f8fafc}.page-heading{margin-bottom:30px}.page-heading h1{font-size:2.45rem;font-weight:850}.page-heading p{color:#64748b}.store-alert{padding:14px 18px;border-radius:12px;margin-bottom:18px;font-weight:700}.store-alert.success{background:#dcfce7;color:#166534}.store-alert.error{background:#fee2e2;color:#991b1b}.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}.cart-items-card,.checkout-form-card,.cart-summary{background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 10px 35px rgba(15,23,42,.06)}.cart-items-card{padding:8px 24px}.cart-item{display:grid;grid-template-columns:95px minmax(0,1fr) 100px 130px 34px;gap:16px;align-items:center;padding:20px 0;border-bottom:1px solid #e5e7eb}.cart-item img{width:95px;height:85px;object-fit:contain;border-radius:12px;background:#f8fafc}.cart-item-info span{font-size:.7rem;color:#94a3b8;font-weight:700}.cart-item-info h3{font-size:1rem;font-weight:800;margin:5px 0}.cart-item-info p{font-size:.78rem;color:#64748b;margin:0}.cart-item-info strong{display:block;color:#dc2626;margin-top:5px}.cart-quantity label{display:block;font-size:.72rem;color:#64748b}.cart-quantity input{width:78px;padding:7px;border:1px solid #cbd5e1;border-radius:8px}.cart-item-total{font-weight:800;text-align:right}.cart-remove{width:34px;height:34px;border:0;border-radius:9px;background:#fee2e2;color:#dc2626}.cart-actions{display:flex;justify-content:space-between;align-items:center;padding:20px 0}.cart-actions a{color:#475569;text-decoration:none;font-weight:700}.cart-actions button{padding:10px 16px;border:1px solid #dc2626;border-radius:10px;background:#fff;color:#dc2626;font-weight:700}.cart-summary{padding:24px;position:sticky;top:110px}.cart-summary h3{font-size:1.2rem;font-weight:850;margin-bottom:22px}.cart-summary>div{display:flex;justify-content:space-between;gap:12px;margin:14px 0;color:#64748b}.cart-summary strong{color:#334155;text-align:right}.summary-total strong{font-size:1.2rem;color:#dc2626}.checkout-button{display:flex;width:100%;justify-content:center;margin-top:20px;padding:14px;border:0;border-radius:12px;background:#dc2626;color:#fff;text-decoration:none;font-weight:800}.checkout-button:disabled{background:#94a3b8}.login-hint{text-align:center;color:#64748b;font-size:.75rem;margin:13px 0 0}.empty-cart{text-align:center;padding:80px 20px;background:#fff;border-radius:22px}.empty-cart>i{font-size:4rem;color:#fca5a5}.empty-cart h2{font-weight:850;margin-top:14px}.empty-cart p{color:#64748b}.empty-cart a{display:inline-block;padding:13px 24px;border-radius:11px;background:#dc2626;color:#fff;text-decoration:none;font-weight:800}.checkout-form-card{padding:28px}.checkout-form-card h3{font-size:1.15rem;font-weight:850;margin:4px 0 20px}.checkout-form-card h3 span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fee2e2;color:#dc2626}.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:32px}.checkout-fields label{font-size:.8rem;font-weight:750;color:#475569}.checkout-fields .full{grid-column:1/-1}.checkout-fields input,.checkout-fields textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #cbd5e1;border-radius:10px}.shipping-placeholder{display:flex;gap:14px;padding:18px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.shipping-placeholder i{font-size:1.8rem;color:#dc2626}.shipping-placeholder p{margin:4px 0 0;color:#64748b;font-size:.8rem}
@media(max-width:991px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.cart-summary{position:static}.cart-item{grid-template-columns:80px minmax(0,1fr) 90px 34px}.cart-item img{width:80px;height:75px}.cart-item-total{grid-column:3;text-align:left}}
@media(max-width:575px){.cart-page,.checkout-page{padding:55px 0}.page-heading h1{font-size:2rem}.cart-items-card{padding:8px 15px}.cart-item{grid-template-columns:68px minmax(0,1fr) 34px;gap:11px}.cart-item img{width:68px;height:68px}.cart-quantity,.cart-item-total{grid-column:2}.cart-remove{grid-column:3;grid-row:1}.cart-actions{flex-direction:column;align-items:flex-start;gap:14px}.checkout-fields{grid-template-columns:1fr}.checkout-fields .full{grid-column:auto}}
.address-choice{display:flex;gap:12px;padding:15px;margin-bottom:10px;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer}.address-choice:has(input:checked){border-color:#dc2626;background:#fff7f7}.address-choice p{margin:4px 0 0;color:#64748b;font-size:.78rem}.checkout-select{width:100%;padding:12px;margin-bottom:12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.address-list{padding:28px}.saved-address,.order-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e5e7eb}.saved-address p,.order-row p{margin:5px 0 0;color:#64748b;font-size:.8rem}.saved-address small{padding:4px 7px;border-radius:7px;background:#dcfce7;color:#166534}.order-row{align-items:center;color:#172033;text-decoration:none}.order-row>div:last-child{text-align:right;display:grid;gap:5px}.order-row>div:last-child span{color:#64748b;font-size:.75rem}@media(max-width:767px){.account-grid{grid-template-columns:1fr}}

/* ======================================
   STOREFRONT GREEN ACTIONS & SCROLLBAR
   ====================================== */
html {
  scrollbar-color: #5f7f2c #eef3e7;
  scrollbar-width: thin;
}

::-webkit-scrollbar-track {
  background: #eef3e7;
}

::-webkit-scrollbar-thumb {
  background: #5f7f2c;
  border: 2px solid #eef3e7;
}

::-webkit-scrollbar-thumb:hover {
  background: #405a1f;
}

.catalog-toolbar > button,
.add-cart-btn,
.checkout-button,
.empty-cart a,
.empty-products .btn-danger,
.modal-actions .btn-add-cart,
.modal-actions .btn-buy-now,
.cta-banner .btn,
.popup button {
  border-color: #5f7f2c;
  background: #5f7f2c;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(95, 127, 44, 0.22);
}

.catalog-toolbar > button:hover,
.add-cart-btn:hover,
.checkout-button:hover,
.empty-cart a:hover,
.empty-products .btn-danger:hover,
.modal-actions .btn-add-cart:hover,
.modal-actions .btn-buy-now:hover,
.cta-banner .btn:hover,
.popup button:hover {
  border-color: #4d6923;
  background: #4d6923;
  color: #ffffff;
}

.catalog-result a,
.catalog-pagination .page-link,
.detail-price,
.shopping-benefits i,
.cart-item-info strong,
.summary-total strong,
.shipping-placeholder i,
.checkout-form-card h3 span {
  color: #527226;
}

.catalog-pagination .active > .page-link {
  border-color: #5f7f2c;
  background: #5f7f2c;
  color: #ffffff;
}

.variant-options button.active,
.variant-options button:hover,
.address-choice:has(input:checked) {
  border-color: #73963b;
  background: #f3f7ec;
  color: #527226;
}

.cart-actions button {
  border-color: #73963b;
  color: #527226;
  background: #ffffff;
}

.cart-actions button:hover {
  background: #eef5e4;
}

@media (max-width: 575px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .store-product-card {
    border-radius: 16px;
  }

  .product-image-wrap {
    height: 165px;
    padding: 10px;
  }

  .store-product-body {
    padding: 13px;
  }

  .product-name {
    font-size: .86rem;
    line-height: 1.35;
  }

  .store-product-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .72rem;
  }

  .product-meta {
    display: grid;
    font-size: .68rem;
  }

  .product-card-footer strong {
    font-size: .86rem;
  }

  .product-action {
    width: 34px;
    height: 34px;
  }
}

/* ======================================
   CUSTOMER ACCOUNT DASHBOARD
   ====================================== */
.account-dashboard-page {
  min-height: 75vh;
  padding: 62px 0 100px;
  background: #f4f7ef;
}

.account-dashboard-container {
  max-width: 1180px;
}

.account-page-heading,
.account-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.account-page-heading {
  margin-bottom: 28px;
}

.account-page-heading h1 {
  margin: 0;
  color: #203126;
  font-size: 2.55rem;
  font-weight: 900;
  letter-spacing: -.8px;
}

.account-page-heading p {
  margin: 7px 0 0;
  color: #647067;
}

.account-heading-link,
.account-panel-heading > a {
  color: #527226;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.account-profile-card,
.account-panel,
.account-metric-card,
.account-form-panel {
  border: 1px solid #e0e8d6;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(43, 67, 45, .08);
}

.account-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  border-radius: 26px;
}

.account-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 7px solid #edf4e3;
  border-radius: 50%;
  background: linear-gradient(135deg, #73963b, #405f26);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(82, 114, 38, .2);
}

.account-profile-copy > span {
  color: #73963b;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.account-profile-copy h2 {
  margin: 4px 0 8px;
  color: #203126;
  font-size: 1.55rem;
  font-weight: 850;
}

.account-profile-copy p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 18px 0 0;
  color: #6b746d;
  font-size: .82rem;
}

.account-profile-copy p i {
  color: #73963b;
}

.account-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid #b9cb9d;
  border-radius: 12px;
  color: #527226;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}

.account-outline-button:hover {
  background: #eef5e4;
  border-color: #73963b;
  color: #405f26;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.account-metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 20px;
  border-radius: 18px;
  color: #203126;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.account-metric-card:hover {
  transform: translateY(-3px);
  border-color: #a9be85;
  color: #203126;
}

.account-metric-icon {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf4e3;
  color: #5f7f2c;
  font-size: 1.25rem;
}

.account-metric-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.account-metric-card small {
  color: #768078;
  font-size: .75rem;
}

.account-panel {
  padding: 27px;
  border-radius: 24px;
}

.account-panel-heading {
  align-items: center;
  margin-bottom: 22px;
}

.account-panel-heading h2 {
  margin: 0;
  color: #203126;
  font-size: 1.25rem;
  font-weight: 850;
}

.account-panel-heading .eyebrow {
  margin-bottom: 3px;
  font-size: .65rem;
}

.order-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.order-status-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px 17px;
  border-radius: 16px;
  color: #26342a;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.order-status-item:hover {
  background: #f3f7ec;
  color: #405f26;
  transform: translateY(-3px);
}

.order-status-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 17px;
  background: #edf4e3;
  color: #5f7f2c;
  font-size: 1.55rem;
}

.order-status-icon b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #e57b28;
  color: #ffffff;
  font-size: .65rem;
}

.order-status-item strong {
  font-size: .83rem;
}

.order-status-item small {
  margin-top: 3px;
  color: #899188;
  font-size: .69rem;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  margin-top: 18px;
}

.account-order-list {
  display: grid;
}

.account-order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0e9;
  color: #26342a;
  text-decoration: none;
}

.account-order-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-order-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edf4e3;
  color: #5f7f2c;
  font-size: 1.2rem;
}

.account-order-copy > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-order-copy strong {
  font-size: .85rem;
}

.account-order-copy p {
  margin: 5px 0 2px;
  color: #647067;
  font-size: .78rem;
}

.account-order-copy small {
  color: #949c95;
  font-size: .68rem;
}

.account-order-total {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #527226;
  font-size: .82rem;
}

.account-status-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
}

.account-status-badge.unpaid { background: #fff4df; color: #a75a11; }
.account-status-badge.processing { background: #e9f2ff; color: #28649f; }
.account-status-badge.shipped { background: #eee9ff; color: #6447a4; }
.account-status-badge.completed { background: #e8f6df; color: #477123; }
.account-status-badge.cancelled { background: #feeaea; color: #a43c3c; }

.primary-address-panel {
  position: relative;
  overflow: hidden;
}

.primary-address-panel::after {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #f0f5e8;
}

.primary-address-panel > * {
  position: relative;
  z-index: 1;
}

.primary-address-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  background: #edf4e3;
  color: #5f7f2c;
  font-size: 1.35rem;
}

.primary-address-label,
.saved-address-card small {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: #e8f3dc;
  color: #527226;
  font-size: .64rem;
  font-weight: 800;
}

.primary-address-panel h3 {
  margin: 10px 0 5px;
  color: #203126;
  font-size: 1rem;
  font-weight: 850;
}

.primary-address-panel p,
.saved-address-card p {
  margin: 4px 0;
  color: #6d776f;
  font-size: .78rem;
  line-height: 1.65;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.account-form-panel {
  scroll-margin-top: 110px;
  border-radius: 19px;
  overflow: hidden;
}

.account-form-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  color: #26342a;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.account-form-panel summary::-webkit-details-marker {
  display: none;
}

.account-form-panel summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.account-form-panel summary span i {
  color: #5f7f2c;
}

.account-form-panel summary > i {
  transition: transform .2s ease;
}

.account-form-panel[open] summary > i {
  transform: rotate(180deg);
}

.account-form-panel form {
  padding: 4px 22px 22px;
  border-top: 1px solid #edf0e9;
}

.account-form-panel .checkout-fields {
  margin: 20px 0;
}

.account-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.account-checkbox input {
  width: auto;
  margin: 0;
  accent-color: #5f7f2c;
}

.saved-address-panel {
  margin-top: 18px;
  scroll-margin-top: 110px;
}

.saved-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.saved-address-card {
  padding: 19px;
  border: 1px solid #e2e8dc;
  border-radius: 16px;
  background: #fbfcf9;
}

.saved-address-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.saved-address-card > div > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-address-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf4e3;
  color: #5f7f2c;
}

.saved-address-card h3 {
  margin: 0 0 5px;
  font-size: .88rem;
  font-weight: 850;
}

.account-delete-button {
  margin-top: 13px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #feeaea;
  color: #a43c3c;
  font-size: .7rem;
  font-weight: 800;
}

.account-empty-state {
  padding: 34px 20px;
  color: #748077;
  text-align: center;
}

.account-empty-state > i {
  color: #9ab86a;
  font-size: 2.5rem;
}

.account-empty-state h2,
.account-empty-state h3 {
  margin: 10px 0 5px;
  color: #26342a;
  font-size: 1.05rem;
  font-weight: 850;
}

.account-empty-state p {
  margin-bottom: 17px;
  font-size: .78rem;
}

.account-empty-state a {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 10px;
  background: #5f7f2c;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}

.account-empty-state.compact {
  grid-column: 1 / -1;
  padding: 24px;
}

.order-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.order-filter-tabs::-webkit-scrollbar {
  display: none;
}

.order-filter-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #dfe7d5;
  border-radius: 10px;
  background: #ffffff;
  color: #627066;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}

.order-filter-tabs a.active {
  border-color: #5f7f2c;
  background: #5f7f2c;
  color: #ffffff;
}

.customer-order-list {
  padding: 8px 24px;
}

.customer-order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 17px;
  padding: 19px 0;
  border-bottom: 1px solid #edf0e9;
  color: #26342a;
  text-decoration: none;
}

.customer-order-row:last-child {
  border-bottom: 0;
}

.customer-order-row p {
  margin: 4px 0 0;
  color: #89928b;
  font-size: .72rem;
}

.customer-order-row > strong {
  color: #527226;
  font-size: .84rem;
}

@media (max-width: 991px) {
  .account-overview-grid,
  .account-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .account-dashboard-page {
    padding: 38px 0 75px;
  }

  .account-page-heading {
    align-items: flex-start;
  }

  .account-page-heading h1 {
    font-size: 2rem;
  }

  .account-profile-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 22px;
  }

  .account-outline-button {
    grid-column: 1 / -1;
  }

  .account-avatar {
    width: 72px;
    height: 72px;
    border-width: 5px;
    font-size: 1.2rem;
  }

  .account-profile-copy h2 {
    font-size: 1.18rem;
  }

  .account-profile-copy p {
    display: flex;
    margin: 3px 0;
    font-size: .72rem;
  }

  .account-metric-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 8px;
    text-align: center;
  }

  .account-metric-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .account-metric-card strong {
    font-size: 1.05rem;
  }

  .account-metric-card small {
    font-size: .64rem;
  }

  .account-panel {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .order-status-grid {
    gap: 3px;
  }

  .order-status-item {
    padding: 13px 2px;
  }

  .order-status-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 1.25rem;
  }

  .order-status-item strong {
    font-size: .67rem;
  }

  .order-status-item small {
    font-size: .58rem;
  }

  .account-order-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
  }

  .account-order-total {
    grid-column: 2;
    justify-content: space-between;
  }

  .account-order-copy > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .saved-address-grid {
    grid-template-columns: 1fr;
  }

  .customer-order-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
  }

  .customer-order-row .account-status-badge,
  .customer-order-row > strong {
    grid-column: 2;
  }

  .customer-order-row > .bi-chevron-right {
    grid-column: 3;
    grid-row: 1 / 4;
  }
}

@media (max-width: 575px) {
  .account-page-heading {
    display: block;
  }

  .account-heading-link {
    display: inline-flex;
    margin-top: 12px;
  }

  .account-metrics {
    gap: 8px;
  }

  .account-profile-card,
  .account-panel,
  .account-form-panel {
    box-shadow: 0 10px 28px rgba(43, 67, 45, .07);
  }

  .account-panel-heading h2 {
    font-size: 1.08rem;
  }

  .account-form-panel .checkout-fields {
    grid-template-columns: 1fr;
  }

  .account-form-panel .checkout-fields .full {
    grid-column: auto;
  }

  .customer-order-list {
    padding: 6px 15px;
  }
}
