/**
* Theme Name: Puca Child
* Description: This is a child theme for Puca
* Author: Thembay
* Author URI: https://thembay.com/
* Version: 2.6.42
* Template: puca
*/


/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

/* ── Sidebar BRANDET (brand nav) widget: cleaner, tighter list ── */
.widget_woocommerce_brand_nav ul,
.woocommerce_brand_nav ul,
.widget.woocommerce.widget_brand_nav ul,
.wc-brand-list-layered-nav {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.widget_woocommerce_brand_nav ul li,
.woocommerce_brand_nav ul li,
.wc-brand-list-layered-nav li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.widget_woocommerce_brand_nav ul li a,
.woocommerce_brand_nav ul li a,
.wc-brand-list-layered-nav li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 2px !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #3a4a5f !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: color .15s ease, padding-left .15s ease !important;
}
.widget_woocommerce_brand_nav ul li a:hover,
.woocommerce_brand_nav ul li a:hover,
.wc-brand-list-layered-nav li a:hover {
  color: #2D6BE4 !important;
  padding-left: 8px !important;
}
/* the product count → subtle chip on the right */
.widget_woocommerce_brand_nav ul li a .count,
.woocommerce_brand_nav ul li .count {
  color: #9aa5b4 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: none !important;
}
.widget_woocommerce_brand_nav ul li:last-child a,
.woocommerce_brand_nav ul li:last-child a {
  border-bottom: none !important;
}
/* Scrollable if there are many brands */
.widget_woocommerce_brand_nav > ul,
.woocommerce_brand_nav > ul {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px !important;
}

/* ── Product tabs: clean underline style ── */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px 30px;
  padding: 0 !important;
  margin: 0 0 30px !important;
  background: none !important;
  border-bottom: 1px solid #e3e9f0 !important;
  text-align: left !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: inline-block !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 0 -1px 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block !important;
  color: #97a2b3 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  padding: 0 0 14px !important;
  border-bottom: 2px solid transparent !important;
  transition: color .18s ease, border-color .18s ease !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
  color: #13294A !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:hover a {
  color: #13294A !important;
  border-bottom-color: #2D6BE4 !important;
}
/* Panel: remove default framing, add a little breathing room */
.woocommerce div.product .woocommerce-tabs .panel {
  border: none !important;
  box-shadow: none !important;
  padding-top: 4px !important;
  margin-top: 0 !important;
}
/* Mobile: tab titles WRAP onto 2 lines so all four are visible (bulletproof — no scroll,
   no parent-overflow clipping). High-specificity selectors to beat the theme. */
@media (max-width: 767px) {
  /* make sure nothing clips the tabs */
  .singular-shop div.product .information,
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .woocommerce-tabs.tabs-v1 {
    overflow: visible !important;
  }
  .singular-shop div.product .information .woocommerce-tabs.tabs-v1 ul.tabs,
  .woocommerce div.product .woocommerce-tabs ul.tabs,
  .woocommerce div.product .woocommerce-tabs.tabs-v1 ul.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 15px 0 !important;
    margin: 18px 0 22px !important;
    border-bottom: 1px solid #eef1f5 !important;
    visibility: visible !important;
    height: auto !important;
    white-space: nowrap !important;
  }
  /* hide the scrollbar on mobile (still swipeable) */
  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar,
  .woocommerce div.product .woocommerce-tabs.tabs-v1 ul.tabs::-webkit-scrollbar {
    display: none !important;
  }
  .singular-shop div.product .information .woocommerce-tabs.tabs-v1 ul.tabs li,
  .woocommerce div.product .woocommerce-tabs ul.tabs li,
  .woocommerce div.product .woocommerce-tabs.tabs-v1 ul.tabs li {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    margin: 0 !important;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a,
  .woocommerce div.product .woocommerce-tabs.tabs-v1 ul.tabs li a {
    display: block !important;
    font-size: 12px !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
    padding: 6px 0 12px !important;
  }
  /* Hide any JS-built accordion titles */
  .woocommerce div.product .wc-tabs-wrapper .panel > .tabs-title,
  .woocommerce div.product .wc-tabs-wrapper .accordion-group > .tabs-title {
    display: none !important;
  }
  /* The theme forces ALL panels visible on mobile (accordion style) with
     !important — override it so only the active tab's panel shows.
     Needs the #main-content ID to out-specify fashion/template.css. */
  .single-product #main-content .wc-tabs-wrapper .panel {
    display: none !important;
  }
  .single-product #main-content .wc-tabs-wrapper .panel.m-tab-active {
    display: block !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Custom styling for Farmaci Metropol
   © Dweb Studio — All rights reserved.
   ───────────────────────────────────────────────────────────── */

/* Brands menu dropdown: FULL-WIDTH with auto columns on desktop (many brands) */
@media (min-width: 992px) {
  #tbay-header .m-brands-menu.aligned-fullwidth { position: static !important; }
  #tbay-header .m-brands-menu > .sub-menu,
  #tbay-header .m-brands-menu > ul.sub-menu,
  #tbay-header .m-brands-menu.dropdown > .dropdown-menu {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    padding: 22px 24px !important;
    -webkit-column-width: 200px;
    -moz-column-width: 200px;
    column-width: 200px;
    column-gap: 26px;
    text-align: left !important;
  }
  #tbay-header .m-brands-menu > .sub-menu > li,
  #tbay-header .m-brands-menu > ul.sub-menu > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #tbay-header .m-brands-menu > .sub-menu > li > a {
    padding: 7px 4px !important;
    white-space: normal !important;
  }
}

/* Review form: Name + Email on the same row */
.woocommerce #review_form #respond .comment-form-author,
.woocommerce #review_form #respond .comment-form-email,
#review_form .comment-form-author,
#review_form .comment-form-email {
  width: 48% !important;
  display: inline-block !important;
  vertical-align: top !important;
  float: none !important;
  box-sizing: border-box !important;
}
.woocommerce #review_form #respond .comment-form-author,
#review_form .comment-form-author {
  margin-right: 3% !important;
}
.woocommerce #review_form #respond .comment-form-author input,
.woocommerce #review_form #respond .comment-form-email input,
#review_form .comment-form-author input,
#review_form .comment-form-email input {
  width: 100% !important;
}
@media (max-width: 575px) {
  .woocommerce #review_form #respond .comment-form-author,
  .woocommerce #review_form #respond .comment-form-email,
  #review_form .comment-form-author,
  #review_form .comment-form-email {
    width: 100% !important;
    margin-right: 0 !important;
  }
}


/* Header wider on desktop */
@media (min-width: 1200px) {
  #tbay-header .container.container-full {
    width: 95%;
    max-width: 1800px;
  }

  /* Give more width to menu, less to logo and right side */
  #tbay-header .header-left.col-md-3 {
    width: 15%;
  }
  #tbay-header .header-center.col-md-6 {
    width: 60%;
  }
  #tbay-header .header-right.col-md-3 {
    width: 25%;
  }

  /* Menu items in one line */
  #tbay-header .tbay-mainmenu .navbar-nav.megamenu > li > a {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Sale / discount badge → red (only the inner badge, not the full-width container) */
.saled,
.onsale .saled,
.product-label span.sale,
.discount-percent {
  background-color: #DC3545 !important;
  background: #DC3545 !important;
  color: #fff !important;
}
/* Keep the .onsale wrapper transparent so it doesn't become a full-width red bar */
.woocommerce span.onsale,
.product-label .onsale,
span.onsale {
  background-color: transparent !important;
  background: transparent !important;
}

/* Hide "0 shitur" sold count on single product */
.woocommerce div.product .rate-sold,
.rate-sold {
  display: none !important;
}

/* Related products carousel: constrain image height (broken/missing images reserve too much space) */
.related.products .product-block.grid .image,
.related.products .product-block.grid .product-image,
#product-related .product-block.grid .image,
#product-related .product-block.grid .product-image {
  height: 240px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.related.products .product-block.grid .product-image img,
#product-related .product-block.grid .product-image img {
  max-height: 240px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Always show the "Shto në shportë" button on cards, in normal flow AFTER title + rating */
.woocommerce .products .product-block.grid .caption .groups-button,
.woocommerce .product-block.grid .caption .groups-button,
.product-block.grid .caption .groups-button {
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  -webkit-transform: none !important;
  transform: none !important;
  margin-top: 12px !important;
  text-align: center !important;
}
/* Keep the add-to-cart button on a single line */
.product-block.grid .caption .groups-button .add-cart,
.product-block.grid .caption .groups-button .add-cart a.button {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.product-block.grid .caption .groups-button .add-cart a.button .title-cart {
  white-space: nowrap !important;
}
/* Hide the "View cart / Shiko shportën" link that appears after adding to cart
   on product cards, related-products carousel, widgets, etc. (but NOT single product) */
.product-block .added_to_cart,
.product-block a.added_to_cart.wc-forward,
.woocommerce .products .product .added_to_cart,
.woocommerce ul.products li.product a.added_to_cart,
.related.products .added_to_cart,
.owl-carousel .added_to_cart,
.widget-products .added_to_cart,
.add_to_cart_button + .added_to_cart.wc-forward {
  display: none !important;
}

/* Mobile: force the add-to-cart button (with text) visible on product cards */
@media (max-width: 767px) {
  .product-block.grid .caption .groups-button,
  .product-block .caption .groups-button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    margin-top: 10px !important;
  }
  .product-block.grid .caption .groups-button .add-cart,
  .product-block .caption .groups-button .add-cart,
  .product-block.grid .caption .groups-button .add-cart a.button {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* show the button label ("Shto në shportë") on mobile */
  .product-block .caption .groups-button .add-cart .add_to_cart_button .title-cart {
    display: inline !important;
  }
}

/* Don't hide the title/rating on hover, and keep the button in place (no jump) */
.product-block.grid:hover .caption .meta {
  opacity: 1 !important;
  filter: none !important;
}
.product-block.grid:hover .caption .groups-button,
.product-block.grid .caption .groups-button {
  position: static !important;
  top: auto !important;
}

/* Uniform title (2 lines) */
.product-block.grid .caption .meta .name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.6em !important;
  margin-bottom: 4px !important;
}

/* Equal-height cards + add-to-cart pinned to the bottom → buttons align in one row
   (works on desktop AND mobile). Scoped to the shop grid, not the related carousel. */
.woocommerce .products.products-grid .row {
  display: flex !important;
  flex-wrap: wrap !important;
}
.woocommerce .products.products-grid .row > .product {
  display: flex !important;
  flex-direction: column !important;
}
.woocommerce .products.products-grid .product-block.grid {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}
.woocommerce .products.products-grid .product-block.grid .product-content,
.woocommerce .products.products-grid .product-block.grid .block-inner,
.woocommerce .products.products-grid .product-block.grid .caption {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
.woocommerce .products.products-grid .product-block.grid .caption .groups-button {
  margin-top: auto !important;
}
/* Keep the product image full-width inside the flex card (not thumbnail-small) */
.woocommerce .products.products-grid .product-block.grid .image,
.woocommerce .products.products-grid .product-block.grid .product-image,
.woocommerce .products.products-grid .product-block.grid .thumbnail-wrapper {
  flex: 0 0 auto !important;
  width: 100% !important;
  align-self: stretch !important;
}
.woocommerce .products.products-grid .product-block.grid .product-image img,
.woocommerce .products.products-grid .product-block.grid .image img,
.woocommerce .products.products-grid .product-block.grid .thumbnail-wrapper img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}

/* Shipping banner: blue background + white text */
.header-bottom-main {
  background: #334da1 !important;
}
.header-bottom-main,
.header-bottom-main *,
.header-bottom-main a,
.header-bottom-main b,
.header-bottom-main .shipping-main {
  color: #fff !important;
}
.header-bottom-main a:hover {
  color: #d7e0ff !important;
}
/* Thin (200) text at 12px; highlighted parts (FALAS, 4000 LEKË, 100 EURO) stay normal */
.header-bottom-main,
.header-bottom-main .shipping-main,
.header-bottom-main .shipping-main * {
  font-weight: 200 !important;
  font-size: 12px !important;
}
.header-bottom-main b,
.header-bottom-main strong {
  font-weight: 700 !important;
}

/* WhatsApp button width is set by JS to match the add-to-cart row */