/* Product Filter Widget Styles */
.pfw-container {
    width: 100%;
}

/* Filter Buttons */
.pfw-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.pfw-filter-btn {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    outline: none;
}

.pfw-filter-btn:hover {
    background-color: #f5f5f5;
}

.pfw-filter-btn.active {
    background-color: #e67e22;
    color: #ffffff;
    border-color: #e67e22;
}

/* Products Grid */
.pfw-products-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
}

/* Product Card */
.pfw-product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pfw-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pfw-product-card.hidden {
    display: none;
}

/* Product Image */
.pfw-product-image {
    position: relative;
    height: 250px;
    background-color: #fef3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pfw-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pfw-product-card:hover .pfw-product-image img {
    transform: scale(1.05);
}

.pfw-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfw-placeholder-image svg {
    opacity: 0.8;
}

/* Image Overlay */
.pfw-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pfw-product-card:hover .pfw-image-overlay {
    opacity: 1;
}

.pfw-overlay-icons {
    display: flex;
    gap: 15px;
}

.pfw-overlay-icons a {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.pfw-overlay-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pfw-product-card:hover .pfw-overlay-icons a {
    transform: translateY(0);
    opacity: 1;
}

.pfw-product-card:hover .pfw-overlay-icons a:nth-child(2) {
    transition-delay: 0.1s;
}

.pfw-overlay-icons a:hover {
    background-color: #e67e22;
    transform: scale(1.1);
}

/* Product Content */
.pfw-product-content {
    padding: 20px;
}

.pfw-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.pfw-product-desc {
    font-size: 14px;
    color: #666666;
    margin: 0 0 12px 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.pfw-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.pfw-product-price del {
    color: #999999;
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 8px;
    text-decoration: line-through;
}

.pfw-product-price ins {
    color: #e67e22;
    text-decoration: none;
}

/* Add to Cart Button */
.pfw-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 30px;
    background-color: #e67e22;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.pfw-add-to-cart:hover {
    background-color: #d35400;
    color: #ffffff;
}

.pfw-add-to-cart .pfw-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pfw-add-to-cart:hover .pfw-btn-icon {
    transform: translateY(-3px);
}

.pfw-add-to-cart .pfw-btn-icon i,
.pfw-add-to-cart .pfw-btn-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: color 0.3s ease, fill 0.3s ease;
}

.pfw-add-to-cart .pfw-btn-text {
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .pfw-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* 筛选按钮横向滑动 - 默认开启 */
    .pfw-mobile-scroll-yes .pfw-filter-wrapper {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .pfw-mobile-scroll-yes .pfw-filter-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .pfw-mobile-scroll-yes .pfw-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: max-content;
    }
    
    /* 关闭滚动时保持换行 */
    .pfw-mobile-scroll-no .pfw-filter-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pfw-products-grid {
        grid-template-columns: 1fr;
    }
    
    .pfw-product-image {
        height: 200px;
    }
    
    /* 手机端卡片悬停效果调整 */
    .pfw-product-card:hover {
        transform: none;
    }
    
    /* 手机端图片遮罩始终显示 */
    .pfw-image-overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.3);
    }
    
    .pfw-overlay-icons a {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading State */
.pfw-products-grid.pfw-loading {
    position: relative;
    min-height: 200px;
    opacity: 0.6;
    pointer-events: none;
}

.pfw-products-grid.pfw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e67e22;
    border-radius: 50%;
    animation: pfw-spin 0.8s linear infinite;
}

@keyframes pfw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Products */
.pfw-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}


/* ========================================
   Product Grid Widget Styles
   ======================================== */
.pgw-container {
    width: 100%;
}

.pgw-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card */
.pgw-product-card {
    background-color: #ffffff;
}

/* Product Image */
.pgw-product-image {
    position: relative;
    height: 220px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.pgw-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pgw-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pgw-product-card:hover .pgw-product-image img {
    transform: scale(1.05);
}

.pgw-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Overlay Icons */
.pgw-overlay-icons {
    position: absolute;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.pgw-product-card:hover .pgw-overlay-icons {
    opacity: 1;
}

/* 图标位置 - 默认居中 */
.pgw-icon-pos-center .pgw-overlay-icons {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pgw-icon-pos-center .pgw-product-card:hover .pgw-overlay-icons {
    transform: translate(-50%, -50%);
}

/* 左上角 */
.pgw-icon-pos-top-left .pgw-overlay-icons {
    top: 10px;
    left: 10px;
    transform: translateY(-10px);
}

.pgw-icon-pos-top-left .pgw-product-card:hover .pgw-overlay-icons {
    transform: translateY(0);
}

/* 右上角 */
.pgw-icon-pos-top-right .pgw-overlay-icons {
    top: 10px;
    right: 10px;
    transform: translateY(-10px);
}

.pgw-icon-pos-top-right .pgw-product-card:hover .pgw-overlay-icons {
    transform: translateY(0);
}

/* 左下角 */
.pgw-icon-pos-bottom-left .pgw-overlay-icons {
    bottom: 10px;
    left: 10px;
    transform: translateY(10px);
}

.pgw-icon-pos-bottom-left .pgw-product-card:hover .pgw-overlay-icons {
    transform: translateY(0);
}

/* 右下角 */
.pgw-icon-pos-bottom-right .pgw-overlay-icons {
    bottom: 10px;
    right: 10px;
    transform: translateY(10px);
}

.pgw-icon-pos-bottom-right .pgw-product-card:hover .pgw-overlay-icons {
    transform: translateY(0);
}

.pgw-overlay-icons a {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pgw-overlay-icons a svg {
    width: 16px;
    height: 16px;
    fill: #e67e22;
    transition: fill 0.3s ease;
}

.pgw-overlay-icons a:hover {
    background-color: #e67e22;
}

.pgw-overlay-icons a:hover svg {
    fill: #ffffff;
}

/* Product Content */
.pgw-product-content {
    padding: 15px 0;
}

.pgw-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.pgw-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pgw-product-title a:hover {
    color: #e67e22;
}

.pgw-product-category {
    font-size: 13px;
    color: #888888;
    margin: 0 0 12px 0;
}

/* Product Footer - 价格和按钮 */
.pgw-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pgw-product-price {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #e68a2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pgw-price-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    color: inherit;
}

.pgw-price-icon svg {
    fill: currentColor;
}

.pgw-price-amount {
    display: inline-flex;
    align-items: center;
}

.pgw-product-price .woocommerce-Price-amount {
    color: inherit;
    font-weight: inherit;
}

.pgw-product-price .woocommerce-Price-currencySymbol {
    font-weight: 800;
}

.pgw-product-price del {
    color: #999999;
    font-weight: 400;
    font-size: 0.8em;
    margin-right: 8px;
    opacity: 0.7;
}

.pgw-product-price del .woocommerce-Price-amount {
    color: inherit;
}

.pgw-product-price ins {
    text-decoration: none;
    color: #e67e22;
    font-weight: 800;
}

.pgw-product-price ins .woocommerce-Price-amount {
    color: inherit;
}

.pgw-add-to-cart {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f5f5f5;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.pgw-add-to-cart:hover {
    background-color: #e67e22;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .pgw-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .pgw-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pgw-product-image {
        height: 180px;
    }
    
    .pgw-overlay-icons {
        opacity: 1;
        transform: translateY(0);
    }
    
    .pgw-product-title {
        font-size: 14px;
    }
    
    .pgw-product-category {
        font-size: 12px;
    }
    
    .pgw-product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pgw-product-price {
        font-size: 14px;
    }
    
    .pgw-add-to-cart {
        font-size: 12px;
        padding: 5px 12px;
    }
}


/* Pagination */
.pgw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pgw-pagination a,
.pgw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pgw-pagination a {
    color: #333333;
    background-color: #f5f5f5;
}

.pgw-pagination a:hover {
    color: #ffffff;
    background-color: #e67e22;
}

.pgw-pagination .current {
    color: #ffffff;
    background-color: #e67e22;
}

.pgw-pagination .dots {
    background: transparent;
    color: #999;
}

.pgw-pagination .prev,
.pgw-pagination .next {
    font-weight: 700;
}

@media (max-width: 767px) {
    .pgw-pagination {
        gap: 5px;
    }
    
    .pgw-pagination a,
    .pgw-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 6px 10px;
        font-size: 13px;
    }
}


/* ========================================
   Service Booking Widget Styles
   ======================================== */
.sbw-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sbw-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.sbw-icon {
    width: 60px;
    height: 60px;
    background-color: #fef3cd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sbw-icon i,
.sbw-icon svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.sbw-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.sbw-price {
    margin-bottom: 15px;
}

.sbw-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #e67e22;
}

.sbw-price-unit {
    font-size: 14px;
    color: #888888;
    margin-left: 5px;
}

.sbw-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.sbw-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.sbw-feature {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.sbw-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background-color: #e67e22;
    border-radius: 50%;
}

.sbw-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background-color: #1a2a3a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sbw-button:hover {
    background-color: #e67e22;
}

.sbw-button i,
.sbw-button svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Popup Overlay */
.sbw-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.sbw-popup-overlay.active {
    display: flex;
}

.sbw-popup {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: sbwPopupIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes sbwPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sbw-popup-close {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    line-height: 36px;
    text-align: center;
    color: #666666;
    z-index: 10;
    transition: all 0.3s ease;
}

.sbw-popup-close:hover {
    color: #ffffff;
    background-color: #e67e22;
}

.sbw-popup-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sbw-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    padding-right: 40px;
}

.sbw-popup-service {
    font-size: 15px;
    color: #e67e22;
    margin: 0;
    font-weight: 500;
}

.sbw-form-group {
    margin-bottom: 20px;
}

.sbw-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sbw-form-group input,
.sbw-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.sbw-form-group input:focus,
.sbw-form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.sbw-form-group input::placeholder,
.sbw-form-group textarea::placeholder {
    color: #aaa;
}

.sbw-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sbw-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #e67e22;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbw-submit-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
}

.sbw-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sbw-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.sbw-form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.sbw-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 767px) {
    .sbw-popup-overlay {
        padding: 15px;
    }
    
    .sbw-popup {
        width: 92%;
        max-width: 92%;
        max-height: 85vh;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .sbw-popup-close {
        left: 95%;
        top: 3%;
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 20px;
    }
    
    .sbw-popup-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .sbw-popup-title {
        font-size: 20px;
        padding-right: 30px;
    }
    
    .sbw-popup-service {
        font-size: 14px;
    }
    
    .sbw-form-group {
        margin-bottom: 15px;
    }
    
    .sbw-form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .sbw-form-group input,
    .sbw-form-group textarea {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .sbw-form-group textarea {
        min-height: 80px;
    }
    
    .sbw-submit-btn {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .sbw-form-message {
        padding: 12px 15px;
        font-size: 14px;
    }
}


/* ========================================
   Category Search Widget Styles
   ======================================== */
.csw-container {
    background-color: #fafafa;
    padding: 30px 25px;
    border-radius: 15px;
}

/* Search Box */
.csw-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.csw-search-box:focus-within {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.csw-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    flex-shrink: 0;
}

.csw-search-icon svg {
    fill: currentColor;
}

.csw-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333333;
    width: 100%;
}

.csw-search-input::placeholder {
    color: #999999;
}

/* Title */
.csw-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 25px 0 15px 0;
    padding: 0;
}

/* Category List */
.csw-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csw-category-list li {
    margin: 0;
}

.csw-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.csw-category-item:hover {
    color: #e67e22;
    background-color: rgba(230, 126, 34, 0.05);
}

.csw-category-item.active {
    color: #e67e22;
    background-color: #fef3cd;
}

.csw-category-count {
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 767px) {
    .csw-container {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .csw-search-box {
        padding: 10px 12px;
    }
    
    .csw-search-input {
        font-size: 14px;
    }
    
    .csw-title {
        font-size: 16px;
        margin: 20px 0 12px 0;
    }
    
    .csw-category-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}


/* ========================================
   Post Grid Widget Styles
   ======================================== */
.pgw-posts-container {
    width: 100%;
}

.pgw-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Post Card */
.pgw-post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pgw-post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Post Image */
.pgw-post-image {
    position: relative;
    height: 180px;
    background-color: #fef3cd;
    overflow: hidden;
    border-radius: 8px;
}

.pgw-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pgw-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pgw-post-card:hover .pgw-post-image img {
    transform: scale(1.05);
}

.pgw-post-image .pgw-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pgw-post-image .pgw-placeholder svg {
    opacity: 0.8;
}

/* Post Content */
.pgw-post-content {
    padding: 20px;
}

/* Post Category */
.pgw-post-category {
    margin: 0 0 10px 0;
}

.pgw-post-category a {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #e67e22;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.pgw-post-category a:hover {
    color: #d35400;
}

/* Post Title */
.pgw-post-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.pgw-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pgw-post-title a:hover {
    color: #e67e22;
}

/* Post Excerpt */
.pgw-post-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Post Meta */
.pgw-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #999999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.pgw-post-date {
    font-weight: 400;
}

.pgw-post-time-ago {
    font-weight: 400;
}

/* No Posts */
.pgw-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .pgw-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pgw-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pgw-post-image {
        height: 160px;
    }
    
    .pgw-post-content {
        padding: 15px;
    }
    
    .pgw-post-title {
        font-size: 16px;
    }
    
    .pgw-post-excerpt {
        font-size: 13px;
    }
    
    .pgw-post-meta {
        font-size: 12px;
        margin-top: 12px;
        padding-top: 12px;
    }
}
