/* ==================================================
   SHOP HERO SECTION
================================================== */

.shop-hero-section {

    width: 100%;

    min-height: 80vh;
    min-height: 80dvh;

    background-image:

        linear-gradient(
            rgba(15, 23, 42, 0.75),
            rgba(15, 23, 42, 0.85)
        ),

        url('../images/contacthero.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(30px, 5vw, 60px)
        clamp(16px, 4vw, 32px)
        clamp(50px, 7vw, 90px);

    box-sizing: border-box;

    overflow: visible;

    position: relative;

}


/* ==================================================
   HERO CONTAINER
================================================== */

.shop-hero-container {

    max-width: 1280px;

    width: 100%;

    display: grid;

    grid-template-columns:
        1.1fr
        1.2fr
        0.8fr;

    grid-template-rows:
        auto
        1fr;

    gap:
        clamp(20px, 3vw, 36px)
        clamp(24px, 4vw, 48px);

    align-items: center;

    position: relative;

}


/* ==================================================
   HERO SEARCH BAR
================================================== */

.shop-hero-search {

    grid-column: 1 / -1;

    width: 100%;

    max-width: 720px;

    margin: 0 auto;

    position: relative;

    z-index: 20;

}


/* ==================================================
   SEARCH FORM
================================================== */

.lucid-search-form {

    position: relative;

    width: 100%;

}


/* ==================================================
   SEARCH INPUT WRAPPER
================================================== */

.lucid-search-input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    background-color: #ffffff;

    border: 1.5px solid rgba(255, 255, 255, 0.8);

    border-radius: 50px;

    padding:
        9px
        18px
        9px
        22px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20);

    transition:
        all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    box-sizing: border-box;

}


/* ==================================================
   SEARCH FOCUS
================================================== */

.lucid-search-input-wrapper:focus-within {

    background-color: #ffffff;

    border-color: #2e7d32;

    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.25);

    transform: translateY(-2px);

}


/* ==================================================
   SEARCH ICON
================================================== */

.lucid-search-icon {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    margin-right: 14px;

    color: #2e7d32;

    flex-shrink: 0;

    transition:
        color 0.3s ease;

}


.lucid-search-icon svg {

    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;
    stroke-linejoin: round;

}


.lucid-search-input-wrapper:focus-within
.lucid-search-icon {

    color: #256629;

}


/* ==================================================
   SEARCH INPUT
================================================== */

.lucid-search-input {

    width: 100%;

    min-width: 0;

    background: transparent;

    border: none;

    outline: none;

    color: #0f172a;

    font-size:
        clamp(0.95rem, 1.2vw, 1.08rem);

    font-weight: 500;

    padding: 11px 0;

    font-family: inherit;

}


.lucid-search-input::placeholder {

    color: #64748b;

    opacity: 1;

}


/* ==================================================
   SEARCH RESULTS DROPDOWN
================================================== */

.lucid-search-results {

    position: absolute;

    top: calc(100% + 10px);

    left: 50%;

    transform: translateX(-50%);

    width: 100%;

    max-width: 680px;

    background-color: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 14px;

    max-height: 300px;

    overflow-y: auto;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.20);

    z-index: 100;

    display: flex;

    flex-direction: column;

    padding: 6px;

    box-sizing: border-box;

    scrollbar-width: thin;

    scrollbar-color:
        #cbd5e1
        transparent;

}


/* Hide empty results */

.lucid-search-results:empty {

    display: none;

}


/* ==================================================
   SEARCH RESULTS SCROLLBAR
================================================== */

.lucid-search-results::-webkit-scrollbar {

    width: 6px;

}


.lucid-search-results::-webkit-scrollbar-track {

    background: transparent;

}


.lucid-search-results::-webkit-scrollbar-thumb {

    background-color: #cbd5e1;

    border-radius: 10px;

}


/* ==================================================
   SEARCH RESULT ITEM
================================================== */

.lucid-search-results
.search-result-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 9px 12px;

    border-radius: 9px;

    text-decoration: none;

    color: #0f172a;

    font-size: 0.95rem;

    font-weight: 500;

    transition:
        background-color 0.2s ease;

}


@media (hover: hover) {

    .lucid-search-results
    .search-result-item:hover {

        background-color: #f1f5f9;

    }

}


/* ==================================================
   SEARCH RESULT IMAGES
================================================== */

.lucid-search-results img,
.lucid-search-results
.search-result-item img {

    width: 48px !important;

    height: 48px !important;

    max-width: 48px !important;

    max-height: 48px !important;

    object-fit: cover;

    border-radius: 6px;

    flex-shrink: 0;

    background-color: #f8fafc;

    border:
        1px solid #f1f5f9;

}


/* ==================================================
   LEFT COLUMN
================================================== */

.shop-hero-left {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    z-index: 2;

}


/* ==================================================
   HERO TITLE
================================================== */

.shop-hero-title {

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    font-weight: 800;

    line-height: 1.2;

    margin:
        0 0 16px 0;

    color: #ffffff;

    letter-spacing: -0.5px;

}


.shop-hero-title .text-accent {

    color: #2e7d32;

    display: inline-block;

}


/* ==================================================
   HERO DESCRIPTION
================================================== */

.shop-hero-description {

    font-size:
        clamp(0.95rem, 1.5vw, 1.1rem);

    line-height: 1.6;

    color: #cbd5e1;

    margin:
        0 0 28px 0;

    max-width: 520px;

}


/* ==================================================
   ACTION BUTTON
================================================== */

.shop-hero-action-block {

    margin-bottom: 24px;

}


.btn-shop-promo {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    background-color: #2e7d32;

    color: #ffffff;

    padding:
        14px 28px;

    border-radius: 50px;

    font-weight: 700;

    font-size: 1rem;

    text-decoration: none;

    box-shadow:
        0 10px 20px rgba(46, 125, 50, 0.3);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;

}


.promo-play-icon {

    width: 28px;
    height: 28px;

    background-color:
        rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

}


.promo-play-icon svg {

    width: 14px;
    height: 14px;

    margin-left: 2px;

}


@media (hover: hover) {

    .btn-shop-promo:hover {

        background-color: #256629;

        transform: translateY(-3px);

        box-shadow:
            0 14px 25px
            rgba(46, 125, 50, 0.4);

    }

}


.btn-shop-promo:active {

    transform: scale(0.97);

}


/* ==================================================
   DECORATIVE HEARTLINE
================================================== */

.decorative-line-wrapper {

    width: 100%;

    max-width: 220px;

    margin-top: 8px;

}


.decorative-heart-line {

    width: 100%;

    height: auto;

    display: block;

}


/* ==================================================
   CENTER COLUMN
================================================== */

.shop-hero-center {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 400px;

}


/* ==================================================
   GLOWING BACKDROP CIRCLE
================================================== */

.hero-backdrop-circle {

    position: absolute;

    width: min(450px, 90vw);

    height: min(450px, 90vw);

    background:
        radial-gradient(
            circle,
            rgba(46, 125, 50, 0.45) 0%,
            rgba(15, 23, 42, 0) 70%
        );

    border-radius: 50%;

    z-index: 1;

    animation:
        pulseGlow 4s infinite ease-in-out;

}


@keyframes pulseGlow {

    0%,
    100% {

        transform: scale(1);

        opacity: 0.6;

    }

    50% {

        transform: scale(1.12);

        opacity: 0.95;

    }

}


/* ==================================================
   HERO PRODUCT IMAGE
================================================== */

.hero-center-img {

    width:
        clamp(280px, 35vw, 480px);

    max-width: 480px;

    height: auto;

    object-fit: contain;

    position: relative;

    z-index: 2;

    filter:
        drop-shadow(
            0 20px 35px
            rgba(0, 0, 0, 0.6)
        );

    animation:
        heroImageSpin 20s linear infinite;

    transform-origin: center center;

    will-change: transform;

}


@keyframes heroImageSpin {

    0% {

        transform: rotate(0deg);

    }

    100% {

        transform: rotate(360deg);

    }

}


@media (hover: hover) {

    .hero-center-img:hover {

        animation-play-state: paused;

    }

}


/* ==================================================
   RIGHT COLUMN
================================================== */

.shop-hero-right {

    display: flex;

    justify-content: flex-end;

    z-index: 2;

}


.category-menu-stack {

    display: flex;

    flex-direction: column;

    gap: 16px;

    width: 100%;

    max-width: 220px;

}


.category-item {

    display: flex;

    align-items: center;

    gap: 14px;

    background-color:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    padding:
        10px 16px;

    border-radius: 16px;

    text-decoration: none;

    color: #ffffff;

    backdrop-filter: blur(12px);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;

}


.category-label {

    font-size: 0.95rem;

    font-weight: 600;

    letter-spacing: 0.3px;

}


.category-icon-circle {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.2rem;

    flex-shrink: 0;

    overflow: hidden;

}


.rotating-icon {

    display: inline-block;

    animation:
        spinContinuous 6s linear infinite;

    transform-origin: center center;

    will-change: transform;

}


@keyframes spinContinuous {

    0% {

        transform: rotate(0deg);

    }

    100% {

        transform: rotate(360deg);

    }

}


.icon-bg-tan {

    background-color:
        rgba(180, 168, 156, 0.2);

}


.icon-bg-green {

    background-color:
        rgba(46, 125, 50, 0.2);

}


.icon-bg-orange {

    background-color:
        rgba(245, 158, 11, 0.2);

}


.icon-bg-red {

    background-color:
        rgba(239, 68, 68, 0.2);

}


@media (hover: hover) {

    .category-item:hover {

        background-color:
            rgba(255, 255, 255, 0.18);

        border-color:
            rgba(255, 255, 255, 0.35);

        transform:
            translateX(-4px);

    }


    .category-item:hover
    .rotating-icon {

        animation-duration: 3s;

        transform: scale(1.15);

    }

}


/* ==================================================
   ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-backdrop-circle,
    .rotating-icon,
    .btn-shop-promo,
    .hero-center-img,
    .category-item,
    .lucid-search-input-wrapper {

        animation: none !important;

        transition: none !important;

    }

}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

    .shop-hero-container {

        grid-template-columns:
            1fr
            1fr;

        grid-template-rows:
            auto
            auto
            auto;

        gap: 30px;

    }


    .shop-hero-search {

        grid-column: 1 / -1;

    }


    .shop-hero-center {

        min-height: 350px;

    }


    .shop-hero-right {

        grid-column: span 2;

        justify-content: center;

    }


    .category-menu-stack {

        flex-direction: row;

        max-width: 100%;

        justify-content: center;

        flex-wrap: wrap;

    }


    .category-item {

        flex:
            1 1 180px;

        max-width: 220px;

    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .shop-hero-section {

        padding:
            25px
            16px
            50px;

    }


    .shop-hero-container {

        grid-template-columns: 1fr;

        grid-template-rows: auto;

        text-align: center;

        gap: 30px;

    }


    /* Search stays at the very top */

    .shop-hero-search {

        grid-column: 1;

        width: 100%;

        max-width: 680px;

    }


    .shop-hero-left {

        align-items: center;

    }


    .shop-hero-center {

        order: -1;

        min-height: 300px;

    }


    .hero-center-img {

        width: 80vw;

        max-width: 320px;

    }


    .shop-hero-right {

        grid-column: 1;

        justify-content: center;

    }


    .category-menu-stack {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

        max-width: 100%;

    }


    .category-item {

        max-width: 100%;

        justify-content: center;

        padding:
            8px 12px;

    }


    /* Mobile Search */

    .lucid-search-input-wrapper {

        padding:
            6px
            12px
            6px
            16px;

        border-width: 1px;

    }


    .lucid-search-input {

        font-size: 0.95rem;

        padding:
            10px 0;

    }


    .lucid-search-results {

        width: 100%;

        max-height: 240px;

    }


    .lucid-search-results img,
    .lucid-search-results
    .search-result-item img {

        width: 40px !important;

        height: 40px !important;

        max-width: 40px !important;

        max-height: 40px !important;

    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 400px) {

    .hero-center-img {

        max-width: 260px;

    }


    .category-menu-stack {

        grid-template-columns: 1fr;

    }


    .lucid-search-input-wrapper {

        padding-left: 14px;

        padding-right: 10px;

    }


    .lucid-search-icon {

        margin-right: 10px;

        width: 21px;

        height: 21px;

    }

}