/*
 Theme Name:   Filekart
 Theme URI:    https://filekart.in
 Description:  A fast, modern and minimal WooCommerce digital products theme built for generatepress
 Author:       Tarun Chauhann
 Author URI:   https://tarunchauhan.com
 Template:     generatepress
 Version:      1.0
*/

/* Input Box Design */
.customsearchbar .wp-block-search__input {
    border-radius: 120px !important;
    border: 1px solid #d6dee7 !important;
    width: 100% !important;
}
/* Search Block Layout Fix */
.customsearchbar { 
    display: block !important; 
    flex: 1 1 0% !important;
    min-width: 0 !important; 
}
/* Cart Count Badge Style */
.current-cart-number { 
    position: absolute;
    top: -3px;
    right: -1px;
    font-size: 10px;
    padding: 0 4px;
    background: #ff4c4c;
    color: #fff;
    border-radius: 999px;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    font-weight: bold;
    box-sizing: border-box;
    z-index: 99;
	display: none; 
 }
.current-cart-number:not(:empty) {
 display: block;
}
/* Add to Cart Button */
.woocommerce div.product form.cart .button {
    transition: 0.5s;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    width: 100%;
}
/* Custom Buttons (LIVE PREVIEW & GUIDE) */
.setup-guide-button,
.live-preview-button {
    flex: 1;
    display: block;
    text-align: center;
}
.add-to-cart-container a.button,
.wc-live-preview-btn,
.wc-setup-guide-btn {
    background: var(--color-background) !important;
    width: 100%;
    border-radius: 25px !important;
    color: #ffffff !important;
}
.add-to-cart-container a.button:hover {
    background: var(--color-background-hover) !important;
}
/* Custom GB Title Line Clamp */
.customtitle {
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
/* Regular Price (Del) Color */
.gb-price .price del,
.woocommerce .price del {
    color: #999999 !important;
    opacity: 1 !important;
}
/* Custom Sorting Style */
select.orderby {
    background-color: #fff !important;
    font-size: 15px !important;
}
.woocommerce-ordering::after {
    display: none !important;
}
.woocommerce-ordering select.orderby {   
    -webkit-appearance: auto !important;
    padding: 8px 5px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 8px !important;
}
/* Custom Result Count */
p.woocommerce-result-count {
    color: #475569 !important; /* Photo jaisa blue-gray color */
    font-size: 14px !important;
    font-weight: 500 !important;
}
/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}
/* ==========================================
   6. WOOCOMMERCE CHECKOUT STYLES
   ========================================== */
/* Hide labels for removed fields */
.woocommerce-billing-fields label {
    display: none;
}
/* Payment Methods Images */
.woocommerce-checkout #payment ul.payment_methods li img {
    width: 120px;
}
/* Place Order Button */
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    float: none;
    width: 100%;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-weight: 700;
    font-size: 18px !important;
}
/* 1. Empty container ko default hide rakho */
.empty-wishlist {
    display: none !important;
}
/* 2. Jab body par empty class ho tab dikhao */
body.is-wishlist-empty .empty-wishlist {
    display: flex !important;
}
/* 3. Empty hone par query loop ko hide karo */
body.is-wishlist-empty .wishlist-query {
    display: none !important;
}
/* 4. Smooth card removal animation */
.removing-card {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
/* 5. Heart Button Active State */
.wishlist-btn-handler.is-active {
    color: #dc2626 !important; /* Agar icon font hai */
}
.wishlist-btn-handler.is-active svg {
    fill: #dc2626 !important; /* Agar icon SVG hai */
}
/* Toast Popup Style */
#wishlist-popup {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    z-index: 9999;
    display: none;
}
#wishlist-popup.show { display: block; }
/* ==========================================
   11. MY ACCOUNT PAGE STYLES
   ========================================== */

/* --- 11.1 General Buttons & Layout --- */
.woocommerce table.my_account_orders .button {
    margin: 5px;
}

.woocommerce-account .woocommerce-MyAccount-content a.button {
    border-radius: 5px !important;
}

/* --- 11.2 Navigation Icons (SVG) --- */
/* Dashboard Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3v7h7V3h-7zm-2 0H4v7h7V3zm-7 9h7v7H4v-7zm9 7v-7h7v7h-7z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* Orders Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* Downloads Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* Edit Address Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* Edit Account Details Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78A7.893 7.893 0 0 1 12 20c-1.86 0-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.928 7.928 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.5-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* Logout Icon */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
}

/* --- 11.3 Menu Styling (Layout & Colors) --- */
.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    padding-top: 20px !important;
  	padding-bottom: 20px !important;
    color: #333 !important;
    text-decoration: none !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #0073aa !important;
    background: #f8f9fa !important;
}

/* --- 11.4 Mobile Responsiveness --- */
@media (max-width: 768px) {
.woocommerce-MyAccount-navigation ul li a {
    padding-top: 20px !important;
  	padding-bottom: 20px !important;
    }
    .woocommerce-MyAccount-navigation ul li a::before {
        width: 18px !important;
        height: 18px !important;
        margin-right: 10px !important;
    }
}

/* Dashboard Box Styling */
.filekart-dashboard-box {
    padding: 15px 15px;
    background: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none !important;
    transition: none !important;
}
/* Grid Container */
.filekart-myaccount-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
/* Icons Styling */
.filekart-dashboard-icon svg {
    width: 38px;
    height: 38px;
    fill: var(--text-1) !important;
    color: var(--text-1) !important;
    margin-bottom: 10px;
}

/* Labels Styling */
.filekart-dashboard-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1) !important;
}
/* Tablet View */
@media (max-width: 1024px) {
    .filekart-myaccount-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mobile View */
@media (max-width: 600px) {
    .filekart-myaccount-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .filekart-dashboard-box {
        padding: 18px 12px;
    }
    .filekart-dashboard-icon svg {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    .filekart-dashboard-label {
        font-size: 13px;
    }
}








/*Mobile Nav Menu Current Colour */
.nav-link.current-page {
	  color: #dc2626 !important;
}
/*Mobile Nav Menu*/
@media only screen and (min-width: 960px) {
.mobile-nav-menu{display:none!important;}
}
.mobile-nav-menu{
	position: fixed!important;
	height: 60px;
	width: 100%;
	bottom: 0;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}