/* ------------------------------------------------------------------------------------------
OVERRIDES
This stylesheet is enqueued last, after every theme, plugin and Elementor stylesheet,
so rules here win over same-specificity !important rules declared elsewhere.
Use !important here only when overriding an existing !important rule.
------------------------------------------------------------------------------------------ */


/* ------------------------------------------------------------------------------------------
HOMEPAGE HERO SLIDER - MOBILE
Goal: heading, text, button and the products in the photo all fit on the first screen.
- Heading scales with screen width, so "Ajándékötletek" never runs off the screen
  (overrides the theme's "font-size: 50px !important").
- Vertical spacing tightened (Elementor used 50px gaps everywhere).
- Every slide photo gets the same 6:5 crop, so no slide looks bigger than the others and
  both watches stay visible on the last slide.
- Overrides the theme's "justify-content: space-between !important": the text block is
  centered in the space above the photo, the photo sits at the bottom of the slide.
------------------------------------------------------------------------------------------ */

@media (max-width: 767px) {
    .trendi-slider .swiper-slide > .e-con {
        justify-content: flex-start !important;
    }

    /* Text block: heading + paragraph + button */
    .trendi-slider .swiper-slide > .e-con > .e-con:first-child {
        flex-grow: 1;
        --justify-content: center;
        justify-content: center;
        --padding-top: 24px;
        --padding-bottom: 0px;
        --gap: 14px;
        --row-gap: 14px;
        gap: 14px;
    }

    .trendi-slider .swiper-slide > .e-con > .e-con:first-child > .e-con-inner {
        gap: 14px;
    }

    .trendi-slider .swiper-slide h1.elementor-heading-title {
        font-size: clamp(30px, 9.5vw, 40px) !important;
        line-height: 1.08;
    }

    .trendi-slider .swiper-slide .elementor-widget-text-editor {
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
    }

    .trendi-slider .swiper-slide .elementor-widget-text-editor p {
        margin: 0;
    }

    .trendi-slider .swiper-slide .elementor-widget-button .elementor-button {
        padding: 14px 26px;
    }

    /* Photo */
    .trendi-slider .swiper-slide .elementor-element.elementor-widget-image {
        margin-top: 16px;
    }

    .trendi-slider .swiper-slide .elementor-widget-image img {
        height: auto;
        aspect-ratio: 6 / 5;
        object-fit: cover;
    }
}


/* ------------------------------------------------------------------------------------------
HEADER - DESKTOP MENU
With 4 top-level items (Ékszerek, Karórák, Akciós termékek, Táskák) the menu no longer fit
the 30% left column and "Táskák" wrapped to a second row. The header row becomes a
3-column grid (flexible | logo | flexible) so the logo stays centered and the menu gets
all the space left of it; font size and item spacing scale down on smaller desktops.
------------------------------------------------------------------------------------------ */

@media (min-width: 1025px) {
    .trendi-navbar .elementor-element-dbb714e > .e-con-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .trendi-navbar .elementor-element-dbb714e > .e-con-inner > .elementor-element {
        --width: auto;
        width: auto;
        min-width: 0;
    }

    .elementor-102 .trendi-navbar .elementor-element.elementor-element-610a165 {
        --e-nav-menu-horizontal-menu-item-margin: calc( clamp(18px, 1.75vw, 25px) / 2 );
    }

    .elementor-102 .trendi-navbar .elementor-element.elementor-element-610a165 .elementor-nav-menu--main .elementor-nav-menu {
        flex-wrap: nowrap;
    }

    .elementor-102 .trendi-navbar .elementor-element.elementor-element-610a165 .elementor-nav-menu--main .elementor-item {
        font-size: clamp(15px, 1.25vw, 18px);
        white-space: nowrap;
    }
}
