/*!
Theme Name: WP Shop Woocommerce Child
Template: wp-shop-woocommerce
Theme URI: https://www.revolutionwp.com/products/free-shop-wordpress-theme
Author: Dhiraj
Author URI: https: //www.linkedin.com/in/dhirajpatra/
Description: WP Shop WooCommerce child theme is a free eCommerce WordPress theme designed specifically for online stores using WooCommerce plugin. It offers a clean and modern design, customizable features, and seamless integration with WooCommerce to help you create a professional online store with ease.
Version: 1.0.3
*/

/**
 * GLOBAL TEXT DECORATION OVERRIDE
 * Prevents redundant `text-decoration: none !important;` on every element.
 */
*,
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  /* Removes underline globally */
}

/* ====================================
   COMMERCE & WIDGET STYLES
   ==================================== */

/* Sidebar widget boxes - Combined for efficiency */
.widget_product_categories,
.widget_layered_nav,
.widget_price_filter {
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Filter links and category list item links */
.widget_product_categories a,
.widget_layered_nav a,
.product-cat li a {
  display: block;
  font-size: 14px;
  font-weight: bold !important;
  color: #222;
  padding: 6px 8px;
  /* Used for widget links */
}

/* Category list item specific styles */
.product-cat li a {
  color: #000;
  font-weight: bold !important;
  letter-spacing: 1px;
  padding: 6px 12px;
  /* Specific padding for product-cat list */
}

/* Active filter / category */
.widget_product_categories .current-cat>a,
.widget_layered_nav .chosen {
  background: #ff6600;
  color: #fff;
  border-radius: 4px;
}

/* Category/Archive Title - Merged duplicate definitions */
.archive .page-title,
.categry-title strong {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: .5px;
}

/* Separate color for top banner title vs content title */
.categry-title strong {
  color: #fff;
  /* White for the banner/colored title */
  padding: 5px 10px;
}

.archive .page-title {
  color: #111;
  /* Dark for the regular page title */
}

.categry-title {
  background: var(--secondary-color);
  padding: 8px;
  letter-spacing: 1px;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

/* ====================================
   PRODUCT GRID (LOOP) STYLES
   ==================================== */

/* Grid container */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual card */
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Card hover - Consolidated multiple definitions/conflicts */
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #ff6600;
  background: #f0f0f0;
  /* Default hover background */
  color: #000;
}

/* Product image */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Product link/title/price color on hover */
.woocommerce ul.products li.product:hover a,
.woocommerce ul.products li.product:hover h2,
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover .price {
  color: #000 !important;
}

/* Force full width for lists without column classes */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
  width: 100%;
  float: left;
  clear: both;
  margin: 0 0 2.992em;
}

/* ====================================
   SINGLE PRODUCT STYLES
   ==================================== */

/* Gallery */
.single-product .woocommerce-product-gallery {
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #eee;
}

/* Thumbnails */
.woocommerce-product-gallery__thumbnail {
  border-radius: 6px;
  overflow: hidden;
}

/* Summary area */
.single-product .summary {
  padding-left: 24px;
}

.single-product .summary h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.single-product .price {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 14px;
}

/* Primary add-to-cart button */
.single-product .single_add_to_cart_button {
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: none;
}

.single-product .single_add_to_cart_button:hover {
  background: #ff6600;
}

/* ====================================
   RELATED PRODUCTS STYLES
   ==================================== */

/* Related products container */
.woocommerce .related ul.products {
  max-width: 100%;
  margin: 0 auto;
}

/* Related product card width */
.related ul.products li.product {
  width: 23%;
  margin-right: 2.5%;
  margin-bottom: 2.5%;
}

.related ul.products li.product:nth-child(4n) {
  margin-right: 0;
}

/* Related product images */
.related ul.products li.product .woocommerce-LoopProduct-link img {
  height: 200px;
  object-fit: cover;
}

/* ====================================
   NAVIGATION & WIDGET LINKS
   ==================================== */

/* Footer and Sidebar widget links */
aside#secondary .widget ul li a,
section.footer-top .widget ul li a {
  color: #fff;
  z-index: 1;
  font-size: 15px;
  letter-spacing: .8px;
  font-weight: 400;
  display: inline-block;
  align-items: center;
  padding: 0 !important;
  position: relative;
  transition: ease-in 0.4s;
}

/* Main menu links - Combined font size overrides */
.main-navigation a,
nav ul li a,
.main-navigation ul ul a,
.main-navigation ul li a {
  font-size: 16px !important;
}

/* Menu item hover background - Merged */
.main-navigation ul li:hover>a {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}

/* Submenu hover background */
.main-navigation ul ul li:hover>a {
  background-color: #e5e5e5 !important;
  color: #000 !important;
}

/* Top Categories list hover - Merged for cleaner effect */
.product-cat ul li {
  transition: background-color 0.2s ease-in-out;
  font-weight: bold !important;
}

.product-cat ul li:hover {
  background-color: #f0f0f0 !important;
  border-left: 3px solid #3b82f6 !important;
  font-weight: bolder !important;
  /* Blue highlight */
}

.product-cat ul li:hover>a {
  color: #000 !important;
  font-weight: bolder !important;
}

/* ====================================
   CONTENT TEXT & HEADINGS
   ==================================== */

/* Page content text */
.entry-content,
.page .entry-content,
.single .entry-content,
p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Reduced Heading sizes - Consolidated and resolved conflicts */
.entry-content h1,
h1 {
  font-size: 24px !important;
}

/* h2 defined twice, prioritizing the smallest value for 'compact' theme */
.entry-content h2,
h2 {
  font-size: 18px !important;
  /* Overriding 20px */
}

.entry-content h3,
h3 {
  font-size: 16px !important;
}

h6.product-heading-text a {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

/* ====================================
   BANNERS & SLIDERS
   ==================================== */

/* Compact Single Product Slider - Top Section */
#compact-product-slider {
  padding: 28px 0 !important;
  background: #fff;
  margin-bottom: 0;
}

#compact-product-slider .slider-title-compact h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 23px;
  color: #333;
  font-weight: 600;
}

/* --- Home Slider Positioning & Spacing --- */

/* 1. Force the slider to span the full width of the container */
.ramdev-home-slider {
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 30px !important;
  /* Space before Shop by Category starts */
  clear: both !important;
}

/* 2. Remove default Storefront padding that might create a gap above the slider */
.home .site-main {
  padding-top: 0 !important;
}

/* 3. Ensure the Status Bar (in your header) touches the slider */
.asnew-stats-bar {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #eee;
}

/* 4. Fix for the Shop by Category section margin */
.home .storefront-product-categories {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ====================================
   MAIN TRUST BAR STYLES (DEFAULT/DESKTOP)
   ==================================== */

.trust-bar-wrapper {
  background-color: #f7ff00;
  /* Neon yellow background color */
  padding: 10px 0;
  width: 100%;
}

@media (min-width: 769px) {

  /* These restrictions ONLY apply on desktop/tablet views */
  .trust-bar-wrapper {
    max-height: 140px;
    overflow: hidden;
  }
}

.trust-bar {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- INDIVIDUAL ITEM STYLING --- */
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- ICON STYLING --- */
.icon-circle {
  width: 50px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 20px;
  background-color: #fff;
}

/* --- TEXT STYLING --- */
.text-content .title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  margin: 0;
}

.text-content .subtitle {
  font-size: 12px;
  color: #000;
  margin: 0;
}

/* --- CRITICAL FIX FOR MOBILE TRUST BAR LAYOUT --- */

@media (max-width: 768px) {

  /* CRITICAL: Overrides the max-height/overflow from the desktop CSS */
  .trust-bar-wrapper {
    max-height: none !important;
    overflow: visible !important;
  }

  /* 1. Target the main container and force it to adapt to its content */
  #custom-pre-footer-banner {
    width: 100%;
    height: auto !important;
    min-height: 100px;
    overflow: visible !important;
    padding: 10px 0;
  }

  /* 2. Target the unordered list to allow wrapping */
  .trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    height: auto !important;
  }

  /* 3. Style individual items to stack 2-per-row */
  .trust-bar-item {
    width: 50%;
    min-width: 150px;
    padding: 10px 5px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  /* 4. Text adjustments */
  .trust-bar-item .title {
    font-size: 11px;
    margin-bottom: 2px;
    line-height: 1.1;
  }

  .trust-bar-item .subtitle {
    font-size: 10px;
    line-height: 1.1;
  }

  /* 5. For very small phones, force 1-per-row */
  @media (max-width: 450px) {
    .trust-bar-item {
      width: 100%;
      justify-content: flex-start;
      padding-left: 15px;
    }
  }
}

/* ====================================
   FULL-WIDTH LAYOUT OVERRIDE
   ==================================== */

aside#secondary {
  display: none !important;
  /* 1. Hide the Sidebar completely */
}

main#primary {
  width: 100% !important;
  /* 2. Force Main Content Area to take 100% width */
  max-width: 100% !important;
}

.content-area {
  width: 100% !important;
  /* 4. Ensure the Content Area takes full width */
  float: none !important;
  padding-right: 0 !important;
}

/* ====================================
   GLOBAL COMPACT SPACING OVERRIDE
   (Overrides from second section)
   ==================================== */

/* Reset excessive margins - Consolidated */
* {
  margin-bottom: 0;
}

/* Header */
.header-info-box {
  padding: 5px 0;
  font-size: 15px;
}

.top-box,
.top-header,
.main-header,
.site-header {
  padding-top: 0px !important;
  padding-bottom: 4px !important;
  min-height: auto !important;
}

.site-branding img {
  max-height: 90px !important;
}

.main-navigation ul li a {
  padding: 8px 20px !important;
}

/* Page Content */
#content,
.site-content {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

p {
  margin-bottom: 5px !important;
  /* Overriding 10px */
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
}

.button {
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  text-decoration: none !important;
}

/* Product Grid Compact */
.woocommerce ul.products {
  gap: 10px !important;
  /* Override 20px gap */
}

.woocommerce ul.products li.product {
  padding: 8px !important;
  /* Override 12px padding */
}

.woocommerce ul.products li.product:hover {
  transform: none !important;
  /* Remove lift hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.woocommerce ul.products li.product img {
  height: 150px !important;
  /* Override 180px height */
}

.woocommerce-loop-product__title {
  margin: 5px 0 !important;
  font-size: 14px !important;
}

.price {
  margin: 4px 0 !important;
}

/* Single Product Compact */
.single-product .summary {
  padding-left: 10px !important;
  /* Override 24px padding */
}

.single-product .price {
  margin: 5px 0 !important;
}

.single_add_to_cart_button {
  padding: 8px 14px !important;
  /* Override 12px 20px padding */
}

/* Sidebar Compact */
.widget_product_categories,
.widget_layered_nav,
.widget_price_filter {
  padding: 10px !important;
  /* Override 16px padding */
  margin-bottom: 10px !important;
  /* Override 20px margin */
}

.widget_product_categories a {
  padding: 5px 8px !important;
  /* Override 6px 8px padding */
}

/* Footer Compact */
.site-footer,
.footer-top,
.footer-widgets {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.site-footer .widget {
  margin-bottom: 5px !important;
}

.site-info {
  padding: 5px 0 !important;
  font-size: 13px !important;
  color: #fff !important;
}

.footer-bottom {
  text-align: center;
  padding: 10px 0;
  background: var(--secondary-color);
  color: #000;
}

/* ====================================
   MEDIA QUERIES (RESPONSIVE)
   ==================================== */

@media (max-width: 768px) {

  /* Product Grid */
  .woocommerce ul.products {
    gap: 14px;
    /* Override 10px/20px gap */
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    height: 140px;
    /* Override 180px/150px height */
  }

  /* Single Product */
  .single-product .summary {
    padding-left: 0;
    margin-top: 16px;
  }

  .woocommerce form.cart .quantity {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Related Products */
  .related ul.products li.product {
    width: 48%;
    margin-right: 4%;
  }

  .related ul.products li.product:nth-child(2n) {
    margin-right: 0;
  }

  /* Compact Overrides */
  .woocommerce ul.products li.product img {
    height: 130px !important;
    /* Override 140px/150px */
  }

  .main-navigation ul li a {
    padding: 5px 8px !important;
  }
}

@media (max-width: 480px) {

  /* Product Grid */
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products li.product {
    padding: 10px;
    /* Override 8px/12px padding */
  }

  /* Single Product */
  .single-product .summary h1 {
    font-size: 1.25rem;
  }

  /* Related Products */
  .related ul.products li.product {
    width: 100%;
    margin-right: 0;
  }
}

.woocommerce ul.products li.product .button {
  display: inline-block;
  margin-top: 1em;
  text-decoration: none !important;
}

/* ====================================
   CUSTOM NOTIFICATION POPUP STYLES
   ==================================== */
/* #custom-notification-popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 8px;
  position: relative;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
} */

/* ====================================
   CUSTOM BANNER SPACING OVERRIDE
   ==================================== */
.custom-banner,
.custom-pre-footer-banner,
#custom-pre-footer-banner {
  margin-top: 10px !important;
  margin-bottom: -6px !important;
  padding: 10px 0 !important;
  width: 100% !important;
}

/* ====================================
   CUSTOM HOMEPAGE SECTIONS SPACING
   ==================================== */

.custom-homepage-section {
  /* Add a 30px gap below each displayed page section */
  margin-bottom: 30px;
  /* Add a small amount of vertical padding within the section */
  padding-top: 10px;
}

/* ====================================
   PAGE-SPECIFIC BACKGROUND IMAGE
   ==================================== */
/*body.home {
  background: url('/wp-content/themes/wp-shop-woocommerce-child/images/rainbow_background.png') no-repeat center center fixed !important;
  background-size: cover !important;
}*/

/* ====================================
   HOMEPAGE BLOG SECTION STYLES
   ==================================== */
.blog-section {
  padding: 30px 10px;
}

.blog-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #000;
}

.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* Spacing between grid items */
}

/* Individual blog post item style */
.blog-post-item {
  /* Calculates the width for 4 columns with 20px gaps */
  width: calc(25% - 15px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.blog-post-item:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: 180px;
  /* Adjust height as needed for your design */
  object-fit: cover;
  display: block;
}

.post-content-wrapper {
  padding: 15px;
}

.post-title a {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  display: block;
  margin-bottom: 5px;
}

.post-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}


/* --- RESPONSIVE ADJUSTMENTS for Blog Grid --- */

/* Tablet View: 2 columns */
@media (max-width: 992px) {
  .blog-post-item {
    /* Width for 2 columns with 20px gap */
    width: calc(50% - 10px);
  }
}

/* Mobile View: 1 column */
@media (max-width: 576px) {
  .blog-post-item {
    width: 100%;
  }
}

/* --- Footer Text Color Customization --- */

/* 1. Target the main footer text and paragraphs */
.site-footer,
.footer-widgets,
.footer-widgets .widget,
.footer-widgets p {
  color: #1e293b !important;
  /* Dark slate color */
}

/* 2. Target the footer widget titles */
.footer-widgets .widget-title {
  color: #0f172a !important;
  /* Even darker shade for titles */
  font-weight: 700;
}

/* 3. Target footer links and list items */
section.footer-top .widget ul li a,
.site-footer a,
.footer-widgets ul li a {
  color: #334155 !important;
  /* Darker grey for links */
  transition: color 0.3s ease;
}

/* 4. Link hover state for visibility */
section.footer-top .widget ul li a:hover,
.site-footer a:hover {
  color: #db2777 !important;
  /* Maintains the pink accent on hover */
  text-decoration: underline !important;
}

/* 5. Address and contact text (Specific to your footer screenshot) */
.footer-widgets .textwidget,
.footer-widgets address {
  color: #1e293b !important;
}

section.footer-top .widget p {
  color: #475569 !important;
}

.widget ul li,
section.footer-top .widget ul li {
  color: #334155 !important;
}

.developer-credit a {
  color: #fff !important;
  font-weight: 600;
}

/* --- NewJaisa Style Stats Bar --- */

.asnew-stats-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee;
  padding: 25px 0 !important;
  width: 100% !important;
}

.asnew-stats-bar .stats-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap;
  max-width: 90% !important;
  margin: 0 auto !important;
}

.stat-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px;
  flex: 1;
  min-width: 220px;
  padding: 10px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: #f8fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.stat-icon i.fa {
  font-size: 22px;
  color: #334155;
}