/*
Theme Name: Luma Commerce
Theme URI: https://example.com/luan-ultra-commerce
Author: Luan Commerce Studio
Author URI: https://example.com
Description: Luma Commerce professional, mobile-friendly, PHP 7.4 compatible WooCommerce theme with full homepage visual builder controls, per-section colors, images, typography, borders, spacing, native editable default section text, buttons, labels, images where present, plus direct native Hero/Single Banner Edit/Double/Triple banner controls, working drag-and-drop homepage section ordering with fallback move controls, section search, quick show/hide toggles, reset order, click-to-focus section controls and preview highlighting inside the Homepage Visual Builder, advanced design controls, Elementor support, and professional ecommerce modules.
Version: 25.5.14
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luan-ultra-commerce
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column, two-columns, right-sidebar, block-styles, wide-blocks
*/


/* v25.5.12 Requested focused fixes: header hover, category/product layout, hidden sections, lanes. */
.luc-v10-support-chip:hover,
.luc-v10-support-chip:focus-visible,
.luc-v14-support-chip:hover,
.luc-v14-support-chip:focus-visible {
  color: #fff !important;
}
.luc-v10-support-chip:hover *,
.luc-v10-support-chip:focus-visible *,
.luc-v14-support-chip:hover *,
.luc-v14-support-chip:focus-visible * {
  color: #fff !important;
}

/* Hide the Premium storefront system/story section only. */
.luc-story-section {
  display: none !important;
}

/* Popular Categories: show exactly 3 clean cards per row on desktop. */
.luc-v16-popular-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2vw, 24px) !important;
}
.luc-v16-popular-grid .luc-v16-popular-card:nth-child(n+4) {
  display: none !important;
}

/* Remove the Shop departments / Complete ecommerce browsing sidebar only. */
.luc-v7-market-sidebar {
  display: none !important;
}
.luc-v7-marketplace-grid {
  grid-template-columns: 1fr !important;
}

/* Product discovery lanes: 6 products exist, show 2 at a time and scroll for the rest. */
.luc-v7-lane-card ul.products,
.luc-v7-lane-card .woocommerce ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  padding: 4px 4px 14px !important;
  margin: 0 !important;
  -webkit-overflow-scrolling: touch !important;
}
.luc-v7-lane-card ul.products::-webkit-scrollbar {
  height: 8px;
}
.luc-v7-lane-card ul.products::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .24);
  border-radius: 999px;
}
.luc-v7-lane-card ul.products li.product {
  flex: 0 0 calc(50% - 8px) !important;
  width: calc(50% - 8px) !important;
  max-width: calc(50% - 8px) !important;
  min-width: calc(50% - 8px) !important;
  float: none !important;
  margin: 0 !important;
  scroll-snap-align: start !important;
}

/* Product category/archive: product title max 2 lines with ellipsis. */
.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 2.8em !important;
  line-height: 1.4 !important;
}

/* Product-category pagination centered. */
.woocommerce nav.woocommerce-pagination,
.tax-product_cat nav.woocommerce-pagination,
.post-type-archive-product nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 32px auto 10px !important;
  text-align: center !important;
}
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Single product title: slightly smaller and cleaner. */
.single-product div.product .product_title,
.single-product .summary .product_title,
.single-product h1.product_title {
  font-size: clamp(1.45rem, 2.25vw, 2.15rem) !important;
  line-height: 1.15 !important;
}

@media (max-width: 900px) {
  .luc-v16-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .luc-v16-popular-card {
    min-width: 0 !important;
  }
  .luc-v16-popular-copy p,
  .luc-v16-subcat-list {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .luc-v16-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .luc-v16-popular-card {
    border-radius: 16px !important;
    padding: 8px !important;
  }
  .luc-v16-popular-copy span {
    display: none !important;
  }
  .luc-v16-popular-copy h3 {
    font-size: .78rem !important;
    line-height: 1.2 !important;
  }
  .luc-v16-popular-image {
    min-height: 74px !important;
  }
  .luc-v7-lane-card ul.products li.product {
    flex-basis: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    min-width: calc(50% - 8px) !important;
  }
}


/* v25.5.12 focused requested cleanup: smaller product title + hide selected homepage modules. */
.single-product div.product .product_title,
.single-product .summary .product_title,
.single-product h1.product_title,
.woocommerce div.product .product_title {
  font-size: clamp(1.22rem, 1.85vw, 1.78rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

/* Force-hide requested homepage sections without changing saved Customizer values. */
.home .luc-v15-home-precision,
.front-page .luc-v15-home-precision,
.home .luc-v12-command-hub,
.front-page .luc-v12-command-hub,
.home .luc-v11-commerce-suite,
.front-page .luc-v11-commerce-suite,
.home .luc-v8-journey,
.front-page .luc-v8-journey,
.home .luc-v8-merchandising,
.front-page .luc-v8-merchandising,
.home .luc-v8-command,
.front-page .luc-v8-command,
.home .luc-v7-campaign-wall,
.front-page .luc-v7-campaign-wall,
.home .luc-v7-marketplace,
.front-page .luc-v7-marketplace,
.home .luc-faq-section,
.front-page .luc-faq-section {
  display: none !important;
}

/* Hide the Show this section checkbox row for locked/removed sections in the Customizer UI. */
#customize-control-luc_v17_ctrl_faq_enable,
#customize-control-luc_v17_ctrl_v7_marketplace_enable,
#customize-control-luc_v17_ctrl_v7_campaign_enable,
#customize-control-luc_v17_ctrl_v8_command_enable,
#customize-control-luc_v17_ctrl_v8_merch_enable,
#customize-control-luc_v17_ctrl_v8_journey_enable,
#customize-control-luc_v17_ctrl_v11_suite_enable,
#customize-control-luc_v17_ctrl_v12_command_enable,
#customize-control-luc_v17_ctrl_v15_precision_enable {
  display: none !important;
}


/* v25.5.13 focused screenshot fixes: single breadcrumb, 2-line titles, clean category images. */
body.woocommerce-page .woocommerce-breadcrumb + .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb + .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb + .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb + .woocommerce-breadcrumb {
  display: none !important;
}

/* Keep shop/category breadcrumb as one clean line without duplicated vertical space. */
body.woocommerce-page .woocommerce-breadcrumb {
  margin-top: 14px !important;
  margin-bottom: 10px !important;
}
body.post-type-archive-product .luc-store-main,
body.tax-product_cat .luc-store-main,
body.tax-product_tag .luc-store-main {
  padding-top: 0 !important;
}

/* Product card titles: exactly 2 lines, then ellipsis; no overlap with price. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title,
.luc-product-card-title,
.luc-product-card .woocommerce-loop-product__title,
.luc-product-card-inner .woocommerce-loop-product__title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: calc(1.18em * 2) !important;
  max-height: calc(1.18em * 2) !important;
  line-height: 1.18 !important;
  margin: 12px 0 8px !important;
  padding: 0 18px !important;
}
.woocommerce ul.products li.product .price,
ul.products li.product .price,
.wc-block-grid__product-price,
.luc-product-card-price {
  display: block !important;
  clear: both !important;
  margin-top: 8px !important;
  padding: 0 18px !important;
}

/* Popular category cards: remove black transparent corners behind PNG/category images. */
.luc-v16-popular-card,
.luc-v16-popular-image,
.luc-v16-popular-image img,
.luc-v16-category-placeholder {
  overflow: hidden !important;
}
.luc-v16-popular-card {
  isolation: isolate !important;
}
.luc-v16-popular-image {
  background: linear-gradient(135deg, #fffaf0, #fff4d6) !important;
  border-radius: 0 var(--luc-radius-lg, 30px) var(--luc-radius-lg, 30px) 0 !important;
  padding: 0 !important;
}
.luc-v16-popular-image img {
  background: transparent !important;
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  display: block !important;
}
.luc-v16-category-placeholder {
  background: linear-gradient(135deg, #fffaf0, #fff4d6) !important;
  color: #a16207 !important;
}
@media (max-width: 860px) {
  .luc-v16-popular-image {
    border-radius: var(--luc-radius-lg, 26px) var(--luc-radius-lg, 26px) 0 0 !important;
  }
}


/* v25.5.14 screenshot cleanup: banner media corners, navigation color, and duplicate breadcrumbs. */
/* Remove black corner/triangle artifacts from single, double, triple banner media areas. */
.luc-v16-wide-banner,
.luc-v16-compact-banner,
.luc-v16-mini-banner,
.luc-v16-popular-card {
  overflow: hidden !important;
  background: linear-gradient(135deg, #fffdf7, #fff8e6) !important;
  isolation: isolate !important;
}
.luc-v16-banner-art,
.luc-v16-popular-image {
  background: linear-gradient(135deg, #ffffff, #fff8df) !important;
  overflow: hidden !important;
  clip-path: inset(0 round 0) !important;
}
.luc-v16-wide-banner .luc-v16-banner-art,
.luc-v16-compact-banner .luc-v16-banner-art {
  border-radius: 0 var(--luc-radius-lg, 32px) var(--luc-radius-lg, 32px) 0 !important;
}
.luc-v16-mini-banner .luc-v16-banner-art {
  border-radius: var(--luc-radius-lg, 28px) var(--luc-radius-lg, 28px) 0 0 !important;
}
.luc-v16-banner-image,
.luc-v16-popular-image img,
.luc-v16-category-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.luc-v16-banner-art::before,
.luc-v16-banner-art::after,
.luc-v16-popular-image::before,
.luc-v16-popular-image::after,
.luc-v16-wide-banner::before,
.luc-v16-wide-banner::after,
.luc-v16-compact-banner::before,
.luc-v16-compact-banner::after,
.luc-v16-popular-card::before,
.luc-v16-popular-card::after {
  display: none !important;
  content: none !important;
}

/* Keep the main desktop navigation clean instead of the black strip shown in the screenshot. */
.luc-v14-navigation-shell,
.luc-v10-navigation-shell,
#masthead .luc-v14-navigation-shell {
  display: block !important;
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(148,163,184,.20) !important;
  border-bottom: 1px solid rgba(148,163,184,.24) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.06) !important;
}
.luc-v14-navigation-row {
  min-height: 64px !important;
  align-items: center !important;
  gap: 18px !important;
}
.luc-primary-nav,
.luc-v14-primary-nav {
  background: transparent !important;
}
.luc-primary-nav ul,
.luc-v14-primary-nav ul,
.luc-primary-nav .menu,
.luc-v14-primary-nav .menu {
  align-items: center !important;
  gap: 8px !important;
}
.luc-primary-nav a,
.luc-v14-primary-nav a,
#masthead .luc-primary-nav a {
  color: #172033 !important;
  opacity: 1 !important;
  background: transparent !important;
}
.luc-primary-nav a:hover,
.luc-v14-primary-nav a:hover,
#masthead .luc-primary-nav a:hover {
  color: #111827 !important;
  background: #fff3cd !important;
}
.luc-v10-category-button,
.luc-v14-category-button,
.luc-v10-promo-pill,
.luc-v14-offer-pill,
.luc-v10-support-chip,
.luc-v14-support-chip {
  box-shadow: none !important;
}

/* Sticky header must never disappear because of older patch CSS. */
body.luc-sticky-header-enabled #masthead,
body.luc-sticky-header-enabled .luc-site-header[data-luc-sticky-header="enabled"],
body.luc-sticky-header-enabled .elementor-location-header[data-luc-sticky-header="enabled"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Product page: remove duplicate breadcrumb rows and large empty gap before product content. */
.single-product .woocommerce-breadcrumb + .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb ~ .woocommerce-breadcrumb,
.single-product nav.woocommerce-breadcrumb:nth-of-type(n+2) {
  display: none !important;
}
.single-product .woocommerce-breadcrumb {
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}
.single-product .luc-store-main,
.single-product main.site-main,
.single-product #primary {
  padding-top: 0 !important;
}
.single-product div.product {
  margin-top: 0 !important;
}

@media (max-width: 860px) {
  .luc-v16-wide-banner,
  .luc-v16-compact-banner,
  .luc-v16-mini-banner,
  .luc-v16-popular-card {
    border-radius: 24px !important;
  }
  .luc-v16-wide-banner .luc-v16-banner-art,
  .luc-v16-compact-banner .luc-v16-banner-art,
  .luc-v16-mini-banner .luc-v16-banner-art,
  .luc-v16-popular-image {
    border-radius: 22px 22px 0 0 !important;
  }
  .luc-v14-navigation-shell { display: none !important; }
}
