﻿/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}



/* HEADER TOP */
.header-top {
  background: #dc0e2f;
  color: white;
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
  transition: padding 0.25s ease, transform 0.25s ease;
}

.header-top:hover {
  padding: 1rem 0;
}

.promo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: #dc0e2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.header-top:hover .promo-icon {
  transform: scale(1.08);
}

.promo-text {
  text-align: left;
}

.promo-message {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.promo-subtext {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.header-top a {
  color: white;
  text-decoration: none;
}

/* NAV */
nav {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f2f66;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  text-transform: lowercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.logo-text strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a.active, .nav-links a:hover {
  color: #1a365d;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-nav {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}

.search-nav svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.search-nav input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 180px;
}


.btn-secondary {
  background: #e2e8f0;
  color: #1a365d;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-link {
  background: transparent;
  border: none;
  color: #0f2f66;
  font-weight: 700;
  cursor: pointer;
}

.btn-link:hover {
  color: #d71c3e;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.cart-btn {
  background: #1a365d;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}


.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f8fafc;
  color: #0f2f66;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.category-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ffffff;
  color: #d71c3e;
  font-size: 0.95rem;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.hero p {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}



.btn-light {
  background: white;
  color: #1a365d;
  border: 2px solid #1a365d;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-light:hover {
  background: #1a365d;
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline-light:hover {
  background: white;
  color: #1a365d;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* CATEGORIES */
.categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cat-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.cat-btn.active, .cat-btn:hover {
  background: #1a365d;
  color: white;
  border-color: #1a365d;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a365d;
  font-family: 'Poppins', sans-serif;
}

.view-all {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-rx {
  background: #fef3c7;
  color: #d97706;
}

.badge-sale {
  background: #fee2e2;
  color: #dc2626;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.product-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1a365d;
}

.add-btn {
  background: #1a365d;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.add-btn:hover {
  background: #2d3748;
}

/* INFO CARDS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 1rem;
}

.info-card p {
  color: #64748b;
}

/* PRESCRIPTION SECTION */
.prescription-section {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 4rem;
}

.prescription-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.prescription-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: #ef4444;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #dc2626;
}

/* FOOTER */
footer {
  background: #1a365d;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2d3748;
  color: #94a3b8;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a365d;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.subtitle {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #dc2626;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* PRODUCT MODAL */
.modal-product {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-modal-image {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-modal-gallery {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.gallery-btn {
  background: #e2e8f0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.product-modal-right {
  display: flex;
  flex-direction: column;
}

.product-modal-badge {
  margin-bottom: 1rem;
}

.product-modal-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.5rem;
}

.product-modal-category {
  color: #64748b;
  margin-bottom: 1rem;
}

.product-modal-prices {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.9rem;
  color: #64748b;
}

.price-value {
  font-weight: 700;
  font-size: 1.2rem;
}

.before-price {
  text-decoration: line-through;
  color: #64748b;
}

.now-price {
  color: #1a365d;
}

.product-modal-coupon {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-icon {
  font-size: 1.5rem;
}

.coupon-text {
  font-weight: 600;
  color: #d97706;
}

.product-modal-description {
  margin-bottom: 1.5rem;
  color: #374151;
}

.product-modal-features h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 1rem;
}

.product-modal-features ul {
  list-style: none;
  padding: 0;
}

.product-modal-features li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.product-modal-delivery h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 1rem;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delivery-option {
  border: 2px solid #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.delivery-option.selected {
  border-color: #1a365d;
}

.product-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-favorite {
  background: #e2e8f0;
  color: #64748b;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.btn-favorite:hover {
  background: #cbd5e1;
}

.product-modal-seller {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.9rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

/* LOGIN MODAL */
.modal-login {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
}

.modal-backdrop.fullscreen {
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  padding: 2rem 1rem 3rem;
}

.modal.modal-fullscreen {
  width: 100%;
  max-width: 820px;
  min-height: calc(100vh - 4rem);
  max-height: calc(100vh - 4rem);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  padding: 2rem 2.5rem;
}

.modal.modal-fullscreen .login-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal.modal-fullscreen .login-icon {
  display: none;
}

.modal.modal-fullscreen .login-header h2 {
  font-size: 2rem;
}

.modal.modal-fullscreen .login-subtitle {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal.modal-fullscreen .login-social {
  margin-bottom: 2rem;
}

.modal.modal-fullscreen .login-divider {
  margin: 2rem 0;
}

.modal.modal-fullscreen .login-email {
  margin-bottom: 1.5rem;
}

.modal.modal-fullscreen .form-row {
  gap: 1rem;
}

.modal.modal-fullscreen .form-group {
  margin-bottom: 1rem;
}

.modal.modal-fullscreen .form-group input,
.modal.modal-fullscreen .form-group select {
  min-height: 3rem;
}

.modal.modal-fullscreen .btn-primary {
  width: 100%;
  padding: 1rem;
}

.modal.modal-fullscreen .login-links {
  margin-bottom: 1rem;
}

.modal.modal-fullscreen .modal-close-btn {
  top: 1.5rem;
  right: 1.5rem;
}


.login-header {
  text-align: center;
  position: relative;
  margin-bottom: 1.2rem;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.login-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0;
}

.login-subtitle {
  color: #334155;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.login-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #1c3b72;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s;
  background: #ffffff;
  color: #1c3b72;
  text-transform: none;
  box-shadow: inset 0 0 0 0 transparent;
}

.btn-social:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.btn-social span {
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-facebook {
  background: #f0f9ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.btn-facebook:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.btn-google {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.btn-google:hover {
  background: #fed7aa;
  border-color: #fb923c;
}

.btn-apple {
  background: #f5f5f5;
  border-color: #d1d5db;
  color: #374151;
}

.btn-apple:hover {
  background: #e5e5e5;
  border-color: #9ca3af;
}

.btn-email {
  background: #ffffff;
  border-color: #16a34a;
  color: #16a34a;
  font-weight: 700;
}

.btn-email:hover {
  background: #dcfce7;
  border-color: #16a34a;
}

.login-email {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.login-email.active {
  display: block;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(6px);}
  to {opacity: 1; transform: translateY(0);}
}

.btn-social span {
  font-weight: 700;
  font-size: 1.2rem;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #cbd5e1;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.login-divider span {
  padding: 0 1rem;
  font-weight: 600;
  color: #64748b;
}

.login-email {
  margin-bottom: 1rem;
}

.login-links {
  text-align: center;
  margin-bottom: 1rem;
}

.login-links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.terms-section {
  margin-bottom: 1.5rem;
}

.terms-text {
  margin-bottom: 0.85rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.terms-text a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.terms-text a:hover {
  text-decoration: underline;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.8rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.35rem 0;
}

.checkbox-group input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0 0;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.checkbox-group span {
  display: block;
  flex: 1;
  min-width: 0;
}

.checkbox-group a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-links p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #374151;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-center {
    width: 100%;
    order: 2;
    margin: 0.75rem 0;
    justify-content: center;
  }

  .search-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .category-strip {
    padding: 0.75rem 1rem 1rem;
  }
}

@media (max-width: 768px) {
  /* HEADER TOP */
  .header-top {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .promo-text {
    justify-content: center;
  }

  .nav-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .logo-text {
    align-items: center;
  }

  /* NAV */
  nav {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-center {
    order: 2;
    width: 100%;
    margin: 0.75rem 0;
  }

  .nav-right {
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .search-nav {
    width: 100%;
    padding: 0.5rem 0.85rem;
    justify-content: flex-start;
  }

  .btn-secondary {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }

  .cart-btn {
    padding: 0.5rem;
    font-size: 1rem;
  }

  .category-strip {
    padding: 0.75rem 1rem 1rem;
  }

  .category-item {
    flex: 1 1 45%;
    justify-content: center;
  }

  /* HERO */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-light, .btn-outline-light {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* MAIN */
  main {
    padding: 1rem;
  }

  /* CATEGORIES */
  .categories {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .cat-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* PRODUCTS GRID */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-img {
    height: 150px;
    font-size: 3rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-desc {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .add-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  /* INFO CARDS */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-icon {
    font-size: 2.5rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  /* PRESCRIPTION SECTION */
  .prescription-section {
    padding: 3rem 1rem;
  }

  .prescription-section h2 {
    font-size: 2rem;
  }

  .prescription-section p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* FOOTER */
  footer {
    padding: 3rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  /* TOAST */
  .toast {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  /* MODAL */
  .modal {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal h3 {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .form-group input {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

/* CHAT WIDGET */
.chat-widget {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 1500 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.chat-bubble {
  width: 320px;
  max-width: calc(100vw - 3rem);
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
}

.chat-widget.open .chat-bubble {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-header-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.85rem;
  background: #1a365d;
  color: white;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-header-widget span {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
}

.chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  background: #f8fafc;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: #1f2937;
  font-size: 0.95rem;
}

.chat-msg.bot {
  background: #eef2ff;
  color: #1a365d;
}

.chat-options {
  display: grid;
  gap: 0.75rem;
}

.chat-option-btn {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: #0f172a;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-option-btn:hover {
  background: #f8fafc;
}

.chat-toggle-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #ef4444 !important;
  color: white !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  font-size: 1.45rem !important;
  box-shadow: 0 16px 30px rgba(0,0,0,0.22) !important;
  z-index: 1501 !important;
  padding: 0 !important;
  min-width: 56px !important;
  min-height: 56px !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.chat-toggle-btn:hover {
  background: #dc2626 !important;
}

.chat-toggle-btn:active {
  transform: scale(0.95);
}

.chat-notif {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 480px) {
  .chat-bubble {
    width: min(100vw - 2rem, 300px);
  }
}

  /* PRODUCT MODAL */
  .modal-product {
    width: 95%;
    margin: 1rem;
  }

  .product-modal-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-modal-name {
    font-size: 1.5rem;
  }

  .product-modal-prices {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .prescription-section h2 {
    font-size: 1.8rem;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .footer-col h4 {
    font-size: 1rem;
  }
}

/* CART MODAL */
.modal-cart {
  max-width: 500px;
  width: 95%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 6px;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-weight: 600;
  color: #1a365d;
  font-size: 0.95rem;
}

.cart-item-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.price-now {
  color: #1a365d;
  font-weight: 700;
  font-size: 1.05rem;
}

.price-old {
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: line-through;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.cart-summary-discount span:last-child {
  color: #dc2626;
}

.cart-summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
  background: #f8fafc;
}

.total-price {
  color: #ef4444;
}

.qty-btn {
  background: #e2e8f0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #cbd5e1;
}

.qty-display {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-item-remove:hover {
  background: #fecaca;
}

.cart-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
  background: #f8fafc;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

.total-price {
  color: #ef4444;
}

.hidden {
  display: none !important;
}

.checkout-page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a365d;
  font-weight: 700;
}

.checkout-logo {
  width: 80px;
  height: auto;
}

.checkout-brand {
  gap: 1rem;
  font-size: 1.2rem;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-right: 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
}

.checkout-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 40px;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.checkout-step:last-child::after {
  display: none;
}

.checkout-step span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.75rem;
}

.checkout-step.completed span {
  background: #1a365d;
  color: white;
}

.checkout-step.active span {
  background: #111827;
  color: white;
}

.checkout-step.active {
  color: #111827;
  font-weight: 700;
}

.checkout-step.completed {
  color: #475569;
}

.checkout-step small {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.checkout-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #1a365d;
  font-weight: 700;
  font-size: 1.2rem;
}

.checkout-logo {
  width: 90px;
  height: auto;
  object-fit: contain;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-right: 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
}

.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 45px;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.step:last-child::after {
  display: none;
}

.step span {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.75rem;
}

.step.completed span {
  background: #1a365d;
  color: white;
}

.step.active span {
  background: #111827;
  color: white;
}

.step.active {
  color: #111827;
  font-weight: 700;
}

.step.completed {
  color: #475569;
}

.step:hover {
  transform: none;
}

.step small {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.checkout-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 1.5rem;
}

.checkout-left,
.checkout-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkout-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
}

.checkout-card-title h2 {
  margin-bottom: 0.25rem;
  color: #1a365d;
  font-size: 1.5rem;
}

.checkout-card-title p {
  color: #64748b;
  font-size: 0.95rem;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checkout-form-grid .form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: 1 / -1;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.35rem 0;
}

.checkbox-group input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0 0;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.optional {
  color: #94a3b8;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.checkout-step-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.checkout-table-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: #475569;
  font-size: 0.95rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.75rem;
}

.checkout-table-header span {
  font-weight: 700;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a365d;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.checkout-email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error-text {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.input-error {
  border-color: #dc2626 !important;
}

.email-info-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1rem;
  color: #1e3a8a;
}

.email-info-box p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.email-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.email-info-box li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.email-info-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #1a365d;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #1a365d;
  text-decoration: none;
  font-size: 0.95rem;
}

.checkout-step-cards {
  padding: 1rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #1a365d;
  font-weight: 600;
}

.step-card span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #1a365d;
  font-weight: 700;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.checkout-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.checkout-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.checkout-item-image {
  width: 80px;
  min-width: 80px;
  height: 80px;
  background: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-item-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.5rem;
}

.checkout-item-quantity button {
  width: 26px;
  height: 26px;
  border: none;
  background: #f8fafc;
  color: #1a365d;
  font-size: 1.15rem;
  border-radius: 8px;
  cursor: pointer;
}

.checkout-item-quantity span {
  font-weight: 700;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.checkout-item-name {
  font-weight: 600;
  color: #1a365d;
  font-size: 0.95rem;
}

.checkout-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: #1a365d;
}

.checkout-item-price .price-now {
  font-size: 1rem;
  font-weight: 700;
}

.checkout-item-price .price-old {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: line-through;
}

.checkout-item-remove {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  cursor: pointer;
}

.checkout-item-remove:hover {
  color: #b91c1c;
}

.coupon-card h3,
.summary-card {
  margin-bottom: 1rem;
}

.coupon-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.coupon-group input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
}

.coupon-card button {
  min-width: 100px;
}

.coupon-helper {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.coupon-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.coupon-message.success {
  color: #16a34a;
}

.coupon-message.warning {
  color: #b91c1c;
}

.summary-row,
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.total-row {
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: none;
  margin-top: 0.5rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

.checkout-gift {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gift-header {
  font-weight: 700;
  color: #1a365d;
}

.gift-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #eef2ff;
  border-radius: 12px;
  padding: 1rem;
}

.gift-image {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
}

.gift-name {
  font-weight: 600;
  color: #1a365d;
}

.gift-text {
  color: #64748b;
  font-size: 0.95rem;
}

.gift-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #1a365d;
  color: white;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .checkout-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .checkout-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-stepper {
    justify-content: flex-start;
  }
}

/* RESPONSIVE - CART */
@media (max-width: 600px) {
  .modal-cart {
    max-width: 100%;
    width: 95%;
    max-height: 90vh;
  }

  .cart-item {
    gap: 0.75rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .cart-item-name {
    font-size: 0.85rem;
  }
}