@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.custom-blog-widget-container {
    font-family: 'Inter', sans-serif;
    color: #333;
    padding: 20px 0;
}

/* Header */
.cbw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.cbw-header-left {
    max-width: 70%;
}
.cbw-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cbw-sub-title {
    color: #E60000;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}
.cbw-main-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #111;
}
.cbw-description {
    font-size: 15px;
    color: #666;
    margin: 0;
}
.cbw-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #E60000;
    color: #E60000;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0;
    transition: all 0.2s ease;
}
.cbw-view-all-btn:hover {
    background: #E60000;
    color: #fff;
}
.cbw-view-all-btn svg {
    transition: transform 0.2s ease;
}
.cbw-view-all-btn:hover svg {
    transform: translateX(3px);
}

/* Filters */
.cbw-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.cbw-filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #eee;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}
.cbw-filter-btn:hover, .cbw-filter-btn.active {
    background: #E60000;
    color: #fff;
    border-color: #E60000;
}

/* Swiper Slider */
.cbw-swiper-container {
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    padding: 10px 4px;
}
.cbw-swiper-container .swiper-slide {
    height: auto;
}
.cbw-swiper-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cbw-swiper-prev, .cbw-swiper-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #E60000;
    background: transparent;
    color: #E60000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.cbw-swiper-prev:hover, .cbw-swiper-next:hover {
    background: #E60000;
    color: #fff;
}
.cbw-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cbw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.cbw-card-img {
    position: relative;
    height: 240px;
}
.cbw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cbw-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #E60000;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 0;
    letter-spacing: 0.5px;
}
.cbw-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cbw-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}
.cbw-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    line-height: 1.3;
}
.cbw-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}
.cbw-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E60000;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.cbw-read-more:hover {
    color: #cc0000;
}
.cbw-read-more svg {
    transition: transform 0.2s ease;
}
.cbw-read-more:hover svg {
    transform: translateX(3px);
}

/* Footer Stats */
.cbw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    padding: 30px 40px;
    border-radius: 0;
}
.cbw-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cbw-stat.divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
    padding: 0;
}
.cbw-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cbw-stat-info {
    display: flex;
    flex-direction: column;
}
.cbw-stat-info strong {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
}
.cbw-stat-info span {
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .cbw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cbw-footer {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .cbw-stat.divider {
        display: none;
    }
    .cbw-stat {
        width: calc(50% - 10px);
    }
}
@media (max-width: 768px) {
    .cbw-header {
        flex-direction: column;
        gap: 16px;
    }
    .cbw-header-left {
        max-width: 100%;
    }
    .cbw-grid {
        grid-template-columns: 1fr;
    }
    .cbw-stat {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .cbw-stat-info {
        align-items: center;
    }
}

/* Contact Widget Specific Styles */
.custom-contact-widget-container {
    font-family: 'Inter', sans-serif;
    color: #fff;
    padding: 60px 0;
    border-radius: 0;
    box-sizing: border-box;
}
.custom-contact-widget-container * {
    box-sizing: border-box;
}

/* Header styling */
.ccw-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}
.ccw-header-left {
    max-width: 55%;
}
.ccw-sub-title {
    color: #E60000;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}
.ccw-main-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #fff;
}
.ccw-description {
    font-size: 15px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* Quick buttons (header right) */
.ccw-header-right {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ccw-quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 0;
    min-width: 200px;
    transition: border-color 0.3s, background 0.3s;
}
.ccw-quick-btn:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
}
.ccw-qb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.ccw-qb-info {
    display: flex;
    flex-direction: column;
}
.ccw-qb-title {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.ccw-qb-link {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
    transition: color 0.2s;
}
.ccw-qb-link:hover {
    color: #E60000;
}

/* 4 Info Cards styling */
.ccw-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.ccw-card {
    background: #fff;
    color: #111;
    padding: 30px 24px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ccw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.ccw-card-header {
    margin-bottom: 16px;
}
.ccw-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(230,0,0,0.2);
    background: rgba(230,0,0,0.05);
    margin-bottom: 16px;
}
.ccw-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: 0.5px;
}
.ccw-card-body {
    flex-grow: 1;
    margin-bottom: 24px;
}
.ccw-card-text {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}
.ccw-card-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #E60000;
    margin: 12px 0 0 0;
}
.ccw-card-footer {
    margin-top: auto;
}
.ccw-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #E60000;
    color: #E60000;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}
.ccw-card-btn:hover {
    background: #E60000;
    color: #fff;
}
.ccw-card-btn svg {
    transition: transform 0.2s ease;
}
.ccw-card-btn:hover svg {
    transform: translateX(3px);
}

/* Map Container styling */
.ccw-map-container {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.ccw-map-iframe-wrapper {
    width: 100%;
    height: 100%;
}
.ccw-map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.ccw-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #888;
    width: 100%;
    height: 100%;
}

/* Store Floating Card styling */
.ccw-store-card {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: #fff;
    color: #111;
    border-radius: 0;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}
.ccw-store-img {
    height: 140px;
    overflow: hidden;
}
.ccw-store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ccw-store-details {
    padding: 20px;
}
.ccw-store-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #111;
}
.ccw-store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}
.ccw-store-rating strong {
    font-weight: 700;
    color: #111;
}
.ccw-stars {
    display: flex;
    gap: 2px;
    color: #FFC107;
}
.ccw-reviews-count {
    color: #777;
}
.ccw-store-subtext {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}
.ccw-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E60000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 16px;
    border-radius: 0;
    transition: background 0.2s;
    width: 100%;
}
.ccw-store-btn:hover {
    background: #cc0000;
}

/* Responsive for Contact Widget */
@media (max-width: 1100px) {
    .ccw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ccw-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .ccw-header-left {
        max-width: 100%;
    }
    .ccw-header-right {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .ccw-cards-grid {
        grid-template-columns: 1fr;
    }
    .ccw-header-right {
        flex-direction: column;
    }
    .ccw-quick-btn {
        width: 100%;
    }
    .ccw-store-card {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #eee;
    }
    .ccw-map-container {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .ccw-map-iframe-wrapper {
        height: 350px;
    }
    .custom-contact-widget-container {
        padding: 40px 20px;
    }
}

/* Automotive Info Cards Widget Specific Styles */
.custom-info-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-family: 'Inter', sans-serif;
    color: #111;
    margin: 40px 0;
    box-sizing: border-box;
}

.custom-info-cards-container * {
    box-sizing: border-box;
}

.aic-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 30px 24px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Vertical red accent line on the left side, aligned with the icon */
.aic-card::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    width: 3px;
    height: 30px;
    background-color: #E60000;
}

.aic-card-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aic-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    margin-bottom: 20px;
    color: #E60000;
}

.aic-icon-container svg {
    width: 20px;
    height: 20px;
}

.aic-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.aic-card-text {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.aic-card-footer {
    margin-top: 24px;
}

.aic-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 100%;
}

.aic-card-btn svg {
    color: #E60000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.aic-card-btn:hover {
    background: #E60000;
    color: #ffffff;
    border-color: #E60000;
}

.aic-card-btn:hover svg {
    color: #ffffff;
}

.aic-card-btn:hover svg.button-arrow {
    transform: translateX(3px);
}

/* Special styling for WhatsApp button when hovered */
.aic-card-btn.font-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* Working Hours list inside card 4 */
.aic-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.aic-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    padding-bottom: 4px;
}

.aic-hours-day {
    font-weight: 500;
}

.aic-hours-time {
    color: #111;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 1100px) {
    .custom-info-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-info-cards-container {
        grid-template-columns: 1fr;
    }
    .aic-card {
        min-height: auto;
    }
}



/* ==========================================================================
   YP Products Grid - Custom Scoped Design System
   ========================================================================== */

.yp-custom-product-grid {
    box-sizing: border-box !important;
}

.yp-custom-product-grid * {
    box-sizing: border-box !important;
}

.yp-custom-product-grid .yp-product-inner {
    background: #ffffff !important;
    border: 1px solid #e1e7f0 !important;
    border-radius: 0px !important; /* Square corners as in screenshot */
    padding: 20px !important; /* Internal padding */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.yp-custom-product-grid .yp-product-inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
    border-color: #c61000 !important;
}

.yp-custom-product-grid .yp-product-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 220px !important;
    margin-bottom: 15px !important;
    background: #ffffff !important;
}

.yp-custom-product-grid .yp-product-header img {
    max-height: 200px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Sale Badge */
.yp-custom-product-grid .yp-product-sale-badge {
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    background-color: #c61000 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    z-index: 2 !important;
}

.yp-custom-product-grid .yp-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Category Label */
.yp-custom-product-grid .yp-product-category {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #999999 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-align: left !important;
}

/* Product Title */
.yp-custom-product-grid .yp-product-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    height: 38px !important; /* height for exactly 2 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-align: left !important;
}

.yp-custom-product-grid .yp-product-title a {
    color: #242424 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.yp-custom-product-grid .yp-product-title a:hover {
    color: #c61000 !important;
}

/* Product Footer (Price & Button) */
.yp-custom-product-grid .yp-product-footer {
    margin-top: auto !important;
    text-align: left !important;
}

/* Price Styling */
.yp-custom-product-grid .yp-product-price {
    margin-bottom: 15px !important;
}

.yp-custom-product-grid .yp-product-price .price {
    color: #c61000 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}



.yp-custom-product-grid .yp-product-button-wrap {
    width: 100% !important;
}

/* Cart Icon Pseudo-elements base styling */
.yp-custom-product-grid .yp-btn {
    text-decoration: none !important;
    border-radius: 4px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    border: none !important;
}

/* SELECT OPTIONS (Variable product) Outline */
.yp-custom-product-grid .yp-btn-outline {
    background-color: transparent !important;
    color: #242424 !important;
    border: 1px solid #c61000 !important;
}

.yp-custom-product-grid .yp-btn-outline:before {
    content: '\f07a' !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: #c61000 !important;
    margin-right: 8px !important;
    font-size: 13px !important;
}

.yp-custom-product-grid .yp-btn-outline:after {
    content: '\f105' !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: #c61000 !important;
    margin-left: auto !important;
    font-size: 13px !important;
}

.yp-custom-product-grid .yp-btn-outline:hover {
    background-color: #c61000 !important;
    color: #ffffff !important;
}

.yp-custom-product-grid .yp-btn-outline:hover:before,
.yp-custom-product-grid .yp-btn-outline:hover:after {
    color: #ffffff !important;
}

/* ADD TO CART (Simple product) Solid */
.yp-custom-product-grid .yp-btn-solid {
    background-color: #c61000 !important;
    color: #ffffff !important;
    border: 1px solid #c61000 !important;
}

.yp-custom-product-grid .yp-btn-solid:before {
    content: '\f07a' !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-right: 8px !important;
    font-size: 13px !important;
}

.yp-custom-product-grid .yp-btn-solid:after {
    content: '\f07a' !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-left: auto !important;
    font-size: 13px !important;
}

.yp-custom-product-grid .yp-btn-solid:hover {
    background-color: #111111 !important;
    border-color: #111111 !important;
}

/* AJAX Loading State Styles */
.yp-custom-product-grid .yp-btn.loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.85 !important;
}

.yp-custom-product-grid .yp-btn.loading span {
    opacity: 0.4 !important;
}

/* Spinner Icon */
.yp-custom-product-grid .yp-btn.loading:before {
    content: "\f110" !important; /* FontAwesome spinner */
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    animation: yp-fa-spin 1s infinite linear !important;
    color: inherit !important;
}

/* Hide right icon during loading */
.yp-custom-product-grid .yp-btn.loading:after {
    opacity: 0 !important;
}

/* Success / Added State Styles */
.yp-custom-product-grid .yp-btn.added {
    background-color: #2e7d32 !important; /* Green success */
    border-color: #2e7d32 !important;
    color: #ffffff !important;
}

.yp-custom-product-grid .yp-btn-outline.added {
    background-color: transparent !important;
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

/* Checkmark Icon instead of cart */
.yp-custom-product-grid .yp-btn.added:before {
    content: "\f00c" !important; /* FontAwesome check */
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    color: inherit !important;
}

/* Hide right icon in success state */
.yp-custom-product-grid .yp-btn.added:after {
    opacity: 0 !important;
}

/* View Cart Link Styling */
.yp-custom-product-grid .added_to_cart.wc-forward {
    display: block !important;
    text-align: center !important;
    margin-top: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #c61000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.yp-custom-product-grid .added_to_cart.wc-forward:hover {
    color: #111111 !important;
}

.yp-custom-product-grid .added_to_cart.wc-forward:after {
    content: "\f105" !important; /* FontAwesome angle-right */
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    margin-left: 4px !important;
}

@keyframes yp-fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   YP Shop Sidebar Custom Styling
   ========================================================================== */

.yp-shop-sidebar-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.yp-shop-sidebar-wrapper .yp-sidebar-widget {
    background: #ffffff !important;
    border: 1px solid #e1e7f0 !important;
    padding: 25px !important;
    border-radius: 0px !important; /* Square corners */
}

/* Headings */
.yp-shop-sidebar-wrapper .yp-sidebar-widget .widget-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #242424 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 2px solid #e1e7f0 !important;
    padding-bottom: 10px !important;
    position: relative !important;
}

.yp-shop-sidebar-wrapper .yp-sidebar-widget .widget-title:after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background-color: #c61000 !important;
}

/* Header row for Categories */
.yp-shop-sidebar-wrapper .yp-sidebar-widget .widget-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e1e7f0 !important;
    padding-bottom: 10px !important;
}

.yp-shop-sidebar-wrapper .yp-sidebar-widget .widget-header-row .widget-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.yp-shop-sidebar-wrapper .yp-sidebar-widget .widget-header-row .widget-title:after {
    display: none !important;
}

.yp-clear-all-categories,
.yp-clear-all-brands {
    font-size: 11px !important;
    color: #c61000 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
}

.yp-clear-all-categories:hover,
.yp-clear-all-brands:hover {
    text-decoration: underline !important;
}

/* 1. SEARCH WIDGET */
.yp-shop-sidebar-wrapper .widget_product_search form {
    display: flex !important;
    position: relative !important;
    border: 1px solid #e1e7f0 !important;
}

.yp-shop-sidebar-wrapper .widget_product_search input[type="search"] {
    flex-grow: 1 !important;
    border: none !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    outline: none !important;
    height: 42px !important;
    background: #ffffff !important;
    color: #242424 !important;
}

.yp-shop-sidebar-wrapper .widget_product_search button {
    background-color: #c61000 !important;
    border: none !important;
    color: #ffffff !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.yp-shop-sidebar-wrapper .widget_product_search button:hover {
    background-color: #111111 !important;
}

.yp-shop-sidebar-wrapper .widget_product_search button i {
    font-size: 14px !important;
    color: #ffffff !important;
}

/* 2. CATEGORIES WIDGET */
.yp-sidebar-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.yp-sidebar-categories-list .yp-cat-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f4f8 !important;
}

.yp-sidebar-categories-list .yp-cat-item:last-child {
    border-bottom: none !important;
}

.yp-sidebar-categories-list .yp-cat-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #4a4a4a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.yp-sidebar-categories-list .yp-cat-link:hover {
    color: #c61000 !important;
    transform: translateX(3px) !important;
}

.yp-sidebar-categories-list .yp-cat-icon {
    width: 20px !important;
    margin-right: 10px !important;
    color: #888888 !important;
    text-align: center !important;
}

.yp-sidebar-categories-list .yp-cat-link:hover .yp-cat-icon {
    color: #c61000 !important;
}

.yp-sidebar-categories-list .yp-cat-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.yp-sidebar-categories-list .yp-cat-count {
    display: none !important;
}

.yp-sidebar-categories-list .yp-cat-chevron {
    font-size: 13px !important;
    color: #c61000 !important;
    font-weight: 900 !important;
}

/* 3. FILTER BY PRICE WIDGET */
.woocommerce ul.products li.product .yp-custom-product-grid .yp-product-price ins,
.yp-custom-product-grid .yp-product-price ins,
.yp-custom-product-grid .price ins,
.yp-product-price ins {
    text-decoration: none !important;
    color: #c61000 !important;
    font-weight: 700 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 16px !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .yp-custom-product-grid .yp-product-price del,
.yp-custom-product-grid .yp-product-price del,
.yp-custom-product-grid .price del,
.yp-product-price del {
    color: #999999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-left: 8px !important;
    order: 2 !important; /* Show sale price first, then original */
    display: inline-block !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .price_slider_wrapper {
    padding-top: 10px !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .ui-slider {
    position: relative !important;
    text-align: left !important;
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
    margin-bottom: 20px !important;
    background: #e1e7f0 !important;
    height: 4px !important;
    border: none !important;
    border-radius: 0px !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .ui-slider .ui-slider-range {
    position: absolute !important;
    z-index: 1 !important;
    font-size: .7em !important;
    display: block !important;
    border: 0 !important;
    background: #c61000 !important; /* Red selection bar */
    height: 4px !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute !important;
    z-index: 2 !important;
    width: 14px !important;
    height: 14px !important;
    cursor: pointer !important;
    outline: none !important;
    top: -5px !important;
    margin-left: -.5em !important;
    background: #c61000 !important; /* Red handle */
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .price_slider_amount {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .price_slider_amount .button {
    background-color: #c61000 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border-radius: 0px !important;
    order: 2 !important;
    transition: background-color 0.2s ease !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .price_slider_amount .button:hover {
    background-color: #111111 !important;
}

.yp-shop-sidebar-wrapper .widget_price_filter .price_slider_amount .price_label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #242424 !important;
    order: 1 !important;
}

/* 4. PRODUCT TAGS WIDGET */
.yp-tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.yp-tag-cloud .yp-tag-pill {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #666666 !important;
    background: #ffffff !important;
    border: 1px solid #e1e7f0 !important;
    padding: 5px 12px !important;
    text-decoration: none !important;
    border-radius: 2px !important;
    transition: all 0.2s ease !important;
}

.yp-tag-cloud .yp-tag-pill:hover {
    background: #c61000 !important;
    color: #ffffff !important;
    border-color: #c61000 !important;
}

.yp-tags-footer {
    display: flex !important;
    justify-content: flex-end !important;
}

.yp-view-all-tags {
    font-size: 11px !important;
    color: #c61000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.yp-view-all-tags:hover {
    text-decoration: underline !important;
}

/* 5. FEATURED PRODUCTS WIDGET */
.yp-shop-sidebar-wrapper .widget_products ul.product_list_widget {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.yp-shop-sidebar-wrapper .widget_products ul.product_list_widget li {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 0 !important;
    border: none !important;
}

.yp-shop-sidebar-wrapper .widget_products ul.product_list_widget li img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    border: 1px solid #e1e7f0 !important;
    background: #ffffff !important;
    padding: 5px !important;
    border-radius: 0px !important;
    flex-shrink: 0 !important;
}

.yp-product-list-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.yp-product-list-meta .yp-product-list-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #242424 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
}

.yp-product-list-meta .yp-product-list-title:hover {
    color: #c61000 !important;
}

.yp-product-list-meta .price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #c61000 !important;
}

.yp-product-list-meta .price del {
    color: #999999 !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    margin-right: 5px !important;
}

.yp-featured-footer {
    display: flex !important;
    justify-content: flex-end !important;
}

.yp-view-all-featured {
    font-size: 11px !important;
    color: #c61000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.yp-view-all-featured:hover {
    text-decoration: underline !important;
}

/* 6. NEED HELP? WIDGET */
.yp-shop-sidebar-wrapper .yp-help-box-widget {
    background-color: #0d0d0e !important;
    border: none !important;
    color: #ffffff !important;
    padding: 30px 20px !important;
    text-align: center !important;
    border-radius: 4px !important;
}

.yp-help-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.yp-help-icon-wrap {
    width: 60px !important;
    height: 60px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.yp-help-icon {
    font-size: 26px !important;
    color: #c61000 !important;
}

.yp-help-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 1px !important;
}

.yp-help-desc {
    font-size: 12px !important;
    color: #a0a0a5 !important;
    line-height: 1.5 !important;
    margin: 0 0 25px 0 !important;
    max-width: 200px !important;
}

.yp-help-button {
    background-color: #c61000 !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    justify-content: center !important;
    width: fit-content !important;
}

.yp-help-button:hover {
    background-color: #ffffff !important;
    color: #111111 !important;
    transform: translateY(-2px) !important;
}

.yp-help-button i {
    font-size: 12px !important;
    color: inherit !important;
}

/* Category & Brand Thumbnails */
.yp-sidebar-categories-list .yp-cat-thumb {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    margin-right: 10px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

/* Remove list bullet markers / red dots from categories and brands lists */
.yp-sidebar-categories-list li:before,
.yp-sidebar-categories-list li::before,
.yp-sidebar-categories-list .yp-cat-item:before,
.yp-sidebar-categories-list .yp-cat-item::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ==========================================================================
   WooCommerce Native Loop Product Grid styling
   ========================================================================== */
.woocommerce ul.products:not(.swiper-wrapper) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
}

.woocommerce ul.products:not(.swiper-wrapper):before,
.woocommerce ul.products:not(.swiper-wrapper):after {
    display: none !important;
}

.woocommerce ul.products:not(.swiper-wrapper) li.product:not(.swiper-slide) {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 991px) {
    .woocommerce ul.products:not(.swiper-wrapper) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 575px) {
    .woocommerce ul.products:not(.swiper-wrapper) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0px !important;
    }
	ul.products li.product.product-style-default .product-block {
		padding:12px !important;
	}
	li.product:not(.product-list):not(.product-block-list) .product-caption-bottom a[class*="product_type_"] {
    padding:10px !important;
    font-size:13px;
}
}
@media (max-width: 400px) {
.product-caption .posted-in {
    font-size: 12px;
}

ul.products li.product .product-caption .woocommerce-loop-product__title {
    font-size: 14px;
}
}

/* ==========================================================================
   YP Automotive Video Playlist Widget Styling
   ========================================================================== */
.yp-vp-container {
    width: 100%;
    margin: 30px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
    box-sizing: border-box;
}

.yp-vp-container * {
    box-sizing: border-box;
}

/* Header Area */
.yp-vp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 20px;
}

.yp-vp-header-left {
    flex: 1;
}

.yp-vp-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E60000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.yp-vp-tag-slash {
    font-weight: 900;
    letter-spacing: -1px;
    color: #E60000;
}

.yp-vp-main-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.yp-vp-title-prefix {
    color: #0f1115;
}

.yp-vp-title-highlight {
    color: #E60000;
    font-style: italic;
    margin-left: 4px;
}

.yp-vp-subtitle {
    font-size: 15px;
    color: #717680;
    margin: 0;
    font-weight: 500;
}

/* Header Right: Stripes Graphic & Note */
.yp-vp-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: right;
}

.yp-vp-stripes-graphic {
    display: flex;
    gap: 5px;
    transform: skewX(-24deg);
    opacity: 0.35;
}

.yp-vp-stripe {
    display: block;
    width: 6px;
    height: 38px;
    background: linear-gradient(180deg, #b0b4bc 0%, #d8dbe0 100%);
    border-radius: 1px;
}

.yp-vp-note-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.yp-vp-note-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: #6a707c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.yp-vp-note-line {
    width: 32px;
    height: 3px;
    background-color: #E60000;
    border-radius: 2px;
}

/* Grid Layout */
.yp-vp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: stretch;
}

/* Featured Player Column */
.yp-vp-player-wrapper {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.yp-vp-video-screen {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.yp-vp-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.yp-vp-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.82) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Watermark Brand (Top Left) */
.yp-vp-watermark {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.yp-vp-logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.yp-vp-brand-badge {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.yp-vp-logo-yp {
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.yp-vp-logo-sub {
    font-size: 9px;
    font-weight: 700;
    color: #e2e2e2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Video Overlay Title (Top Right) */
.yp-vp-overlay-info {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
    pointer-events: none;
    max-width: 60%;
}

.yp-vp-info-bar {
    width: 4px;
    height: 38px;
    background-color: #E60000;
    border-radius: 2px;
    flex-shrink: 0;
}

.yp-vp-info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yp-vp-overlay-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
    line-height: 1.2;
}

.yp-vp-overlay-subtitle {
    font-size: 13px;
    font-style: italic;
    color: #d1d5db;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* Centered Red Play Button */
.yp-vp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background-color: #E60000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 28px rgba(230, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.2s ease;
    padding: 0;
    outline: none;
}

.yp-vp-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 42px rgba(230, 0, 0, 0.85), 0 6px 18px rgba(0, 0, 0, 0.5);
    background-color: #ff0f0f;
}

.yp-vp-play-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.yp-vp-play-icon {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Optical center alignment */
}

/* Bottom Controls Preview Bar */
.yp-vp-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.yp-vp-progress-track {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin-bottom: 10px;
}

.yp-vp-bar-progress {
    height: 100%;
    background-color: #E60000;
    border-radius: 2px;
    position: relative;
}

.yp-vp-bar-handle {
    position: absolute;
    right: -4px;
    top: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.yp-vp-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
}

.yp-vp-time-readout {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.yp-vp-controls-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yp-vp-ctrl-icon {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

/* Embed Iframe Container */
.yp-vp-iframe-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

.yp-vp-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* When playing: hide overlays */
.yp-vp-player-wrapper.is-playing .yp-vp-poster,
.yp-vp-player-wrapper.is-playing .yp-vp-poster-overlay,
.yp-vp-player-wrapper.is-playing .yp-vp-watermark,
.yp-vp-player-wrapper.is-playing .yp-vp-overlay-info,
.yp-vp-player-wrapper.is-playing .yp-vp-play-btn,
.yp-vp-player-wrapper.is-playing .yp-vp-bottom-controls {
    opacity: 0;
    pointer-events: none;
}

.yp-vp-player-wrapper.is-playing .yp-vp-iframe-wrap {
    display: block !important;
}

/* ==========================================
   Playlist Sidebar Styling
   ========================================== */
.yp-vp-playlist-card {
    background-color: #121316;
    border: 1px solid #23252a;
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.yp-vp-pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 8px;
}

.yp-vp-pl-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yp-vp-pl-dash {
    width: 14px;
    height: 3px;
    background-color: #E60000;
    border-radius: 1px;
}

.yp-vp-pl-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.yp-vp-pl-count {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.yp-vp-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    max-height: 370px;
}

/* Custom Sleek Scrollbar */
.yp-vp-items-list::-webkit-scrollbar {
    width: 4px;
}
.yp-vp-items-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.yp-vp-items-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Playlist Item */
.yp-vp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.yp-vp-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.yp-vp-item.is-active {
    border-color: #E60000 !important;
    background: rgba(230, 0, 0, 0.06) !important;
    box-shadow: 0 0 16px rgba(230, 0, 0, 0.18);
}

.yp-vp-item-thumb-box {
    position: relative;
    width: 82px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #1a1a1e;
}

.yp-vp-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yp-vp-item:hover .yp-vp-item-thumb {
    transform: scale(1.06);
}

.yp-vp-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.yp-vp-item-play-icon svg {
    width: 11px;
    height: 11px;
    margin-left: 1px;
}

.yp-vp-item.is-active .yp-vp-item-play-icon {
    background-color: #E60000;
}

.yp-vp-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.yp-vp-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-vp-item.is-active .yp-vp-item-title {
    color: #ffffff;
    font-weight: 700;
}

.yp-vp-item-duration {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

/* Playlist Footer CTA Button */
.yp-vp-pl-footer {
    margin-top: 18px;
    padding-top: 6px;
}

.yp-vp-youtube-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background-color: #191b20;
    border: 1px solid #2d3039;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.22s ease;
}

.yp-vp-youtube-cta:hover {
    background-color: #E60000;
    border-color: #E60000;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(230, 0, 0, 0.35);
}

.yp-vp-yt-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
}

.yp-vp-yt-badge svg {
    width: 18px;
    height: 18px;
}

.yp-vp-cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.yp-vp-youtube-cta:hover .yp-vp-cta-arrow {
    transform: translateX(4px);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {
    .yp-vp-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }
    
    .yp-vp-main-title {
        font-size: 32px;
    }
}

@media (max-width: 860px) {
    .yp-vp-grid {
        grid-template-columns: 1fr;
    }

    .yp-vp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .yp-vp-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .yp-vp-items-list {
        max-height: 280px;
    }
}

@media (max-width: 575px) {
    .yp-vp-main-title {
        font-size: 26px;
    }

    .yp-vp-play-btn {
        width: 58px;
        height: 58px;
    }

    .yp-vp-play-icon {
        width: 24px;
        height: 24px;
    }

    .yp-vp-overlay-info {
        top: 12px;
        right: 14px;
    }

    .yp-vp-overlay-title {
        font-size: 15px;
    }

    .yp-vp-overlay-subtitle {
        font-size: 11px;
    }

    .yp-vp-watermark {
        top: 12px;
        left: 14px;
    }

    .yp-vp-logo-yp {
        font-size: 20px;
    }

    .yp-vp-logo-sub {
        font-size: 8px;
    }
}


/* ==========================================================================
   YP Product Category Description Widget & Shortcode
   ========================================================================== */
.yp-product-cat-description {
    display: block;
    margin: 0 0 25px 0;
    width: 100%;
}

.yp-product-cat-description .yp-category-description-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.yp-product-cat-description .yp-category-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.yp-product-cat-description .yp-category-description-content p {
    margin-bottom: 14px;
}

.yp-product-cat-description .yp-category-description-content p:last-child {
    margin-bottom: 0;
}

.yp-product-cat-description .yp-category-description-content ul,
.yp-product-cat-description .yp-category-description-content ol {
    margin: 0 0 14px 20px;
    padding: 0;
}

.yp-product-cat-description .yp-category-description-content li {
    margin-bottom: 6px;
}

.yp-product-cat-description .yp-category-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.yp-product-cat-description .yp-category-description-content a {
    color: #E60000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.yp-product-cat-description .yp-category-description-content a:hover {
    color: #cc0000;
}