.keygif-products-sections { margin: 0; }
.keygif-products-section { margin: 0 0 1.25rem; }
.keygif-products-section:last-child { margin-bottom: 0; }
.keygif-products-section__title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin: 0;
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.keygif-products-section--trending .keygif-products-section__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.keygif-products-section--trending .keygif-products-section__head::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.keygif-products-section__scroll {
    position: relative;
}

.keygif-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.keygif-products-list--trending {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 200px);
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    padding-bottom: 0.4rem;
    padding-inline-start: 0;
    scrollbar-width: none;
}

.keygif-products-list--trending::-webkit-scrollbar {
    display: none;
}


.single-content ul.keygif-products-list--trending,
.single-content ul.keygif-gift-cards-grid {
    padding-left: 0 !important;
    margin-left: 0;
}

.keygif-product-card {
    background: transparent;
    border: 0;
    border-radius: 22px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.keygif-product-card__thumb-wrap {
    position: relative;
    margin-bottom: 0.1rem;
}

.keygif-product-card__thumb {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: transparent;
}

.keygif-product-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    background: transparent;
}

.keygif-product-card__discount {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    background: #26e887;
    color: #042113;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.keygif-product-card__title {
    margin: 0 0 0.08rem;
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: .2px;
    color: rgba(255,255,255,.92);
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

.keygif-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.keygif-product-card__price-row {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
}

.keygif-product-card__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.keygif-product-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.keygif-product-card__price {
    min-height: 1.4rem;
}

.keygif-product-card__price .price {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 22px;
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.keygif-product-card__price del,
.keygif-product-card__price del .woocommerce-Price-amount {
    color: rgba(255,255,255,.42);
    font-size: 18px;
    font-weight: 400;
}

.keygif-product-card__price ins,
.keygif-product-card__price .woocommerce-Price-amount {
    color: #27d17f;
    text-decoration: none;
    font-weight: 800;
}

.keygif-products-section__nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.keygif-products-section__nav--prev {
    left: 8px;
}

.keygif-products-section__nav--next {
    right: 8px;
}

.keygif-products-section__nav.is-visible {
    display: inline-flex;
}

.keygif-products-section__nav svg {
    width: 18px;
    height: 18px;
    display: block;
}

.keygif-products-section__nav svg polyline,
.keygif-products-section__nav svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.woocommerce .keygif-products-section--trending ul.products::before,
.woocommerce .keygif-products-section--trending ul.products::after {
    display: none;
}

body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product {
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%), #0f1217;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
    padding: 14px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    min-height: 520px;
}

body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__link {
    color: rgba(255,255,255,.92);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

body.post-type-archive-product .woocommerce ul.products li.product a img,
body.tax-product_cat .woocommerce ul.products li.product a img {
    border-radius: 22px;
    aspect-ratio: 7 / 10;
    object-fit: contain;
    object-position: center;
    background: #05070a;
    margin-bottom: 0.6rem;
}

body.post-type-archive-product .woocommerce ul.products li.product .onsale,
body.tax-product_cat .woocommerce ul.products li.product .onsale {
    top: 22px;
    left: 22px;
    margin: 0;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    border-radius: 999px;
    background: #26e887;
    color: #042113;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 14px;
}

body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: .2px;
    margin: 0;
    color: rgba(255,255,255,.92);
}

body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

body.post-type-archive-product .woocommerce ul.products li.product .price del,
body.post-type-archive-product .woocommerce ul.products li.product .price del .woocommerce-Price-amount,
body.tax-product_cat .woocommerce ul.products li.product .price del,
body.tax-product_cat .woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: rgba(255,255,255,.42);
    font-size: 18px;
    font-weight: 400;
}

body.post-type-archive-product .woocommerce ul.products li.product .price,
body.post-type-archive-product .woocommerce ul.products li.product .price ins,
body.post-type-archive-product .woocommerce ul.products li.product .price .woocommerce-Price-amount,
body.tax-product_cat .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price ins,
body.tax-product_cat .woocommerce ul.products li.product .price .woocommerce-Price-amount {
    color: #27d17f;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
}

body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button {
    display: inline-block;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255,255,255,.92);
    font-size: 16px;
    font-weight: 650;
    border-bottom: 1px solid rgba(255,255,255,.30);
    line-height: 1.2;
}


.keygif-products-section--gift-cards .keygif-products-section__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.keygif-products-section--gift-cards .keygif-products-section__head::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.keygif-gift-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 230px));
    justify-content: start;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
}

.keygif-gift-cards-grid__item {
    margin: 0;
}

.keygif-gift-cards-grid__link {
    display: block;
    text-decoration: none;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    overflow: hidden;
    background: transparent;
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.keygif-gift-cards-grid__thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0f1217;
}

.keygif-gift-cards-grid__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.keygif-products-section--subscriptions .keygif-products-section__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.keygif-products-section--subscriptions .keygif-products-section__head::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.keygif-products-section--subscriptions ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
}

.keygif-products-section--subscriptions ul.products li.product {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 0;
    background: transparent;
    padding: 0;
}

.keygif-products-section--subscriptions ul.products li.product .woocommerce-loop-product__link {
    display: block;
    color: rgba(255,255,255,.9);
}

.keygif-products-section--subscriptions ul.products li.product a img {
    width: 100%;
    height: 220px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.keygif-products-section--subscriptions ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
    padding: 0.5rem 0.8rem;
    background: transparent;
}

.keygif-products-section--subscriptions ul.products li.product .price,
.keygif-products-section--subscriptions ul.products li.product .button {
    display: none;
}

@media (max-width: 767px) {
    .keygif-products-section--subscriptions ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .keygif-products-section--subscriptions ul.products li.product a img {
        height: 170px;
    }

    .keygif-products-section--subscriptions ul.products li.product .woocommerce-loop-product__title {
        font-size: 1.4rem;
    }

    .keygif-gift-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
