/* =========================================
   1. GLOBAL LAYOUT & TYPOGRAPHY
   ========================================= */

/* Mobile Topbar visibility check */

.col-full.topbar-wrapper.hide-on-mobile {
  border-bottom: 1px solid #e8e8e8;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: #2BA0B4;
  opacity: 1;
}

/* Remove default product meta in cart/checkout blocks for cleaner look */

.wc-block-cart .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-product-metadata {
  display: none;
}

/* --- Content Margins --- */

.entry-content p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.entry-content h1 {
  margin: 2.5rem 0 1.25rem;
}

.entry-content h2 {
  margin: 2rem 0 1rem;
}

.entry-content h3 {
  margin: 1.75rem 0 0.875rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.5rem 0 0.75rem;
}

.entry-content ol li,
.entry-content ul li {
  margin-left: 10px;
  line-height: 1.75rem;
}

/* Gutenberg Block Headings */

h2.wp-block-heading {
  margin: 40px 0;
}

h3.wp-block-heading {
  margin: 35px 0;
}

h4.wp-block-heading {
  margin: 30px 0;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */

/* Remove focus border on Mega Menu */

#mega-menu-wrap-primary #mega-menu-primary li#mega-menu-item-7764 > a.mega-menu-link:focus {
  border-right-width: 0px;
}

.top-bar-left.widget_text {
  border-bottom-width: 0px;
}

.top-bar-icon {
  font-style: normal;
  font-weight: 700;
}

/* =========================================
   3. HEADER SEARCH BAR IMPROVEMENTS - CLEAN
   ========================================= */

/* 1. REMOVE THE OLD THEME ICON (Left Side) */

.site-search .woocommerce-product-search:before,
.site-search form:before {
  content: none !important;
  display: none !important;
}

/* 2. Main Search Container */

.site-search .woocommerce-product-search {
  display: flex;
  align-items: stretch;
  overflow: visible !important;
  /* Allow dropdown to overflow */
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-radius: 50px;
  background: #fff;
  position: relative;
}

/* 3. Search Input Field */

.site-search .woocommerce-product-search input[type="search"] {
  border: 1px solid #e1e1e1;
  border-right: none;
  border-radius: 50px 0 0 50px !important;
  flex-grow: 1;
  padding-left: 20px !important;
  /* Reset padding since icon is gone */
  box-shadow: none !important;
}

/* 4. Search Button - The Green Pill */

.site-search .woocommerce-product-search button[type="submit"] {
  /* RESET HIDDEN STATE */
  clip: auto !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Text Hide */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  /* Shape & Color */
  background-color: #1F5256;
  border-radius: 0 50px 50px 0 !important;
  border: 1px solid #1F5256;
  /* Size */
  height: auto;
  min-height: 46px;
  width: 60px;
  min-width: 60px;
  padding: 0;
  margin: 0;
  /* ICON */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Hover */

.site-search .woocommerce-product-search button[type="submit"]:hover {
  background-color: #1F5256;
  border-color: #1F5256;
}

/* =========================================
   4. AJAX SEARCH DROPDOWN (RESULTS) - FIXED LAYER
   ========================================= */

/* The Dropdown Container */

body .commercekit-ajs-results {
  /* KEY FIX: Force it to float above content */
  position: absolute !important;
  z-index: 99999 !important;
  left: 0 !important;
  right: 0 !important;
  /* Visuals */
  border: none !important;
  background-color: #ffffff !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
  overflow: hidden !important;
  margin-top: 5px !important;
}

/* Inner suggestions container */

body .commercekit-ajs-suggestions {
  border: none !important;
  background-color: #fff !important;
}

/* Individual Result Item */

body .commercekit-ajs-suggestions > .autocomplete-suggestion {
  padding: 12px 15px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: #fff !important;
  transition: background 0.2s ease !important;
  position: relative !important;
  /* Ensures z-index context locally */
}

/* Hover Effect */

body .commercekit-ajs-suggestions > .autocomplete-suggestion:hover,
body .commercekit-ajs-suggestions > .autocomplete-suggestion.active {
  background-color: #f0fdf4 !important;
  /* Pale Green */
}

/* Images */

body .commercekit-ajs-product-image img,
body .commercekit-ajs-post-image img {
  border-radius: 6px !important;
  width: 45px !important;
  height: 45px !important;
  object-fit: cover !important;
}

/* Text & Title */

body .commercekit-ajs-product-title,
body .commercekit-ajs-post-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* Price */

body .commercekit-ajs-product-price {
  color: #4CAF50 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* View All Link */

body .commercekit-ajs-view-all-holder > a {
  background-color: #333 !important;
  color: #fff !important;
  border-radius: 50px !important;
  margin: 10px 15px !important;
  width: auto !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
}

body .commercekit-ajs-view-all-holder > a:hover {
  background-color: #4CAF50 !important;
}

/* =========================================
   5. PRODUCT PAGE & WOOCOMMERCE
   ========================================= */

/* Main Price - Huge & Green (Only in Summary Box) */

.single-product .entry-summary p.price {
  font-size: 1.25rem !important;
  color: #2d8a32;
  /* Garden Green */
  font-weight: 700;
  margin-bottom: 15px;
  opacity: 1;
}

/* Safety Check: Ensure Related Products below stay normal size */

.single-product .related.products .price,
.single-product .up-sells .price {
  font-size: 1rem !important;
  font-weight: 600;
}

/* Tiered Pricing Table Styling (Structure Only) */

.summary table {
  margin-bottom: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
}

.summary table th,
.summary table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
}

.summary table thead {
  background: #f9f9f9;
  font-weight: 600;
}

/* Add to Cart Area */

form.cart {
  background: #fbfbfb;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 20px;
}

/* Trust Badges / Payment Icons */

.shoptimizer-trust-badges img {
  max-height: 25px;
  width: auto;
  margin: 0 5px;
}

/* Sticky Bar (Mobile) */

.shoptimizer-sticky-add-to-cart {
  background-color: #ffffff;
  border-top: 2px solid #2d8a32;
}

/* --- THE ORANGE TRIGGER (Add to Cart Button) --- */

/* Strategy: Orange (#ff5a00) creates maximum contrast against the Green theme. */

button.single_add_to_cart_button,
.shoptimizer-sticky-add-to-cart .button {
  background-color: #EA4C00 !important;
  /* BLAZE ORANGE */
  font-weight: 700 !important;
  border-radius: 4px !important;
  border: none !important;
  /* Remove any green borders */
  display: inline-flex !important;
  /* Flexbox for perfect centering */
  align-items: center;
  justify-content: center;
  height: 50px !important;
  /* Sizing */
  padding: 0 30px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  line-height: 1 !important;
}

/* Hover State: Darker Orange */

button.single_add_to_cart_button:hover,
.shoptimizer-sticky-add-to-cart .button:hover {
  background-color: #cc4800 !important;
  /* 20% Darker Orange */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.4);
  /* Orange Glow */
}

/* Typography */

h1.product_title.entry-title {
  color: #22181C;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.woocommerce-tabs h2 {
  color: #333;
  font-size: 1.4rem;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
  display: inline-block;
}

/* Global Table Styling */

thead tr th,
tbody tr td {
  text-align: left;
  padding-left: 10px;
}

/* =========================================
   6. CUSTOM MODULES (TIERED PRICING & PAYMENTS)
   ========================================= */

/* "HortiPlus Pay" Module */

.hplus-pay {
  margin: 10px 0 0;
  border: 1px dashed #DEE2E6;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  background: #fff;
}

.hplus-pay > legend {
  font-weight: 600;
  color: #004070;
  padding: 0 6px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.pay-logo {
  height: clamp(24px, 2.5vw, 30px);
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pay-logo:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@media (max-width: 576px) {
  .payment-logos {
    gap: 8px;
  }
}

/* Container: Pale Mint + Strong Border */

tr.active-tier,
tr.selected-tier,
.tier-pricing-table tr.active,
table.tiered-pricing-table tr.active,
table.tiered-pricing-table tr[class*="active"] {
  background-color: #e8f5e9 !important;
  /* Pale Mint */
  border: 2px solid #2d8a32 !important;
  /* Green Border */
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

/* The Text: Dark & Readable */

tr.active-tier td,
tr.active-tier span,
tr.active-tier strong,
table.tiered-pricing-table tr[class*="active"] td,
table.tiered-pricing-table tr[class*="active"] span,
table.tiered-pricing-table tr[class*="active"] strong {
  color: #1a1a1a !important;
  /* Force Dark Text */
  text-shadow: none !important;
}

/* The Price & Currency: GREEN & BOLD */

tr.active-tier .amount,
tr.active-tier .price-cell,
tr.active-tier .woocommerce-Price-currencySymbol,
table.tiered-pricing-table tr[class*="active"] .amount,
table.tiered-pricing-table tr[class*="active"] .woocommerce-Price-currencySymbol {
  color: #2d8a32 !important;
  /* Brand Green */
  font-weight: 800 !important;
}

.summary table td {
  text-align: left;
  text-indent: 8px;
}

.summary table th {
  text-align: left;
  text-indent: 8px;
}

/* =========================================
   7. FOOTER STYLING (Deep Emerald Style)
   ========================================= */

/* Main Footer Container */

.site-footer {
  background-color: #1F5256 !important;
  /* Deep Emerald */
  color: #ffff;
  /* Light text */
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 4px solid #43b9a7;
  /* Green separation line */
  font-size: 0.95rem;
}

/* Widget Headings */

.site-footer .widget .widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  /* Pure white */
  margin-bottom: 25px;
  border: none;
  position: relative;
}

/* Green dash under heading */

.site-footer .widget .widget-title::after {
  content: "";
  display: block;
  width: 35px;
  height: 3px;
  background: #43b9a7;
  /* Brand Green */
  margin-top: 8px;
  border-radius: 2px;
}

/* Links - Slide Effect */

.site-footer ul li,
.site-footer .widget_nav_menu ul li {
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.site-footer a {
  color: #cadbdc !important;
  /* Blue-grayish white */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
}

/* Hover: Brighten & Slide */

.site-footer a:hover {
  color: #ffffff !important;
  transform: translateX(6px);
}

/* Clean up old borders */

#text-10.widget.widget_text,
#text-11.widget.widget_text,
#text-26.widget.widget_text {
  border-left: none !important;
}

/* Bottom Bar (Copyright) */

footer:last-child:not(:only-of-type) {
  background-color: #15383b !important;
  /* Darker shade */
  border-top: 1px solid rgba(255,255,255,0.05);
  /* Subtle line */
  padding: 20px 0;
  margin: 0;
  opacity: 1;
}

.site-info {
  font-size: 0.85rem;
  color: #ffff;
  /* Muted text */
}

/* =========================================
   8. HOMEPAGE IMPROVEMENTS (HEADINGS & PRODUCTS)
   ========================================= */

/* Section "Related Products" styling */

.related.products,
.up-sells {
  margin-top: 60px !important;
  border-top: 1px solid #eee;
  padding-top: 50px;
}

.related.products > h2,
.up-sells > h2 {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  text-align: center;
  position: relative;
  margin-bottom: 40px !important;
  padding-bottom: 15px;
}

/* The Magic Line under "Related Products" */

.related.products > h2::after,
.up-sells > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #2d8a32;
  margin: 15px auto 0;
}

/* Homepage Prices - Always Green */

.home .price,
.home .price span.amount {
  color: #2d8a32 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* Elementor Homepage Headings Fix */

.home h2.elementor-heading-title {
  color: #1F5256 !important;
  /* Deep Emerald */
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Orange Line under Elementor Headings */

.home h2.elementor-heading-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: #ff5a00;
  /* Blaze Orange */
  margin: 15px auto 0;
  border-radius: 2px;
}

.woocommerce-products-header__title.page-title {
  text-indent: 33px;
}

#masthead.site-header {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #cddbde;
}

.col-full-nav {
  border-top-width: 0px;
  border-top-style: hidden;
}