/* ==========================================================================
   Doctor Care — frontend fixes (Oct 2026)
   Loaded after style.css / responsive.css / homepage.css so these targeted
   overrides win without touching the large theme files.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Homepage hero banner — keep the image's real aspect ratio on mobile
      instead of a fixed 340px height that cropped/squeezed it.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .home_hero_section .hero_slider,
  .home_hero_section .hero_slider .owl-stage-outer,
  .home_hero_section .hero_slider .owl-stage,
  .home_hero_section .hero_slider .owl-item,
  .home_hero_section .hero_slider .item {
    height: auto;
  }

  .home_hero_section .home_hero_main_banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1200 / 630;
    border-radius: 18px !important;
  }

  .home_hero_section .banner_bg .banner_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home_hero_section .home_hero_content {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
  }

  .home_hero_section .home_hero_content .banner_title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .home_hero_section .home_hero_content .banner_desc {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .home_hero_section .home_hero_content .btn {
    min-width: 0;
    padding: 6px 16px;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   2. Product size selection — clear selected / unselected states.
      (theme .active = primary background, and :checked = primary text,
      which together made the selected label invisible)
   -------------------------------------------------------------------------- */
.pr_detail .product_size_switch .product_size_option span {
  background-color: #fff;
  color: #27354a;
  border: 2px solid #d5dde5;
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pr_detail .product_size_switch .product_size_option:hover span {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pr_detail .product_size_switch .product_size_option input:checked + span,
.pr_detail .product_size_switch .product_size_option span.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff !important;
  font-weight: 700;
}

.pr_detail .product_size_switch .product_size_option input:focus-visible + span {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Facebook-style blue verified badge (certificate shape + white tick)
   -------------------------------------------------------------------------- */
.dc-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

.dc-verified-badge .fa-certificate {
  color: #1877f2;
  font-size: 1.15em;
}

.dc-verified-badge .fa-check {
  position: absolute;
  color: #fff;
  font-size: 0.55em;
}

.dc-verified-badge--sm {
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   4. Product question / FAQ accordion — +/- icon vertically centered, right side
   -------------------------------------------------------------------------- */
.accordion_style1 .card-header a {
  position: relative;
  display: block;
  padding-right: 2.25rem !important;
}

.accordion_style1 .card-header a::after {
  top: 50% !important;
  right: 0.25rem !important;
  transform: translateY(-50%);
  line-height: 1;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   5. Mobile bottom navigation — standard spacing above/below items
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .dc-mobile-bottom-nav > .d-flex {
    padding-top: 12px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dc-mobile-bottom-nav .dc-mobile-nav-link > div {
    margin-bottom: 6px !important;
  }

  .dc-mobile-location-strip {
    bottom: calc(129px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile product buy bar: single full-width Add to Cart */
  .dc-mobile-product-buybar .btn {
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   6. Category page — Shop by Your Skin Type
   -------------------------------------------------------------------------- */
.dc-skin-type-card {
  cursor: default;
}

.dc-skin-type-card__media {
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.dc-skin-type-card__media img {
  width: 100% !important;
  max-width: 100%;
  height: 190px !important;
  object-fit: contain !important;
  object-position: center;
}

.dc-skin-type-card__arrow {
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dc-skin-type-card__arrow:hover,
.dc-skin-type-card__arrow:focus-visible,
.dc-skin-type-card.is-active .dc-skin-type-card__arrow {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(2px);
}

@media (min-width: 768px) {
  .dc-skin-type-grid.d-md-grid {
    display: grid !important;
  }
}

/* Mobile slider (same owl implementation as "Explore Popular Categories") */
.dc-skin-type-slider .owl-stage {
  display: flex;
}

.dc-skin-type-slider .owl-item {
  display: flex;
}

.dc-skin-type-slider .owl-item .item {
  display: flex;
  width: 100%;
  padding: 6px 0 18px;
}

.dc-skin-type-slider .dc-skin-type-card {
  width: 100%;
  min-height: 0;
  padding: 18px 14px 20px;
  border-radius: 18px;
}

.dc-skin-type-slider .dc-skin-type-card:hover,
.dc-skin-type-slider .dc-skin-type-card.is-active {
  transform: none;
}

.dc-skin-type-slider .dc-skin-type-card__eyebrow {
  margin-bottom: 8px;
  font-size: 0.68rem;
}

.dc-skin-type-slider .dc-skin-type-card__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.dc-skin-type-slider .dc-skin-type-card__details {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.dc-skin-type-slider .dc-skin-type-card__media img {
  height: 130px !important;
}

.dc-skin-type-slider .dc-skin-type-card__arrow {
  right: -6px;
  bottom: -6px;
  width: 40px;
  height: 40px;
}

/* --------------------------------------------------------------------------
   6b. Shop by Skin Concern — informational cards, no link behaviour
   -------------------------------------------------------------------------- */
.dc-concern-card {
  cursor: default;
}

/* --------------------------------------------------------------------------
   6c. Shop Skincare by Ingredients — image scales with the section
   -------------------------------------------------------------------------- */
.dc-ingredient-discovery {
  align-items: stretch;
}

.dc-ingredient-list {
  align-self: center;
}

.dc-ingredient-visual {
  align-self: stretch;
  display: flex;
  min-height: 360px;
  border-radius: 20px;
}

.dc-ingredient-visual__panel.is-active {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

.dc-ingredient-visual img {
  width: 100%;
  height: 100% !important;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991.98px) {
  .dc-ingredient-visual,
  .dc-ingredient-visual img {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .dc-ingredient-visual,
  .dc-ingredient-visual img {
    min-height: 240px;
  }
}

/* --------------------------------------------------------------------------
   6d. Section titles on shop/category pages — left aligned,
       except "Why Buy From Us?" (and Newsletter, which is not on these pages).
   -------------------------------------------------------------------------- */
.dc-shop-left-titles .dc-section-heading,
.dc-shop-left-titles .dc-section-heading--split {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.dc-shop-left-titles .dc-section-heading p,
.dc-shop-left-titles .dc-section-heading .rich-text {
  margin-left: 0;
  margin-right: 0;
}

/* Popular categories + page intro (centered via utility classes) */
.dc-shop-left-titles .shop-listing-intro,
.dc-shop-left-titles .pt-5.pb-4 > div > h2.text-center,
.dc-shop-left-titles .pt-5.pb-4 > div > h2.text-center + .text-center {
  text-align: left !important;
  margin-left: 0 !important;
}

/* heading_s1 sections (e.g. FAQ) */
.dc-shop-left-titles .row.justify-content-center:has(> .text-center > .heading_s1) {
  justify-content: flex-start !important;
}

.dc-shop-left-titles .row.justify-content-center > .text-center:has(> .heading_s1) {
  text-align: left !important;
}

.dc-shop-left-titles .row.justify-content-center:has(> .col-lg-8 > #faqAccordion) {
  justify-content: flex-start !important;
}

/* Keep "Why Buy From Us?" centered (category + homepage versions) */
.dc-shop-left-titles .dc-category-why-section .row.justify-content-center:has(> .text-center > .heading_s1),
.dc-shop-left-titles .row.justify-content-center:has(> .text-center > .heading_s1):has(+ .content-slider) {
  justify-content: center !important;
}

.dc-shop-left-titles .dc-category-why-section .row.justify-content-center > .text-center:has(> .heading_s1),
.dc-shop-left-titles .row.justify-content-center:has(+ .content-slider) > .text-center:has(> .heading_s1) {
  text-align: center !important;
}

/* --------------------------------------------------------------------------
   8. Verified Buyer Reviews & Experiences cards
   -------------------------------------------------------------------------- */
.dc-buyer-review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  background: #fff;
  border: 1px solid #e6f2ee;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(30, 96, 83, 0.07);
  padding: 22px 20px;
  text-align: left;
}

.dc-buyer-review-card__stars {
  color: #f5a623;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.dc-buyer-review-card__text {
  color: #4f5d73;
  line-height: 1.65;
  flex: 1 1 auto;
}

.dc-buyer-review-card__text p:last-child {
  margin-bottom: 0;
}

.dc-buyer-review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef3f2;
  padding-top: 14px;
}

.dc-buyer-review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eaf8f4;
  color: var(--primary-color);
  font-weight: 800;
}

.dc-buyer-review-card__author strong {
  display: block;
  color: #1f2a3d;
}

.dc-buyer-review-card__author small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6b7a90;
}
