/* Anker Gadgets homepage product sections v1.1.0 */
.ag-home-section {
    margin-top: 30px;
}

.ag-home-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.ag-home-section__head h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.ag-home-section__head p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.ag-home-section__link,
.ag-category-card__more {
    color: #0b4fc6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ag-home-section__link:hover,
.ag-category-card__more:hover {
    color: #073b94;
    text-decoration: none;
}

.ag-carousel {
    position: relative;
}

.ag-carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 8px;
}

.ag-carousel__track::-webkit-scrollbar {
    display: none;
}

.ag-carousel__slide {
    min-width: 0;
    scroll-snap-align: start;
}

.ag-flash-slide {
    flex: 0 0 calc((100% - 64px) / 5);
}

.ag-category-slide {
    flex: 0 0 calc((100% - 32px) / 3);
}

.ag-carousel__button {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 52px;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity .2s ease, color .2s ease, border-color .2s ease;
}

.ag-carousel__button span {
    display: block;
    margin-top: -4px;
    font-size: 42px;
    line-height: 1;
}

.ag-carousel__button:hover {
    color: #0b4fc6;
    border-color: #0b4fc6;
}

.ag-carousel__button:disabled {
    opacity: .35;
    cursor: default;
}

.ag-carousel__button--prev {
    left: -7px;
}

.ag-carousel__button--next {
    right: -7px;
}

.ag-product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(16, 24, 40, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ag-product-card:hover {
    transform: translateY(-3px);
    border-color: #d0d5dd;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
}

.ag-product-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #ffffff;
}

.ag-product-card__media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ag-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ag-product-card__discount {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ef3f4a;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}

.ag-product-card__discount small {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
}

.ag-product-card__discount--used {
    background: #344054;
    font-size: 12px;
}

.ag-product-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    padding: 4px 14px 16px;
    text-align: center;
}

.ag-product-card__title {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 5px;
    overflow: hidden;
    color: #101828;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ag-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.ag-product-card__title a:hover {
    color: #0b4fc6;
}

.ag-product-card__brand {
    min-height: 20px;
    margin-bottom: 3px;
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

.ag-product-card__brand a {
    color: inherit;
    text-decoration: none;
}

.ag-product-card__brand a:hover {
    color: #0b4fc6;
}

.ag-product-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin-bottom: 3px;
    line-height: 1;
}

.ag-product-card__stars {
    display: inline-flex;
    gap: 1px;
    color: #d0d5dd;
    font-size: 14px;
    letter-spacing: -1px;
}

.ag-product-card__stars .is-active {
    color: #ff9f00;
}

.ag-product-card__review-count {
    margin-left: 5px;
    color: #667085;
    font-size: 12px;
}

.ag-product-card__stock {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.ag-product-card__stock.is-in {
    color: #16a34a;
}

.ag-product-card__stock.is-out {
    color: #dc2626;
}

.ag-product-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ag-product-card__old-price {
    color: #667085;
    font-size: 13px;
    text-decoration: line-through;
}

.ag-product-card__sale-price {
    color: #101828;
    font-size: 17px;
    font-weight: 700;
}

.ag-home-flash {
    position: relative;
    overflow: hidden;
    padding: 0 18px 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #063a68 0%, #0b4fc6 58%, #07589f 100%);
    box-shadow: 0 16px 36px rgba(6, 58, 104, .16);
}

.ag-home-flash:before {
    content: "";
    position: absolute;
    top: -85px;
    right: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.ag-flash-head {
    position: relative;
    z-index: 1;
    align-items: center;
    margin: 0 -18px 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .08);
}

.ag-flash-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ag-flash-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffb000;
    color: #10233e;
    font-size: 29px;
    box-shadow: 0 8px 18px rgba(5, 25, 50, .2);
}

.ag-flash-heading__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #ffd978;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ag-home-flash .ag-home-section__head h2 {
    color: #ffffff;
    font-size: 25px;
}

.ag-home-flash .ag-home-section__head p {
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
}

.ag-flash-head__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ag-flash-offer-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 18px;
    background: #ffb000;
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ag-flash-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 18px;
    color: #ffffff;
}

.ag-flash-view-all:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.ag-flash-view-all .material-icons {
    font-size: 17px;
}

.ag-home-flash .ag-carousel__track {
    position: relative;
    z-index: 1;
    padding-top: 3px;
    padding-bottom: 5px;
}

.ag-home-flash .ag-carousel__button {
    border-color: rgba(6, 58, 104, .14);
    color: #063a68;
    box-shadow: 0 10px 26px rgba(3, 24, 52, .22);
}

.ag-home-flash .ag-product-card {
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(4, 28, 58, .18);
}

.ag-product-card--flash .ag-product-card__media {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ag-product-card__saving {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    margin: -1px 0 6px;
    padding: 3px 8px;
    border-radius: 11px;
    background: #ecfdf3;
    color: #067647;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.ag-category-card {
    height: 100%;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}

.ag-category-card__title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.ag-category-card__title a {
    color: #101828;
    text-decoration: none;
}

.ag-category-card__title a:hover {
    color: #0b4fc6;
}

.ag-category-card__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ag-category-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #101828;
    text-align: center;
    text-decoration: none;
}

.ag-category-product:hover {
    color: #0b4fc6;
    text-decoration: none;
}

.ag-category-product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 7px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #f4c7c7;
    border-radius: 8px;
    background: #fff7f7;
}

.ag-category-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ag-category-product__title {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ag-category-product__price {
    margin-top: 4px;
    color: #0b4fc6;
    font-size: 12px;
    font-weight: 700;
}

.ag-category-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
}

.ag-category-card__more span {
    font-size: 20px;
    line-height: 1;
}

.ag-featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--ag-featured-columns-desktop, 5), minmax(0, 1fr));
    gap: 16px;
}

.ag-home-empty {
    padding: 30px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #667085;
    text-align: center;
}

@media (max-width: 1199px) {
    .ag-flash-slide {
        flex-basis: calc((100% - 48px) / 4);
    }

    .ag-category-slide {
        flex-basis: calc((100% - 16px) / 2);
    }

}

@media (max-width: 991px) {
    .ag-flash-slide {
        flex-basis: calc((100% - 32px) / 3);
    }

    .ag-featured-grid {
        grid-template-columns: repeat(var(--ag-featured-columns-tablet, 3), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ag-home-section {
        margin-top: 24px;
    }

    .ag-home-section__head {
        align-items: flex-start;
        margin-bottom: 13px;
    }

    .ag-home-section__head h2 {
        font-size: 20px;
    }

    .ag-home-section__head p {
        font-size: 13px;
    }

    .ag-home-flash {
        margin-right: -4px;
        margin-left: -4px;
        padding: 0 9px 12px;
        border-radius: 12px;
    }

    .ag-flash-head {
        align-items: flex-start;
        margin: 0 -9px 13px;
        padding: 14px 12px;
    }

    .ag-flash-heading {
        gap: 9px;
    }

    .ag-flash-heading__icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        border-radius: 10px;
        font-size: 25px;
    }

    .ag-home-flash .ag-home-section__head h2 {
        font-size: 20px;
    }

    .ag-home-flash .ag-home-section__head p {
        display: none;
    }

    .ag-flash-head__actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .ag-flash-offer-pill,
    .ag-flash-view-all {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .ag-carousel__track {
        gap: 10px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .ag-flash-slide {
        flex-basis: calc((100% - 10px) / 2);
    }

    .ag-category-slide {
        flex-basis: 100%;
    }

    .ag-carousel__button {
        width: 36px;
        height: 46px;
    }

    .ag-carousel__button--prev {
        left: -4px;
    }

    .ag-carousel__button--next {
        right: -4px;
    }

    .ag-product-card__media {
        padding: 10px;
    }

    .ag-product-card__body {
        min-height: 171px;
        padding: 3px 9px 13px;
    }

    .ag-product-card__title {
        min-height: 55px;
        font-size: 13px;
    }

    .ag-product-card__discount {
        top: 7px;
        left: 7px;
        width: 43px;
        height: 43px;
        font-size: 12px;
    }

    .ag-product-card__sale-price {
        font-size: 15px;
    }

    .ag-product-card__old-price,
    .ag-product-card__brand,
    .ag-product-card__stock {
        font-size: 12px;
    }

    .ag-category-card {
        padding: 14px;
    }

    .ag-featured-grid {
        grid-template-columns: repeat(var(--ag-featured-columns-mobile, 2), minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .ag-product-card__body {
        padding-right: 7px;
        padding-left: 7px;
    }

    .ag-product-card__stars {
        font-size: 12px;
    }

    .ag-product-card__review-count {
        margin-left: 3px;
    }
}

@media (max-width: 420px) {
    .ag-home-section__head {
        gap: 8px;
    }

    .ag-flash-heading__eyebrow {
        font-size: 9px;
    }

    .ag-flash-offer-pill {
        display: none;
    }

    .ag-product-card__sale-price {
        font-size: 15px;
    }

    .ag-product-card__old-price {
        font-size: 11px;
    }
}

/* Homepage layout controls, progressive Featured Products and brands v1.2.0 */
.ag-featured-item {
    min-width: 0;
    height: 100%;
}

.ag-featured-item[hidden] {
    display: none !important;
}

.ag-featured-item .ag-product-card {
    height: 100%;
}

.ag-featured-more-wrap,
.ag-brands-view-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.ag-featured-more-button,
.ag-brands-view-button,
.ag-footer-content-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 20px;
    border: 1px solid #0b4fc6;
    border-radius: 6px;
    background: #0b4fc6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ag-featured-more-button:hover,
.ag-brands-view-button:hover,
.ag-footer-content-toggle:hover {
    border-color: #073b94;
    background: #073b94;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ag-featured-more-button .material-icons,
.ag-brands-view-button .material-icons,
.ag-footer-content-toggle .material-icons {
    font-size: 19px;
    transition: transform .2s ease;
}

.ag-footer-content-toggle[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

.ag-home-brands {
    padding: 22px;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .05);
}

.ag-brands-head {
    margin-bottom: 18px;
}

.ag-brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(var(--ag-brand-columns-desktop, 12), minmax(0, 1fr));
    gap: 10px;
}

.ag-brand-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 112px;
    padding: 10px 7px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ag-brand-logo-card:hover {
    border-color: #b9c9e5;
    color: #0b4fc6;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
}

.ag-brand-logo-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 68px;
}

.ag-brand-logo-card__image img {
    display: block;
    width: 100%;
    max-width: 105px;
    height: 58px;
    object-fit: contain;
}

.ag-brand-logo-card__name {
    display: block;
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-home-seo-content {
    padding: 24px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #fff;
}

.ag-home-seo-content h1,
.ag-home-seo-content h2,
.ag-home-seo-content h3 {
    margin-top: 0;
    color: #111827;
}

.ag-home-seo-content__intro > p:last-child {
    margin-bottom: 0;
}

.ag-home-seo-content__more {
    margin-top: 16px;
}

.ag-home-seo-content__more[hidden] {
    display: none !important;
}

.ag-footer-content-toggle {
    margin-top: 18px;
    border-color: #d0d5dd;
    background: #fff;
    color: #0b4fc6;
}

.ag-footer-content-toggle:hover {
    border-color: #0b4fc6;
    background: #f5f8ff;
    color: #0b4fc6;
}

/* All Brands page */
.ag-brands-page .container {
    width: 100%;
}

.ag-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 13px;
}

.ag-page-breadcrumb a {
    color: #0b4fc6;
    text-decoration: none;
}

.ag-brands-page__header {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #063a68, #0b4fc6);
    color: #fff;
}

.ag-brands-page__header h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.ag-brands-page__header p {
    max-width: 760px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.ag-all-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.ag-all-brand-card {
    overflow: hidden;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .04);
}

.ag-all-brand-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    padding: 18px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.ag-all-brand-card__logo img {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: contain;
}

.ag-all-brand-card__body {
    padding: 13px 14px 15px;
    text-align: center;
}

.ag-all-brand-card__body h2 {
    margin: 0 0 3px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-all-brand-card__body h2 a {
    color: #101828;
    text-decoration: none;
}

.ag-all-brand-card__body p {
    margin: 0 0 9px;
    color: #667085;
    font-size: 12px;
}

.ag-all-brand-card__link {
    color: #0b4fc6;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ag-brands-pagination {
    margin-top: 24px;
}

@media (max-width: 1199px) {
    .ag-brand-logo-grid {
        grid-template-columns: repeat(var(--ag-brand-columns-tablet, 6), minmax(0, 1fr));
    }
    .ag-all-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ag-home-brands,
    .ag-home-seo-content {
        padding: 15px;
        border-radius: 10px;
    }
    .ag-brand-logo-grid {
        grid-template-columns: repeat(var(--ag-brand-columns-mobile, 3), minmax(0, 1fr));
        gap: 8px;
    }
    .ag-brand-logo-card {
        min-height: 98px;
        padding: 7px 5px;
    }
    .ag-brand-logo-card__image {
        height: 60px;
    }
    .ag-brand-logo-card__image img {
        max-width: 88px;
        height: 50px;
    }
    .ag-featured-more-wrap,
    .ag-brands-view-wrap {
        margin-top: 17px;
    }
    .ag-featured-more-button,
    .ag-brands-view-button,
    .ag-footer-content-toggle {
        min-height: 40px;
        padding: 8px 17px;
        font-size: 13px;
    }
    .ag-brands-page__header {
        padding: 18px;
    }
    .ag-brands-page__header h1 {
        font-size: 24px;
    }
    .ag-all-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .ag-all-brand-card__logo {
        height: 108px;
        padding: 13px;
    }
    .ag-all-brand-card__logo img {
        height: 78px;
    }
}


/* Compact premium homepage sections and responsive category/brand grids v1.3.0 */
.ag-home-section {
    margin-top: 22px;
}

.ag-home-section__head {
    gap: 14px;
    margin-bottom: 11px;
}

.ag-home-section__head h2 {
    font-size: 21px;
    letter-spacing: -.02em;
}

.ag-home-section__head p {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.4;
}

.ag-carousel__track {
    gap: 12px;
    padding-bottom: 5px;
}

.ag-carousel__button {
    width: 36px;
    height: 44px;
    border-radius: 7px;
}

.ag-carousel__button span {
    font-size: 34px;
}

.ag-flash-slide {
    flex-basis: calc((100% - 48px) / 5);
}

.ag-category-slide {
    flex-basis: calc((100% - 24px) / 3);
}

.ag-product-card {
    border-radius: 10px;
}

.ag-product-card__media {
    height: 164px;
    aspect-ratio: auto;
    padding: 10px;
}

.ag-product-card__discount {
    top: 8px;
    left: 8px;
    width: 42px;
    height: 42px;
    font-size: 12px;
}

.ag-product-card__discount small {
    font-size: 9px;
}

.ag-product-card__body {
    min-height: 145px;
    padding: 3px 10px 12px;
}

.ag-product-card__title {
    min-height: 38px;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.ag-product-card__brand,
.ag-product-card__stock {
    min-height: auto;
    margin-bottom: 2px;
    font-size: 11.5px;
}

.ag-product-card__rating {
    min-height: 17px;
    margin-bottom: 2px;
}

.ag-product-card__stars {
    font-size: 12px;
}

.ag-product-card__review-count {
    font-size: 10.5px;
}

.ag-product-card__price {
    gap: 5px;
}

.ag-product-card__old-price {
    font-size: 11.5px;
}

.ag-product-card__sale-price {
    font-size: 15.5px;
}

.ag-home-flash {
    padding: 0 14px 14px;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(6, 58, 104, .14);
}

.ag-flash-head {
    margin: 0 -14px 12px;
    padding: 13px 15px;
}

.ag-flash-heading {
    gap: 9px;
}

.ag-flash-heading__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 24px;
}

.ag-flash-heading__eyebrow {
    font-size: 9.5px;
}

.ag-home-flash .ag-home-section__head h2 {
    font-size: 21px;
}

.ag-flash-offer-pill,
.ag-flash-view-all {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
}

.ag-product-card__saving {
    min-height: 19px;
    margin-bottom: 4px;
    padding: 2px 7px;
    font-size: 10px;
}

.ag-category-card {
    padding: 12px;
    border-radius: 10px;
}

.ag-category-card__title {
    margin-bottom: 9px;
    font-size: 16px;
}

.ag-category-card__products {
    gap: 8px;
}

.ag-category-product__image {
    height: 92px;
    aspect-ratio: auto;
    margin-bottom: 5px;
    padding: 5px;
}

.ag-category-product__title {
    min-height: 31px;
    font-size: 11px;
    line-height: 1.3;
}

.ag-category-card__more {
    margin-top: 10px;
    font-size: 12px;
}

.ag-featured-grid {
    gap: 12px;
}

.ag-featured-more-wrap,
.ag-brands-view-wrap {
    margin-top: 15px;
}

.ag-featured-more-button,
.ag-brands-view-button,
.ag-footer-content-toggle {
    min-height: 38px;
    padding: 7px 17px;
    font-size: 12.5px;
}

/* Top Category: 8 x 2 desktop, 4 x 2 tablet, 3 x 2 mobile. */
.ag-top-categories {
    padding: 16px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .045);
}

.ag-top-categories__head {
    margin-bottom: 12px;
}

.ag-top-category-carousel--tablet,
.ag-top-category-carousel--mobile {
    display: none;
}

.ag-top-category-track {
    gap: 0;
    padding: 1px 1px 4px;
}

.ag-top-category-page {
    flex: 0 0 100%;
    width: 100%;
}

.ag-top-category-grid {
    display: grid;
    gap: 10px;
}

.ag-top-category-grid--desktop {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.ag-top-category-grid--tablet {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ag-top-category-grid--mobile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ag-top-category-card {
    display: flex;
    aspect-ratio: 1 / 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
    color: #1d2939;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ag-top-category-card:hover {
    border-color: #b8c8e5;
    color: #0b4fc6;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
}

.ag-top-category-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
}

.ag-top-category-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ag-top-category-card__name {
    display: -webkit-box;
    width: 100%;
    min-height: 34px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ag-top-categories .ag-carousel__button {
    width: 34px;
    height: 42px;
}

/* Keep the mobile brand section to a clean 3 x 3 grid. */
@media (min-width: 1200px) {
    .ag-top-category-carousel--desktop {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .ag-top-category-carousel--desktop {
        display: none;
    }
    .ag-top-category-carousel--tablet {
        display: block;
    }
    .ag-flash-slide {
        flex-basis: calc((100% - 36px) / 4);
    }
    .ag-product-card__media {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .ag-home-section {
        margin-top: 18px;
    }

    .ag-home-section__head {
        margin-bottom: 9px;
    }

    .ag-home-section__head h2 {
        font-size: 18px;
    }

    .ag-home-section__head p {
        font-size: 11.5px;
    }

    .ag-top-categories {
        margin-right: -2px;
        margin-left: -2px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .ag-top-category-carousel--desktop,
    .ag-top-category-carousel--tablet {
        display: none;
    }

    .ag-top-category-carousel--mobile {
        display: block;
    }

    .ag-top-category-grid {
        gap: 7px;
    }

    .ag-top-category-card {
        gap: 5px;
        padding: 8px 5px;
        border-radius: 8px;
    }

    .ag-top-category-card__image {
        width: 48px;
        height: 48px;
    }

    .ag-top-category-card__name {
        min-height: 29px;
        font-size: 10.5px;
        line-height: 1.3;
    }

    .ag-carousel__track {
        gap: 8px;
    }

    .ag-home-flash {
        padding: 0 7px 9px;
    }

    .ag-flash-head {
        margin: 0 -7px 9px;
        padding: 11px 10px;
    }

    .ag-flash-heading__icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .ag-home-flash .ag-home-section__head h2 {
        font-size: 18px;
    }

    .ag-flash-slide {
        flex-basis: calc((100% - 8px) / 2);
    }

    .ag-product-card__media {
        height: 124px;
        padding: 7px;
    }

    .ag-product-card__body {
        min-height: 128px;
        padding: 2px 7px 9px;
    }

    .ag-product-card__title {
        min-height: 34px;
        font-size: 11.5px;
    }

    .ag-product-card__brand,
    .ag-product-card__stock {
        font-size: 10px;
    }

    .ag-product-card__rating {
        min-height: 15px;
    }

    .ag-product-card__stars {
        font-size: 10.5px;
    }

    .ag-product-card__review-count {
        font-size: 9.5px;
    }

    .ag-product-card__sale-price {
        font-size: 13.5px;
    }

    .ag-product-card__old-price {
        font-size: 10px;
    }

    .ag-product-card__discount {
        width: 36px;
        height: 36px;
        font-size: 10.5px;
    }

    .ag-category-card {
        padding: 10px;
    }

    .ag-category-card__title {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .ag-category-card__products {
        gap: 7px;
    }

    .ag-category-product__image {
        height: 82px;
    }

    .ag-category-product__title {
        min-height: 29px;
        font-size: 10.5px;
    }

    .ag-featured-grid {
        gap: 8px;
    }

    .ag-home-brands {
        padding: 12px 10px;
    }

    .ag-brand-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .ag-brand-logo-card {
        min-height: 78px;
        padding: 5px 4px;
        border-radius: 7px;
    }

    .ag-brand-logo-card:nth-child(n+10) {
        display: none;
    }

    .ag-brand-logo-card__image {
        height: 43px;
    }

    .ag-brand-logo-card__image img {
        max-width: 74px;
        height: 39px;
    }

    .ag-brand-logo-card__name {
        margin-top: 3px;
        font-size: 9.5px;
    }
}

/* Shop by Category mobile carousel correction v1.0.1
 * Keep one full category card per mobile viewport. This rule is intentionally
 * placed after the compact desktop rules so it cannot be overridden. */
@media (max-width: 767px) {
    .ag-home-categories {
        overflow: hidden;
    }

    .ag-category-carousel {
        margin-right: -2px;
        margin-left: -2px;
        padding: 0 2px;
    }

    .ag-category-track {
        gap: 10px;
        padding: 2px 0 7px;
        scroll-padding-inline: 0;
    }

    .ag-category-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .ag-category-card {
        width: 100%;
        min-height: 0;
        padding: 13px;
        border-radius: 11px;
    }

    .ag-category-card__title {
        min-height: 24px;
        margin-bottom: 10px;
        padding-right: 34px;
        font-size: 17px;
        line-height: 1.35;
    }

    .ag-category-card__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 10px;
    }

    .ag-category-product__image {
        height: 116px;
        padding: 7px;
        border-radius: 9px;
    }

    .ag-category-product__title {
        min-height: 34px;
        font-size: 12px;
        line-height: 1.35;
    }

    .ag-category-product__price {
        margin-top: 4px;
        font-size: 13.5px;
        line-height: 1.25;
    }

    .ag-category-card__more {
        justify-content: center;
        width: 100%;
        min-height: 38px;
        margin-top: 12px;
        border-top: 1px solid #eef2f6;
        font-size: 13px;
    }

    .ag-category-carousel .ag-carousel__button {
        top: 51%;
        width: 34px;
        height: 44px;
        border-radius: 8px;
    }

    .ag-category-carousel .ag-carousel__button--prev {
        left: 2px;
    }

    .ag-category-carousel .ag-carousel__button--next {
        right: 2px;
    }
}

@media (max-width: 380px) {
    .ag-category-card {
        padding: 11px;
    }

    .ag-category-product__image {
        height: 103px;
    }

    .ag-category-product__title {
        font-size: 11.5px;
    }
}
