/* Pharmacy Storefront Theme - Exact Design Match */
:root {
  --ph-navy: #0B2D4D;
  --ph-navy-dark: #07213A;
  --ph-green: #00A651;
  --ph-green-dark: #008C44;
  --ph-green-light: #E8F8F0;
  --ph-mint: #DCF5E8;
  --ph-red: #E53935;
  --ph-text: #1E293B;
  --ph-muted: #64748B;
  --ph-border: #E2E8F0;
  --ph-bg: #F8FAFC;
  --ph-white: #FFFFFF;
}

body.ph-storefront {
  font-family: 'Cairo', sans-serif !important;
  background-color: var(--ph-bg) !important;
  color: var(--ph-text);
  margin: 0;
  padding: 0;
}

.ph-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Top Bar */
.ph-top-bar {
  background-color: var(--ph-navy);
  color: #E2E8F0;
  font-size: 13px;
  padding: 8px 0;
}

.ph-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ph-top-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ph-top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.ph-top-item:hover {
  color: #FFFFFF;
}

.ph-top-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* 2. Main Header */
.ph-main-header {
  background: var(--ph-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--ph-border);
}

.ph-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ph-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ph-menu-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ph-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.ph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ph-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--ph-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 166, 81, 0.25);
  overflow: hidden;
}

.ph-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ph-navy);
  line-height: 1.1;
  margin: 0;
}

.ph-logo-text span {
  font-size: 11px;
  color: var(--ph-muted);
  font-weight: 600;
  display: block;
}

.ph-search-box {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid var(--ph-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ph-search-box:focus-within {
  border-color: var(--ph-green);
  background: var(--ph-white);
}

.ph-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ph-text);
  outline: none;
}

.ph-search-btn {
  background: var(--ph-green);
  color: white;
  border: none;
  padding: 11px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ph-search-btn:hover {
  background: var(--ph-green-dark);
}

.ph-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ph-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ph-text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.ph-action-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-navy);
  font-size: 22px;
}

.ph-cart-badge {
  position: absolute;
  top: -6px;
  left: -8px;
  background: var(--ph-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-action-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.ph-action-label .ph-price {
  font-size: 12px;
  color: var(--ph-navy);
  font-weight: 700;
}

/* 3. Navigation Bar */
.ph-nav-bar {
  background: var(--ph-white);
  border-bottom: 1px solid var(--ph-border);
  padding: 10px 0;
}

.ph-nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.ph-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ph-text);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.ph-nav-link:hover {
  color: var(--ph-green);
  background: var(--ph-green-light);
}

.ph-nav-link.active {
  background: var(--ph-green);
  color: white;
}

/* 4. Hero Banner */
.ph-hero-section {
  padding: 20px 0;
}

.ph-hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(105deg, #092B4C 0%, #0F4C81 55%, #16658A 100%);
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 64px;
  color: white;
  box-shadow: 0 10px 25px rgba(11, 45, 77, 0.12);
}

.ph-hero-content {
  max-width: 520px;
  z-index: 2;
}

.ph-hero-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #FFFFFF !important;
}

.ph-hero-content p {
  font-size: 17px;
  color: #E2E8F0;
  margin: 0 0 24px;
  font-weight: 500;
}

.ph-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ph-green);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 6px 16px rgba(0, 166, 81, 0.35);
}

.ph-hero-cta:hover {
  background: var(--ph-green-dark);
  transform: translateY(-2px);
}

.ph-hero-visual {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.ph-hero-cross-glow {
  width: 110px;
  height: 110px;
  background: rgba(0, 166, 81, 0.2);
  border: 2px solid rgba(0, 230, 118, 0.5);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: #4ADE80;
  box-shadow: 0 0 40px rgba(0, 166, 81, 0.4);
}

.ph-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ph-navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.ph-slider-arrow.right { right: 16px; }
.ph-slider-arrow.left { left: 16px; }

.ph-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.ph-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--ph-green);
}

/* 5. Quick Categories */
.ph-categories-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 10px 0 28px;
}

.ph-cat-card {
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ph-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.ph-cat-card:hover,
.ph-cat-card.active {
  background: var(--ph-green-light);
  border-color: var(--ph-green);
  color: var(--ph-green-dark);
  transform: translateY(-2px);
}

.ph-cat-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* 6. Featured Products */
.ph-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ph-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ph-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.ph-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--ph-green);
  border-radius: 2px;
}

.ph-view-all {
  color: var(--ph-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-featured-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 32px;
}

.ph-promo-banner {
  background: linear-gradient(180deg, #DDF5E8 0%, #C6EED8 100%);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  border: 1px solid #B7E4CC;
}

.ph-discount-badge {
  background: var(--ph-red);
  color: white;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.ph-discount-badge strong {
  font-size: 18px;
}

.ph-promo-visual {
  font-size: 54px;
  margin: 12px 0;
}

.ph-promo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 14px;
}

.ph-promo-btn {
  background: #0B4F30;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ph-product-card {
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ph-product-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.ph-fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}

.ph-fav-btn:hover {
  color: var(--ph-red);
}

.ph-product-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
  background: #F8FAFC;
  border-radius: 10px;
  overflow: hidden;
}

.ph-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ph-product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 4px;
  text-align: center;
}

.ph-product-sub {
  font-size: 12px;
  color: var(--ph-muted);
  text-align: center;
  margin-bottom: 8px;
}

.ph-product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ph-green);
  text-align: center;
  margin-bottom: 12px;
}

.ph-add-cart-btn {
  width: 100%;
  background: var(--ph-white);
  color: var(--ph-green);
  border: 1.5px solid var(--ph-green);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.ph-add-cart-btn:hover {
  background: var(--ph-green);
  color: white;
}

/* 7. Trust Badges */
.ph-trust-bar {
  background: var(--ph-white);
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
  padding: 20px 0;
  margin-top: 24px;
}

.ph-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ph-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-navy);
}

.ph-trust-icon {
  color: var(--ph-green);
  font-size: 22px;
  display: flex;
  align-items: center;
}

.ph-trust-item span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ph-muted);
}

@media (max-width: 1100px) {
  .ph-categories-strip { grid-template-columns: repeat(4, 1fr); }
  .ph-featured-layout { grid-template-columns: 1fr; }
  .ph-products-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .ph-header-inner { flex-wrap: wrap; }
  .ph-search-box { order: 3; max-width: 100%; width: 100%; }
  .ph-products-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-hero-banner { padding: 28px 24px; flex-direction: column; text-align: center; }
  .ph-hero-visual { display: none; }
}
