/*
Theme Name:   LabStore Child
Theme URI:    https://yourdomain.com/labstore-child/
Description:  A child theme for Woodmart - Science Lab Equipment Store
Author:       Your Name
Author URI:   https://yourdomain.com
Template:     woodmart
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  labstore-child
Tags:         woocommerce, science, lab, education
*/

/* =============================================
   LABSTORE CHILD THEME - CUSTOM STYLES
   ============================================= */

/* --- Root Variables (Match Woodmart color scheme) --- */
:root {
  --primary-color: #1a73e8;
  --secondary-color: #f57c00;
  --accent-color: #43a047;
  --text-dark: #212121;
  --text-medium: #555555;
  --text-light: #888888;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* --- Typography --- */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Header Customization --- */
.woodmart-header-main {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.woodmart-sticky-header {
  background-color: var(--bg-white) !important;
}

/* Top bar with contact info */
.woodmart-top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

.woodmart-top-bar a {
  color: #fff !important;
}

/* --- Logo Area --- */
.site-logo img {
  max-height: 60px;
  width: auto;
}

/* --- Navigation --- */
.woodmart-navigation .menu > li > a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  padding: 28px 14px;
  transition: color 0.2s ease;
}

.woodmart-navigation .menu > li > a:hover,
.woodmart-navigation .menu > li.current-menu-item > a {
  color: var(--primary-color);
}

/* Dropdown menus */
.woodmart-navigation .sub-menu {
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-radius: 0 0 6px 6px;
}

.woodmart-navigation .sub-menu li a {
  font-size: 13px;
  padding: 9px 20px;
  transition: all 0.2s ease;
}

.woodmart-navigation .sub-menu li a:hover {
  color: var(--primary-color);
  padding-left: 26px;
}

/* --- Category Mega Menu Icons --- */
.woodmart-megamenu .woodmart-megamenu-col-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* --- Hero Slider --- */
.woodmart-slider-wrap .slide-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  color: var(--text-dark);
}

.woodmart-slider-wrap .slide-subtitle {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 24px;
}

/* --- Buttons --- */
.btn, 
.button,
.woodmart-btn,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
  background-color: var(--primary-color);
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover,
.button:hover,
.woodmart-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: #1558b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26,115,232,0.35);
}

/* Add to cart button */
.woocommerce a.button.add_to_cart_button,
.single_add_to_cart_button {
  background-color: var(--secondary-color) !important;
}

.woocommerce a.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background-color: #e65100 !important;
}

/* --- Product Cards --- */
.product-grid-item,
.woodmart-product-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.product-grid-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.product-grid-item .product-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-grid-item .product-image-wrap img {
  transition: transform 0.4s ease;
}

.product-grid-item:hover .product-image-wrap img {
  transform: scale(1.05);
}

/* Product title */
.woocommerce-loop-product__title,
.product-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 10px 0 6px;
  line-height: 1.4;
}

/* Price styling */
.woocommerce-Price-amount,
.price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 16px;
}

del .woocommerce-Price-amount {
  color: var(--text-light);
  font-size: 13px;
}

/* Sale badge */
.onsale, 
.woodmart-label-onsale {
  background-color: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Category Boxes / Popular Categories --- */
.woodmart-category-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.woodmart-category-item:hover .woodmart-category-title {
  color: var(--primary-color);
}

.woodmart-category-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.woodmart-category-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(26,115,232,0.15);
}

/* --- Section Headings --- */
.woodmart-title-container .woodmart-title,
.widget-title,
.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.woodmart-title-container .woodmart-title::after,
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* --- Promo Banners --- */
.woodmart-banner {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.woodmart-banner .banner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
}

.woodmart-banner-overlay {
  background: linear-gradient(135deg, rgba(26,115,232,0.85) 0%, rgba(0,0,0,0.5) 100%);
}

/* --- Countdown Timer --- */
.woodmart-countdown .woodmart-count-item {
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 4px;
  min-width: 60px;
  text-align: center;
}

.woodmart-countdown .woodmart-count-value {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.woodmart-countdown .woodmart-count-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* --- Trust Badges / Certifications --- */
.lab-trust-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 40px 0;
}

.lab-trust-badges img {
  max-height: 70px;
  width: auto;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}

.lab-trust-badges img:hover {
  filter: grayscale(0%);
}

/* --- Product Single Page --- */
.single-product .product_title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.single-product .woocommerce-product-details__short-description {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin: 15px 0;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in {
  font-size: 13px;
  color: var(--text-light);
}

/* Product tabs */
.woocommerce-tabs .wc-tabs li.active a {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

/* --- Shop Page --- */
.woocommerce-ordering select,
.woocommerce-result-count {
  font-size: 13px;
  color: var(--text-medium);
}

/* Filter sidebar */
.widget_layered_nav .wc-layered-nav-rating a:hover,
.widget_layered_nav ul li a:hover {
  color: var(--primary-color);
}

/* --- Blog Articles --- */
.woodmart-blog-post {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.woodmart-blog-post:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.woodmart-blog-post .entry-title a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.woodmart-blog-post .entry-title a:hover {
  color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
  background-color: #1a1f2e;
  color: #b0bec5;
  font-size: 14px;
}

.footer-widget-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.site-footer a {
  color: #90a4ae;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  background-color: #111722;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  padding: 16px 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .woodmart-slider-wrap .slide-title {
    font-size: 26px;
  }

  .site-logo img {
    max-height: 45px;
  }
}

@media (max-width: 768px) {
  .woodmart-slider-wrap .slide-title {
    font-size: 20px;
  }

  .lab-trust-badges {
    gap: 12px;
  }

  .lab-trust-badges img {
    max-height: 50px;
  }
}

/* --- Custom Utility Classes --- */
.lab-section-padding {
  padding: 60px 0;
}

.lab-bg-light {
  background-color: var(--bg-light);
}

.lab-text-primary {
  color: var(--primary-color) !important;
}

.lab-badge-new {
  background-color: var(--accent-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
