/*
 Theme Name:   WoodMart Child
 Theme URI:    https://lividora.com
 Description:  WoodMart Child Theme for Lividora
 Author:       Lividora
 Template:     woodmart
 Version:      1.0.1
 Text Domain:  woodmart-child
*/



/* ── Logo Size (desktop) ── */
.site-logo img, .woodmart-logo img, .custom-logo, .site-logo a img, .whb-logo img {
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
}

/* ── Logo Size (mobile) ── */
@media (max-width: 768px) {
  .site-logo img, .woodmart-logo img, .custom-logo, .site-logo a img, .whb-logo img {
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
  }
}
/* ================================================================
   HIDE "lividora.com" SITE TITLE TEXT
   ================================================================ */
.woodmart-top-bar-text,
.site-title,
.top-bar-left,
.whb-top-bar .left-column {
  display: none !important;
}

/* Hide bare text node rendered before the header wrapper */
body > *:first-child:not(header):not(.woodmart-top-bar):not(script):not(style):not(div):not(#page):not(noscript) {
  display: none !important;
}

/* ================================================================
   ANNOUNCEMENT BAR — remove white gap above it
   ================================================================ */
.woodmart-top-bar-before,
.whb-top-bar-before {
  display: none !important;
}
.woodmart-top-bar {
  margin-top: 0 !important;
}

/* ================================================================
   MOBILE OPTIMIZATIONS
   ================================================================ */
@media (max-width: 768px) {

  /* Hide inline search bar, keep icon only */
  .woodmart-search-form:not(.mobile-search) { display: none !important; }

  /* Product gallery full width */
  .woocommerce-product-gallery { width: 100% !important; float: none !important; }
  .single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    padding: 15px !important;
  }

  /* Sticky Add to Cart */
  .single_add_to_cart_button {
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    font-size: 16px !important;
    left: 0 !important;
  }

  /* Product title and price */
  h1.product_title { font-size: 22px !important; line-height: 1.3 !important; }
  .price { font-size: 20px !important; }

  /* Product grid — 2 columns */
  .products.columns-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .products.columns-3 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Category images */
  .woodmart-image-hotspot { width: 100% !important; }

  /* Reduce horizontal padding */
  .site-content { padding: 0 10px !important; }

  /* Banner/slider text */
  .wd-slide-title { font-size: 26px !important; }
  .wd-slide-text  { font-size: 13px !important; }

  /* Header padding */
  .whb-row.whb-main-header { padding: 8px 15px !important; }

}
/* 1. Category images - equal square size */
@media (max-width: 768px) {
  .woodmart-image-box img,
  .wd-image-box img,
  img[src*="final_most_liked"],
  img[src*="final_spice_box"],
  img[src*="final_wooden_trays"],
  img[src*="final_2tier_rack"] {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
  }
}

/* 2. Bestsellers - 2 column grid on mobile */
@media (max-width: 768px) {
  .products.columns-1 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .products.columns-1 .product {
    width: 100% !important;
    margin: 0 !important;
  }
  .products.columns-1 .product img {
    height: 160px !important;
    object-fit: cover !important;
  }
  .products.columns-1 .product .product-title {
    font-size: 12px !important;
  }
  .products.columns-1 .price {
    font-size: 12px !important;
  }
}

/* 3. Icons - horizontal row on mobile */
@media (max-width: 768px) {
  .elementor-icon-box-wrapper,
  .wd-icon-box,
  .woodmart-icon-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .elementor-icon-box-icon,
  .wd-icon-box-icon {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }
  .elementor-icon-box-icon i,
  .wd-icon-box-icon i {
    font-size: 20px !important;
  }
  .elementor-icon-box-content,
  .wd-icon-box-content {
    text-align: left !important;
  }
  .elementor-icon-box-title,
  .wd-icon-box-title {
    font-size: 14px !important;
    margin: 0 !important;
  }
  /* Put all 4 icons in 2x2 grid */
  .elementor-row:has(.elementor-icon-box),
  .elementor-section:has(.elementor-icon-box) .elementor-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 4. Footer background color */
.site-footer,
.footer-container,
.woodmart-footer,
footer.footer,
.footer-style-1,
footer {
  background-color: #3D2B1A !important;
}

/* Fix icon boxes - proper horizontal layout */
@media (max-width: 768px) {
  .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 15px 20px !important;
  }
  .elementor-icon-box-icon {
    flex-shrink: 0 !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .elementor-icon-box-icon .elementor-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .elementor-icon-box-content {
    flex: 1 !important;
    text-align: left !important;
  }
  .elementor-icon-box-title {
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  .elementor-icon-box-description {
    font-size: 12px !important;
    margin: 0 !important;
  }
}

/* Fix footer background color */
footer.footer,
.site-footer,
.woodmart-footer,
.footer-container,
#colophon,
.footer-style-1,
[class*="footer"] {
  background-color: #3D2B1A !important;
  background: #3D2B1A !important;
}

/* Also fix any black sections */
section[style*="background-color: #000"],
section[style*="background-color:black"],
section[style*="background: black"],
.elementor-section[style*="background-color: rgb(0, 0, 0)"] {
  background-color: #3D2B1A !important;
}

/* Footer - add divider lines after headings and after each link group */
.site-footer .widget-title,
.site-footer .footer-widget-title,
.woodmart-footer .widget-title {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.3) !important;
  margin-bottom: 15px !important;
}

/* Add line after each footer menu item */
.site-footer .widget ul li,
.woodmart-footer .widget ul li {
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  padding: 8px 0 !important;
}

/* Remove line from last item */
.site-footer .widget ul li:last-child,
.woodmart-footer .widget ul li:last-child {
  border-bottom: none !important;
}

/* Fix icon boxes - force 2x2 grid on mobile */
@media (max-width: 768px) {

  /* Make the section a 2x2 grid */
  .elementor-section:has(.elementor-icon-box-wrapper) .elementor-container,
  .elementor-section:has(.elementor-widget-icon-box) .elementor-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  /* Each icon box column */
  .elementor-section:has(.elementor-icon-box-wrapper) .elementor-column,
  .elementor-section:has(.elementor-widget-icon-box) .elementor-column {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Icon box itself - vertical centered */
  .elementor-icon-box-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 10px !important;
    background: #F5EFE6 !important;
    border-radius: 12px !important;
    height: 100px !important;
  }

  /* Icon size */
  .elementor-icon-box-icon {
    margin-bottom: 8px !important;
    margin-right: 0 !important;
  }

  .elementor-icon-box-icon .elementor-icon {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }

  /* Icon circle - reduce size */
  .elementor-icon-box-icon span,
  .elementor-icon-box-icon i {
    font-size: 20px !important;
  }

  /* Text */
  .elementor-icon-box-title {
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .elementor-icon-box-description {
    display: none !important;
  }
}

/* Lividora Features Bar */
.lividora-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 30px 20px;
  background: #F5EFE6;
}
.lividora-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
  background: white;
  border-radius: 12px;
  gap: 10px;
}
.lividora-feature-icon {
  font-size: 30px;
}
.lividora-feature-text {
  font-size: 13px;
  font-weight: 600;
  color: #3D2B1A;
}
@media (max-width: 768px) {
  .lividora-features {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 15px;
    gap: 10px;
  }
  .lividora-feature-item {
    padding: 15px 10px;
  }
  .lividora-feature-icon {
    font-size: 24px;
  }
  .lividora-feature-text {
    font-size: 12px;
  }
}


/* Hide search bar on cart and checkout pages mobile */
@media (max-width: 768px) {
  .woocommerce-cart .woodmart-search-form,
  .woocommerce-checkout .woodmart-search-form,
  .woocommerce-cart .searchform,
  .woocommerce-checkout .searchform {
    display: none !important;
  }

  /* Make Proceed to Checkout button bigger and more visible */
  .wc-proceed-to-checkout .checkout-button,
  .checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background-color: #3D2B1A !important;
    color: white !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin-top: 15px !important;
  }

  /* Add free shipping message above checkout button */
  .wc-proceed-to-checkout::before {
    content: "✅ Free Shipping Included!" !important;
    display: block !important;
    text-align: center !important;
    color: #3D2B1A !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
  }

  /* Hide distracting recommended products on cart */
  .woocommerce-cart .cross-sells {
    display: none !important;
  }
}
/* 1. Hide search bar on cart page mobile */
@media (max-width: 768px) {
  .woocommerce-cart .woodmart-search-form,
  .woocommerce-cart .searchform,
  .woocommerce-cart input[type="search"] {
    display: none !important;
  }
}

/* 2. Side cart bottom bar - change to light cream */
.woodmart-side-cart-footer,
.woocommerce-mini-cart__buttons,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  background-color: #F5EFE6 !important;
}

.woodmart-side-cart-footer .button,
.woocommerce-mini-cart__buttons a,
.woocommerce-mini-cart__buttons .button {
  color: #3D2B1A !important;
}

.woocommerce-mini-cart__buttons a.checkout {
  background-color: #3D2B1A !important;
  color: white !important;
}

/* 3. Move Proceed to Checkout button to TOP of cart totals */
@media (max-width: 768px) {
  .wc-proceed-to-checkout {
    position: sticky !important;
    bottom: 60px !important;
    z-index: 999 !important;
    padding: 10px 15px !important;
    background: white !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
  }

  .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background-color: #3D2B1A !important;
    color: white !important;
    text-align: center !important;
    border-radius: 8px !important;
  }

  /* Free shipping confirmation above button */
  .wc-proceed-to-checkout::before {
    content: "✅ Free Shipping Included!" !important;
    display: block !important;
    text-align: center !important;
    color: green !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
  }

  /* Hide coupon section to reduce clutter */
  .woocommerce-cart .coupon {
    display: none !important;
  }
}

/* 4. Fix You May Be Interested In section */
.woocommerce-cart .cross-sells .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.woocommerce-cart .cross-sells .product img {
  height: 150px !important;
  object-fit: cover !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .woocommerce-cart .searchform,
  .woocommerce-cart .search-form,
  .woocommerce-cart .woodmart-search-form,
  .woocommerce-cart .wd-search-form,
  .woocommerce-cart form[role="search"],
  .woocommerce-cart .site-search,
  .woocommerce-cart #searchform,
  .woocommerce-cart .wp-block-search,
  .woocommerce-cart input[type="search"],
  .woocommerce-cart .search-field,
  .woocommerce-cart .wd-search-wrapper,
  .woocommerce-cart .woodmart-search-wrapper,
  .woocommerce-checkout .searchform,
  .woocommerce-checkout .woodmart-search-form,
  .woocommerce-checkout .wd-search-form,
  .woocommerce-checkout input[type="search"],
  .woocommerce-checkout .wd-search-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
