/* Modern Category Styles */

.ps-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(41deg, #97D9E5 15%, #000 146%);
    padding: 15px 20px;
    border-radius: 8px;
}

.ps-section__header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.ps-section__links a {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

.ps-section__links a:hover {
    color: #97D9E5;
}

.ps-section__links a:active {
    color: #97D9E5;
}

/* Apply to featured products section on homepage and products pages */
.ps-home-featured .ps-product__thumbnail,
.ps-product .ps-product__thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.ps-home-featured .ps-product__thumbnail img,
.ps-product .ps-product__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ps-home-featured .ps-product__thumbnail:hover img,
.ps-product .ps-product__thumbnail:hover img {
    transform: scale(1.05);
}

.ps-product__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
}

.ps-product__badge {
    background-color: #fe9931;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.ps-product__actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ps-product__actions li {
    list-style: none;
}

.ps-product__actions a {
    color: #333;
    transition: color 0.3s ease;
}

.ps-product__actions a:hover {
    color: #ff6b6b;
}

.ps-product__content {
    padding: 15px;
    text-align: center;
}

.ps-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.ps-product__price {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: bold;
}

.modern-title {
    font-size: 26px;
    font-weight: bold;
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: left;
    background: linear-gradient(41deg, #97D9E5 15%, #000 146%) !important;
    padding: 20px 30px !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.modern-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.modern-category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.modern-category-col {
    padding: 15px;
}

.modern-category-block {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-category-block:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.modern-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 120px;
    width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.modern-category-block:hover .modern-image-wrapper img {
    transform: scale(1.05);
}

.modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-category-block:hover .modern-overlay {
    opacity: 1;
}

.modern-content {
    padding: 15px 0;
    background-color: #fff;
}

.modern-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.ps-section-header {
    margin-bottom: 50px;
}

.ps-section-header .ps-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .ps-section-header .ps-section-title {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .ps-section-header .ps-section-title {
        font-size: 20px;
    }
}

.ps-section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #fcb800 0%, #ff6b6b 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.ps-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0;
}

@media (max-width: 1199px) {
    .ps-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .ps-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 575px) {
    .ps-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.ps-category-item {
    width: 100%;
}

.ps-block--category-modern {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.ps-block--category-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ps-block--category-modern:hover .ps-block__image-wrapper img {
    transform: scale(1.1);
}

.ps-block--category-modern:hover .ps-block__image-wrapper .ps-block__hover-overlay {
    opacity: 1;
}

.ps-block--category-modern:hover .ps-block__content .ps-block__icon {
    transform: translateX(5px) translateY(-50%);
    opacity: 1;
}

.ps-block--category-modern .ps-block__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Apply to homepage, category listing pages, and product pages */
.ps-home-categories .ps-block__image-wrapper,
.ps-category-listing .ps-block__image-wrapper,
.ps-product .ps-block__image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

@media (max-width: 991px) {
    .ps-home-categories .ps-block__image-wrapper,
    .ps-category-listing .ps-block__image-wrapper,
    .ps-product .ps-block__image-wrapper {
        height: 150px;
    }
}

@media (max-width: 575px) {
    .ps-home-categories .ps-block__image-wrapper,
    .ps-category-listing .ps-block__image-wrapper,
    .ps-product .ps-block__image-wrapper {
        height: 120px;
    }
}

.ps-home-categories .ps-block__image-wrapper img,
.ps-category-listing .ps-block__image-wrapper img,
.ps-product .ps-block__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ps-block__hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 184, 0, 0.8) 0%, rgba(255, 107, 107, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-block__hover-overlay::after {
    content: "→";
    font-size: 24px;
    color: #ffffff;
    animation: pulse 2s infinite;
}

.ps-block--category-modern .ps-block__content {
    padding: 20px;
    text-align: center;
    position: relative;
}

@media (max-width: 575px) {
    .ps-block--category-modern .ps-block__content {
        padding: 15px;
    }
}

.ps-block__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

@media (max-width: 575px) {
    .ps-block__title {
        font-size: 14px;
    }
}

.ps-block__icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #fcb800;
    font-size: 18px;
}

@media (max-width: 575px) {
    .ps-block__icon {
        display: none;
    }
}

/* Animation keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ps-categories-grid {
        gap: 10px;
    }
    
    .ps-block__image-wrapper {
        height: 100px;
    }
    
    .ps-block--category-modern .ps-block__content {
        padding: 10px;
    }
    
    .ps-block__title {
        font-size: 12px;
    }
}
