/**
 * Safir Gift - Categories Styles
 * Stiluri pentru cardurile de categorii pe paginile shop
 */

/* =====================================================
   PRODUCT SKU STYLING
   ===================================================== */
.product-sku {
    margin: 8px 0;
    font-size: 15px;
    font-weight: bold;
    color: #222;
    background: #f8f8f8;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
}

/* =====================================================
   REGISTER NOTICE
   ===================================================== */
.sg-register-notice {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0369a1;
}

.sg-register-notice a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
}

.sg-register-notice a:hover {
    color: #0369a1;
}

/* =====================================================
   PAGE TITLE - CATEGORY LINKS COLOR FIX
   ===================================================== */
.wd-page-title .wd-nav-product-cat .category-nav-link,
.wd-page-title .wd-nav-product-cat .nav-link-text,
.wd-page-title .wd-nav-product-cat .cat-item a,
.wd-page-title.color-scheme-light .wd-nav-product-cat .category-nav-link,
.wd-page-title.color-scheme-light .wd-nav-product-cat .nav-link-text {
    color: #222 !important;
}

.wd-page-title .wd-nav-product-cat .category-nav-link:hover,
.wd-page-title .wd-nav-product-cat .nav-link-text:hover {
    color: #000 !important;
}

.wd-page-title .wd-nav-product-cat .category-product-count {
    color: #666 !important;
}

/* =====================================================
   CATEGORY NAVIGATION CARDS
   ===================================================== */
.wd-nav-product-cat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.wd-nav-product-cat::before,
.wd-nav-product-cat::after {
    display: none;
}

.wd-nav-product-cat li {
    float: none;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.wd-nav-product-cat .cat-item {
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 60px;
    clear: none;
    float: none;
}

.wd-nav-product-cat .cat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.wd-nav-product-cat .category-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
}

.wd-nav-product-cat .category-nav-link:hover {
    text-decoration: none;
    color: #333;
}

.wd-nav-product-cat .nav-link-text {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    flex-grow: 1;
    display: block;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}

.wd-nav-product-cat .category-nav-link::after {
    content: '→';
    color: #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wd-nav-product-cat .cat-item:hover .category-nav-link::after {
    color: #667eea;
    transform: translateX(2px);
}

.category-product-count {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 1px;
    font-weight: normal;
}

/* =====================================================
   RESPONSIVE - CATEGORIES
   ===================================================== */
@media (max-width: 1200px) {
    .wd-nav-product-cat {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wd-nav-product-cat {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .wd-nav-product-cat .cat-item {
        min-height: 55px;
    }
    
    .wd-nav-product-cat .category-nav-link {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .wd-nav-product-cat .nav-link-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wd-nav-product-cat {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wd-nav-product-cat .cat-item {
        min-height: 50px;
    }
    
    .wd-nav-product-cat .category-nav-link {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .wd-nav-product-cat .nav-link-text {
        font-size: 12px;
    }
    
    .wd-nav-product-cat .category-nav-link::after {
        font-size: 14px;
    }
}
