/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* Override default hover zoom effect (for .category-grid-item .wd-cat-image) */
.wd-cat-design-2 .wd-img-wrap img,
.wd-cat-design-2 .wd-img-wrap:hover img,
.category-grid-item .wd-cat-image {
    transform: none !important;
    -webkit-transform: none !important; 
    transition: none !important;
    -webkit-transition: none !important;
    max-width: 100% !important; 
    width: 100% !important;
    margin: 0 !important;
}


/* ===================================================
   POPULAR CATEGORIES - ELECTROS STYLE FOR WOODMART
   Exact style for Woodmart Product Categories Element
   Custom class: custom-dashed-categories
   =================================================== */

/* --- BASE CONTAINER --- */
.custom-dashed-categories .category-grid-item {
    text-align: center;
    transition: all 0.3s ease;
    padding: 0 20px !important; /* Horizontal item spacing */
    margin-bottom: 40px !important; /* Vertical item spacing */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* --- IMAGE WRAPPER (Solid circle background) --- */
.custom-dashed-categories .wd-cat-thumb {
    position: relative;
    width: 120px !important; /* Reduced from 130px - Edit this to change circle size */
    height: 120px !important; /* Reduced from 130px - Edit this to change circle size */
    margin: 0 auto 16px !important;
    padding: 20px !important; /* Adjusted padding proportionally */
    /* Solid white background */
    background: #ffffff !important; /* Edit this to change background color */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: none !important;
    /* Soft shadow for depth */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.3s ease !important;
}

/* --- Dashed circle border with ::before (always visible in dark gray) --- */
.custom-dashed-categories .wd-cat-thumb::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: -12px !important; /* Increased from -8px - Edit this for more/less spacing */
    left: -12px !important; /* Increased from -8px - Edit this for more/less spacing */
    right: -12px !important; /* Increased from -8px - Edit this for more/less spacing */
    bottom: -12px !important; /* Increased from -8px - Edit this for more/less spacing */
    border-radius: 50% !important;
    /* Dark gray dashed circle - always visible - Edit this to change default border color */
    border: 2px dashed #9ca3af !important;
    /* Smooth transition */
    transition: border-color 0.5s ease !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* --- Remove Woodmart default ::after --- */
.custom-dashed-categories .wd-cat-thumb::after {
    display: none !important;
}

/* --- LINK WRAPPER --- */
.custom-dashed-categories .wd-cat-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 2 !important;
}

/* --- IMAGE ITSELF (Prevent zoom and fix size) --- */
.custom-dashed-categories .wd-cat-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    /* Remove all transform effects */
    transform: none !important;
    transition: none !important;
}

/* --- ROTATION ANIMATION (Circle rotation) --- */
@keyframes rotate-dashed-circle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- HOVER EFFECT (When mouse enters the card) --- */
.custom-dashed-categories .category-grid-item:hover .wd-cat-thumb {
    /* Enhanced shadow on hover */
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2) !important;
}

/* --- Show and rotate the dashed circle on hover --- */
.custom-dashed-categories .category-grid-item:hover .wd-cat-thumb::before {
    /* Change to lighter/brighter blue - Edit this to change hover border color */
    border-color: #3b82f6 !important;
    /* Start rotation animation - Edit 8s to change rotation speed */
    animation: rotate-dashed-circle 8s linear infinite !important;
}

/* --- TITLE STYLE (Category title) --- */
.custom-dashed-categories .wd-entities-title {
    margin-top: 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: inherit !important; /* Use site default color - Edit this to change text color */
    text-align: center !important;
    transition: color 0.3s ease !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    height: auto !important;
    min-height: 20px !important;
}

/* --- TITLE HOVER (Change title color to blue) --- */
.custom-dashed-categories .category-grid-item:hover .wd-entities-title {
    color: #3b82f6 !important; /* Edit this to change hover text color */
}

/* --- Fix content wrapper --- */
.custom-dashed-categories .wd-cat-content {
    background: transparent !important;
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* --- Remove default hover mask from Woodmart --- */
.custom-dashed-categories .hover-mask::before,
.custom-dashed-categories .hover-mask::after {
    display: none !important;
}

/* --- Spacing between items --- */
.custom-dashed-categories .wd-cats {
    gap: 50px !important; /* Horizontal spacing - Edit to increase/decrease gap */
    row-gap: 60px !important; /* Vertical spacing - Edit to increase/decrease gap */
}

/* --- Column padding --- */
.custom-dashed-categories .wd-col {
    padding: 0 25px !important; /* Column padding - Edit for more spacing */
}

/* --- Remove any extra background or overlay --- */
.custom-dashed-categories .wd-cat-inner {
    background: transparent !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ===================================================
   RESPONSIVE ADJUSTMENTS
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .custom-dashed-categories .wd-cat-thumb {
        width: 100px !important; /* Reduced from 110px */
        height: 100px !important;
        padding: 18px !important;
    }
    
    .custom-dashed-categories .wd-entities-title {
        font-size: 15px !important;
    }
    
    .custom-dashed-categories .wd-cats {
        gap: 40px !important;
        row-gap: 50px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-dashed-categories .wd-cat-thumb {
        width: 80px !important; /* Reduced from 90px */
        height: 80px !important;
        padding: 14px !important;
    }
    
    .custom-dashed-categories .wd-entities-title {
        font-size: 14px !important;
    }
    
    .custom-dashed-categories .wd-cats {
        gap: 30px !important;
        row-gap: 40px !important;
    }
}


.footer-logo-wrapper {
    text-align: center;
    margin-bottom: 20px; /* فاصله از بخش پایین فوتر */
}

.footer-logo,
 {
    max-width: 120px; /* سایز لوگو و تصاویر */
    display: inline-block;
    transition: opacity 0.3s ease; /* انیمیشن نرم محو شدن */
}

.footer-logo:hover,
 {
    opacity: 0.6; /* هنگام هاور کمی محو شوند */
}


