/*
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.12
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;
}
