/* DoctorsHub24 Online Pharmacy E-Commerce Styling */
:root {
  --ph-teal: #0D9488;
  --ph-teal-dark: #0f766e;
  --ph-teal-light: #ccfbf1;
  --ph-navy: #0B2D5B;
  --ph-navy-dark: #071e3d;
  --ph-accent: #16a34a;
  --ph-border: #e2e8f0;
  --ph-card-bg: #ffffff;
  --ph-text: #0f172a;
  --ph-muted: #64748b;
  --ph-radius: 16px;
  --ph-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.dh-pharmacy-page {
  background: #f8fafc;
  min-height: 80vh;
  padding-bottom: 5rem;
}

/* Hero Section */
.dh-pharm-hero {
  background: linear-gradient(135deg, #0B2D5B 0%, #064e3b 100%);
  color: #fff;
  padding: 3rem 1rem 3.5rem;
  position: relative;
  z-index: 30;
  border-radius: 0 0 24px 24px;
}
.dh-pharm-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.dh-pharm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #5eead4;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.dh-pharm-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.dh-pharm-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* Search Bar in Hero */
.dh-pharm-search-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}
.dh-pharm-search-box i.bi-search {
  color: #94a3b8;
  font-size: 1.15rem;
  margin-right: 0.75rem;
}
.dh-pharm-search-box input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 1rem;
  color: var(--ph-text);
  padding: 0.5rem 0;
  background: transparent;
}
.dh-pharm-search-btn {
  background: var(--ph-teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dh-pharm-search-btn:hover {
  background: var(--ph-teal-dark);
}

/* Delivery Guarantee Banner */
.dh-pharm-guarantee-bar {
  max-width: 1100px;
  margin: -1.75rem auto 2rem;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  box-shadow: var(--ph-shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 5;
}
.dh-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.dh-guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ph-teal-light);
  color: var(--ph-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dh-guarantee-text h4 {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ph-navy);
}
.dh-guarantee-text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ph-muted);
}

/* Filters & Category Pills */
.dh-filter-section {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
}
.dh-cat-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.dh-cat-pill {
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dh-cat-pill:hover,
.dh-cat-pill.active {
  background: var(--ph-teal);
  border-color: var(--ph-teal);
  color: #fff !important;
}

/* Filter Dropdown Row */
.dh-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--ph-border);
}
.dh-filter-select {
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  color: var(--ph-text);
  outline: none;
}
.dh-filter-select:focus {
  border-color: var(--ph-teal);
}

/* Product Grid */
.dh-products-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Product Card */
.dh-med-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.dh-med-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
  border-color: var(--ph-teal);
}
.dh-med-top-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}
.dh-tag-form {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.dh-tag-rx {
  font-size: 0.7rem;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dh-tag-otc {
  font-size: 0.7rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.dh-med-img-box {
  width: 100%;
  height: 120px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--ph-teal);
  font-size: 2.8rem;
  overflow: hidden;
  position: relative;
}
.dh-med-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.dh-med-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ph-navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.dh-med-strength {
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
}
.dh-med-generic {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ph-teal-dark);
  margin: 0 0 0.25rem;
}
.dh-med-company {
  font-size: 0.78rem;
  color: var(--ph-muted);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dh-med-bottom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dh-med-price-wrap {
  display: flex;
  flex-direction: column;
}
.dh-med-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ph-navy);
}
.dh-med-unit {
  font-size: 0.72rem;
  color: var(--ph-muted);
}
.dh-btn-add-cart {
  background: var(--ph-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dh-btn-add-cart:hover {
  background: var(--ph-teal-dark);
  transform: scale(1.03);
}

/* Floating Cart Button */
.dh-floating-cart-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1040;
  background: var(--ph-navy);
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(11, 45, 91, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.dh-floating-cart-btn:hover {
  background: var(--ph-teal);
  transform: translateY(-3px) scale(1.02);
}
.dh-cart-count-bubble {
  background: #ef4444;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* Cart Drawer Backdrop */
.dh-cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1055;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dh-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Offcanvas Cart Drawer */
.dh-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.dh-cart-drawer.is-open {
  transform: translateX(0);
}

.dh-drawer-header {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dh-drawer-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ph-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dh-drawer-close {
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.dh-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dh-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

/* Cart Items in Drawer */
.dh-cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ph-muted);
}
.dh-cart-empty i {
  font-size: 3.5rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.75rem;
}

.dh-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ph-border);
  gap: 0.75rem;
}
.dh-cart-item-info {
  flex-grow: 1;
  min-width: 0;
}
.dh-cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ph-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.dh-cart-item-sub {
  font-size: 0.75rem;
  color: var(--ph-muted);
}
.dh-cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ph-navy);
  white-space: nowrap;
}
.dh-cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dh-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--ph-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  transition: all 0.15s;
}
.dh-qty-btn:hover {
  background: var(--ph-teal);
  color: #fff;
  border-color: var(--ph-teal);
}
.dh-cart-qty-num {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.dh-btn-remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.95rem;
}
.dh-btn-remove-item:hover {
  color: #b91c1c;
}

/* Delivery Rule Alert Banner */
.dh-delivery-alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.dh-delivery-alert.free {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.dh-delivery-alert.charge {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}
.dh-delivery-alert.online-required {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Progress bar to Free Delivery */
.dh-free-del-progress {
  background: #f1f5f9;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 0.4rem 0 0.5rem;
}
.dh-free-del-bar {
  background: var(--ph-accent);
  height: 100%;
  transition: width 0.3s ease;
}

/* Order Totals Summary */
.dh-cart-summary {
  background: #f8fafc;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.dh-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: #475569;
}
.dh-summary-row.total {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--ph-border);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ph-navy);
}

/* Payment Method Selection Card */
.dh-pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.dh-pay-card {
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.dh-pay-card:hover:not(.is-disabled) {
  border-color: var(--ph-teal);
  background: #f0fdfa;
}
.dh-pay-card.is-selected {
  border-color: var(--ph-teal);
  background: #f0fdfa;
  box-shadow: 0 0 0 1px var(--ph-teal);
}
.dh-pay-card.is-disabled {
  opacity: 0.6;
  background: #f8fafc;
  cursor: not-allowed;
  border-style: dashed;
}
.dh-pay-card-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ph-navy);
}
.dh-pay-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.dh-pay-badge.online-must {
  background: #fee2e2;
  color: #b91c1c;
}
.dh-pay-badge.free-cod {
  background: #dcfce7;
  color: #15803d;
}

/* Drawer Footer */
.dh-drawer-footer {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--ph-border);
}
.dh-btn-checkout {
  width: 100%;
  background: var(--ph-teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dh-btn-checkout:hover {
  background: var(--ph-teal-dark);
}

/* Order Success Screen */
.dh-order-success-card {
  max-width: 680px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.dh-order-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
}
.dh-order-invoice-box {
  background: #f8fafc;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  margin: 1.5rem 0;
}

/* Search Suggestions Dropdown */
.dh-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ph-border);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1070;
  text-align: left;
  padding: 0.6rem 0;
  animation: dhFadeIn 0.15s ease-out;
}

@keyframes dhFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dh-sug-header {
  padding: 0.5rem 1.15rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dh-sug-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  color: var(--ph-text);
  transition: background 0.15s;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
}

.dh-sug-item:hover, .dh-sug-item.is-selected {
  background: #f0fdfa;
  color: var(--ph-teal-dark);
}

.dh-sug-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  min-width: 0;
}

.dh-sug-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--ph-border);
  flex-shrink: 0;
  padding: 2px;
}

.dh-sug-info {
  min-width: 0;
  flex-grow: 1;
}

.dh-sug-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ph-navy);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-sug-meta {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-sug-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dh-sug-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ph-teal-dark);
  white-space: nowrap;
}

.dh-sug-btn-add {
  background: var(--ph-teal);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dh-sug-btn-add:hover {
  background: var(--ph-teal-dark);
  transform: scale(1.04);
}

.dh-sug-related-section {
  background: #f8fafc;
  border-top: 1px solid var(--ph-border);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

.dh-sug-related-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.dh-sug-group-pills {
  padding: 0.5rem 1.15rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dh-sug-group-pill {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.dh-sug-group-pill:hover {
  background: #0284c7;
  color: #fff;
}

.dh-sug-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--ph-muted);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
  .dh-pharm-hero {
    padding: 2.5rem 1rem 3rem;
  }
  .dh-pharm-hero h1 {
    font-size: 1.75rem;
  }
  .dh-pharm-search-box {
    padding: 0.35rem 0.5rem 0.35rem 1rem;
  }
  .dh-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
  .dh-med-card {
    padding: 0.85rem;
  }
  .dh-med-name {
    font-size: 0.95rem;
  }
  .dh-med-price {
    font-size: 1.1rem;
  }
  .dh-floating-cart-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
  }
  .dh-cart-drawer {
    max-width: 100%;
  }
}

/* Alphabet Filter Bar */
.dh-alphabet-strip-wrap {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.dh-alphabet-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ph-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-right: 0.3rem;
  border-right: 1px solid #e2e8f0;
}
.dh-alpha-pill {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  padding: 0 0.35rem;
  flex-shrink: 0;
}
.dh-alpha-pill:hover {
  background: #e2e8f0;
  color: var(--ph-navy);
}
.dh-alpha-pill.active {
  background: var(--ph-teal);
  color: #fff;
  border-color: var(--ph-teal);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

/* Discount & Savings Badges */
.dh-tag-discount {
  font-size: 0.7rem;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}
.dh-med-regular-price {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1.1;
  display: block;
}
.dh-med-save-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
  line-height: 1.2;
}

/* Suggested Groups Box */
.dh-suggested-groups-box {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.dh-suggested-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ph-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.dh-suggested-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #99f6e4;
  color: #0f766e;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dh-suggested-pill:hover {
  background: var(--ph-teal);
  color: #fff;
  border-color: var(--ph-teal);
}

/* Live Order Tracker Timeline */
.dh-tracker-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.25rem 0 0.5rem;
}
.dh-tracker-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.dh-track-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.dh-track-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.25rem;
  transition: all 0.3s;
}
.dh-track-step.is-done .dh-track-node {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.dh-track-step.is-active .dh-track-node {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.2);
}
.dh-track-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.15rem;
}
.dh-track-time {
  font-size: 0.72rem;
  color: #64748b;
}
@media (max-width: 600px) {
  .dh-tracker-steps {
    flex-direction: column;
    gap: 1.25rem;
  }
  .dh-tracker-steps::before {
    display: none;
  }
  .dh-track-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
  }
  .dh-track-node {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   PROMOTIONAL ADS & BESTSELLER SHOWCASE STYLES
   ========================================================================== */

/* 1. Shop Top Promotional Slider & Banners */
.dh-shop-top-ads {
  margin-top: 1rem;
}
.dh-ads-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.12);
}
.dh-ad-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.75rem 2.25rem;
  color: #ffffff;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 200px;
}
.dh-ad-slide.is-active {
  display: flex;
  opacity: 1;
}
.dh-ad-slide-content {
  flex: 1;
  max-width: 720px;
}
.dh-ad-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.65rem;
}
.dh-ad-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.dh-ad-discount-tag {
  background: #ef4444;
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.dh-ad-company-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.dh-ad-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.dh-ad-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  margin-bottom: 1.15rem;
}
.dh-ad-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dh-ad-btn {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 1.35rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.dh-ad-btn:hover {
  transform: translateY(-2px);
  color: #0f766e;
  background: #f8fafc;
}
.dh-ad-trust-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dh-ad-slide-media {
  width: 170px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dh-ad-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dh-ads-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.dh-ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
  transition: all 0.3s ease;
}
.dh-ad-dot.is-active {
  width: 24px;
  border-radius: 10px;
  background: #ffffff;
  opacity: 1;
}

/* 2. Section Header Common Style */
.dh-sec-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dh-sec-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.15rem;
}
.dh-sec-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ph-navy);
  margin-bottom: 0.15rem;
}
.dh-sec-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* 3. Most Sales Products Grid / Scroll */
.dh-bestsellers-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}
.dh-bestseller-card {
  background: #ffffff;
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.dh-bestseller-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
  border-color: #99f6e4;
}
.dh-bestseller-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.dh-bs-fire-tag {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  border: 1px solid #fecaca;
}
.dh-bs-disc-tag {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}
.dh-bs-media {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
.dh-bs-media img {
  max-height: 90px;
  max-width: 90%;
  object-fit: contain;
}
.dh-bs-media-ph {
  font-size: 2.2rem;
  color: #cbd5e1;
}
.dh-bs-company {
  font-size: 0.7rem;
  color: #0284c7;
  font-weight: 600;
  display: block;
}
.dh-bs-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ph-navy);
  margin: 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-bs-generic {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-bs-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px dashed #f1f5f9;
}
.dh-bs-price .sale-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f766e;
}
.dh-bs-price .regular-price {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 0.3rem;
}
.dh-bs-cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}
.dh-bs-cart-btn:hover {
  background: #0d5f58;
  transform: scale(1.1);
}

/* 4. Company Medicine Sponsored Ads Grid */
.dh-company-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}
.dh-company-ad-card {
  border-radius: 14px;
  padding: 1.15rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.dh-company-ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}
.dh-company-ad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.dh-company-ad-badge {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}
.dh-company-ad-discount {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}
.dh-company-ad-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.3rem;
}
.dh-company-ad-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin: 0;
}
.dh-company-ad-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.75rem;
}
.dh-company-ad-btn {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dh-company-ad-brand {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

@media (max-width: 768px) {
  .dh-ad-slide {
    flex-direction: column;
    padding: 1.25rem 1rem;
    text-align: left;
  }
  .dh-ad-slide-media {
    display: none;
  }
  .dh-ad-title {
    font-size: 1.25rem;
  }
  .dh-bestsellers-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
  .dh-company-ads-grid {
    grid-template-columns: 1fr;
  }
}
