/*
 * Custom storefront overrides for homepage product sections.
 * Generated by GPT-5-Codex to mirror marketplace-style strip layouts.
 */

.storefront-home-section {
    padding: 0 0 2.5rem;
}

.storefront-home-section .home-section-surface {
    background: #ffffff;
    border-radius: 10px;
    /* box-shadow: 0 18px 35px -24px rgba(15, 23, 42, 0.35); */
    overflow: hidden;
    
}

.storefront-home-section .home-section-header {
    background: #081828;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 1.6rem;
    flex-wrap: wrap;
}
.storefront-home-section .home-section-header *{
    color: #ffffff !important;
}

.storefront-home-section .home-section-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.storefront-home-section .home-section-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.storefront-home-section .home-section-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.storefront-home-section .home-section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.storefront-home-section .home-section-cta:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(4px);
    color: #ffffff;
}

.storefront-home-section .home-section-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.storefront-home-section .home-section-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.storefront-home-section .home-section-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.storefront-home-section .home-section-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
}

.storefront-home-section .home-section-body {
    padding: 0rem 0.6rem 0.6rem;
    background: linear-gradient(180deg, #f5f9ff 0%, #f8f8fb 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.storefront-home-section .home-section-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.storefront-home-section .home-section-scroll::-webkit-scrollbar {
    height: 8px;
}

.storefront-home-section .home-section-scroll::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.storefront-home-section .home-section-scroll::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.45);
    border-radius: 999px;
}

.storefront-home-section .home-section-item {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 240px;
}

.storefront-home-section .home-section-item .single-product {
    height: 100%;
    margin-top: 4px !important;
}

.storefront-home-section .home-section-item .product-info{
    width: 100%;
}

.storefront-home-section .home-section-item .product-info .title a {
    /* text-truncate styling */
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-home-section .home-section-empty {
    padding: 2.5rem 1rem;
    border: 2px dashed rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

/* Normalize product card thumbnails */
.single-product .product-image {
    position: relative;
    overflow: hidden;
    background-color: #f7f9fc;
}

.single-product .product-image::before {
    content: '';
    display: block;
    padding-top: 100%;
    width: 100%;
}

.single-product .product-image > a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-product .product-image .sale-tag,
.single-product .product-image .new-tag {
    z-index: 2;
}

.single-product .product-media {
    position: relative;
}

.single-product .product-actions {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.single-product .product-actions .wishlist-action {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.single-product:hover .product-actions .wishlist-action,
.single-product:focus-within .product-actions .wishlist-action,
.single-product .product-actions .wishlist-action.is-sticky {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.single-product .product-actions .wishlist-action .btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #ff4d6d;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.single-product .product-actions .wishlist-action .btn-wishlist:hover,
.single-product .product-actions .wishlist-action .btn-wishlist:focus {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.45);
    color: #ff1f4b;
    transform: translateY(-1px);
}

.single-product .product-actions .wishlist-action .btn-wishlist.is-active {
    background: #ff4d6d;
    border-color: #ff4d6d;
    color: #ffffff;
    box-shadow: 0 6px 16px -10px rgba(255, 77, 109, 0.65);
}

.single-product .product-actions .wishlist-action .btn-wishlist.is-loading {
    pointer-events: none;
}

.single-product .product-actions .wishlist-action .btn-wishlist.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 1);
    animation: storefrontWishlistSpin 0.6s linear infinite;
}

@keyframes storefrontWishlistSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.single-product .product-actions .button {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.single-product:hover .product-actions .button,
.single-product:focus-within .product-actions .button,
.single-product .product-actions .button.is-sticky {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.single-product .product-actions .button.button-group {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(26, 32, 44, 0.9);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 170px;
    padding: 0.35rem 0.4rem;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.7);
}

.single-product .product-actions .button.button-group .btn {
    border: none;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    gap: 0.45rem;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.single-product .product-actions .button.button-group .btn + .btn {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.single-product .product-actions .button.button-group .btn i {
    font-size: 1rem;
}

.single-product .product-actions .button.button-group .btn.btn-view {
    width: 48px;
    padding: 0.55rem 0;
}

.single-product .product-actions .button.button-group .btn.btn-cart {
    flex: 1 1 auto;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    white-space: nowrap;
}

.single-product .product-actions .button.button-group .cart-quantity-control {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    flex: 1 1 auto;
    gap: 0.25rem;
}

.single-product .product-actions .button.button-group .cart-quantity-control .btn {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    width: 42px;
    padding: 0.45rem 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    flex: 0 0 42px;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.single-product .product-actions .button.button-group .cart-quantity-control .quantity-value {
    cursor: default;
    pointer-events: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 0.45rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(15, 23, 42, 0.38);
    color: #ffffff;
}

.single-product .product-actions .button.button-group .cart-quantity-control .btn:hover:not(:disabled) {
    background-color: rgba(37, 99, 235, 0.92);
}

.single-product .product-actions .button.button-group .cart-quantity-control .btn i {
    line-height: 1;
    display: inline-block;
}

.single-product .product-actions .button.button-group .btn:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
}

.single-product .product-actions .button.button-group .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .storefront-home-section .home-section-header {
        padding: 1rem 1.25rem;
    }

    .storefront-home-section .home-section-body {
        padding: 1.1rem 1.25rem 1.4rem;
    }

    .storefront-home-section .home-section-item {
        /* min-width: 180px; */
        flex: 0 0 180px;
    }

    .single-product .product-actions {
        position: static;
        margin-top: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        pointer-events: auto;
    }

    .single-product .product-actions .wishlist-action,
    .single-product .product-actions .button {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto;
    }

    .single-product .product-actions .wishlist-action {
        justify-content: flex-start;
    }

    .single-product .product-actions .button.button-group {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.12);
        box-shadow: none;
        padding: 0.65rem;
        border-radius: 10px;
        min-width: unset;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .single-product .product-actions .button.button-group .btn {
        background: #f1f5f9;
        color: #1f2937;
        border-radius: 6px;
        border: 1px solid rgba(148, 163, 184, 0.4);
        flex: 1 1 calc(50% - 0.6rem);
        padding: 0.65rem 0.75rem;
    }

    .single-product .product-actions .button.button-group .btn + .btn {
        border-left: none;
    }

    .single-product .product-actions .button.button-group .btn.btn-view {
        flex: 0 0 48px;
        padding: 0.65rem;
    }

    .single-product .product-actions .button.button-group .btn:hover:not(:disabled) {
        background: #e2e8f0;
        color: #0f172a;
    }

    .single-product .product-actions .button.button-group .cart-quantity-control {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .single-product .product-actions .button.button-group .cart-quantity-control .btn {
        background: #ffffff;
        border-color: rgba(148, 163, 184, 0.4);
        color: #1f2937;
    }

    .single-product .product-actions .button.button-group .cart-quantity-control .quantity-value {
        background: #f8fafc;
        border-color: rgba(148, 163, 184, 0.4);
        color: #0f172a;
    }
}
