/**
 * Duncan / Ecomm — responsive layout & product images
 */

/* --------------------------------------------------------------------------
   Site header — standard bar (Bootstrap row; shadow under nav)
   -------------------------------------------------------------------------- */
.header-area--default {
  background: #fff;
  position: relative;
  z-index: 200;
}

.header-area--default .site-header-bar {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 6px 0;
  min-height: 0;
}

.header-area--default .site-header-bar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.1);
}

.header-area--default .site-header-logo {
  position: static;
  transform: none;
  line-height: 1;
}

.header-area--default .site-header-logo .custom-logo-link,
.header-area--default .site-header-logo a {
  display: inline-block;
  line-height: 0;
  max-height: 100px;
}

.header-area--default .site-logo-img,
.header-area--default .site-header-logo .custom-logo-link img,
.header-area--default .site-header-logo img {
  max-height: 100px !important;
  height: auto !important;
  width: auto !important;
  max-width: 100px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.header-area--default .navigation-menu > ul {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-area--default .navigation-menu > ul > li {
  margin: 0 0 0 20px;
}

.header-area--default .navigation-menu > ul > li:first-child {
  margin-left: 0;
}

.header-area--default .navigation-menu > ul > li > a {
  padding: 8px 4px !important;
  font-size: 15px;
  white-space: nowrap;
}

.header-area--default .site-header-bar__row {
  min-height: 0;
}

.header-area--default .header-right-side {
  width: 100%;
}

.shop-page-wrap .container {
  max-width: 1140px;
}

.shop-page-main .row {
  justify-content: center;
}

/* Mobile: logo left, menu right */
@media (max-width: 991.98px) {
  .header-area--default .site-header-bar {
    padding: 6px 0;
  }

  .header-area--default .site-header-logo-col {
    text-align: left !important;
  }

  .header-area--default .site-logo-img,
  .header-area--default .site-header-logo .custom-logo-link img,
  .header-area--default .site-header-logo img {
    max-height: 56px !important;
    max-width: 56px;
    margin: 0;
  }

  .header-area--default .site-header-actions-col .header-right-side {
    justify-content: flex-end;
  }
}

.mobile-navigation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  padding: 8px;
  line-height: 1;
}

.mobile-navigation-icon:hover {
  color: #333;
}

/* --------------------------------------------------------------------------
   Shop page — container layout + category sidebar
   -------------------------------------------------------------------------- */
.shop-page-wrap {
  overflow: visible;
}

.shop-page-layout {
  align-items: flex-start;
}

.shop-sidebar__inner {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 100px;
}

.shop-sidebar__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-sidebar__list,
.shop-sidebar__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-sidebar__sublist {
  margin: 0.25rem 0 0.5rem 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid #eee;
}

.shop-sidebar__item {
  margin: 0;
}

.shop-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-sidebar__link:hover {
  background: #f5f5f5;
  color: #111;
}

.shop-sidebar__item.is-active > .shop-sidebar__link {
  background: #111;
  color: #fff;
  font-weight: 600;
}

.shop-sidebar__item.is-active > .shop-sidebar__link .shop-sidebar__count {
  color: rgba(255, 255, 255, 0.85);
}

.shop-sidebar__count {
  font-size: 0.8rem;
  color: #888;
  flex-shrink: 0;
}

.shop-category-hero {
  margin-bottom: 0;
}

.shop-category-hero__banner {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.shop-category-hero__content {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.shop-category-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.shop-page-layout__main .woocommerce-result-count,
.shop-page-layout__main .woocommerce-ordering,
.shop-page-main .woocommerce-result-count,
.shop-page-main .woocommerce-ordering {
  margin-bottom: 1rem;
}

/* Shop pagination */
.shop-page-main .shop-pagination-wrap,
.shop-page-layout__main .shop-pagination-wrap {
  clear: both;
  width: 100%;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.shop-page-main .woocommerce-pagination,
.shop-page-layout__main .woocommerce-pagination {
  display: block;
  text-align: center;
}

.shop-page-main .woocommerce-pagination ul,
.shop-page-layout__main .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-page-main .woocommerce-pagination ul li,
.shop-page-layout__main .woocommerce-pagination ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-page-main .woocommerce-pagination .page-numbers,
.shop-page-layout__main .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.shop-page-main .woocommerce-pagination .page-numbers.current,
.shop-page-layout__main .woocommerce-pagination .page-numbers.current {
  background: #111;
  color: #fff;
}

.shop-page-main .woocommerce-pagination a.page-numbers:hover,
.shop-page-layout__main .woocommerce-pagination a.page-numbers:hover {
  background: #dcb14a;
  color: #fff;
}

.shop-page-main .woocommerce-pagination .page-numbers.dots,
.shop-page-layout__main .woocommerce-pagination .page-numbers.dots {
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}

@media (max-width: 991.98px) {
  .shop-sidebar__inner {
    position: static;
    margin-bottom: 1.5rem;
  }

  .shop-category-hero__banner {
    min-height: 160px;
  }
}

@media (max-width: 767.98px) {
  .shop-page-layout__main .card-product,
  .shop-page-layout__main .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .shop-page-layout__main .card-product,
  .shop-page-layout__main .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Shop listing — product card images (max 600×600, fit container)
   -------------------------------------------------------------------------- */
.card-product .product-img,
.card-product .ecomm-product-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.card-product .product-img img,
.card-product .img-product,
.card-product .ecomm-product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
}

.card-product-wrapper {
  overflow: hidden;
  padding: 1rem 1.25rem 0.75rem;
  text-align: center;
  align-items: center;
}

.card-product .card-product__actions,
.card-product .button-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0 0;
  margin-top: 0.75rem !important;
}

.card-product .card-product__actions .btn,
.card-product .button-box .btn {
  margin: 0;
}

.card-product .card-product-info {
  text-align: center;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #f0f0f0;
}

.card-product .card-product__title,
.card-product .card-product-info .title {
  display: block;
  text-align: center;
  padding: 0 !important;
  margin: 0;
  color: #636666;
  font-size: 1.125rem;
  line-height: 1.4;
  text-decoration: none;
}

.card-product .card-product__title:hover,
.card-product .card-product-info .title:hover {
  color: #111;
}

/* Shop grid */
.woocommerce ul.products,
.woocommerce-page .row.products,
#content .row .col-md-3 {
  box-sizing: border-box;
}

/* Ensure shop products are visible (WOW.js no longer hides them) */
.shop-page-wrap .shop-page-main .row,
.shop-page-wrap .shop-page-main .card-product,
.shop-page-wrap .shop-page-main .col-md-3 {
  visibility: visible !important;
  opacity: 1 !important;
}

.shop-page-wrap .shop-page-main .woocommerce-notices-wrapper {
  display: block;
}

.shop-page-wrap .woocommerce-products-header .page-title {
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  .card-product .card-product-info .title {
    font-size: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   Single product — main gallery & theme sliders (max 600×600)
   -------------------------------------------------------------------------- */
.product-details-left,
.woocommerce div.product div.images,
.woocommerce-product-gallery {
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.product-details-images-2,
.product-details-images-2 .lg-image,
.product-details-images-2 .lg-image a,
.easyzoom-style,
.easyzoom {
  max-width: 100%;
}

.woocommerce-product-gallery__wrapper img,
.woocommerce-product-gallery__image img,
.product-details-images-2 .lg-image a img,
.product-details-left img,
.product-details-scroll-images .lg-image a img,
.easyzoom img,
.wp-post-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 600px !important;
  max-height: 600px !important;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.product-details-images-2 {
  float: none;
  width: 100%;
  max-width: 600px;
  padding-left: 0;
}

.product-details-thumbs-2 {
  max-width: 600px;
  margin: 0 auto;
}

.product-details-thumbs-2 .sm-image img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

/* Prevent huge hero/gallery overlap on single product */
.single-product-wrap .product-details-left {
  position: relative;
  z-index: 1;
}

.single-product-wrap .row > [class*="col-"] {
  margin-bottom: 1.5rem;
}

/* Quick view modal */
#prodect-modal .quickview-product-active img,
.product-modal-box .img-fluid {
  max-width: 600px;
  max-height: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Category / shop page hero */
@media (max-width: 991.98px) {
  #blog-header {
    height: auto !important;
    min-height: 280px;
    background-position: center !important;
  }

  #blog-header h1 {
    font-size: 32px !important;
  }

  #blog-header .col-md-8 {
    margin-top: 120px !important;
  }
}

/* Contact & general content */
.contact-us-info-area .row > [class*="col-"],
.contact-us-page-warpper .row > [class*="col-"] {
  margin-bottom: 1rem;
}

.map-area iframe {
  width: 100%;
  min-height: 350px;
}

@media (max-width: 575.98px) {
  .map-area iframe {
    min-height: 280px;
    height: 320px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* Inactive full-screen overlays must not block touch scroll (iOS) */
.mobile-menu-overlay:not(.active),
.search-overlay:not(.active) {
  pointer-events: none !important;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   Before & After - image collage + visible copy (mobile scroll fix)
   -------------------------------------------------------------------------- */
html.before-after-html {
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.before-after-page {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  position: relative !important;
}

body.before-after-page #main-wrapper,
body.before-after-page .site-wrapper-reveal,
body.before-after-page .before-after-page-wrap {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  touch-action: pan-y;
  position: relative !important;
}

.before-after-page-wrap {
  padding-bottom: 3rem;
}

.before-after-page-wrap .before-after-section {
  overflow: visible;
}

.before-after-page-wrap .before-after-section + .before-after-section {
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.before-after-page-wrap .before-after-copy {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.before-after-page-wrap .before-after-copy h5,
.before-after-page-wrap .before-after-copy p {
  color: #111;
}

.before-after-page-wrap .before-after-collage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}

.before-after-page-wrap .before-after-collage__cell {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
  line-height: 0;
}

.before-after-page-wrap .before-after-collage__cell--1 {
  grid-row: 1 / 3;
}

.before-after-page-wrap .before-after-collage__img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.before-after-contact-section {
  border-top: 1px solid #eee;
  overflow: visible;
}

.before-after-contact-summary {
  text-align: center;
  color: #333;
}

.before-after-contact-summary__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #111;
}

.before-after-contact-summary__item {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.before-after-contact-summary__item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #111;
}

.before-after-contact-summary__item a {
  color: #111;
  text-decoration: underline;
}

.before-after-contact-summary__page-link {
  font-weight: 600;
}

@media (min-width: 992px) {
  .before-after-contact-summary {
    text-align: left;
  }
}

.mobile-menu-contact-info__block {
  margin-bottom: 1rem;
}

.mobile-menu-contact-info__block:last-child {
  margin-bottom: 0;
}

.mobile-menu-contact-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #111;
}

@media (max-width: 991.98px) {
  body.before-after-page {
    overflow-y: scroll !important;
  }

  .before-after-page-wrap {
    padding-top: 2rem !important;
    padding-bottom: 4rem;
  }

  .before-after-page-wrap .before-after-section {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .before-after-page-wrap .before-after-copy {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
  }

  .before-after-page-wrap .before-after-copy .quickview-peragraph p {
    margin-bottom: 0.75rem;
  }

  .before-after-page-wrap .before-after-collage {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 8px;
    overflow: visible;
  }

  .before-after-page-wrap .before-after-collage__cell {
    overflow: visible;
  }

  .before-after-page-wrap .before-after-collage__cell--1 {
    grid-row: auto;
    grid-column: auto;
    min-height: 0;
  }

  .before-after-page-wrap .before-after-collage__img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }

  .before-after-page-wrap .before-after-copy .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 575.98px) {
  .before-after-page-wrap .before-after-collage {
    grid-template-columns: 1fr;
  }

  .before-after-page-wrap .before-after-collage__cell,
  .before-after-page-wrap .before-after-collage__cell--1 {
    grid-column: auto;
    grid-row: auto;
  }
}
