/* App-specific overrides for PHP pages (shop, product, cart, about, contact) */

/* Fallback if banner bg image fails — match Pharmez purple */
.banner-con {
  background-color: #5c45bf;
  background-image: url(../images/banner-bg-img.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Balanced Pharmez home hero */
.banner-con.pharmez-hero {
  padding: 56px 0 60px;
  min-height: 0;
  display: block;
}
.pharmez-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
}
.pharmez-hero-copy {
  color: #fff;
  max-width: 560px;
}
.pharmez-hero-tags {
  width: auto !important;
  height: auto !important;
  max-width: 280px;
  margin: 0 0 1.25rem !important;
  padding: 8px 16px !important;
  background-color: rgb(255 255 255 / 12%);
  border-radius: 999px;
  gap: 0.15rem;
}
.pharmez-hero-tags li {
  color: #fdf485 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding-right: 10px !important;
}
.pharmez-hero-tags li i {
  font-size: 5px;
  color: #fdf485;
  position: relative;
  top: -3px;
  margin-right: 5px;
}
.pharmez-hero h1 {
  margin: 0 0 1rem !important;
  color: #fff;
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pharmez-hero-lead {
  margin: 0 0 1.5rem;
  color: rgb(255 255 255 / 88%);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}
.pharmez-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.pharmez-hero-actions .primary_btn {
  margin-right: 0 !important;
}
.pharmez-hero-actions .upload-btn {
  padding: 14px 22px;
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
}
.pharmez-hero-actions .upload-btn:hover {
  background: #fff;
  color: #5c45bf;
  border-color: #fff;
}
.pharmez-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
}
.pharmez-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.5rem;
}
.pharmez-hero-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fdf485;
}
.pharmez-hero-stat span {
  font-size: 0.82rem;
  color: rgb(255 255 255 / 72%);
  font-weight: 500;
}
.pharmez-hero-visual {
  position: relative;
  min-width: 0;
}
.pharmez-hero-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #fdf485;
  color: #111;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
}
.pharmez-hero-badge i { color: #198754; }
.pharmez-hero-cards {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 0.85rem;
  align-items: stretch;
}
.pharmez-hero-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
}
.pharmez-hero-card {
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255 / 96%);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 0;
}
.pharmez-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgb(0 0 0 / 22%);
  color: #111;
  text-decoration: none;
}
.pharmez-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(160deg, #f7f5ff, #efeaff);
  aspect-ratio: 1;
  padding: 0.85rem;
}
.pharmez-hero-card.is-main {
  min-height: 100%;
}
.pharmez-hero-card.is-main img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 280px;
}
.pharmez-hero-card span {
  display: block;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  border-top: 1px solid #eee8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pharmez-hero-stack .pharmez-hero-card img {
  min-height: 0;
  aspect-ratio: 1.15;
}

@media (max-width: 991px) {
  .banner-con.pharmez-hero { padding: 42px 0 48px; }
  .pharmez-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pharmez-hero-copy { max-width: none; }
  .pharmez-hero-card.is-main img { min-height: 220px; }
}
@media (max-width: 575px) {
  .pharmez-hero-cards { grid-template-columns: 1fr; }
  .pharmez-hero-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .pharmez-hero-badge { left: 10px; top: 10px; font-size: 0.78rem; }
  .pharmez-hero-actions .upload-btn,
  .pharmez-hero-actions .primary_btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Shared section lead */
.pharmez-section-lead {
  margin: 0.75rem auto 0;
  max-width: 42ch;
  color: #4e4e4e;
  font-size: 1rem;
  line-height: 1.5;
}
.pharmez-reviews .pharmez-section-lead,
.text-white-50 {
  color: rgb(255 255 255 / 72%) !important;
}

/* Category cards — 3 equal product-led tiles */
.pharmez-cats .heading-title-con { margin-bottom: 2rem; }
.pharmez-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pharmez-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 10px 28px rgb(0 0 0 / 6%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pharmez-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgb(92 69 191 / 16%);
  color: #111;
  text-decoration: none;
}
.pharmez-cat-media {
  position: relative;
  background: linear-gradient(160deg, #f7f5ff, #efeaff);
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.pharmez-cat-media img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}
.pharmez-cat-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #5c45bf;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.pharmez-cat-body {
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid #eee8ff;
}
.pharmez-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c45bf;
  margin-bottom: 0.4rem;
}
.pharmez-cat-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.pharmez-cat-body p {
  margin: 0 0 0.9rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pharmez-cat-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
}
.pharmez-cat-cta i { margin-left: 0.35rem; font-size: 0.75rem; }

/* How it works — product mosaic + steps */
.how-it-works-con.pharmez-process {
  padding: 3rem 2rem;
}
.pharmez-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.pharmez-process-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 360px;
}
.pharmez-process-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255 / 96%);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  min-height: 0;
}
.pharmez-process-tile.is-large {
  grid-row: 1 / span 2;
}
.pharmez-process-tile img {
  flex: 1;
  width: 100%;
  object-fit: contain;
  background: linear-gradient(160deg, #f7f5ff, #efeaff);
  padding: 1rem;
  min-height: 120px;
}
.pharmez-process-tile span {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-top: 1px solid #eee8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pharmez-process-copy .heading-title-con { margin-bottom: 1.5rem; }
.pharmez-process-steps {
  margin-bottom: 1.75rem !important;
  position: relative;
}
.pharmez-process-steps::before {
  display: none !important;
  content: none !important;
}
.pharmez-process-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.pharmez-process-steps .step-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fdf485;
  color: #111;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pharmez-process-steps h6 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.pharmez-process-steps p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Product line promo cards */
.promotion-banner-con.pharmez-lines {
  padding-top: 0.5rem;
}
.pharmez-line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.pharmez-line-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 190px;
  padding: 1.35rem 1.25rem;
  border-radius: 24px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pharmez-line-card:hover {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 36px rgb(0 0 0 / 16%);
}
.pharmez-line-card.tone-weight {
  background: linear-gradient(135deg, #5c45bf 0%, #3d2f8a 100%);
}
.pharmez-line-card.tone-cellular {
  background: linear-gradient(135deg, #1f8a7a 0%, #145e54 100%);
}
.pharmez-line-card.tone-recovery {
  background: linear-gradient(135deg, #2b3558 0%, #1a2038 100%);
}
.pharmez-line-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgb(255 255 255 / 16%);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.pharmez-line-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.pharmez-line-copy p {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 82%);
}
.pharmez-line-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fdf485;
}
.pharmez-line-thumb {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  background: rgb(255 255 255 / 94%);
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pharmez-line-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Reviews — 3 equal product-mention cards */
.client-review-slider.pharmez-reviews {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.pharmez-reviews .heading-title-con { margin-bottom: 2rem; }
.pharmez-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 1180px;
  margin: 0 auto;
}
.pharmez-review-card {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 22px;
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.pharmez-review-card p {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}
.pharmez-review-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.pharmez-review-footer strong {
  color: #fdf485;
  font-size: 0.95rem;
}
.pharmez-review-footer span {
  color: rgb(255 255 255 / 70%);
  font-size: 0.82rem;
}

@media (max-width: 991px) {
  .pharmez-cat-grid,
  .pharmez-line-grid,
  .pharmez-review-grid {
    grid-template-columns: 1fr;
  }
  .pharmez-process-grid {
    grid-template-columns: 1fr;
  }
  .pharmez-process-mosaic {
    min-height: 280px;
  }
  .how-it-works-con.pharmez-process {
    padding: 2.25rem 1.25rem;
  }
}
@media (max-width: 575px) {
  .pharmez-line-card {
    grid-template-columns: 1fr;
  }
  .pharmez-line-thumb {
    width: 88px;
    height: 88px;
  }
}

/* Footer logo — shrink oversized template mark */
.footer-con .middle_portion .footer-logo {
  margin-bottom: 1.5rem;
  gap: 0.65rem;
  width: auto;
  max-width: 220px;
}
.footer-con .middle_portion .footer-logo img {
  width: 42px;
  height: 42px;
  margin-right: 0 !important;
  object-fit: contain;
}
.footer-con .middle_portion .footer-logo .special-heading1 {
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

/* Featured category tabs — long names need more room than template 58% */
.featured-products-con .nav-tabs {
  width: 100%;
  max-width: 1100px;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
}
.featured-products-con .tabs-box .nav-tabs li a {
  padding: 0 14px;
  white-space: nowrap;
  font-size: 15px;
}

/* Search close fallback without close.png */
#search .close {
  background-image: none !important;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.flash {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
}
.flash-success { background: #efeaff; color: #5c45bf; }
.flash-error { background: #fdeceb; color: #8f1f16; }

.page-hero {
  padding: 2.5rem 0 1rem;
}
.page-hero h1 {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: #000;
}
.page-hero p { color: #4e4e4e; margin: 0; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.shop-sidebar {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 1.25rem;
}
.shop-sidebar h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.75rem;
  font-weight: 700;
}
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  color: #4e4e4e;
  text-decoration: none;
}
.cat-list a.is-active,
.cat-list a:hover { color: #5c45bf; font-weight: 700; }

.search-form { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.search-form input,
.contact-form input,
.contact-form textarea,
.qty-wrap input {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product-grid .seller-box { height: 100%; }

.seller_image_box figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f5ff;
}
.seller_image_box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.seller_box_content h5 a:hover { color: #5c45bf !important; }
.ordinary_btn.disabled-btn,
button.ordinary_btn {
  cursor: pointer;
  font: inherit;
}
.ordinary_btn.disabled-btn {
  opacity: 0.55;
  pointer-events: none;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.product-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  background: #f7f5ff;
  border: 1px solid #e6e6e6;
}
.thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.thumb {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-bottom: 1rem; }
.price { color: #5c45bf; font-weight: 800; font-size: 1.35rem; }
.stock.in { color: #198754; font-weight: 700; }
.stock.out { color: #e74c3c; font-weight: 700; }
.card-cat { color: #a7a7a7; font-size: 0.9rem; margin-bottom: 0.35rem; }
.feature-list { padding-left: 1.1rem; }
.add-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }
.qty-wrap { display: inline-flex; border: 1px solid #e6e6e6; border-radius: 999px; overflow: hidden; }
.qty-wrap button { border: 0; background: #fffeef; width: 38px; height: 38px; cursor: pointer; }
.qty-wrap input { width: 52px; border: 0; text-align: center; border-radius: 0; padding: 0.4rem 0; }
.sku { font-size: 0.85rem; color: #a7a7a7; }
.product-desc {
  max-height: 12em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.cart-table { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; }
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
}
.cart-img img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #f7f5ff;
}
.cart-info h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.cart-info a { color: #000; text-decoration: none; }
.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 3rem;
  align-items: center;
}
.cart-summary { text-align: right; }
.link-btn {
  background: none;
  border: 0;
  color: #e74c3c;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.empty-cart, .empty { text-align: center; padding: 2rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: #000;
}
.prose { max-width: 70ch; padding-bottom: 3rem; }
.prose h2 { margin-top: 1.5rem; }
.result-count { margin-bottom: 1rem; color: #4e4e4e; }

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-app-primary { background: #fdf485; color: #000; }
.btn-app-primary:hover { background: #5c45bf; color: #fff; text-decoration: none; }
.btn-app-dark { background: #000; color: #fff; }
.btn-app-ghost {
  background: transparent;
  color: #5c45bf;
  border: 1.5px solid #5c45bf;
}

/* Hero banner images — match template, no forced crop */
.banner-con .imgz-outer-con figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}
.banner-con .imgz-outer-con figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

@media (max-width: 991px) {
  .shop-layout,
  .product-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
}
