/* ===========================
   Product Horizontal Slider
   Ultra Minimal Clean Style
   =========================== */

.phs-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
    padding: 0 50px;
}

/* ===========================
/* ===========================
   Navigation Buttons - Minimal
   =========================== */

.phs-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #123a55 !important;
    /* Brand Dark Blue */
    border: 1px solid #123a55 !important;
    border-radius: 50%;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.phs-nav-button:hover {
    background: #0f2d42 !important;
    /* Slightly darker blue */
    border-color: #0f2d42 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
    /* Slight zoom on hover */
}

.phs-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.phs-nav-prev {
    left: 0;
}

.phs-nav-next {
    right: 0;
}

.phs-nav-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    background: #123a55 !important;
}

.phs-nav-button:disabled:hover {
    transform: translateY(-50%);
}

.phs-nav-button .arrow-icon {
    font-size: 28px;
    line-height: 1;
    color: #ffffff !important;
    font-weight: 300;
    display: block;
    margin-top: -3px;
    /* Visual center adjustment */
}

/* ===========================
   Slider Container
   =========================== */

.phs-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.phs-slider-container::-webkit-scrollbar {
    display: none;
}

.phs-slider-track {
    display: flex;
    gap: 16px;
}

/* ===========================
   Product Card - Ultra Minimal
   =========================== */

.phs-product-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 180px;
    background: transparent;
    border: none;
    overflow: visible;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phs-product-card:hover {
    transform: translateY(-2px);
}

/* ===========================
   Product Image
   =========================== */

.phs-product-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    margin-bottom: 12px;
    border-radius: 4px;
}

.phs-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.phs-product-card:hover .phs-product-image {
    opacity: 0.95;
}

/* Sale Badge */
.phs-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4444;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Wishlist Button with Heart Icon */
.phs-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #123a55 !important;
    /* Brand Dark Blue */
    border: 1px solid #123a55 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phs-wishlist-btn:hover {
    background: #0f2d42 !important;
    border-color: #0f2d42 !important;
    transform: translateY(-2px);
}

.phs-wishlist-btn .heart-icon {
    font-size: 18px;
    line-height: 1;
    color: #ffffff !important;
    transition: color 0.2s ease;
    margin-top: 2px;
    /* Visual center adjustment */
}

.phs-wishlist-btn:hover .heart-icon {
    color: #ff6128 !important;
    /* Orange heart on hover */
}

/* ===========================
   Product Info
   =========================== */

.phs-product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.phs-product-sku {
    font-weight: bold;
    color: #003366;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.phs-product-brand {
    font-weight: bold;
    color: #ff6128;
    margin: 0 0 5px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}


.phs-product-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
    min-height: 36px;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.phs-product-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.phs-product-title a:hover {
    color: #000;
}

/* ===========================
   Product Price
   =========================== */

.phs-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.phs-product-price del {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.phs-product-price ins {
    text-decoration: none;
    color: #000;
}

/* ===========================
   Stock Status
   =========================== */

.phs-stock-status {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}

.phs-stock-status.in-stock {
    color: #46a546;
}

.phs-stock-status.out-of-stock {
    color: #999;
}

/* ===========================
   Add to Cart Button - Brand Colors
   =========================== */

.phs-product-button {
    margin-top: auto !important;
    padding-top: 8px;
}

/* High Specificity Selectors to Override Theme */
.phs-slider-wrapper .phs-product-card .phs-product-button .phs-add-to-cart,
.phs-slider-wrapper .phs-product-button a.button.phs-add-to-cart,
.woocommerce .phs-slider-wrapper a.button.phs-add-to-cart,
.phs-add-to-cart {
    display: block !important;
    width: 100% !important;
    padding: 8px 14px !important;
    background-color: #ff6128 !important;
    /* Brand Orange */
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid #ff6128 !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
}

.phs-slider-wrapper .phs-product-card .phs-product-button .phs-add-to-cart:hover,
.phs-slider-wrapper .phs-product-button a.button.phs-add-to-cart:hover,
.woocommerce .phs-slider-wrapper a.button.phs-add-to-cart:hover,
.phs-add-to-cart:hover {
    background-color: #123a55 !important;
    /* Brand Dark Blue */
    border-color: #123a55 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
}

.phs-add-to-cart:active {
    transform: scale(0.98);
}

.phs-add-to-cart.loading {
    opacity: 0.6;
    cursor: wait;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .phs-slider-wrapper {
        padding: 0 45px;
    }

    .phs-nav-button {
        width: 36px;
        height: 36px;
    }

    .phs-product-card {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .phs-slider-wrapper {
        margin: 20px auto;
        padding: 0 40px;
    }

    .phs-nav-button {
        width: 32px;
        height: 32px;
    }

    .phs-product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 150px;
    }

    .phs-product-info {
        gap: 6px;
    }

    .phs-product-title {
        font-size: 13px;
        min-height: 34px;
        max-height: 34px;
    }

    .phs-product-price {
        font-size: 14px;
    }

    .phs-add-to-cart {
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .phs-slider-wrapper {
        margin: 15px auto;
        padding: 0 35px;
    }

    .phs-nav-button {
        width: 30px;
        height: 30px;
    }

    .phs-nav-button svg {
        width: 16px;
        height: 16px;
    }

    .phs-product-card {
        flex: 0 0 calc(100% - 8px);
        max-width: 320px;
        margin: 0 auto;
    }

    .phs-slider-track {
        gap: 12px;
    }
}

/* ===========================
   Loading State
   =========================== */

.phs-slider-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===========================
   Smooth Animations
   =========================== */

@media (prefers-reduced-motion: reduce) {

    .phs-slider-track,
    .phs-product-card,
    .phs-product-image,
    .phs-wishlist-btn,
    .phs-add-to-cart {
        transition: none;
    }
}

/* ===========================
   No Products Message
   =========================== */

.phs-slider-wrapper p {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    color: #666;
}