/*
Theme Name: ShoppingCart Child
Theme URI: https://themefreesia.com/themes/shoppingcart
Author: Your Name
Author URI: https://yourwebsite.com
Description: Child theme for ShoppingCart by Theme Freesia
Template: shoppingcart
Version: 1.0.0
Text Domain: shoppingcart-child
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Add your custom CSS below this line */

/* ─────────────────────────────────────────────
  SLIDER BOTTOM CONTAINER & SERVICE BAR STYLE
────────────────────────────────────────────── */

/* ==========================================
   WOOCOMMERCE ADD TO CART BUTTON UI UPGRADE
   ========================================== */
.product_meta .tagged_as {
    display: none !important;
}
/* Target both single product and shop archive buttons */
.single-product .single_add_to_cart_button,
.woocommerce .product .add_to_cart_button,
.woocommerce .product .ajax_add_to_cart {
    
    /* 1. Reset & Visibility */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* 2. Colors & Background */
    background-color: #ff5722 !important; /* Modern Coral/Orange - Change to match your brand */
    color: #ffffff !important;            /* Text color */
    
    /* 3. Typography */
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* 4. Sizing & Spacing */
    padding: 14px 32px !important;
    min-height: auto !important;
    line-height: 1 !important;
    border: none !important;
    border-radius: 50px !important;       /* Pill-shaped button. Use 4px-8px for soft square */
    
    /* 5. Shadow & Effects */
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3) !important; /* Soft glowing shadow */
    cursor: pointer;
    
    /* 6. Smooth Transition */
    transition: all 0.3s ease-in-out !important;
}



/* ==========================================
   HOVER EFFECTS
   ========================================== */
.single-product .single_add_to_cart_button:hover,
.woocommerce .product .add_to_cart_button:hover,
.woocommerce .product .ajax_add_to_cart:hover {
    
    background-color: #e64a19 !important; /* Slightly darker shade on hover */
    color: #ffffff !important;
    
    /* Move button slightly up and deepen shadow for a "lifted" 3D effect */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5) !important;
}

/* ==========================================
   ACTIVE / CLICK EFFECT
   ========================================== */
.single-product .single_add_to_cart_button:active,
.woocommerce .product .add_to_cart_button:active,
.woocommerce .product .ajax_add_to_cart:active {
    /* Push down slightly when clicked */
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4) !important;
}


.bl-slider-bottom-widgets {
  background: #fff;
  padding: 24px 0 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}

/* Service Bar Layout */
.service-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.service-icon {
  font-size: 24px;
  line-height: 1;
}
.service-text {
  display: flex;
  flex-direction: column;
}
.service-text strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}
.service-text span {
  font-size: 12px;
  color: var(--muted);
}

/* Social Bar integration */
.bl-slider-socials-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.bl-social-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.bl-social-icons {
  display: flex;
  gap: 8px;
}
.bl-social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
}
.bl-social-icons svg {
  width: 14px;
  height: 14px;
}
.bl-social-icons a.bl-s-fb:hover { border-color: #3b5998; color: #3b5998; background: #ecf0f9; }
.bl-social-icons a.bl-s-ig:hover { border-color: #e1306c; color: #e1306c; background: #fdf0f4; }
.bl-social-icons a.bl-s-yt:hover { border-color: #ff0000; color: #ff0000; background: #fff0f0; }
.bl-social-icons a.bl-s-tw:hover { border-color: #1da1f2; color: #1da1f2; background: #e8f5fe; }


/*search*/
/* ==========================================================================
   Modern & Responsive Product Grid for Search Layout
   ========================================================================== */

/* Fix search container layout columns */
.search-results-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Ensure the WooCommerce loop looks like a clean grid grid */
.search-results-container ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on desktop */
    gap: 25px;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Format each individual product card */
.search-results-container ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

/* Make entire card look premium on hover */
.search-results-container ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: #f77426 !important; /* Theme accent line color */
}

/* Images inside product search cards */
.search-results-container ul.products li.product img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px !important;
    border-radius: 4px;
}

/* Clean up descriptive overlapping texts/bullets if they show up in previews */
.search-results-container ul.products li.product ul,
.search-results-container ul.products li.product li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Beautiful responsive alignments */
/* Force 2 products per row on mobile screens */
@media (max-width: 767px) {
    .search-results-container ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important; /* Space between products */
        padding-left: 0 !important;
        list-style: none !important;
    }

    .search-results-container ul.products li.product {
        width: 100% !important;   /* Overrides theme static pixel or percentage widths */
        max-width: 100% !important;
        float: none !important;    /* Breaks old school CSS float logic if present */
        margin: 0 !important;
        clear: none !important;
    }
}

/* Polish WooCommerce Add to Cart buttons inside search */
.search-results-container ul.products li.product .button {
    background-color: #f77426 !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    margin-top: 15px !important;
    display: block !important;
    transition: background-color 0.2s ease;
}

.search-results-container ul.products li.product .button:hover {
    background-color: #d65d13 !important;
}


/*Login css*/
/* Container sizing and 2-column split layout */
.wc-auth-container {
    display: flex;
    gap: 60px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Give each form equal column space */
.wc-auth-column {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Fix input sizing */
.wc-auth-column form input[type="text"],
.wc-auth-column form input[type="email"],
.wc-auth-column form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 4px;
}

/* Inline alignment for Remember Me checkbox and Login Button */
.wc-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Text notice style for generated passwords */
.wc-notice-text {
    font-size: 13px;
    color: #666666;
    margin: 12px 0;
    line-height: 1.5;
}

/* Mobile & Tablet view: drops the layout back into a single column safely */
@media (max-width: 768px) {
    .wc-auth-container {
        flex-direction: column;
        gap: 30px;
    }
}


/* Responsive adjustments */
@media (max-width: 992px) {
  .service-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 580px) {
  .service-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bl-slider-socials-inner {
    flex-direction: column;
    gap: 8px;
  }
}