/* =========================================================
   Homepage Products — Persian Onyx Premium Collection
========================================================= */

.po-home-products {
    position: relative;
    padding: clamp(64px, 8vw, 110px) 0;
    overflow: hidden;
    isolation: isolate;
}

.po-home-products::before,
.po-home-products::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
}

.po-home-products::before {
    top: 40px;
    right: -300px;
    background: radial-gradient(
        circle,
        rgba(0, 150, 136, 0.12),
        transparent 68%
    );
}

.po-home-products::after {
    top: 40%;
    left: -340px;
    background: radial-gradient(
        circle,
        rgba(142, 36, 170, 0.1),
        transparent 70%
    );
}


/* Collections */

.po-product-collection {
    position: relative;
}

.po-product-collection + .po-product-collection {
    margin-top: clamp(80px, 10vw, 130px);
}

.po-product-collection--featured {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(0, 150, 136, 0.13);
    border-radius: 28px;
    /* background:
        linear-gradient(
            145deg,
            rgba(0, 150, 136, 0.055),
            rgba(142, 36, 170, 0.025)
        ); */
}

.po-product-collection--featured::before {
    content: "";
    position: absolute;
    top: 0;
    right: 42px;
    left: 42px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 150, 136, 0.75),
        rgba(142, 36, 170, 0.65),
        transparent
    );
}


/* Section heading */

.po-product-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: clamp(30px, 4vw, 48px);
    direction: rtl;
}

.po-product-heading-group {
    max-width: 670px;
}

.po-product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--po-teal, #009688);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.po-product-eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #009688;
    box-shadow: 0 0 0 5px rgba(0, 150, 136, 0.11);
}

.po-product-eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(0, 150, 136, 0.25);
    border-radius: inherit;
    animation: poProductPulse 2.6s ease-out infinite;
}

@keyframes poProductPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.7);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

.po-product-section-title {
    margin: 0;
    color: var(--onyx, #07191e);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.po-product-section-description {
    max-width: 590px;
    margin: 12px 0 0;
    color: var(--charcoal-muted, #6b7280);
    font-size: 15px;
    line-height: 2;
}

.po-section-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 11px 17px;
    border: 1px solid rgba(0, 150, 136, 0.2);
    border-radius: 999px;
    background: rgba(0, 150, 136, 0.065);
    color: #00796b !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.po-section-text-link:hover {
    transform: translateY(-2px);
    background: #009688;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(0, 150, 136, 0.22);
}

.po-section-text-link svg {
    transition: transform 0.25s ease;
}

.po-section-text-link:hover svg {
    transform: translateX(-4px);
}


/* Product grid */

.po-home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.3vw, 28px);
}


/* Product card */

.po-home-product-card {
    position: relative;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    /* border: 1px solid rgba(7, 25, 30, 0.08); */
    border-radius: 22px;
    /* background: rgba(255, 255, 255, 0.88); */
    /* box-shadow:
        0 14px 40px rgba(7, 25, 30, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.78); */
    backdrop-filter: blur(12px);
    /* -webkit-backdrop-filter: blur(12px); */
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.po-home-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(0, 150, 136, 0.7),
        transparent 40%,
        rgba(142, 36, 170, 0.5)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.po-home-product-card:hover {
    transform: translateY(-7px);
    border-color: transparent;
    box-shadow:
        0 26px 60px rgba(7, 25, 30, 0.11),
        0 8px 24px rgba(0, 150, 136, 0.09);
}

.po-home-product-card:hover::before {
    opacity: 1;
}

.po-home-product-link {
    display: block;
    color: inherit !important;
    text-decoration: none;
}


/* Product image */

.po-home-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f4;
}

.po-home-product-image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: block;
    object-fit: cover;
    border-radius: inherit !important;
    transform: scale(1.001);
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.4s ease;
}

.po-home-product-card:hover .po-home-product-image img {
    transform: scale(1.055);
    filter: saturate(1.04);
}

.po-home-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 25, 30, 0.58),
        transparent 48%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.po-home-product-card:hover .po-home-product-image::after {
    opacity: 1;
}

.po-home-product-overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(7, 25, 30, 0.68);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.po-home-product-card:hover .po-home-product-overlay {
    opacity: 1;
    transform: translateY(0);
}


/* Product text */

.po-home-product-content {
    padding: 18px 7px 8px;
}

.po-home-product-title {
    min-height: 54px;
    max-height: 54px;
    margin: 0;
    overflow: hidden;
    color: var(--onyx, #07191e);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.8;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
}

.po-home-product-card:hover .po-home-product-title {
    color: #00796b;
}


/* Product price and button */

.po-home-product-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 7px 7px;
    border-top: 1px solid rgba(7, 25, 30, 0.065);
    direction: rtl;
}

.po-home-product-price {
    min-width: 0;
    flex: 1 1 auto;
}

.po-home-product-price .price,
.po-home-product-price > span,
.po-home-product-price .amount {
    color: #009688 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.po-home-product-price del {
    opacity: 0.48;
}

.po-home-product-price ins {
    text-decoration: none;
}

.po-home-product-action {
    flex: 0 0 auto;
}

.po-home-product-action .button {
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 999px !important;
    background: #07191e !important;
    color: #fff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(7, 25, 30, 0.16);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.po-home-product-action .button:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        #009688,
        #8e24aa
    ) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0, 150, 136, 0.25);
}

.po-home-product-action .added_to_cart {
    display: none;
}


/* Bottom all-products CTA */

.po-all-products-cta {
    position: relative;
    margin-top: clamp(60px, 8vw, 100px);
    padding: clamp(38px, 6vw, 72px) 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 150, 136, 0.28),
            transparent 36%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(142, 36, 170, 0.25),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #07191e,
            #0c2428 52%,
            #111525
        );
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 80px rgba(7, 25, 30, 0.2);
    isolation: isolate;
}

.po-all-products-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.po-all-products-cta__glow {
    position: absolute;
    top: -150px;
    right: 50%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 150, 136, 0.38),
        transparent 67%
    );
    transform: translateX(50%);
    pointer-events: none;
}

.po-all-products-cta__content {
    position: relative;
    z-index: 1;
    max-width: 730px;
    margin: 0 auto;
}

.po-all-products-cta__label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(0, 191, 165, 0.28);
    border-radius: 999px;
    background: rgba(0, 150, 136, 0.12);
    color: #8cf2e7;
    font-size: 12px;
    font-weight: 800;
}

.po-all-products-cta__title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.po-all-products-cta__description {
    max-width: 610px;
    margin: 16px auto 28px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 2;
}

.po-all-products-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 54px;
    padding: 0 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #009688,
        #8e24aa
    );
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow:
        0 14px 32px rgba(0, 150, 136, 0.26),
        0 8px 30px rgba(142, 36, 170, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.po-all-products-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.po-all-products-button:hover {
    transform: translateY(-4px);
    color: #fff !important;
    box-shadow:
        0 20px 42px rgba(0, 150, 136, 0.34),
        0 12px 36px rgba(142, 36, 170, 0.27);
}

.po-all-products-button:hover::before {
    left: 145%;
}

.po-all-products-button svg {
    transition: transform 0.25s ease;
}

.po-all-products-button:hover svg {
    transform: translateX(-5px);
}

.po-products-empty {
    padding: 40px 20px;
    border: 1px dashed rgba(0, 150, 136, 0.22);
    border-radius: 18px;
    color: var(--charcoal-muted, #6b7280);
    text-align: center;
}


/* Dark mode */

body.dark-mode .po-product-collection--featured,
html[data-theme="dark"] .po-product-collection--featured {
    border-color: rgba(0, 150, 136, 0.18);
    background:
        linear-gradient(
            145deg,
            rgba(0, 150, 136, 0.075),
            rgba(142, 36, 170, 0.045)
        );
}

body.dark-mode .po-product-section-title,
html[data-theme="dark"] .po-product-section-title,
body.dark-mode .po-home-product-title,
html[data-theme="dark"] .po-home-product-title {
    color: #f4f7f7;
}

body.dark-mode .po-product-section-description,
html[data-theme="dark"] .po-product-section-description {
    color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .po-home-product-card,
html[data-theme="dark"] .po-home-product-card {
    border-color: rgba(255, 255, 255, 0.08);
    /* background: rgba(12, 28, 32, 0.88);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.025); */
}

body.dark-mode .po-home-product-image,
html[data-theme="dark"] .po-home-product-image {
    background: #0e1d21;
}

body.dark-mode .po-home-product-meta,
html[data-theme="dark"] .po-home-product-meta {
    border-top-color: rgba(255, 255, 255, 0.075);
}

body.dark-mode .po-home-product-action .button,
html[data-theme="dark"] .po-home-product-action .button {
    background: rgba(255, 255, 255, 0.095) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* Responsive */

@media (max-width: 1180px) {
    .po-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .po-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-product-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .po-product-collection--featured {
        padding: 26px 20px;
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    .po-home-products {
        padding: 58px 0;
    }

    .po-home-products-grid {
        gap: 13px;
    }

    .po-product-collection--featured {
        margin-inline: -4px;
        padding: 22px 12px;
        border-radius: 20px;
    }

    .po-product-section-title {
        font-size: 27px;
    }

    .po-product-section-description {
        font-size: 13.5px;
    }

    .po-home-product-card {
        padding: 7px;
        border-radius: 17px;
    }

    .po-home-product-image {
        border-radius: 12px;
    }

    .po-home-product-content {
        padding: 13px 4px 5px;
    }

    .po-home-product-title {
        min-height: 48px;
        max-height: 48px;
        font-size: 12.5px;
        line-height: 1.9;
    }

    .po-home-product-meta {
        align-items: stretch;
        flex-direction: column;
        padding: 9px 4px 4px;
    }

    .po-home-product-price .price,
    .po-home-product-price > span,
    .po-home-product-price .amount {
        font-size: 12px !important;
    }

    .po-home-product-action,
    .po-home-product-action .button {
        width: 100% !important;
    }

    .po-home-product-action .button {
        min-height: 39px !important;
        padding: 8px 7px !important;
        font-size: 10.5px !important;
    }

    .po-home-product-overlay {
        display: none;
    }

    .po-all-products-cta {
        margin-top: 58px;
        padding: 42px 18px;
        border-radius: 22px;
    }

    .po-all-products-cta__title {
        font-size: 27px;
    }

    .po-all-products-cta__description {
        font-size: 13.5px;
    }

    .po-all-products-button {
        width: 100%;
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .po-product-eyebrow-dot::after {
        animation: none;
    }

    .po-home-product-card,
    .po-home-product-image img,
    .po-home-product-overlay,
    .po-all-products-button,
    .po-section-text-link {
        transition: none;
    }
}