/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* -------------------------------------------------------------
   GENERAL STYLES
------------------------------------------------------------- */
/* Top Bar Left */
.select-language {
    display: none !important;
}

.woocommerce-account #primary {
    margin-top: -50px !important;
}

.archive #primary.content-area.primary {
    margin-top: -30px !important;
}

.woocommerce-products-header__title.page-title {
    margin-bottom: 0px;
    margin-top: 0px;
}

.woocommerce-result-count,
.woocommerce-ordering {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Change WooCommerce container styles */
#main .ast-woocommerce-container {
    width: 94% !important;
    margin: 0 auto;
}

/* Filter out product count display */
.products a .count {
    display: none !important;
}

/* Woodmart Category Page */
body .term-description {
   display:none;
}

/* -------------------------------------------------------------
   STORE PAGE STYLES
------------------------------------------------------------- */

/* Style for Vendor Certification Badges */
.wcfmmp-vendor-certifications {
    margin-top: 5px;
    gap: 5px;
    align-items: center;
}

/* Individual Certification Image */
.wcfmmp-vendor-certifications .vendor-certification-badge {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain; /* Ensures image scales correctly */
    border-radius: 2px;
}


/* Hover Effect */
.wcfmmp-vendor-certifications .vendor-certification-badge:hover {
    transform: scale(1.1);
}



/* Target vendor certifications on single product page */
.single-product .vendor-certifications {
    background-color: #ffffff;
    margin-top: 0px;
    margin-left: 0px;
    margin-bottom:10px;
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Center items vertically */
}

/* Certification images container on single product page */
.single-product .vendor-certifications .certification-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Spacing between images */
    align-items: center; /* Ensure images align properly */
}

/* Individual certification images on single product page */
.single-product .vendor-certifications .certification-images img {
    display: block; /* Ensures the image respects its container */
    max-width: 40px; /* Ensures image does not exceed max-width */
    max-height: 40px; /* Ensures image does not exceed max-height */
    width: 40px; /* Forces image to  width */
    height: 40px; /* Forces image to  height */
    border: 0px solid #d00; /* Optional red border for testing */
    border-radius: 5px; /* Rounded corners */
    object-fit: contain; /* Prevent cropping while fitting within the container */
}

/* Supplier Hub Store */

/* Default: 5 stores per row on Laptop/Desktop */
.dokan-seller-wrap .dokan-single-seller {
    width: calc(100% / 5) !important; 
}

/* Tablet: 3 stores per row */
@media screen and (max-width: 1024px) {
    .dokan-seller-wrap .dokan-single-seller {
        width: calc(100% / 3) !important;
    }
}

/* Mobile: 2 stores per row */
@media screen and (max-width: 768px) {
    .dokan-seller-wrap .dokan-single-seller {
        width: calc(100% / 2) !important;
    }
}

/* Small Mobile: 1 store per row */
@media screen and (max-width: 480px) {
    .dokan-seller-wrap .dokan-single-seller {
        width: 100%;
    }
}

#dokan-seller-listing-wrap .store-banner  {
  visibility: hidden; /* Hides the image but keeps its space */
  height:280px !important;
}

@media (max-width: 767px) {
#dokan-seller-listing-wrap .store-banner  {
  visibility: hidden; /* Hides the image but keeps its space */
  height:250px !important;
}
}


#dokan-seller-listing-wrap ul.dokan-seller-wrap li .store-content {
  background-color: rgba(255, 255, 255, 0.6);
  /* background-color: rgba(17, 102, 51, 0.3); */
}

#dokan-seller-listing-wrap h1,
#dokan-seller-listing-wrap h2,
#dokan-seller-listing-wrap p,
#dokan-seller-listing-wrap .certification-images img,
#dokan-seller-listing-wrap .store-footer {
    color:black;
    font-weight:bold;
}

/* Set the store name link without outline */
#dokan-seller-listing-wrap h2 a, /* For links in <h2> */
#dokan-seller-listing-wrap .store-name a {
    color: black !important; 
    text-shadow: none !important; /* Remove any outline effect */
    font-weight: bold; /* Optional: Add bold styling */
    text-decoration: none; /* Optional: Remove underline */
}

/* Certifications */
#dokan-seller-listing-wrap .certification-images img {
    max-width: 50px;
    background:transparent;
    margin-top:-10px;
    margin-bottom:0px;
    margin-right: 0px;
    padding: 5px;
}

#dokan-seller-listing-wrap .store-phone {
    display: none;
}

/* Store Footer */
#dokan-seller-listing-wrap ul.dokan-seller-wrap li .store-footer {
    margin-top: 40px;
    background-color: transparent;
    border-top: 0px;
}

@media (max-width: 767px) {
dokan-seller-listing-wrap ul.dokan-seller-wrap li .store-footer {
    margin-top: 0px;
    background-color: transparent;
    border-top: 0px;
}
}

/* Seller Avatar */
#dokan-seller-listing-wrap .seller-avatar {
    padding-top:15px !important;
    width:100% !important;
    object-fit: contain;
}

/* Seller Avatar */
@media (max-width: 767px) {
#dokan-seller-listing-wrap .seller-avatar {
    padding-top:15px !important;
    width:50% !important;
}
}

#dokan-seller-listing-wrap .seller-avatar img {
    width: 100%; /* Match the full width of the avatar container */
    height: auto; /* Maintain aspect ratio */
}


/*#dokan-seller-listing-wrap .vendor-biography {
    margin-bottom: 0px;
    font-size: 14px;
    color: #fff;
}*/


/* Dashboard Menu */
.dokan-dashboard-menu .active a, 
.dokan-dashboard-menu a:hover {
    border-color: #116633;
    background-color: #116633;
}

/* Alerts and Panels */
.dokan-dashboard-wrap .dokan-alert-warning { 
    background-color: #F6EBE0; 
    color: #000;
}

.dokan-panel .dokan-panel-body .dokan-panel-alert,
.dokan-panel .dokan-panel-body a { 
    background-color: #F6EBE0; 
    color: #000;
}

.dokan-panel .dokan-panel-body a { 
    font-weight: bold;
}

/* Sidebar Adjustments */
.main-page-wrapper .wd-sidebar-hidden-md-sm .sidebar-container {
    display: none;
}

.main-page-wrapper .wd-sidebar-hidden-md-sm {
    display: block; /* Override grid or flexbox if necessary */
}

.main-page-wrapper .wd-sidebar-hidden-md-sm .content-area {
    width: 100%;
}

/* Vendor Registration Form Specific CSS */

/* Target the vendor registration page specifically */
.dokan-vendor-registration .supplier-type-group {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.dokan-vendor-registration .supplier-type-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.dokan-vendor-registration .supplier-type-group input[type="radio"] {
    margin-right: 8px;
    transform: scale(1);
}

.dokan-vendor-registration .supplier-type-group input[type="radio"]:hover {
    cursor: pointer;
}

.dokan-vendor-registration .form-row {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .dokan-vendor-registration .supplier-type-group {
        margin-top: 15px;
        padding: 10px;
        background-color: #f7f7f7;
    }

    .dokan-vendor-registration .form-row {
        margin-bottom: 15px;
    }
}

/* -------------------------------------------------------------
   STORE FILTER AREA
------------------------------------------------------------- */

/* General styles */
.dokan-store-products-filter-area {
    width: 100%;
    margin: 0 auto;
}

.dokan-store-products-filter-area .dokan-clearfix .dokan-info {
    background-color: #ff0000;
    color: #333;
    padding: 10px;
    border-radius: 5px;
}

/* Adjust search bar and sorting dropdown */
.dokan-store-products-filter-area .dokan-store-products-ordeby .search-store-products {
    margin-left: 10px;
    padding: 0px;
    width: 100px;
}

.dokan-store-products-filter-area .dokan-store-products-ordeby select {
    width: auto;
    min-width: 150px;
    padding: 5px 10px;
    overflow: visible;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .dokan-store-products-filter-area {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .dokan-store-products-filter-area .search-store-products {
        flex: 1;
        margin-right: 10px;
    }

    .dokan-store-products-filter-area button {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Seller Items */
.seller-items {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
}

/* Single Product Vendor Name */
/* Specific styling for vendor name inside the new wrapper */
.single-product .product-vendor-info .vendor-name {
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: bold;
    color: #080808;
}

.single-product .product-vendor-info .vendor-name a {
    text-decoration: none;
    color: #080808;
}

.single-product .product-vendor-info .vendor-name a:hover {
    color: #005a8c;
}

/* Add supplier type to doken vendor registration */
/* Supplier Type Field */

/* -------------------------------------------------------------
   FORCE STYLES
------------------------------------------------------------- */
.profile-info-head .profile-img img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}

.profile-info-summery .profile-info h1 {
    font-size:30px !important;
    color: black;
}

/* -------------------------------------------------------------
   Dokan Company Listing
------------------------------------------------------------- */
.company-info {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.company-info h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.company-info p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ==========================================================
   Custom Styles for Dokan Store-Company Template
   Template File: store-company.php
   Description: These styles are applied exclusively to the
   company directory layout when the `dokan-store-company`
   class is present on the <body> tag.
   ========================================================== */

/* Full-width layout for store-company */
.dokan-store-company .dokan-store-wrap {
    max-width: 100%; /* Ensure full-width container */
    width: 100%; /* Full width */
    margin: 0 auto; /* Center the container */
    padding: 0; /* Remove unnecessary padding */
}

/* Ensure content inside dokan-primary takes full width */
.dokan-store-company #dokan-primary {
    flex: 1; /* Take full width */
    max-width: 100%; /* No restrictions on width */
}

/* Ensure store content is full width */
.dokan-store-company #dokan-content {
    max-width: 100% !important; /* Force full width for content */
    padding: 0 15px; /* Optional: Add small padding for spacing */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Remove left sidebar spacing */
.dokan-store-company .layout-left .dokan-store-wrap {
    grid-template-columns: 1fr !important; /* Single-column layout */
}

/* Optional: Adjust header inside the company template */
.dokan-store-company .dokan-store-header {
    max-width: 100%; /* Make header full width */
    padding: 0 15px; /* Optional padding */
    margin: 0 auto;
}

/* Ensure responsive behavior on smaller devices */
@media (max-width: 767px) {
    .dokan-store-company .dokan-store-wrap {
        padding: 0 10px; /* Add padding for small screens */
    }
}

/* Hide Products/Reviews tabs specifically for store-company.php */
.store-company-header .dokan-store-tabs {
    display: none;
}

/* Explore Categories page */
body.page-id-15858 .wd-breadcrumbs {
    display: none !important;
}

.page-id-15858 .wd-entities-title {
    color: #ffffff; /* Sets the text color to white */
    font-weight: bold; /* Makes the text bold */
    text-align:center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7); /* Adjust the shadow as needed */

}


/* My Account page */
.page-id-12 .wd-breadcrumbs {
    display: none !important;
}

/* Be A Supplier page */
.page-id-16034 .wd-page-title {
    display: none !important;
}

/* Contact Us page */
.page-id-16263 .wd-breadcrumbs {
    display: none !important;
}

/* Global WPForms Button Style */
.wpforms-form button[type=submit] {
    background-color: #116633 !important;
    border-color: #024488 !important;
    color: #fff !important;
    transition: background 0.3s ease-in-out;
}
.wpforms-form button[type=submit]:hover {
    background-color: #116633 !important;
}

/* Suppliers page */
.page-id-15678 .wd-breadcrumbs {
    display: none !important;
}

.page-id-15678 #wcfmmp-store-list-map {
    display: none !important;
}

.wcfmmp_sold_by_container_advanced .wcfmmp_sold_by_label {
    display:none !important;
}

/* Question Mark on Store Card in Store Lists */
.wcfmmp-store-wrap .item .fa-question-circle {
    display:none !important;
}

.product_meta {
    gap: 0px !important
}

/* wpdatatables */
/* Industry Certifications Guide page */
.page-id-16278 .wd-breadcrumbs {
    display: none !important;
}

/* Market Access Certifications page */
.page-id-16347 .wd-breadcrumbs {
    display: none !important;
}