.loader-spinner {
  -webkit-animation: spin 2s linear infinite !important;
  animation: spin 2s linear infinite !important;
}



.order-confirm {
  width: 17%;
}

.courier {
  width: 40%;
}

.way {
  width: 62%;
}

.pickup {
  width: 100%;
}

.cate-menu-active {
  color: var(--primary) !important;
}

.search {
  position: relative;
}

.search input {
  line-height: 1.8rem;
  text-indent: 25px;
  border-radius: 30px;
  background-color: transparent;
}

.search input:focus {
  border: 2px solid var(--primary);
}

.search .fa-search {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  transition: 0.4s ease;
  color: var(--gray-3);
}

.search .fa-search:hover {
  color: var(--primary);
  transform: scale(1.05) translateY(-50%);
}

.search button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 35px;
  width: 60px;
  background: var(--primary);
}

.newsletter-submit {
  overflow: inherit !important;
}

.input-group-news {
  position: relative;
  background-color: var(--primary-light);
  margin-bottom: 2rem;
  border-radius: 50px;
  border: 1px solid var(--primary-light-border);
}

.input-group-news input {
  border: 0.1rem solid transparent;
  background-color: var(--primary-light);
  border-radius: 50px;
  -webkit-border-radius: 50px;
  width: 100%;
  padding: 1.5rem 10rem 1.5rem 2rem;
  box-sizing: border-box;
  font-size: 1.4rem;
  background-color: transparent;
  color: var(--gray-1);
}

[dir=rtl] .input-group-news input {
  padding: 1.5rem 12rem 1.5rem 2rem;
}

.input-group-news .input-group-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}

.input-group-news .input-group-btn .btn {
  background: var(--primary);
  color: var(--text-primary);
  font-size: 1.4rem;
  min-height: 40px;
  height: 40px;
  min-width: 95px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
}

.input-group-news input:focus {
  outline: none;
  border-color: var(--primary);
  transition: border-color 0.2s ease-in-out;
}

.order-product-details h5 a {
  color: inherit !important;
}


[dir="rtl"] .noUi-horizontal .noUi-handle {
  right: auto;
  left: 0;
  /* ensure handles align correctly */
}

/* ====================================================
   BAHRAIN PHARMACY THEME STYLES (MATCHING SCREENSHOT)
   ==================================================== */

:root {
  --pharmacy-red: var(--primary, #C41A49);
  --pharmacy-red-dark: var(--primary-dark, #A6163E);
  --pharmacy-red-light: var(--primary-light, rgba(196, 26, 73, 0.08));
  --pharmacy-red-border: var(--primary-border, rgba(196, 26, 73, 0.25));
  --pharmacy-dark: var(--secondary, #1A202C);
  --pharmacy-gray-50: #F8FAFC;
  --pharmacy-gray-100: #F1F5F9;
  --pharmacy-gray-200: #E2E8F0;
  --pharmacy-gray-600: #475569;
  --pharmacy-gray-800: #1E293B;
  --pharmacy-green: #10B981;
  --pharmacy-amber: #F59E0B;
}

/* Top Announcement Bar */
.pharmacy-topbar {
  background-color: var(--pharmacy-red-dark);
  color: #ffffff;
  font-size: 12.5px;
  padding: 7px 0;
  font-weight: 500;
}

.pharmacy-topbar a {
  color: #ffffff;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.pharmacy-topbar a:hover {
  opacity: 0.85;
  color: #ffffff;
}

.pharmacy-topbar .divider {
  opacity: 0.4;
  margin: 0 8px;
}

/* Pharmacy Main Header */
.pharmacy-main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--pharmacy-gray-200);
  padding: 4px 0 !important;
  position: relative !important;
  z-index: 1060 !important;
}

.pharmacy-logo-col {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  flex-shrink: 0 !important;
}

.pharmacy-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  height: 68px;
}

@media (max-width: 991.98px) {
  .pharmacy-logo-col {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
  }

  .pharmacy-brand-logo {
    height: 52px;
    justify-content: flex-start;
  }
}

.pharmacy-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--pharmacy-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(229, 38, 54, 0.25);
}

.pharmacy-site-logo-img {
  max-height: 68px !important;
  height: 68px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 767px) {
  .pharmacy-site-logo-img {
    max-height: 52px !important;
    height: 52px !important;
  }
}

.pharmacy-site-logo-img-footer {
  max-height: 64px;
}

.pharmacy-brand-title {
  display: flex;
  flex-direction: column;
}

.pharmacy-brand-title .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--pharmacy-dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.pharmacy-brand-title .brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--pharmacy-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Search Bar & Live Search Popup (Front of Header Bar) */
.pharmacy-search-box {
  position: relative !important;
  width: 100%;
  z-index: 1060 !important;
}

.live-search {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

.pharmacy-search-box input {
  width: 100%;
  height: 46px;
  background: var(--pharmacy-gray-50);
  border: 1.5px solid var(--pharmacy-gray-200);
  border-radius: 25px;
  padding: 0 45px 0 45px;
  font-size: 13.5px;
  color: var(--pharmacy-dark);
  transition: all 0.25s ease;
}

.pharmacy-search-box input:focus {
  border-color: var(--pharmacy-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 38, 54, 0.12);
  outline: none;
}

.pharmacy-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 15px;
}

[dir="rtl"] .pharmacy-search-box input {
  padding: 0 45px 0 45px;
}

[dir="rtl"] .pharmacy-search-box .search-icon {
  right: 18px;
  left: auto;
}

/* Location Selector Button */
.pharmacy-location-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--pharmacy-gray-50);
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pharmacy-location-btn:hover {
  background: var(--pharmacy-red-light);
  border-color: var(--pharmacy-red-border);
}

.pharmacy-location-btn .loc-icon {
  color: var(--pharmacy-red);
  font-size: 16px;
}

.pharmacy-location-btn .loc-text {
  text-align: left;
}

.pharmacy-location-btn .loc-sub {
  font-size: 10.5px;
  color: #64748B;
  display: block;
  line-height: 1.1;
}

.pharmacy-location-btn .loc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  line-height: 1.2;
}

/* Header Actions */
.pharmacy-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pharmacy-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pharmacy-dark);
  text-decoration: none;
  position: relative;
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.pharmacy-action-link:hover {
  color: var(--pharmacy-red);
}

.pharmacy-action-link i {
  font-size: 20px;
  margin-bottom: 2px;
}

.pharmacy-action-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  background: var(--pharmacy-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Bar */
.pharmacy-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--pharmacy-gray-200);
}

.pharmacy-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pharmacy-category-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--pharmacy-dark);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
}

.pharmacy-category-dropdown-btn i {
  color: var(--pharmacy-red);
}

.pharmacy-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pharmacy-nav-links a {
  color: var(--pharmacy-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0;
  display: inline-block;
  transition: color 0.2s;
}

.pharmacy-nav-links a:hover,
.pharmacy-nav-links a.active {
  color: var(--pharmacy-red);
}

.pharmacy-nav-links a.offers-link {
  color: var(--pharmacy-red);
  font-weight: 700;
}

/* Hero Section */
.pharmacy-hero-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--pharmacy-gray-200);
}

.pharmacy-hero-content {
  max-width: 580px;
}

.pharmacy-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--pharmacy-dark);
  margin-bottom: 14px;
}

.pharmacy-hero-title .highlight {
  color: var(--pharmacy-red);
}

.pharmacy-hero-subtitle {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 26px;
}

.pharmacy-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-pharmacy-primary {
  background: var(--pharmacy-red);
  color: #ffffff;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 25px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(229, 38, 54, 0.3);
  transition: all 0.25s ease;
}

.btn-pharmacy-primary:hover {
  background: var(--pharmacy-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 38, 54, 0.4);
}

.btn-pharmacy-outline {
  background: #ffffff;
  color: var(--pharmacy-dark);
  border: 1.5px solid var(--pharmacy-gray-200);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-pharmacy-outline:hover {
  border-color: var(--pharmacy-red);
  color: var(--pharmacy-red);
  background: var(--pharmacy-red-light);
}

.pharmacy-hero-trust-badge {
  position: absolute;
  top: 30px;
  right: 40px;
  background: #ffffff;
  border: 1.5px solid var(--pharmacy-red-border);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.pharmacy-hero-trust-badge .badge-icon {
  width: 36px;
  height: 36px;
  background: var(--pharmacy-red);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pharmacy-hero-trust-badge .badge-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--pharmacy-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.pharmacy-hero-trust-badge .badge-sub {
  font-size: 10px;
  color: var(--pharmacy-red);
  font-weight: 700;
}

/* 4 Feature Pillars */
.pharmacy-pillars-container {
  padding: 24px 0 !important;
  position: relative !important;
  z-index: 10 !important;
  clear: both !important;
}

.pharmacy-pillar-card {
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  height: 100%;
}

.pharmacy-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  border-color: var(--pharmacy-red-border);
}

.pharmacy-pillar-icon {
  width: 46px;
  height: 46px;
  background: var(--pharmacy-red-light);
  color: var(--pharmacy-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pharmacy-pillar-content h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  margin-bottom: 2px;
}

.pharmacy-pillar-content p {
  font-size: 11.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
}

/* Mobile Feature Pillars Carousel with Arrow Buttons */
.pharmacy-pillars-swiper-wrap {
  position: relative;
  padding: 0 38px;
}

.pharmacy-pillars-swiper {
  width: 100%;
  overflow: hidden;
}

.pharmacy-pillars-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.pharmacy-pillar-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.pharmacy-pillar-prev {
  left: 0;
}

.pharmacy-pillar-next {
  right: 0;
}

.pharmacy-pillar-nav-btn:hover {
  background: #ffffff;
  color: var(--pharmacy-red);
  border-color: var(--pharmacy-red-border);
  box-shadow: 0 4px 14px rgba(229, 38, 54, 0.2);
}

.pharmacy-pillar-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .pharmacy-pillars-container {
    padding: 16px 0 !important;
  }

  .pharmacy-pillar-card {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    width: 100%;
  }

  .pharmacy-pillar-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
  }

  .pharmacy-pillar-content h6 {
    font-size: 13px !important;
  }

  .pharmacy-pillar-content p {
    font-size: 11px !important;
  }
}

/* Category Cards (Shop by Health & Wellness) */
.pharmacy-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pharmacy-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--pharmacy-dark);
  margin: 0;
}

.pharmacy-section-heading-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pharmacy-section-heading-accent {
  width: 5px;
  min-width: 5px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pharmacy-red) 0%, var(--pharmacy-red-dark) 100%);
  margin-top: 2px;
}

.pharmacy-section-heading-block .pharmacy-section-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.pharmacy-section-subtitle {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  margin: 2px 0 0;
}

@media (max-width: 575px) {
  .pharmacy-section-heading-block .pharmacy-section-title {
    font-size: 17px;
  }

  .pharmacy-section-subtitle {
    font-size: 11.5px;
  }

  .pharmacy-section-heading-accent {
    height: 28px;
  }
}

.pharmacy-view-all {
  color: var(--pharmacy-red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pharmacy-view-all:hover {
  color: var(--pharmacy-red-dark);
}

.pharmacy-category-card {
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.25s ease;
}

.pharmacy-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--pharmacy-red);
  box-shadow: 0 8px 20px rgba(229, 38, 54, 0.08);
}

.pharmacy-category-icon-box {
  width: 60px;
  height: 60px;
  background: var(--pharmacy-gray-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--pharmacy-red);
  font-size: 26px;
  transition: all 0.25s ease;
}

.pharmacy-category-card:hover .pharmacy-category-icon-box {
  background: var(--pharmacy-red);
  color: #ffffff;
}

.pharmacy-category-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  line-height: 1.3;
}

/* Exclusive Offers Product Cards */
.pharmacy-product-card {
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 14px;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.pharmacy-product-card:hover {
  border-color: var(--pharmacy-red-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.pharmacy-discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary, #C41A49);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

[dir="rtl"] .pharmacy-discount-tag {
  left: auto;
  right: 10px;
}

.pharmacy-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  padding: 0;
}

[dir="rtl"] .pharmacy-wishlist-btn {
  right: auto;
  left: 10px;
}

.pharmacy-wishlist-btn:hover {
  color: var(--pharmacy-red);
  border-color: var(--pharmacy-red-border);
  background: #FFF1F2;
  transform: scale(1.1);
}

.pharmacy-wishlist-btn.active,
.pharmacy-wishlist-btn .fa-solid {
  color: var(--pharmacy-red);
}

.pharmacy-product-image {
  height: 190px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFBFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.pharmacy-product-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.pharmacy-product-image img {
  max-height: 178px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pharmacy-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 8px;
  color: var(--pharmacy-red);
  font-size: 36px;
}

.pharmacy-product-card:hover .pharmacy-product-image img {
  transform: scale(1.05);
}

/* Product Card Topline: Brand & Category Inline */
.pharmacy-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  min-height: 22px;
}

.pharmacy-card-brand {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pharmacy-category-chip {
  display: inline-flex;
  align-items: center;
  background: #FFF1F2;
  color: var(--pharmacy-red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  border: 1px solid rgba(225, 29, 72, 0.12);
  line-height: 1.3;
}

/* Product Card Title */
.pharmacy-product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin-bottom: 8px;
  height: 35px;
  min-height: 35px;
  max-height: 35px;
  transition: color 0.15s ease;
}

.pharmacy-product-title:hover {
  color: var(--pharmacy-red);
}

/* Product Card Price & Review Single Row */
.pharmacy-price-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 10px;
  min-height: 24px;
}

.pharmacy-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.pharmacy-price-current {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pharmacy-red);
  line-height: 1;
  white-space: nowrap;
}

.pharmacy-price-old {
  font-size: 11.5px;
  color: #94A3B8;
  text-decoration: line-through;
  line-height: 1;
  white-space: nowrap;
}

.pharmacy-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.pharmacy-card-rating .fa-star {
  color: #F59E0B;
  font-size: 11px;
}

.pharmacy-rating-val {
  font-weight: 700;
  color: #334155;
  font-size: 11.5px;
}

.btn-pharmacy-add-cart {
  width: 100%;
  background: var(--pharmacy-red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-pharmacy-add-cart:hover {
  background: var(--pharmacy-red-dark);
  color: #ffffff;
}

/* Save More Banner Card in Offers section */
.pharmacy-promo-banner-card {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border: 1px solid var(--pharmacy-red-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pharmacy-promo-banner-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--pharmacy-dark);
  margin-bottom: 6px;
}

.pharmacy-promo-banner-card p {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Need a Prescription Refilled Banner */
.pharmacy-refill-banner {
  background: linear-gradient(135deg, #E52636 0%, #B91C1C 100%);
  border-radius: 16px;
  padding: 24px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  box-shadow: 0 10px 25px rgba(229, 38, 54, 0.25);
}

.pharmacy-refill-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pharmacy-refill-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  flex-shrink: 0;
}

.pharmacy-refill-text h4 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.pharmacy-refill-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.btn-pharmacy-refill {
  background: #ffffff;
  color: var(--pharmacy-red);
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-pharmacy-refill:hover {
  background: var(--pharmacy-gray-50);
  color: var(--pharmacy-red-dark);
  transform: translateY(-2px);
}

/* Popular Brands */
.pharmacy-brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--pharmacy-gray-200);
  border-bottom: 1px solid var(--pharmacy-gray-200);
}

.pharmacy-brand-pill {
  padding: 8px 18px;
  background: var(--pharmacy-gray-50);
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Why Bahrain Pharmacy Trust Section */
.pharmacy-trust-section {
  padding: 30px 0;
}

.pharmacy-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pharmacy-trust-icon {
  width: 44px;
  height: 44px;
  background: var(--pharmacy-red-light);
  color: var(--pharmacy-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.pharmacy-trust-content h6 {
  font-size: 14px;
  font-weight: 800;
  color: var(--pharmacy-dark);
  margin-bottom: 3px;
}

.pharmacy-trust-content p {
  font-size: 12px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* Pharmacy Footer */
.pharmacy-footer {
  background: #1A202C;
  color: #94A3B8;
  padding: 50px 0 25px 0;
}

.pharmacy-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pharmacy-footer h6 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pharmacy-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pharmacy-footer-links li {
  margin-bottom: 9px;
}

.pharmacy-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s;
}

.pharmacy-footer-links a:hover {
  color: #ffffff;
}

.pharmacy-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.pharmacy-payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pharmacy-payment-badge {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Interactive Map & Branch Picker Modal */
.pharmacy-map-container {
  height: 360px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pharmacy-gray-200);
}

.pharmacy-branch-item {
  border: 1.5px solid var(--pharmacy-gray-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pharmacy-branch-item:hover,
.pharmacy-branch-item.active {
  border-color: var(--pharmacy-red);
  background: var(--pharmacy-red-light);
}

.pharmacy-branch-badge {
  background: #E2E8F0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pharmacy-branch-item.active .pharmacy-branch-badge {
  background: var(--pharmacy-red);
  color: #ffffff;
}

/* Prescription Upload Styling */
.pharmacy-upload-dropzone {
  border: 2px dashed var(--pharmacy-red-border);
  background: var(--pharmacy-red-light);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pharmacy-upload-dropzone:hover {
  border-color: var(--pharmacy-red);
  background: #FFE4E6;
}

.pharmacy-upload-dropzone .dropzone-icon {
  font-size: 40px;
  color: var(--pharmacy-red);
  margin-bottom: 10px;
}

/* App Download Badges (Google Play & Apple App Store) */
.pharmacy-app-badge-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 576px) {
  .pharmacy-app-badge-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.pharmacy-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 16px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pharmacy-app-btn:hover {
  background: #1E293B;
  border-color: var(--pharmacy-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 38, 54, 0.25);
  color: #FFFFFF !important;
}

.pharmacy-app-btn .app-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pharmacy-app-btn .app-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pharmacy-app-btn .app-btn-text .app-sub {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  font-weight: 500;
}

.pharmacy-app-btn .app-btn-text .app-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Footer Links with SVG Icons */
.pharmacy-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.pharmacy-footer-links a svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.pharmacy-footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.pharmacy-footer-links a:hover svg {
  opacity: 1;
  stroke: var(--pharmacy-red);
}

/* Topbar SVGs */
.topbar-svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Pharmacy Hero Banner Carousel */
.pharmacy-hero-carousel-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pharmacy-carousel-slide {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 40px 30px;
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .pharmacy-carousel-slide {
    min-height: 460px;
    padding: 60px 60px;
  }
}

.slide-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.slide-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--pharmacy-red);
  opacity: 0.35;
  transition: all 0.3s ease;
  margin: 0 5px;
  border: none;
}

.carousel-indicators .active {
  width: 28px;
  border-radius: 10px;
  opacity: 1;
  background-color: var(--pharmacy-red);
}

.pharmacy-carousel-control {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #1E293B;
  transition: all 0.25s ease;
  z-index: 5;
}

.pharmacy-carousel-control:hover {
  background: #FFFFFF;
  opacity: 1;
  color: var(--pharmacy-red);
  transform: translateY(-50%) scale(1.08);
}

.pharmacy-carousel-control.carousel-control-prev {
  left: 20px;
}

.pharmacy-carousel-control.carousel-control-next {
  right: 20px;
}

/* Redesigned Pharmacy Category Navbar & Offers Badge */
.pharmacy-navbar-bar {
  background: #E52636 !important;
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pharmacy-category-btn {
  background: rgba(0, 0, 0, 0.2) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pharmacy-category-btn:hover {
  background: rgba(0, 0, 0, 0.32) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.pharmacy-category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.pharmacy-category-nav .nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pharmacy-category-nav .nav-link-item svg {
  stroke: #FFFFFF !important;
  flex-shrink: 0;
}

.pharmacy-category-nav .nav-link-item:hover,
.pharmacy-category-nav .nav-link-item.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Offers High-Visibility Badge */
.pharmacy-category-nav .offers-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF08A !important;
  color: #854D0E !important;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #FDE047 !important;
  transition: all 0.2s ease;
}

.pharmacy-category-nav .offers-badge-link svg {
  stroke: #854D0E !important;
  flex-shrink: 0;
}

.pharmacy-category-nav .offers-badge-link:hover {
  background: #FDE047 !important;
  color: #713F12 !important;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Upload Rx High-Contrast Button */
.pharmacy-category-nav .upload-rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF !important;
  color: #E52636 !important;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  border: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pharmacy-category-nav .upload-rx-btn svg {
  stroke: #E52636 !important;
  flex-shrink: 0;
}

.pharmacy-category-nav .upload-rx-btn:hover {
  background: #FFF1F2 !important;
  color: #DC2626 !important;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   LifePharmacy 3-Tier Mega Menu Styles
   ========================================================================== */
.lifepharmacy-mega-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1060;
  width: 1280px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.2), 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lifepharmacy-mega-dropdown.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mega-menu-cols-wrap {
  display: flex;
  height: 490px;
  background: #ffffff;
}

/* Column 1: Left Root Categories (Clean Text, Modern Pharmacy Typography) */
.mega-col-roots {
  width: 260px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #f1f5f9 !important;
  overflow-y: auto !important;
  padding: 10px 8px !important;
  background: #ffffff !important;
}

.mega-root-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 18px !important;
  border-radius: 8px !important;
  color: #1e293b !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  border-bottom: 1px solid #f8fafc !important;
  border-inline-start: 3px solid transparent !important;
  margin-bottom: 2px !important;
  line-height: 1.4 !important;
}

.mega-root-item:last-of-type {
  border-bottom: none !important;
}

.mega-root-item:hover,
.mega-root-item.active {
  background: #fff1f2 !important;
  color: var(--primary, #C41A49) !important;
  font-weight: 700 !important;
  border-inline-start-color: var(--primary, #C41A49) !important;
}

.mega-root-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  letter-spacing: -0.01em !important;
}

.mega-root-icon-wrap {
  display: none !important;
}

.mega-root-item .root-arrow {
  opacity: 0 !important;
  font-size: 11px !important;
  color: var(--primary, #C41A49) !important;
  transition: all 0.18s ease !important;
}

.mega-root-item.active .root-arrow,
.mega-root-item:hover .root-arrow {
  opacity: 1 !important;
  transform: translateX(3px) !important;
}

/* Column 2: Middle Subcategories */
.mega-col-subs {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid #f1f5f9;
  overflow-y: auto;
  padding: 14px 10px;
  background: #fafbfc;
}

.mega-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2px;
}

.mega-sub-item:last-of-type {
  border-bottom: none;
}

.mega-sub-item:hover,
.mega-sub-item.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mega-sub-item.active {
  color: #e52636;
  font-weight: 700;
  background: #ffffff;
  border-inline-start: 3px solid #e52636;
}

/* Column 3: Right Child Category Cards */
.mega-col-children {
  flex-grow: 1;
  padding: 18px 22px;
  overflow-y: auto;
  background: #ffffff;
}

.mega-children-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1440px) {
  .mega-children-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mega-child-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mega-child-card:hover {
  background: #ffffff;
  border-color: #fca5a5;
  box-shadow: 0 4px 14px rgba(229, 38, 54, 0.12);
  transform: translateY(-2px);
}

.mega-child-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #fee2e2;
}

.mega-child-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.mega-child-card:hover .mega-child-thumb img {
  transform: scale(1.1);
}

.mega-child-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.mega-child-card:hover .mega-child-name {
  color: #e52636;
}

/* LifePharmacy Hero Section Category Drawer (Homepage Banner Flyout) */
.banner-container {
  position: relative !important;
}

.browse-by-categorie {
  position: static !important;
}

.browse-by-categorie .browse-categories-item {
  position: static !important;
}

.browse-by-categorie .categories-dropdown.life-hero-drawer {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 260px !important;
  right: 0 !important;
  width: calc(100% - 260px) !important;
  max-width: none !important;
  height: 100% !important;
  background: #ffffff !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: 14px 4px 34px rgba(15, 23, 42, 0.14) !important;
  border: 1px solid #e2e8f0 !important;
  border-inline-start: 2px solid var(--primary) !important;
  z-index: 1050 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

@media (min-width: 1800px) {
  .browse-by-categorie .categories-dropdown.life-hero-drawer {
    left: 280px !important;
    width: calc(100% - 280px) !important;
  }
}

.browse-by-categorie .browse-categories-item:hover .categories-dropdown.life-hero-drawer {
  display: block !important;
}

[dir="rtl"] .browse-by-categorie .categories-dropdown.life-hero-drawer {
  left: 0 !important;
  right: 260px !important;
  border-inline-start: none !important;
  border-inline-end: 2px solid var(--primary) !important;
  border-radius: 14px 0 0 14px !important;
}

@media (min-width: 1800px) {
  [dir="rtl"] .browse-by-categorie .categories-dropdown.life-hero-drawer {
    right: 280px !important;
  }
}

.life-hero-drawer .mega-col-subs {
  width: 250px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #f1f5f9 !important;
  overflow-y: auto !important;
  padding: 14px 10px !important;
  background: #fafbfc !important;
}

.life-hero-drawer .mega-col-children {
  flex-grow: 1 !important;
  padding: 18px 24px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}

.life-hero-drawer .mega-children-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}

@media (min-width: 1650px) {
  .life-hero-drawer .mega-children-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 1439.98px) {
  .life-hero-drawer .mega-children-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ==========================================================================
   LifePharmacy Floating Product Category Cards (Screenshot 2)
   ========================================================================== */
.life-cat-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.life-cat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 12px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.3s ease, border-color 0.25s ease;
  overflow: hidden;
}

.life-cat-card:hover {
  transform: translateY(-4px);
  border-color: #fecdd3;
  box-shadow: 0 10px 22px rgba(229, 38, 54, 0.1);
}

.life-cat-packshot {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.1, 1);
  margin-bottom: 8px;
}

.life-cat-packshot img {
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.life-cat-card:hover .life-cat-packshot img {
  transform: scale(1.06);
}

.life-cat-title {
  color: #1e293b !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.1px;
  margin-bottom: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  background: transparent !important;
  user-select: none;
}

/* Life Subcategory Pill Badges */
.life-subcat-badge {
  display: inline-block;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 3px 9px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
  line-height: 1.3 !important;
}

.life-subcat-badge:hover {
  background: #fff1f2 !important;
  color: #e52636 !important;
  border-color: #fecdd3 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(229, 38, 54, 0.15) !important;
}

/* Life Category Carousel Nav Arrows */
.life-carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.life-carousel-nav-btn:hover {
  background: #ffffff;
  color: #ff385c;
  border-color: #ff385c;
  box-shadow: 0 6px 18px rgba(255, 56, 92, 0.25);
  transform: scale(1.08);
}

/* Full-Width Image Hero Banner Carousel */
.full-hero-banner-link {
  text-decoration: none;
  display: block;
  width: 100%;
  overflow: hidden;
}

.full-hero-banner-frame {
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.full-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.full-hero-banner-link:hover .full-hero-banner-img {
  transform: scale(1.02);
}

.pharmacy-hero-carousel-wrap .carousel-control-prev,
.pharmacy-hero-carousel-wrap .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  opacity: 0.85;
  transition: all 0.2s ease;
  margin: 0 16px;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.pharmacy-hero-carousel-wrap .carousel-control-prev:hover,
.pharmacy-hero-carousel-wrap .carousel-control-next:hover {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.pharmacy-hero-carousel-wrap .carousel-control-prev-icon,
.pharmacy-hero-carousel-wrap .carousel-control-next-icon {
  filter: invert(1);
  width: 16px;
  height: 16px;
}

.pharmacy-hero-carousel-wrap .carousel-indicators [data-bs-target] {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background-color: #ffffff;
  opacity: 0.6;
  border: none;
  margin: 0 4px;
  transition: all 0.25s ease;
}

.pharmacy-hero-carousel-wrap .carousel-indicators .active {
  width: 44px;
  background-color: var(--pharmacy-red);
  opacity: 1;
}

@media (max-width: 991px) {

  .pharmacy-hero-carousel-wrap .carousel-control-prev,
  .pharmacy-hero-carousel-wrap .carousel-control-next {
    width: 36px;
    height: 36px;
    margin: 0 8px;
  }
}

@media (max-width: 767px) {
  .pharmacy-hero-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .full-hero-banner-frame {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: unset !important;
    background: transparent !important;
  }

  .full-hero-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  .pharmacy-hero-carousel-wrap .carousel-control-prev,
  .pharmacy-hero-carousel-wrap .carousel-control-next {
    width: 28px !important;
    height: 28px !important;
    margin: 0 4px !important;
  }

  .pharmacy-hero-carousel-wrap .carousel-control-prev-icon,
  .pharmacy-hero-carousel-wrap .carousel-control-next-icon {
    width: 11px !important;
    height: 11px !important;
  }

  .pharmacy-hero-carousel-wrap .carousel-indicators {
    margin-bottom: 6px !important;
  }

  .pharmacy-hero-carousel-wrap .carousel-indicators [data-bs-target] {
    width: 16px !important;
    height: 4px !important;
    margin: 0 2px !important;
  }

  .pharmacy-hero-carousel-wrap .carousel-indicators .active {
    width: 24px !important;
  }
}

/* ============================================================
   Popular Brands Carousel (Matching Modern Pharmacy E-Commerce)
   ============================================================ */
.pharmacy-brands-section {
  position: relative;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 30px 0 26px;
}

.pharmacy-brand-card-link {
  text-decoration: none;
  display: block;
  width: 100%;
  outline: none;
}

.pharmacy-brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 125px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.pharmacy-brand-card:hover {
  transform: translateY(-4px);
  border-color: #fecdd3;
  box-shadow: 0 10px 22px rgba(229, 38, 54, 0.09);
}

.pharmacy-brand-logo-frame {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.pharmacy-brand-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.pharmacy-brand-card:hover .pharmacy-brand-logo-frame img {
  transform: scale(1.06);
}

.pharmacy-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 6px 0 0;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.pharmacy-brand-card:hover .pharmacy-brand-name {
  color: var(--pharmacy-red, #e52636);
}

.pharmacy-brand-count {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 1px;
}

.pharmacy-brand-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.pharmacy-brand-nav-btn:hover {
  background: #ffffff;
  color: #e52636;
  border-color: #e52636;
  box-shadow: 0 5px 15px rgba(229, 38, 54, 0.2);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 575px) {
  .pharmacy-brand-card {
    height: 110px;
    padding: 10px 6px;
  }

  .pharmacy-brand-logo-frame {
    height: 50px;
  }

  .pharmacy-brand-name {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Two-Column Promo Banners (between homepage sections)
   ========================================================================== */
.two-col-banner-link {
  display: block;
  height: 100%;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.two-col-banner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.two-col-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 18px;
}

.two-col-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: 140px;
  padding: 22px 24px;
  border-radius: 18px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.two-col-banner-a {
  background: linear-gradient(120deg, #7C3AED 0%, #C026D3 100%);
}

.two-col-banner-b {
  background: linear-gradient(120deg, #0EA5E9 0%, #0284C7 100%);
}

.two-col-banner-c {
  background: linear-gradient(120deg, #F59E0B 0%, #EA580C 100%);
}

.two-col-banner-d {
  background: linear-gradient(120deg, #16A34A 0%, #0D9488 100%);
}

.two-col-banner-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.two-col-banner-text h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.two-col-banner-text p {
  font-size: 12.5px;
  opacity: 0.92;
  margin-bottom: 8px;
}

.two-col-banner-cta {
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .two-col-banner {
    min-height: 110px;
    padding: 16px 18px;
  }

  .two-col-banner-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .two-col-banner-text h4 {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Colored-Card Product Carousels (LifePharmacy style)
   ========================================================================== */
.pharmacy-carousel-card {
  border-radius: 22px;
  padding: 20px 8px 18px;
  transition: background-color 0.3s ease;
}

.pharmacy-prod-slide {
  width: 270px;
  height: auto;
  padding: 0;
}

.pharmacy-prod-slide .pharmacy-product-card {
  background: #ffffff;
}

@media (max-width: 575px) {
  .pharmacy-carousel-card {
    border-radius: 16px;
    padding: 14px 4px 14px;
  }

  .pharmacy-prod-slide {
    width: 205px;
  }
}

/* ==========================================================================
   Floating WhatsApp + Scroll-to-Top Buttons
   ========================================================================== */
.wp-floating-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  transition: bottom 0.25s ease;
}

.has-pharmacy-footer-bar .wp-floating-btn {
  bottom: 70px;
}

.wp-floating-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.wp-floating-btn a:hover {
  transform: scale(1.08);
}

.wp-floating-btn .wp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wp-floating-btn .wp-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.pharmacy-scroll-top-btn {
  position: fixed;
  right: 25px;
  bottom: 86px;
  z-index: 1039;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pharmacy-gray-200);
  background: #ffffff;
  color: var(--pharmacy-red);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: bottom 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.has-pharmacy-footer-bar .pharmacy-scroll-top-btn {
  bottom: 134px;
}

.pharmacy-scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pharmacy-scroll-top-btn:hover {
  background: var(--pharmacy-red);
  color: #ffffff;
  border-color: var(--pharmacy-red);
}

@media (max-width: 575px) {
  .wp-floating-btn {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .wp-floating-btn a {
    width: 48px;
    height: 48px;
  }

  .wp-floating-btn .wp-icon svg {
    width: 26px;
    height: 26px;
  }

  .pharmacy-scroll-top-btn {
    right: 16px;
    bottom: 72px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Brands Mega Dropdown (LifePharmacy-style logo grid)
   ========================================================================== */
.mega-brands-dropdown {
  position: static;
}

@media (min-width: 992px) {
  .mega-brands-dropdown:hover > .mega-brands-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.mega-brands-panel {
  width: 960px;
  max-width: 92vw;
  border-radius: 16px;
  margin-top: 6px;
  padding: 20px !important;
  z-index: 1060 !important;
}

.mega-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mega-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 14px;
  padding: 18px 10px;
  transition: all 0.2s ease;
}

.mega-brand-card:hover {
  border-color: var(--pharmacy-red-border);
  box-shadow: 0 8px 18px rgba(229, 38, 54, 0.1);
  transform: translateY(-3px);
}

.mega-brand-logo-frame {
  height: 74px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.mega-brand-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mega-brand-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pharmacy-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 991px) {
  .mega-brands-panel {
    width: 560px;
  }

  .mega-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Dismissible Footer CTA Bar
   ========================================================================== */
.pharmacy-footer-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.pharmacy-footer-cta-text {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.pharmacy-footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pharmacy-footer-cta-btn {
  background: var(--pharmacy-red);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pharmacy-footer-cta-btn:hover {
  background: var(--pharmacy-red-dark);
  color: #ffffff;
}

.pharmacy-footer-cta-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pharmacy-footer-cta-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 575px) {
  .pharmacy-footer-cta-bar {
    padding: 10px 14px;
    gap: 10px;
  }

  .pharmacy-footer-cta-text {
    font-size: 11.5px;
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Product Detail Page - Main Image (cap tall portrait photos)
   ========================================================================== */
.product-thumbnail-slider {
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumbnail-slider .magnify-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnail-slider .magnified {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 520px;
}

.product-thumbnail-slider .magnified img.qv-lg-image {
  width: auto !important;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .product-thumbnail-slider {
    max-height: 360px;
  }

  .product-thumbnail-slider .magnified {
    max-height: 360px;
  }

  .product-thumbnail-slider .magnified img.qv-lg-image {
    max-height: 360px;
  }
}

/* Footer Bottom Social Buttons & CTA Enhancements */
.pharmacy-footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.22s ease;
}

.pharmacy-footer-social-btn:hover {
  background: var(--pharmacy-red, #E52636);
  border-color: var(--pharmacy-red, #E52636);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 38, 54, 0.3);
}

.pharmacy-footer-social-btn.whatsapp-btn:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.pharmacy-cta-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(229, 38, 54, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Theme 2: Fixed Category Dropdown with Hero Banner (2nd Theme Option)
   ========================================================================== */
.pharmacy-fixed-category-sidebar {
  background: #ffffff;
  border: 1px solid var(--pharmacy-gray-200);
  border-radius: 16px;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pharmacy-category-sidebar-header {
  background: #9b002c;
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  letter-spacing: 0.3px;
}

.pharmacy-category-sidebar-header i {
  color: #ffffff;
  font-size: 15px;
}

.pharmacy-fixed-category-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  flex-grow: 1;
}

.pharmacy-fixed-category-item {
  position: relative;
}

.pharmacy-fixed-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.pharmacy-fixed-cat-link:hover {
  background: #fff1f2;
  color: var(--pharmacy-red);
}

.pharmacy-cat-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 13px;
  color: #64748b;
  transition: all 0.18s ease;
}

.pharmacy-fixed-cat-link:hover .pharmacy-cat-item-icon {
  background: #ffe4e6;
  color: var(--pharmacy-red);
}

.pharmacy-cat-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pharmacy-cat-item-title {
  font-size: 12.5px;
  color: inherit;
  font-weight: 500;
}

.pharmacy-cat-item-arrow {
  font-size: 10px;
  color: #94a3b8;
  opacity: 0.6;
  transition: transform 0.18s ease;
}

.pharmacy-fixed-cat-link:hover .pharmacy-cat-item-arrow {
  color: var(--pharmacy-red);
  opacity: 1;
  transform: translateX(3px);
}

.pharmacy-fixed-category-footer {
  border-top: 1px solid #f1f5f9;
  padding: 10px 16px;
  margin-top: auto;
}

.pharmacy-category-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pharmacy-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pharmacy-category-view-all-btn:hover {
  background: #fff1f2;
  color: #b91c1c;
}

.pharmacy-category-view-all-btn .arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pharmacy-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.pharmacy-category-flyout-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1050;
  margin-left: 6px;
}

.pharmacy-category-flyout-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 14px;
  height: 100%;
}

.pharmacy-fixed-category-item:hover>.pharmacy-category-flyout-dropdown {
  display: block;
  animation: flyoutFadeIn 0.18s ease forwards;
}

@keyframes flyoutFadeIn {
  from {
    opacity: 0;
    transform: translateX(6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pharmacy-flyout-sub-item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pharmacy-flyout-sub-item:hover {
  background: #fff1f2;
  color: var(--pharmacy-red);
}

@media (min-width: 992px) {
  .banner-theme2-frame {
    aspect-ratio: 16 / 7.6 !important;
    min-height: 450px !important;
  }

  .banner-theme2-frame .full-hero-banner-img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* ==========================================================================
   Initial Git CartUser Style: Seamless Header Menu & Category Banner (Image 1)
   ========================================================================== */
header.sticky,
.sticky {
  z-index: 1040 !important;
}

.header-menu {
  background-color: var(--primary, #E52636) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1040 !important;
}

/* Store locator map styling to ensure it stays below navigation dropdowns */
.store-locator-map-card {
  z-index: 10 !important;
}

.store-locator-map-card #locatorFullMap {
  position: relative;
  z-index: 1;
}

.header-menu-container {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  height: 48px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.header-menuLeft {
  height: 48px !important;
  position: relative !important;
}

.header-menuRight {
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
}

.header-menuRight .menus {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 1rem !important;
  margin: 0 !important;
  list-style: none !important;
  gap: 4px !important;
}

.header-menuRight .menus .menu .navLink {
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.header-menuRight .menus .menu .navLink:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* Corporate Website Button in Main Header (Between Logo & Search Bar) */
.header-corporate-btn-col {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.header-corporate-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  border: 1.5px solid var(--primary) !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.2 !important;
}

.header-corporate-btn i {
  font-size: 13px !important;
  color: var(--primary) !important;
  transition: transform 0.22s ease !important;
}

.header-corporate-btn span {
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px !important;
}

.header-corporate-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.header-corporate-btn:hover i,
.header-corporate-btn:hover span {
  color: #ffffff !important;
}

.header-corporate-btn:hover i {
  transform: scale(1.12) rotate(12deg) !important;
}

@media (max-width: 1199.98px) {
  .header-corporate-btn-col {
    display: none !important;
  }
}

/* Corporate Website / Upload Rx Button in Header Menu */
.header-menuRight .upload-rx-btn,
.upload-rx-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #FFFFFF !important;
  color: #E52636 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1.4 !important;
}

.header-menuRight .upload-rx-btn span,
.upload-rx-btn span {
  color: #E52636 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.header-menuRight .upload-rx-btn:hover,
.upload-rx-btn:hover {
  background: #FFF1F2 !important;
  color: #C81E2E !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

.header-menuRight .upload-rx-btn:hover span,
.upload-rx-btn:hover span {
  color: #C81E2E !important;
}

.menu-category {
  height: 100% !important;
}

.menu-category-btn {
  background: #9b002c !important;
  color: #ffffff !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 48px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.menu-category-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
}

.menu-category-btn p {
  margin: 0 !important;
}

.menu-category-btn p span {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  font-family: inherit !important;
}

.menu-category-btn:hover {
  background-color: #800024 !important;
}

/* Banner Flush Connection (Zero space, zero separation matching Image 1) */
.banner {
  position: relative !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 1200px) {
  .banner-container {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    height: 295px !important;
    max-height: 295px !important;
    width: 100% !important;
  }

  .banner-container.no-grid {
    display: flex !important;
    height: 295px !important;
    max-height: 295px !important;
  }

  .browse-by-categorie {
    background-color: #ffffff !important;
    border-inline-start: 1px solid #e9ecef !important;
    border-inline-end: 1px solid #e9ecef !important;
    border-block-end: 1px solid #e9ecef !important;
    border-top: none !important;
    margin: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    height: 295px !important;
    max-height: 295px !important;
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    overflow: visible !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
    width: 260px !important;
  }

  .browse-by-categorie .browse-categories-items {
    margin: 0 !important;
    padding: 0 0 8px 0 !important;
    list-style: none !important;
    height: calc(295px - 36px) !important;
    max-height: calc(295px - 36px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: static !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
    box-sizing: border-box !important;
  }

  .browse-by-categorie .browse-categories-btn {
    height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    padding: 6px 14px !important;
    box-sizing: border-box !important;
  }

  .banner-wrapper {
    overflow: hidden !important;
    height: 295px !important;
    max-height: 295px !important;
  }

  .banner-slider {
    height: 100% !important;
    width: 100% !important;
  }

  .banner-slide-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .banner-slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}

/* Big Desktops (1400px - 1799px, e.g. 15.6" Laptops): keep existing perfect height */
@media (min-width: 1400px) and (max-width: 1799.98px) {

  .banner-container,
  .banner-container.no-grid {
    height: 400px !important;
    max-height: 400px !important;
  }

  .browse-by-categorie {
    height: 400px !important;
    max-height: 400px !important;
  }

  .browse-by-categorie .browse-categories-items {
    height: calc(400px - 38px) !important;
    max-height: calc(400px - 38px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .browse-by-categorie .browse-categories-item>a,
  .browse-by-categorie .browse-categories-item:last-child>a {
    padding: 8px 16px !important;
  }

  .browse-by-categorie .browse-categories-btn {
    height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
  }

  .banner-wrapper {
    height: 400px !important;
    max-height: 400px !important;
  }
}

/* Large Displays (1800px - 2199px): scale hero banner height and category list */
@media (min-width: 1800px) and (max-width: 2199.98px) {
  .banner-container {
    height: 540px !important;
    max-height: 540px !important;
    grid-template-columns: 280px 1fr !important;
  }

  .banner-container.no-grid {
    height: 540px !important;
    max-height: 540px !important;
  }

  .browse-by-categorie {
    height: 540px !important;
    max-height: 540px !important;
    width: 280px !important;
  }

  .browse-by-categorie .browse-categories-items {
    height: calc(540px - 44px) !important;
    max-height: calc(540px - 44px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .browse-by-categorie .browse-categories-item>a,
  .browse-by-categorie .browse-categories-item:last-child>a {
    padding: 12px 18px !important;
    font-size: 14.5px !important;
  }

  .browse-by-categorie .browse-categories-btn {
    height: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }

  .banner-wrapper {
    height: 540px !important;
    max-height: 540px !important;
  }
}

/* 24" iMacs, 27" Monitors & 4K Displays (2200px+): full height hero and spacious category list */
@media (min-width: 2200px) {
  .banner-container {
    height: 600px !important;
    max-height: 600px !important;
    grid-template-columns: 300px 1fr !important;
  }

  .banner-container.no-grid {
    height: 600px !important;
    max-height: 600px !important;
  }

  .browse-by-categorie {
    height: 600px !important;
    max-height: 600px !important;
    width: 300px !important;
  }

  .browse-by-categorie .browse-categories-items {
    height: calc(600px - 48px) !important;
    max-height: calc(600px - 48px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .browse-by-categorie .browse-categories-item>a,
  .browse-by-categorie .browse-categories-item:last-child>a {
    padding: 13.5px 20px !important;
    font-size: 15px !important;
  }

  .browse-by-categorie .browse-categories-btn {
    height: 48px !important;
    max-height: 48px !important;
    flex: 0 0 48px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .banner-wrapper {
    height: 600px !important;
    max-height: 600px !important;
  }
}

/* Mobile & Tablet Banner Full Width Fix */
@media (max-width: 1199.98px) {
  .browse-by-categorie {
    display: none !important;
  }

  .banner-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .banner-wrapper,
  .banner-slider,
  .banner-slide-img {
    width: 100% !important;
    height: auto !important;
  }

  .banner-slide-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 7.5;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
  }
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar {
  width: 5px !important;
  display: block !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-track {
  background: #f8fafc !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-thumb {
  background-color: #cbd5e1 !important;
  border-radius: 4px !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8 !important;
}

.browse-by-categorie .browse-categories-item {
  position: static !important;
}

.browse-by-categorie .browse-categories-item>a {
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #1e293b !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-bottom: 1px solid #f8fafc !important;
  border-inline-start: 3px solid transparent !important;
  line-height: 1.4 !important;
}

.browse-by-categorie .browse-categories-item>a:hover,
.browse-by-categorie .browse-categories-item:hover>a {
  background-color: #fff1f2 !important;
  color: var(--primary, #C41A49) !important;
  font-weight: 700 !important;
  border-inline-start-color: var(--primary, #C41A49) !important;
}

.browse-by-categorie .browse-categories-item>a .browse-cat-name {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: -0.01em !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Reset legacy last-child styles from style.css that targeted old View All item */
.browse-by-categorie .browse-categories-item:last-child>a,
.browse-categories-items .browse-categories-item:last-child>a {
  padding: 10px 18px !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  border-bottom: 1px solid #f8fafc !important;
  border-inline-start: 3px solid transparent !important;
}

.browse-by-categorie .browse-categories-item:last-child>a:hover,
.browse-by-categorie .browse-categories-item:last-child:hover>a,
.browse-categories-items .browse-categories-item:last-child>a:hover,
.browse-categories-items .browse-categories-item:last-child:hover>a {
  background-color: #fff1f2 !important;
  color: var(--primary, #C41A49) !important;
  font-weight: 700 !important;
  border-inline-start-color: var(--primary, #C41A49) !important;
}

.browse-by-categorie .browse-categories-item:last-child a>span,
.browse-categories-items .browse-categories-item:last-child a>span,
.browse-by-categorie .browse-categories-item:last-child a .browse-cat-name,
.browse-categories-items .browse-categories-item:last-child a .browse-cat-name {
  width: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  font-size: inherit !important;
  display: inline-block !important;
  text-align: start !important;
  color: inherit !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: inherit !important;
}

.browse-by-categorie .browse-categories-item:last-child:hover a>span,
.browse-categories-items .browse-categories-item:last-child:hover a>span,
.browse-by-categorie .browse-categories-item:last-child:hover a .browse-cat-name,
.browse-categories-items .browse-categories-item:last-child:hover a .browse-cat-name {
  background: transparent !important;
  color: inherit !important;
}

.browse-by-categorie .browse-categories-item>a .sub-chevron,
.browse-by-categorie .browse-categories-item>a>i.fa-chevron-right {
  display: inline-block !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  transition: all 0.18s ease !important;
}

.browse-by-categorie .browse-categories-item:hover>a .sub-chevron,
.browse-by-categorie .browse-categories-item:hover>a>i.fa-chevron-right {
  color: var(--primary, #C41A49) !important;
  transform: translateX(3px) !important;
  opacity: 1 !important;
}

/* Subcategories Flyout Dropdown on Hover */
.browse-by-categorie .categories-dropdown:not(.life-hero-drawer) {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  width: 290px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-inline-start: 2px solid #e52636 !important;
  border-top: none !important;
  border-right: 1px solid #e9ecef !important;
  border-bottom: 1px solid #e9ecef !important;
  box-shadow: 10px 4px 28px rgba(0, 0, 0, 0.12) !important;
  z-index: 1050 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 #f8fafc !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.browse-by-categorie .browse-categories-item:hover .categories-dropdown:not(.life-hero-drawer) {
  display: block !important;
}

.browse-by-categorie .categories-dropdown-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 12px 18px 10px !important;
  margin: 0 !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9 !important;
  letter-spacing: 0.2px !important;
}

.browse-by-categorie .categories-dropdown-items {
  list-style: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}

.browse-by-categorie .categories-dropdown-item {
  padding: 0 !important;
}

.browse-by-categorie .categories-dropdown-item>a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-bottom: 1px solid #fcfcfc !important;
}

.browse-by-categorie .categories-dropdown-item>a:hover {
  background-color: #fff1f2 !important;
  color: #e52636 !important;
  padding-left: 22px !important;
}

[dir="rtl"] .browse-by-categorie .categories-dropdown:not(.life-hero-drawer) {
  left: auto !important;
  right: 100% !important;
  border-inline-start: none !important;
  border-inline-end: 2px solid #e52636 !important;
}

.browse-by-categorie .browse-categories-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 16px !important;
  height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  color: #e52636 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex: 0 0 38px !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  transition: all 0.2s ease !important;
  z-index: 2 !important;
}

.browse-by-categorie .browse-categories-btn:hover {
  background: #fff1f2 !important;
  color: #c81e2e !important;
}

.browse-by-categorie .browse-categories-btn span {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #ffe4e6 !important;
  color: #e52636 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  transition: all 0.2s ease !important;
}

.browse-by-categorie .browse-categories-btn:hover span {
  background: #e52636 !important;
  color: #ffffff !important;
}

/* Mobile Category Drawer & Trigger Button */
.pharmacy-mobile-cat-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 12px !important;
  background: #e52636 !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(229, 38, 54, 0.28) !important;
  flex-shrink: 0 !important;
}

.pharmacy-mobile-cat-btn:hover,
.pharmacy-mobile-cat-btn:active {
  background: #800024 !important;
  color: #ffffff !important;
  transform: scale(0.97) !important;
}

.pharmacy-category-drawer {
  width: 320px !important;
  max-width: 86vw !important;
  height: 100vh !important;
  border-top-right-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 9999 !important;
}

.pharmacy-category-drawer .offcanvas-header {
  padding: 14px 18px !important;
  border-bottom: 1px solid #e9ecef !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.pharmacy-drawer-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffe4e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pharmacy-category-drawer .offcanvas-body {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 66px) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.pharmacy-drawer-quick-nav {
  background: #f8fafc !important;
  border-bottom: 1px solid #e9ecef !important;
}

.pharmacy-drawer-quick-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
}

.pharmacy-drawer-quick-btn:hover {
  border-color: #e52636 !important;
  background: #fff1f2 !important;
  color: #e52636 !important;
}

.pharmacy-drawer-corporate-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
}

.pharmacy-drawer-corporate-btn:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* Explicit, visible custom scrollbar for Drawer Categories */
.pharmacy-drawer-cat-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9 !important;
}

.pharmacy-drawer-cat-list::-webkit-scrollbar {
  width: 7px !important;
  display: block !important;
}

.pharmacy-drawer-cat-list::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}

.pharmacy-drawer-cat-list::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
  border-radius: 4px !important;
}

.pharmacy-drawer-cat-list::-webkit-scrollbar-thumb:hover {
  background: #64748b !important;
}

.pharmacy-drawer-item {
  transition: background-color 0.15s ease !important;
}

.pharmacy-drawer-item:hover {
  background-color: #fafbfc !important;
}

.pharmacy-drawer-item-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.pharmacy-drawer-item-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.pharmacy-drawer-expand-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

.pharmacy-drawer-expand-btn:hover {
  background: #ffe4e6 !important;
  color: #e52636 !important;
  border-color: #fca5a5 !important;
}

.pharmacy-drawer-expand-btn[aria-expanded="true"] {
  background: #ffe4e6 !important;
  color: #e52636 !important;
  border-color: #fca5a5 !important;
  transform: rotate(180deg) !important;
}

/* Today's Deals Section - Banner Height Matches Product Cards on Desktop & Big Screens */
@media (min-width: 992px) {
  .todays-deals-main-row {
    display: flex !important;
    align-items: stretch !important;
  }

  .todays-deal-banner-col {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  .todays-deal-banner {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
  }

  .todays-deal-banner.sticky-side-div {
    position: relative !important;
    top: 0 !important;
  }

  .todays-deal-banner-link {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .todays-deal-banner img,
  .todays-deal-banner-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }
}

/* Fixed Column Proportions on 1400px+ Displays (Laptop & iMac) */
@media (min-width: 1400px) {
  .todays-deals-main-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .todays-deal-banner-col {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    flex: 0 0 340px !important;
  }

  .todays-deal-products-col {
    flex: 1 1 auto !important;
    width: calc(100% - 340px) !important;
    max-width: calc(100% - 340px) !important;
  }
}

.todays-deal-banner {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
}

.todays-deal-banner img,
.todays-deal-banner-img {
  border-radius: 14px !important;
  object-fit: cover !important;
  display: block !important;
  width: 100% !important;
}

/* Today's Deals Banner Countdown Box */
.todays-deal-countdown-box {
  position: absolute !important;
  top: 14px !important;
  bottom: auto !important;
  left: 8px !important;
  right: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(229, 38, 54, 0.22) !important;
  border-radius: 12px !important;
  padding: 6px 8px 8px 8px !important;
  box-shadow: 0 8px 24px rgba(229, 38, 54, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  text-decoration: none !important;
  display: block !important;
  z-index: 5 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.todays-deal-countdown-box:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(229, 38, 54, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(229, 38, 54, 0.4) !important;
}

.deal-countdown-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #c81e2b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 7px !important;
  line-height: 1.2 !important;
}

.deal-countdown-header i {
  font-size: 14px !important;
  color: var(--primary) !important;
  animation: dealTimerPulse 1.4s ease-in-out infinite alternate !important;
}

@keyframes dealTimerPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.deal-countdown-units {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.countdown-unit-box {
  background: linear-gradient(145deg, var(--primary) 0%, var(--pharmacy-red-dark) 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 5px 6px 4px 6px !important;
  min-width: 44px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  position: relative !important;
}

.countdown-unit-num {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

.countdown-unit-txt {
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin-top: 1.5px !important;
}

.countdown-unit-colon {
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: var(--primary) !important;
  margin: 0 1px !important;
  user-select: none !important;
  animation: dealColonBlink 1s infinite !important;
}

@keyframes dealColonBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@media (max-width: 1199.98px) {
  .todays-deal-countdown-box {
    top: 8px !important;
    bottom: auto !important;
    left: 8px !important;
    right: 8px !important;
    padding: 6px 6px 8px 6px !important;
  }

  .deal-countdown-header {
    font-size: 10px !important;
    margin-bottom: 5px !important;
  }

  .countdown-unit-box {
    min-width: 36px !important;
    padding: 4px 4px 3px 4px !important;
  }

  .countdown-unit-num {
    font-size: 14px !important;
  }

  .countdown-unit-txt {
    font-size: 7px !important;
  }

  .countdown-unit-colon {
    font-size: 13px !important;
  }
}

/* Today's Deals Grid: 4 items on laptop (< 1440px), 5 items on big screen (>= 1440px) */
@media (min-width: 1440px) {
  .todays-deals-products-grid .todays-deals-product-item {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

@media (max-width: 1439.98px) {
  .todays-deals-products-grid .todays-deals-product-item:nth-child(n+9) {
    display: none !important;
  }
}

/* =========================================================
   Categories Dropdown on Inner / Non-Home Pages
   ========================================================= */
.browse-by-categorie .browse-categories-items::-webkit-scrollbar {
  width: 5px !important;
  display: block !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-track {
  background: #f8fafc !important;
  border-radius: 4px !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-thumb {
  background-color: #cbd5e1 !important;
  border-radius: 4px !important;
}

.browse-by-categorie .browse-categories-items::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8 !important;
}

.floting-categories {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 260px !important;
  z-index: 1050 !important;
}

.floting-categories .collapse.show,
.floting-categories .collapsing {
  display: block !important;
  width: 260px !important;
}

.floting-categories .browse-by-categorie {
  width: 260px !important;
  background-color: #ffffff !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18) !important;
  border: 1px solid #e2e8f0 !important;
  border-top: none !important;
}

/* =========================================================
   Subcategories Inline Row Below Page Title Banner
   ========================================================= */
.breadcrumb-banner.has-subcategories {
  min-height: 230px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 30px 0 25px !important;
}

.breadcrumb-banner.has-subcategories .breadcrumb-banner-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.breadcrumb-banner.has-subcategories .breadcrumb-banner-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.breadcrumb-banner.has-subcategories .page-Breadcrumb {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
}

.category-subcategories-bar {
  margin-top: 18px !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.subcategories-carousel-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  position: relative !important;
}

.subcategories-swiper {
  flex: 1 1 auto !important;
  overflow: hidden !important;
  padding: 6px 2px !important;
  width: 100% !important;
}

.subcat-swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
}

.subcat-carousel-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  z-index: 5 !important;
  padding: 0 !important;
}

.subcat-carousel-btn:hover {
  background: #e52636 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(229, 38, 54, 0.35) !important;
}

.subcat-carousel-btn.swiper-button-disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
  cursor: default !important;
}

.subcat-carousel-btn i {
  font-size: 13px !important;
}

/* =========================================================
   Home Page Category Carousel Layout & Mobile Overflow Fix
   ========================================================= */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.pharmacy-carousel-card {
  max-width: 100% !important;
  overflow: hidden !important;
}

.life-category-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 767.98px) {

  .life-cat-prev,
  .life-cat-next {
    display: none !important;
  }
}

.subcategory-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 14px 5px 6px !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

.subcategory-chip:hover {
  background: #ffffff !important;
  color: var(--primary) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.subcategory-chip.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.subcategory-chip .chip-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.subcategory-chip.active .chip-icon {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.subcategory-chip .chip-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 2px !important;
}

.subcategory-chip .chip-icon i {
  font-size: 12px !important;
  color: #64748b !important;
}

.subcategory-chip.active .chip-icon i {
  color: var(--primary) !important;
}

.subcategory-chip .chip-text {
  letter-spacing: 0.1px !important;
}

/* ==========================================================================
   LifePharmacy Hero Categories Drawer (Final Overrides & Responsive Precision)
   ========================================================================== */
.banner-container {
  position: relative !important;
}

.banner-container .browse-by-categorie,
.browse-by-categorie {
  position: static !important;
}

.banner-container .browse-by-categorie .browse-categories-items,
.browse-by-categorie .browse-categories-items {
  position: static !important;
}

.banner-container .browse-by-categorie .browse-categories-item,
.browse-by-categorie .browse-categories-item {
  position: static !important;
}

.browse-by-categorie .categories-dropdown.life-hero-drawer {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 260px !important;
  right: 0 !important;
  width: calc(100% - 260px) !important;
  max-width: none !important;
  height: 100% !important;
  background: #ffffff !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: 14px 4px 34px rgba(15, 23, 42, 0.14) !important;
  border: 1px solid #e2e8f0 !important;
  border-inline-start: 2px solid var(--primary) !important;
  z-index: 1050 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

@media (min-width: 1800px) and (max-width: 2199.98px) {
  .browse-by-categorie .categories-dropdown.life-hero-drawer {
    left: 280px !important;
    width: calc(100% - 280px) !important;
  }
}

@media (min-width: 2200px) {
  .browse-by-categorie .categories-dropdown.life-hero-drawer {
    left: 300px !important;
    width: calc(100% - 300px) !important;
  }
}

.browse-by-categorie .browse-categories-item:hover .categories-dropdown.life-hero-drawer {
  display: block !important;
}

[dir="rtl"] .browse-by-categorie .categories-dropdown.life-hero-drawer {
  left: 0 !important;
  right: 260px !important;
  border-inline-start: none !important;
  border-inline-end: 2px solid var(--primary) !important;
  border-radius: 14px 0 0 14px !important;
}

@media (min-width: 1800px) and (max-width: 2199.98px) {
  [dir="rtl"] .browse-by-categorie .categories-dropdown.life-hero-drawer {
    left: 0 !important;
    right: 280px !important;
  }
}

@media (min-width: 2200px) {
  [dir="rtl"] .browse-by-categorie .categories-dropdown.life-hero-drawer {
    left: 0 !important;
    right: 300px !important;
  }
}

.life-hero-drawer .mega-col-subs {
  width: 250px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #f1f5f9 !important;
  overflow-y: auto !important;
  padding: 14px 10px !important;
  background: #fafbfc !important;
  height: 100% !important;
}

[dir="rtl"] .life-hero-drawer .mega-col-subs {
  border-right: none !important;
  border-left: 1px solid #f1f5f9 !important;
}

.life-hero-drawer .mega-col-children {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 18px 24px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  height: 100% !important;
}

.life-hero-drawer .mega-children-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}

@media (min-width: 1650px) {
  .life-hero-drawer .mega-children-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 1439.98px) {
  .life-hero-drawer .mega-children-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Product Details: Related Recommendations Pill Badge */
.related-recommendations-badge {
  background-color: var(--pharmacy-red-light, rgba(196, 26, 73, 0.08)) !important;
  color: var(--primary, #C41A49) !important;
  border: 1px solid var(--pharmacy-red-border, rgba(196, 26, 73, 0.2)) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 14px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

.related-recommendations-badge i,
.related-recommendations-badge span {
  color: var(--primary, #C41A49) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Modern Product Details: Description Assurances & Content Styling
   ========================================================================== */
.modern-desc-assurances {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.modern-assurance-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.modern-description-content {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.8;
}

.modern-description-content .description-body {
  color: #334155;
  line-height: 1.8;
}

.modern-description-content .description-body p {
  margin-bottom: 1rem;
  color: #334155;
}

.modern-description-content .description-body ul,
.modern-description-content .description-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modern-description-content .description-body li {
  margin-bottom: 0.35rem;
}

.modern-description-content .description-body h1,
.modern-description-content .description-body h2,
.modern-description-content .description-body h3,
.modern-description-content .description-body h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.modern-pharmacist-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary, #C41A49) !important;
}

.pharmacist-notice-icon {
  width: 36px;
  height: 36px;
  background: rgba(196, 26, 73, 0.08);
  color: var(--primary, #C41A49);
  font-size: 16px;
}

/* ==========================================================================
   Related Recommendations Carousel (6 items on Desktop)
   ========================================================================== */
.related-swiper-container {
  overflow: visible;
}

.related-products-swiper {
  width: 100%;
  padding: 4px 2px 16px 2px;
  overflow: hidden;
}

.related-products-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  box-sizing: border-box;
}

.related-products-swiper .swiper-slide .pharmacy-product-card {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

/* ===========================================================
   Modernized, compact Cart + Checkout
   =========================================================== */

/* -- Cart page: card shell --
   NOTE: the outer card wrapper only has class="card" in the markup (the "cart-list"
   class is on the INNER .card-body, a separate element) - ".cart-list.card" never
   matched anything, which is why the outer card had no visible shadow/border and the
   padding fix below didn't read as "space" against the plain white page background.
   view_cart.blade.php now adds "cart-page-card" to the outer wrapper so this can
   target it directly. */
.cart-page-card,
#pills-bill-info .card,
.checkout-tab-card,
.order-summary-table,
.pills-payment-card {
  border-radius: 18px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
}

/* .cart-table is NOT a visual card - it's an invisible wrapper around the item list
   AND the action buttons together (see cart_list.blade.php). Giving it its own
   border/shadow nested it right inside .cart-page-card, right where the gap between
   the Total row and the buttons needed to be, visually swallowing that spacing. */
.cart-table {
  border: none !important;
  box-shadow: none !important;
}

.cart-page-card .card-header,
.checkout-tab .step-arrow-nav {
  border-radius: 18px 18px 0 0 !important;
}

/* -- Cart table rows -- */
.cart-table table thead.table-light th {
  background-color: var(--pharmacy-red-light) !important;
  color: var(--pharmacy-red-dark) !important;
  font-weight: 600;
  border: none !important;
  padding: 10px 12px !important;
}

.cart-table table tbody tr.cart-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.cart-table table tbody td {
  padding: 10px 12px !important;
  vertical-align: middle !important;
}

.cart-table .wishlist-product-img img,
.cart-product-img img {
  border-radius: 12px !important;
  object-fit: cover;
}

.cart-table .product-title,
.cart-product-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px !important;
}

/* Modern pill quantity stepper */
.cart-table .input-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pharmacy-red-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.cart-table .input-step .quantitybutton {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--pharmacy-red);
  font-weight: 700;
  line-height: 1;
}

.cart-table .input-step .quantitybutton:hover {
  background: var(--pharmacy-red-light);
}

.cart-table .input-step input.product-quantity {
  width: 36px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

/* Modern circular remove button */
.cart-table .remove-cart-data.badge {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.08) !important;
  color: #dc3545 !important;
  transition: background 0.2s ease;
}

.cart-table .remove-cart-data.badge:hover {
  background: #dc3545 !important;
  color: #fff !important;
}

.cart-table tr.shopping-chat-table-bottom td {
  font-size: 13.5px;
}

.cart-table tr.shopping-chat-table-bottom:last-of-type td {
  background: var(--pharmacy-red-light) !important;
  font-weight: 700;
  border-radius: 10px;
}

/* -- Checkout tab nav: compact pill buttons -- */
.checkout-tab .step-arrow-nav .nav-link {
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 13.5px;
  font-weight: 600;
  gap: 6px;
}

.checkout-tab .step-arrow-nav .nav-link.active {
  background-color: var(--pharmacy-red) !important;
  color: #fff !important;
}

.checkout-tab .step-arrow-nav .nav-link svg {
  width: 18px;
  height: 18px;
}

/* -- Checkout form: compact field spacing -- */
#pills-bill-info .form-label,
#pills-bill-address .form-label,
#pills-payment .form-label {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6b7280;
}

#pills-bill-info .form-control:not(.checkout-phone-input),
#pills-bill-address .form-control:not(.checkout-phone-input),
#pills-payment .form-control:not(.checkout-phone-input) {
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  padding: 9px 12px !important;
  font-size: 13.5px;
}

/* .checkout-phone-input also carries class="form-control", so the generic rule above
   explicitly excludes it (:not()) - otherwise that rule's #id-based specificity beats
   this one regardless of source order, silently wiping the padding-left reserved for
   the intl-tel-input flag button (set to 90px elsewhere). */
#pills-bill-info .checkout-phone-input,
#pills-bill-address .checkout-phone-input,
#pills-payment .checkout-phone-input {
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  padding-right: 12px !important;
  font-size: 13.5px;
}

#pills-bill-info .form-control:focus,
#pills-bill-address .form-control:focus,
#pills-payment .form-control:focus {
  border-color: var(--pharmacy-red) !important;
  box-shadow: 0 0 0 3px var(--pharmacy-red-light) !important;
}

#pills-bill-info .mb-3,
#pills-bill-address .mb-3,
#pills-payment .mb-3 {
  margin-bottom: 0.85rem !important;
}

/* -- Order summary: compact rows (overrides inline py-3/py-4 utility classes) -- */
.order-summary-table + ul li,
.order-summary-table + ul li span,
.order-summary-table + ul li h6 {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  font-size: 13px !important;
}

.order-summary-table + ul li.table-active {
  background: var(--pharmacy-red-light) !important;
  border-radius: 12px;
}

.order-summary-table + ul li.table-active h6,
.order-summary-table + ul li.table-active span {
  font-size: 14.5px !important;
  color: var(--pharmacy-red-dark);
}

.order-summary-table .checkout-pro-img img {
  border-radius: 10px !important;
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.order-summary-table .product-title {
  font-size: 13px;
  margin-bottom: 2px !important;
}

/* The base theme forces a 250px min-height on this box regardless of item count,
   which left a large empty gap below a single-item order summary. */
.order-summary-table {
  min-height: auto !important;
}

/* Quantity +/- stepper on the checkout order summary */
.checkout-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pharmacy-red-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.checkout-qty-stepper .checkout-qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--pharmacy-red);
  font-weight: 700;
  line-height: 1;
  font-size: 13px;
  padding: 0;
}

.checkout-qty-stepper .checkout-qty-btn:hover:not(:disabled) {
  background: var(--pharmacy-red-light);
}

.checkout-qty-stepper .checkout-qty-btn:disabled {
  opacity: 0.5;
}

.checkout-qty-stepper .checkout-qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
}

/* -- Primary action buttons: match pharmacy branding, compact --
   These reuse the theme's .btn-label class, which reserves space for its icon with
   padding-inline-start:4rem while the icon itself is position:absolute at the left
   edge. Simply overriding the button's padding (without also un-absoluting the icon)
   left the icon floating on top of the text. Converting both to a normal flex layout
   fixes it cleanly. */
.cart-product-action a.btn--fill,
.oder-btn,
.nexttab.shiping-input,
.nexttab.check-input,
.previestab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-weight: 700;
  font-size: 13.5px;
}

.cart-product-action a.btn--fill .label-icon,
.oder-btn .label-icon,
.nexttab.shiping-input .label-icon,
.nexttab.check-input .label-icon,
.previestab .label-icon {
  position: static !important;
  width: auto !important;
  background-color: transparent !important;
  font-size: 1em;
  padding: 0;
}

.oder-btn,
.nexttab.check-input {
  background-color: var(--pharmacy-red) !important;
  border-color: var(--pharmacy-red) !important;
}

.oder-btn:hover,
.nexttab.check-input:hover {
  background-color: var(--pharmacy-red-dark) !important;
  border-color: var(--pharmacy-red-dark) !important;
}

/* -- Active branch card on checkout: compact body padding -- */
.delivering-branch-card .card-body {
  padding: 12px 16px !important;
}

@media (max-width: 575.98px) {
  .order-summary-table .checkout-pro-img img {
    width: 42px;
    height: 42px;
  }

  .checkout-tab .step-arrow-nav .nav-link span,
  .checkout-tab .step-arrow-nav .nav-link {
    font-size: 12px;
  }
}

.related-products-prev.swiper-button-disabled,
.related-products-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===========================================================
   Cart page: card-row layout (replaces the old plain table)
   =========================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info .product-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-info .product-title a {
  color: inherit;
  text-decoration: none;
}

.cart-item-variant {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 10px;
}

.cart-item-col-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cart-item-qty .input-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pharmacy-red-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.cart-item-qty .input-step .quantitybutton {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--pharmacy-red);
  font-weight: 700;
  line-height: 1;
}

.cart-item-qty .input-step .quantitybutton:hover {
  background: var(--pharmacy-red-light);
}

.cart-item-qty .input-step input.product-quantity {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.cart-item-remove button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-item-remove button:hover {
  background: #dc3545;
  color: #fff;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.cart-summary-row.cart-summary-total {
  background: var(--pharmacy-red-light);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pharmacy-red-dark);
}

.cart-actions .previestab,
.cart-actions .oder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

.cart-actions .previestab {
  color: var(--pharmacy-red);
  background: var(--pharmacy-red-light);
}

.cart-actions .previestab:hover {
  background: var(--pharmacy-red-border);
}

@media (max-width: 767.98px) {
  .cart-item-card {
    grid-template-columns: 70px 1fr;
    grid-template-areas:
      "img info"
      "qty qty"
      "price remove";
    row-gap: 10px;
  }

  .cart-item-img { grid-area: img; width: 64px; height: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-price { grid-area: price; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
}

/* Breathing room so the Continue Shopping / Checkout buttons don't sit flush against
   the outer cart card's edge. Padding alone wasn't reading as "space" because the
   outer card had no visible shadow/border (see .cart-page-card note above) - now that
   it does, this padding has a clear boundary to be measured against. */
.cart-list.card-body {
  padding: 28px !important;
}

.cart-actions {
  margin-top: 28px !important;
  padding-bottom: 8px;
}