/* =====================================================
   JYSAM Healthcare - Main Stylesheet
   Primary: Teal #0f9b8e, Dark: #1e3c72, Accent: #2ecc71
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #0f9b8e;
  --primary-dark: #0a7a6f;
  --primary-light: #d4f5f2;
  --secondary: #1e3c72;
  --secondary-dark: #162d54;
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-700: #495057;
  --gray-900: #212529;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0f9b8e 0%, #1e3c72 100%);
  --gradient-rev: linear-gradient(135deg, #1e3c72 0%, #0f9b8e 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--gray-900);
  background: #f4f6f9;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input,
textarea,
select {
  outline: none;
  font-family: inherit;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.7;
  color: var(--gray-700);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ====================================================
   TOP CONTACT BAR
   ==================================================== */
.top-bar {
  background: var(--gradient);
  color: white;
  font-size: 13px;
  padding: 7px 0;
  position: relative;
  z-index: 1000;
}

.top-bar-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 10px 0;
  }

  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .top-bar-inner>div {
    width: 100%;
  }

  .top-bar .divider {
    display: none;
  }
}

.top-bar a {
  color: white;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar .divider {
  margin: 0 10px;
  opacity: 0.4;
}

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.logo-text .brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.logo-text .sub {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.search-box {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 50px 11px 18px;
  border-radius: 30px;
  border: 2px solid var(--gray-200);
  font-size: 14px;
  background: var(--gray-100);
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 155, 142, 0.1);
}

.search-box .search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.search-box .search-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 11px;
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
}

.header-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-btn i {
  font-size: 18px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.main-nav {
  background: var(--secondary);
  position: sticky;
  top: 68px;
  z-index: 998;
}

.nav-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-inner a {
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: block;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-inner a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.nav-inner a:hover,
.nav-inner a.active {
  color: white;
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
  width: 70%;
}

.hamburger {
  display: none;
  color: white;
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
}

/* ====================================================
   SECTION COMMONS
   ==================================================== */
.section {
  padding: 60px 0;
}

.section-sm {
  padding: 40px 0;
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--dark);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--gray-500);
  font-size: 15px;
}

.section-title .title-line {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ====================================================
   HERO SLIDER
   ==================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  padding: 40px 10%;
  position: relative;
  overflow: hidden;
}

.slide-1 {
  background: linear-gradient(135deg, #0f9b8e 0%, #1e3c72 100%);
}

.slide-2 {
  background: linear-gradient(135deg, #1e3c72 0%, #2c5364 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 520px;
}

.slide-content .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.slide-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: white;
  margin-bottom: 12px;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  font-size: 15px;
}

.slide-img {
  position: absolute;
  right: 5%;
  bottom: 0;
  max-height: 90%;
  opacity: 0.25;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
  font-size: 16px;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(15, 155, 142, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  opacity: 0.85;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .hero-btns {
    justify-content: center;
  }
}

.btn-block {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ====================================================
   CATEGORY CARDS
   ==================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card .icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .icon {
  background: var(--gradient);
  color: white;
}

.category-card h4 {
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

/* ====================================================
   PRODUCT CARDS
   ==================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-img {
  width: 100%;
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.product-badge.green {
  background: var(--accent);
}

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--gray-700);
  font-size: 14px;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--primary);
  color: white;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  padding-bottom: 16px;
}

.price-sale {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.price-orig {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: line-through;
}

.price-off {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

.add-cart-btn {
  width: 100%;
  padding: 9px;
  background: var(--gradient);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
}

.add-cart-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.view-details-btn {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 10px;
  padding: 8px 0;
  transition: var(--transition);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--primary-light);
}

.view-details-btn:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.rx-badge {
  font-size: 10px;
  background: #fff3e0;
  color: #e65100;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
}

/* ====================================================
   PRESCRIPTION UPLOAD SECTION
   ==================================================== */
.prescription-section {
  background: var(--gradient);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.prescription-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.rx-upload-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.rx-upload-box:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.rx-upload-box i {
  font-size: 3rem;
  color: white;
  margin-bottom: 12px;
}

.rx-upload-box h3 {
  color: white;
  margin-bottom: 6px;
}

.rx-upload-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

/* Product Page RX Upload */
.product-rx-upload {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  transition: var(--transition);
}

.product-rx-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.rx-upload-label {
  cursor: pointer;
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--gray-700);
}

.rx-upload-label i {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.product-rx-upload.uploaded {
  border-style: solid;
  border-color: var(--accent);
  background: #f0fff4;
}

.product-rx-upload.uploaded .rx-upload-label i {
  color: var(--accent);
}

/* Prescription Grid */
.rx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .rx-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .rx-grid ul {
    align-items: center;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ====================================================
   BRANDS SECTION
   ==================================================== */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.brand-chip {
  background: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--secondary);
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.brand-chip:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ====================================================
   BLOG CARDS
   ==================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--gray-200);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-body {
  padding: 20px;
}

.blog-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-body p {
  font-size: 13px;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ====================================================
   TESTIMONIALS
   ==================================================== */
.testimonials-section {
  background: var(--gray-100);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.testi-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 5rem;
  color: var(--primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}

.testi-stars {
  color: #f1c40f;
  margin-bottom: 12px;
}

.testi-card p {
  font-size: 14px;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 16px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.testi-author h5 {
  font-size: 14px;
  font-weight: 600;
}

.testi-author span {
  font-size: 12px;
  color: var(--gray-500);
}

/* ====================================================
   APP DOWNLOAD SECTION
   ==================================================== */
.app-section {
  background: var(--secondary);
  color: white;
}

.app-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.app-content {
  flex: 1;
  min-width: 280px;
}

.app-content h2 {
  color: white;
  margin-bottom: 12px;
}

.app-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.app-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  transition: var(--transition);
  font-size: 13px;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.app-btn i {
  font-size: 24px;
}

.app-btn .label {
  font-size: 10px;
  opacity: 0.7;
  display: block;
}

.app-btn .store {
  font-size: 15px;
  font-weight: 700;
  display: block;
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-col p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo .logo-icon {
  background: var(--gradient);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.footer-logo .brand {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-address-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-address-item i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom span {
  color: var(--primary);
}

/* ====================================================
   MOBILE BOTTOM NAV
   ==================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0 4px;
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.mob-nav-btn.active,
.mob-nav-btn:hover {
  color: var(--primary);
}

.mob-nav-btn i {
  font-size: 20px;
}

/* ====================================================
   MEDICINES LISTING PAGE
   ==================================================== */
.listing-layout {
  display: flex;
  gap: 24px;
}

.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.filter-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.filter-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-700);
  cursor: pointer;
}

.filter-list input[type=checkbox] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.price-range-slider {
  width: 100%;
  accent-color: var(--primary);
}

.products-area {
  flex: 1;
}

.listing-toolbar {
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.sort-select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-700);
  background: var(--gray-100);
}

/* ====================================================
   PRODUCT DETAIL PAGE
   ==================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.product-gallery {
  position: sticky;
  top: 140px;
}

@media (max-width: 1024px) {
  .product-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-main {
    height: 300px;
  }

  .med-tabs {
    padding: 0 10px;
  }
}

.gallery-main {
  background: white;
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-main img {
  max-height: 100%;
  object-fit: contain;
  padding: 20px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  /* Firefox */
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.thumb.active {
  border-color: var(--primary);
}

.thumb img {
  max-height: 100%;
  object-fit: contain;
}

.product-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.med-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 0;
  border-bottom: 2px solid var(--gray-200);
  scrollbar-width: none;
}

.med-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  flex-shrink: 0;
}

.tab-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.tab-pane {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tab-pane.active {
  display: block;
}

/* ====================================================
   CART PAGE
   ==================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.cart-table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-table table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--gray-100);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.cart-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--gray-100);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.qty-stepper button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  transition: var(--transition);
}

.qty-stepper button:hover {
  background: var(--primary-light);
}

.qty-stepper input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  font-size: 14px;
}

.order-summary-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 140px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}

.coupon-input {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.coupon-input input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: 13px;
}

/* ====================================================
   CHECKOUT PAGE
   ==================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.form-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.form-card h3 i {
  color: var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  transition: var(--transition);
  background: var(--gray-100);
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-option input[type=radio] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.payment-option i {
  font-size: 22px;
  color: var(--primary);
  width: 28px;
  text-align: center;
}

.payment-option .pay-label {
  font-weight: 600;
  font-size: 14px;
}

.payment-option .pay-sub {
  font-size: 12px;
  color: var(--gray-500);
}

/* ====================================================
   AUTH PAGES
   ==================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .logo-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  margin: 0 auto 10px;
}

.auth-logo h2 {
  margin-bottom: 4px;
}

.auth-logo p {
  font-size: 14px;
  color: var(--gray-500);
}

.divider-or {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--gray-500);
  font-size: 13px;
}

.divider-or::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.divider-or span {
  background: white;
  padding: 0 12px;
  position: relative;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-700);
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
}

/* ====================================================
   DASHBOARD PAGE
   ==================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
}

.dash-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 140px;
}

.dash-user {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 10px;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  font-weight: 700;
  margin: 0 auto 10px;
}

.dash-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dash-user h4 {
  font-size: 15px;
  font-weight: 700;
}

.dash-user span {
  font-size: 12px;
  color: var(--gray-500);
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
}

.dash-nav a:hover,
.dash-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 24px;
}

.dash-nav a i {
  width: 18px;
}

.dash-main-content {
  flex: 1;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}

.stat-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.stat-card p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ====================================================
   BLOG PAGE
   ==================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.blog-sidebar {
  height: fit-content;
  position: sticky;
  top: 140px;
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.blog-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.blog-content p {
  margin-bottom: 16px;
}

.blog-content h2,
.blog-content h3 {
  margin: 24px 0 12px;
}

/* ====================================================
   CONTACT PAGE
   ==================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
}

.contact-info-card h2 {
  color: white;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h5 {
  color: white;
  font-size: 13px;
  margin-bottom: 3px;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
}

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  background: var(--gray-200);
  margin-top: 20px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ====================================================
   BREADCRUMB
   ==================================================== */
.breadcrumb-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--gray-300);
}

/* ====================================================
   ALERTS / TOAST
   ==================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid var(--accent);
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--danger);
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid var(--info);
}

#toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--dark);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.success {
  border-left: 4px solid var(--accent);
}

#toast.error {
  border-left: 4px solid var(--danger);
}

/* ====================================================
   PAGE BANNER
   ==================================================== */
.page-banner {
  background: var(--gradient);
  padding: 40px 0;
  color: white;
  text-align: center;
}

.page-banner h1 {
  color: white;
  margin-bottom: 6px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.75);
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.text-danger {
  color: var(--danger);
}

.text-muted {
  color: var(--gray-500);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.fw-bold {
  font-weight: 700;
}

.fw-600 {
  font-weight: 600;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

.p-3 {
  padding: 24px;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.w-100 {
  width: 100%;
}

.hidden {
  display: none !important;
}

.rounded {
  border-radius: var(--radius);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

/* ====================================================
   SKELETON LOADING
   ==================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 10px;
  }

  .search-box {
    order: 3;
    max-width: 100%;
  }

  .header-btn span {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-inner a {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .slide {
    padding: 30px 5%;
    height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .listing-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 65px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-img {
    height: 140px;
  }

  .product-body {
    padding: 10px;
  }

  .product-name {
    font-size: 13px;
    height: 3.2em;
  }

  .price-sale {
    font-size: 15px;
  }

  .add-cart-btn {
    font-size: 11px;
    padding: 7px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide {
    height: auto;
    min-height: 350px;
    padding: 40px 20px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .app-inner {
    flex-direction: column;
  }
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* ====================================================
   ANIMATION CLASSES
   ==================================================== */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

.loader {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ====================================================
   PC-ONLY HORIZONTAL PRODUCT ADJUSTMENT
   ==================================================== */
/* Extra Professional Grid Adjustments */
@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
  }

  /* Listing layout has a sidebar, so we use 4 columns instead of 5 for better spacing */
  .listing-layout .products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .product-card {
    flex-direction: column !important;
    height: 100% !important;
    border-right: none !important;
  }

  .product-img {
    width: 100% !important;
    height: 180px !important;
    border-right: none !important;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

.product-card-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  color: var(--primary);
}

/* ====================================================
     ABOUT US PAGE (VIBRANT REDESIGN)
     ==================================================== */
.about-page {
  padding: 80px 0;
  background: #f8fbff;
}

.about-header {
  text-align: center;
  margin-bottom: 70px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.about-header p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gray-700);
  font-weight: 400;
  line-height: 1.4;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(15, 155, 142, 0.05);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(15, 155, 142, 0.12);
  border-color: rgba(15, 155, 142, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 25px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(15, 155, 142, 0.1);
}

.service-card:hover .icon-wrapper {
  background: var(--gradient);
  color: white;
  transform: rotate(10deg);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary);
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.about-intro-box {
  background: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 90px;
  position: relative;
  border-left: 8px solid var(--primary);
}

.about-intro-box p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--secondary);
  font-weight: 400;
  margin: 0;
}

.leadership-section {
  text-align: center;
}

.leadership-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.leadership-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.leadership-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.leader-item {
  width: 280px;
  transition: var(--transition);
}

.leader-photo-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
  padding: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition);
}

.leader-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient);
  border-radius: 50%;
  z-index: -1;
  transition: var(--transition);
}

.leader-item:hover .leader-photo-wrapper {
  transform: translateY(-8px) scale(1.05);
}

.leader-item:hover .leader-photo-wrapper::before {
  inset: -5px;
  filter: blur(2px);
}

.leader-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  transition: var(--transition);
}

.leader-item:hover .leader-photo {
  transform: scale(1.05);
}

.leader-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leader-item span {
  display: block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .about-page {
    padding: 60px 0;
  }

  .about-intro-box {
    padding: 30px;
  }

  .about-intro-box p {
    font-size: 15px;
  }

  .leader-item {
    width: 100%;
  }

  .leadership-row {
    gap: 40px;
  }
}

/* Prescription Warning */
.prescription-warning {
  background: #fff9db; 
  border: 1px solid #ffe066;
  color: #856404;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(243, 156, 18, 0.08);
}
.prescription-warning i {
  font-size: 20px;
  color: var(--warning);
}
