/* Shared section patterns for Arses Land. Reuse these instead of duplicating
   heading/action styles inside individual homepage sections. */

.taee-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.taee-section-heading__copy {
    min-width: 0;
}

.taee-section-heading__copy h2,
.taee-section-heading__copy p {
    margin: 0;
}

.taee-section-heading__copy h2 {
    color: #222;
    font-weight: 900;
}

.taee-section-heading__copy p {
    margin-top: 4px;
    color: #7b8289;
}

.taee-section-heading__action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--third) !important;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.taee-section-heading__action i {
    position: static !important;
    margin: 0 !important;
    color: inherit !important;
}

.taee-section-heading__action:hover,
.taee-section-heading__action:focus-visible {
    background: var(--third);
    border-color: var(--third);
    color: #fff !important;
}

.home-categories-slider {
    margin: 0 -8px;
}

.home-categories-slider:not(.slick-initialized) {
    display: flex;
    overflow: visible;
}

.home-category-slide {
    min-width: 0;
    padding: 0 8px;
}

.home-categories-slider:not(.slick-initialized) .home-category-slide {
    flex: 0 0 12.5%;
}

.home-categories-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.home-categories-slider .slick-slide {
    height: auto;
}

.home-categories-slider .slick-slide > div,
.home-categories-slider .home-category-slide,
.home-categories-slider .home-category-item {
    height: 100%;
}

.dark .taee-section-heading__copy h2 {
    color: #fff;
}

.dark .taee-section-heading__copy p {
    color: #b4bac0;
}

@media (max-width: 767px) {
    .taee-section-heading {
        align-items: center;
        margin-bottom: 16px;
    }

    .taee-section-heading__action {
        padding: 7px 10px;
    }

    .home-categories-slider {
        margin-right: -5px;
        margin-left: -5px;
    }

    .home-category-slide {
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media (max-width: 480px) {
    .taee-section-heading {
        gap: 10px;
    }

    .taee-section-heading__copy p {
        display: none;
    }
}

@media (max-width: 1199px) {
    .home-categories-slider:not(.slick-initialized) .home-category-slide { flex-basis: 16.6667%; }
}

@media (max-width: 991px) {
    .home-categories-slider:not(.slick-initialized) .home-category-slide { flex-basis: 20%; }
}

@media (max-width: 767px) {
    .home-categories-slider:not(.slick-initialized) .home-category-slide { flex-basis: 25%; }
}

@media (max-width: 575px) {
    .home-categories-slider:not(.slick-initialized) .home-category-slide { flex-basis: 33.3333%; }
}

@media (max-width: 399px) {
    .home-categories-slider:not(.slick-initialized) .home-category-slide { flex-basis: 50%; }
}

/* Homepage category slider: rectangular media cards.
   Keep this as an override so the shared theme.css remains untouched. */
.home-categories-slider .home-category-item {
    width: 100%;
}

.home-categories-slider .home-category-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 10px;
    border-radius: 12px;
    background: #f2f5f6;
}

.home-categories-slider .home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 767px) {
    .home-categories-slider .home-category-image {
        padding: 8px;
        border-radius: 10px;
    }
}

/* --------------------------------------------------------------------------
   Homepage sequence
   The page already uses flex ordering in theme.css / taee-special-sale.css.
   Keep the intended business order here with higher specificity so future
   sections do not depend on their physical template position.
   -------------------------------------------------------------------------- */
body.home-page .home-page-main > .home-hero { order: 1 !important; }
body.home-page .home-page-main > .taee-store-advantages { order: 2 !important; }
body.home-page .home-page-main > .taee-special-sale { order: 3 !important; }
body.home-page .home-page-main > .home-categories { order: 4 !important; }
body.home-page .home-page-main > .home-pair-banners { order: 5 !important; }
body.home-page .home-page-main > .home-recommendations { order: 6 !important; }
body.home-page .home-page-main > .home-brands { order: 7 !important; }
body.home-page .home-page-main > .home-quad-banners { order: 8 !important; }
body.home-page .home-page-main > .pastel-full-banner { order: 9 !important; }
body.home-page .home-page-main > .taee-blog-strip { order: 10 !important; }

/* Two admin-managed banners directly below the category slider. */
.home-pair-banners {
    padding: 14px 0 8px;
    background: transparent;
}

.home-pair-banners__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    direction: rtl;
}

.home-pair-banners__item {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none !important;
}

.home-pair-banners__item img {
    display: block;
    width: 100%;
    aspect-ratio: 3.45 / 1;
    object-fit: cover;
    object-position: center;
}

/* Homepage recommendations use the same shared product rail as timed sale. */
.home-recommendations {
    padding: 18px 0 24px;
    background: transparent;
}


@media (max-width: 767px) {
    .home-pair-banners {
        padding-top: 10px;
    }

    .home-pair-banners__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-pair-banners__item img {
        aspect-ratio: 2.8 / 1;
    }

    .home-recommendations {
        padding-top: 14px;
    }
}


/* --------------------------------------------------------------------------
   Trusted brands strip
   -------------------------------------------------------------------------- */
.taee-brand-strip {
    padding: 14px 0 20px;
    background: transparent;
}

.taee-brand-strip .taee-section-heading {
    margin-bottom: 10px;
}

.taee-brand-strip__grid {
    display: flex;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.taee-brand-strip__grid::-webkit-scrollbar {
    display: none;
}

.taee-brand-strip__item {
    flex: 1 0 118px;
    min-width: 118px;
    height: 58px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9edf0;
    border-radius: 5px;
    background: #fff;
    text-decoration: none !important;
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.taee-brand-strip__item:hover {
    transform: translateY(-1px);
    border-color: #dfe4e8;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .05);
}

.taee-brand-strip__item img {
    display: block;
    max-width: 100%;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dark .taee-brand-strip__item {
    background: #252a2e;
    border-color: #353b40;
}

@media (max-width: 767px) {
    .taee-brand-strip {
        padding-top: 10px;
    }

    .taee-brand-strip__item {
        flex-basis: 104px;
        min-width: 104px;
        height: 54px;
        padding: 7px 10px;
    }

    .taee-brand-strip__item img {
        max-height: 34px;
    }
}


/* --------------------------------------------------------------------------
   Homepage articles strip
   Reuses the shared section heading; only the article-card layout lives here.
   -------------------------------------------------------------------------- */
.taee-blog-strip {
    padding: 14px 0 24px;
    background: transparent;
}

.taee-blog-strip .taee-section-heading {
    margin-bottom: 12px;
}

.taee-blog-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.taee-blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9edf0;
    border-radius: 6px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.taee-blog-card:hover {
    transform: translateY(-2px);
    border-color: #dfe4e8;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .07);
}

.taee-blog-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 2.15 / 1;
    overflow: hidden;
    background: #f2f5f6;
}

.taee-blog-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .22s ease;
}

.taee-blog-card:hover .taee-blog-card__image img {
    transform: scale(1.025);
}

.taee-blog-card__body {
    padding: 9px 12px 12px;
}

.taee-blog-card__date {
    display: block;
    margin-bottom: 5px;
    color: #8a9299;
    text-align: left;
}

.taee-blog-card__title {
    display: block;
    color: #222 !important;
    text-decoration: none !important;
}

.taee-blog-card__title h3 {
    margin: 0;
    font-weight: 800;
}

.dark .taee-blog-card {
    background: #252a2e;
    border-color: #353b40;
}

.dark .taee-blog-card__title {
    color: #fff !important;
}

.dark .taee-blog-card__date {
    color: #aeb5ba;
}

@media (max-width: 991px) {
    .taee-blog-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .taee-blog-strip {
        padding-top: 10px;
    }

    .taee-blog-strip__grid {
        gap: 8px;
    }

    .taee-blog-card__body {
        padding: 8px 9px 10px;
    }
}

/* Homepage hero readability. Keep the existing visual language and only
   increase hierarchy/contrast where the current banner copy is too small. */
.home-page-main .home-hero-caption strong {
    font-size: clamp(2.15rem, 3.5vw, 4.35rem);
    font-weight: 900;
}

.home-page-main .home-hero-caption small {
    font-size: clamp(1.05rem, 1.55vw, 1.6rem);
    font-weight: 600;
}

.home-page-main .home-hero-cta {
    font-size: 1.05rem;
    font-weight: 800;
}

.home-page-main .home-hero-cta i {
    position: static !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.45em !important;
}

@media (max-width: 767px) {
    .home-page-main .home-hero-caption strong {
        font-size: clamp(1.65rem, 7vw, 2.3rem);
    }

    .home-page-main .home-hero-caption small {
        font-size: 1rem;
    }

    .home-page-main .home-hero-cta {
        font-size: .95rem;
    }
}

/* --------------------------------------------------------------------------
   Shared managed banner content
   Used by non-slider homepage banners and the products-bottom banner.
   -------------------------------------------------------------------------- */
.taee-managed-banner {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none !important;
    background: #14181b;
}

.taee-managed-banner > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taee-managed-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 10, .08) 18%, rgba(5, 8, 10, .72) 100%);
    pointer-events: none;
}

.taee-managed-banner__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 5%;
    width: min(48%, 430px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    color: #fff;
}

.taee-managed-banner__content h3,
.taee-managed-banner__content p {
    margin: 0;
    color: #fff;
}

.taee-managed-banner__content h3 {
    font-weight: 900;
}

.taee-managed-banner__content p {
    opacity: .9;
}

.taee-managed-banner__cta {
    margin-top: 5px;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.taee-managed-banner__cta i {
    position: static !important;
    margin: 0 !important;
    color: #fff !important;
}

.taee-managed-banner--home-pair {
    aspect-ratio: 3.45 / 1;
}

.taee-managed-banner--products-bottom {
    aspect-ratio: 7 / 1;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .taee-managed-banner__content {
        right: 18px;
        width: 62%;
        gap: 4px;
    }

    .taee-managed-banner--home-pair {
        aspect-ratio: 2.8 / 1;
    }

    .taee-managed-banner--products-bottom {
        aspect-ratio: 3.2 / 1;
    }
}

.taee-catalog-bottom-banner .taee-managed-banner > img {
    height: 100% !important;
    object-fit: cover;
}
