/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/hello-theme/
Description:  Hello Elementor Child Theme - Custom B2B Template Integration
Author:       Your Name
Author URI:   https://yourwebsite.com
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  hello-elementor-child
*/

/* 
===========================================
   B2B Template CSS Variables
===========================================
*/

/* 
===========================================
   B2B Product Cards Styling
===========================================
*/
.b2b-wholesale-grid .premium-card {
   background: #fff;
   border: 1px solid #e2e8f0;
   border-radius: 12px;
   overflow: hidden;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
   width: 100%;
}

.b2b-wholesale-grid .premium-card:hover {
   box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
   transform: translateY(-5px);
   border-color: #cbd5e1;
}

.b2b-wholesale-grid .p-img-box {
   position: relative;
   background: #ffffff !important;
   width: 100% !important;
   height: auto !important;
   aspect-ratio: auto !important;
   display: block !important;
   overflow: hidden;
   border-bottom: 1px solid #f1f5f9;
   padding: 0 !important;
}

.b2b-wholesale-grid .p-img-box img,
.b2b-wholesale-grid .p-img-box .placeholder-svg {
   width: 100% !important;
   height: auto !important;
   max-width: 100% !important;
   max-height: none !important;
   object-fit: contain !important;
   display: block !important;
   image-rendering: -webkit-optimize-contrast !important;
   image-rendering: auto !important;
   -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
   transform: translateZ(0);
   transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.b2b-wholesale-grid .premium-card:hover .p-img-box img,
.b2b-wholesale-grid .premium-card:hover .p-img-box .placeholder-svg {
   transform: translateZ(0) scale(1.05) !important;
}

.b2b-wholesale-grid .p-badge {
   position: absolute;
  color: aquamarine;
   top: 12px;
   left: 12px;
   padding: 6px 12px;
   border-radius: 6px;
   font-size: 0.75rem;
   font-weight: 600;
   z-index: 2;
   font-style: normal;
   border: none;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-wholesale-grid .p-badge--success {
   background: #dcfce7;
   color: #166534;
}

.b2b-wholesale-grid .p-badge--warning {
   background: #fef3c7;
   color: #92400e;
}

.b2b-wholesale-grid .p-badge--info {
   background: #e0f2fe;
   color: #075985;
}

.b2b-wholesale-grid .p-badge--danger {
   background: #fee2e2;
   color: #991b1b;
}

.b2b-wholesale-grid .p-badge--trending,
.b2b-wholesale-grid .p-badge--featured {
   background: #fee2e2;
   color: #991b1b;
   left: auto;
   right: 12px;
}

.b2b-wholesale-grid .p-info-box {
   padding: 24px;
   display: flex;
   flex-direction: column;
   flex-grow: 1;
}

.b2b-wholesale-grid .p-info-box h4 {
   font-size: 1.15rem;
   font-weight: 600;
   margin-bottom: 6px;
   color: #0f172a;
   line-height: 1.4;
}

.b2b-wholesale-grid .p-info-box h4 a {
   color: inherit;
   text-decoration: none;
   transition: color 0.2s;
}

.b2b-wholesale-grid .p-info-box h4 a:hover {
   color: #14532D;
}

.b2b-wholesale-grid .p-meta-line {
   font-size: 0.85rem;
   color: #64748b;
   margin-bottom: 18px;
   display: flex;
   align-items: center;
   gap: 6px;
}

.b2b-wholesale-grid .p-specs-list {
   list-style: none;
   padding: 14px;
   margin: 0 0 20px 0;
   background: #f0fdf4;
   border-radius: 8px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
   border: 1px solid #dcfce7;
}

.b2b-wholesale-grid .p-specs-list li {
   font-size: 0.8rem;
   color: #166534;
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 500;
}

.b2b-wholesale-grid .p-specs-list li i {
   color: #14532D;
   font-size: 1.1rem;
}

.b2b-wholesale-grid .p-price-box {
   margin-top: auto;
   margin-bottom: 20px;
}

.b2b-wholesale-grid .p-contact-price {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 1.05rem;
   font-weight: 700;
   color: #14532D;
}

.b2b-wholesale-grid .p-price {
   font-size: 1.35rem;
   font-weight: 700;
   color: #0f172a;
}

.b2b-wholesale-grid .p-price-old {
   font-size: 0.95rem;
   color: #94a3b8;
   text-decoration: line-through;
   margin-right: 8px;
}

.b2b-wholesale-grid .p-actions {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.b2b-wholesale-grid .btn-block {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   width: 100%;
   padding: 12px 16px;
   font-size: 0.95rem;
   border-radius: 8px;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.2s;
}

.b2b-wholesale-grid .btn-primary {
   background: #14532D;
   color: #fff;
   border: 1px solid #14532D;
}

.b2b-wholesale-grid .btn-primary:hover {
   background: #0f4022;
   border-color: #0f4022;
   transform: translateY(-2px);
   box-shadow: 0 4px 6px rgba(20, 83, 45, 0.2);
}

.b2b-wholesale-grid .btn-outline {
   background: #fff;
   color: #14532D;
   border: 1.5px solid #14532D;
}

.b2b-wholesale-grid .btn-outline:hover {
   background: #f0fdf4;
   transform: translateY(-2px);
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.b2b-wholesale-grid .btn-whatsapp {
   background: #25D366;
   color: #fff;
   border: 1px solid #25D366;
}

.b2b-wholesale-grid .btn-whatsapp:hover {
   background: #1eb858;
   border-color: #1eb858;
   transform: translateY(-2px);
   box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

/* Optional List View Support */
.product-cards-grid.list-view {
   grid-template-columns: 1fr;
}

.product-cards-grid.list-view .premium-card {
   flex-direction: row;
   align-items: stretch;
}

.product-cards-grid.list-view .p-img-box {
   width: 300px;
   height: auto;
   min-height: 100%;
   border-radius: 12px 0 0 12px;
}

.product-cards-grid.list-view .p-info-box {
   display: grid;
   grid-template-columns: 1fr 260px;
   grid-template-rows: auto auto 1fr;
   gap: 0 40px;
}

.product-cards-grid.list-view .p-info-box h4 {
   grid-column: 1;
   grid-row: 1;
   font-size: 1.3rem;
}

.product-cards-grid.list-view .p-meta-line {
   grid-column: 1;
   grid-row: 2;
}

.product-cards-grid.list-view .p-specs-list {
   grid-column: 1;
   grid-row: 3;
   margin-bottom: 0;
   align-self: start;
   grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.product-cards-grid.list-view .p-price-box {
   grid-column: 2;
   grid-row: 1 / 3;
   margin: 0 0 15px 0;
   text-align: right;
   justify-content: flex-end;
}

.product-cards-grid.list-view .p-contact-price {
   justify-content: flex-end;
}

.product-cards-grid.list-view .p-actions {
   grid-column: 2;
   grid-row: 3;
   justify-content: flex-end;
}

@media (max-width: 992px) {
   .product-cards-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   .product-cards-grid {
      grid-template-columns: 1fr;
   }

   .product-cards-grid.list-view .premium-card {
      flex-direction: column;
   }

   .product-cards-grid.list-view .p-img-box {
      width: 100%;
      height: 240px;
      border-radius: 12px 12px 0 0;
   }

   .product-cards-grid.list-view .p-info-box {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 20px;
   }

   .product-cards-grid.list-view .p-price-box {
      text-align: left;
      margin: 20px 0;
      justify-content: flex-start;
   }

   .product-cards-grid.list-view .p-contact-price {
      justify-content: flex-start;
   }
}

/* 
===========================================
   B2B Sidebar Sticky & Scroll Fix
===========================================
*/
/* Sticky positioning requires all parent containers to NOT have overflow: hidden */
.b2b-page-body #page,
.b2b-page-body .site-content,
.b2b-page-body .site-main,
.b2b-page-body #content,
.b2b-page-body .site,
.b2b-page-body .elementor-page {
   overflow: visible !important;
   overflow-x: visible !important;
}

.filter-sidebar {
   position: -webkit-sticky !important;
   position: sticky !important;
   top: 120px !important;
   height: max-content;
   max-height: calc(100vh - 140px) !important;
   overflow-y: auto !important;
   overflow-x: hidden !important;
   align-self: flex-start;
}

/* Custom Scrollbar for Sidebar */
.filter-sidebar::-webkit-scrollbar {
   width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
   background: #f8fafc;
   border-radius: 0 12px 12px 0;
}

.filter-sidebar::-webkit-scrollbar-thumb {
   background: #cbd5e1;
   border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
   background: #94a3b8;
}

/* 
===========================================
   B2B Product Listing Responsive Layout
===========================================
*/
@media (max-width: 992px) {

   /* Product Listing Layout */
   .product-listing-layout {
      flex-direction: column;
   }

   .filter-sidebar {
      width: 100% !important;
      min-width: 100% !important;
      position: static !important;
      max-height: none !important;
      margin-bottom: 20px;
   }

   .product-grid-area {
      width: 100%;
   }
}

/* 
===========================================
   Footer Map
===========================================
*/
.footer-mini-map {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mini-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
    filter: grayscale(20%) contrast(1.05);
}

@media (max-width: 768px) {
    .footer-mini-map iframe {
        height: 130px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand-logo img {
    height: 50px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    display: block;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.b2b-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 20px;
    padding: 0;
}

.b2b-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.b2b-page-btn:hover:not(.active):not(.disabled):not(.b2b-page-dots) {
    background: #f0fdf4;
    border-color: #14532D;
    color: #14532D;
}

.b2b-page-btn.active {
    background: #14532D;
    border-color: #14532D;
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.b2b-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.b2b-page-dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: default;
    min-width: 24px;
    padding: 0 4px;
}

.b2b-page-prev,
.b2b-page-next {
    padding: 0 18px;
    font-weight: 600;
    color: #14532D;
    border-color: #14532D;
}

.b2b-page-prev:hover,
.b2b-page-next:hover {
    background: #14532D;
    color: #fff;
}

@media (max-width: 576px) {
    .b2b-page-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.82rem;
        border-radius: 6px;
    }
    .b2b-page-prev,
    .b2b-page-next {
        padding: 0 12px;
    }
}

