/* CONTAINER */

.container {
    width: 100%;
}




/* GLOBAL */

.caption {
    padding: 5rem 0;
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.caption h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #000;
}

.caption p {
    padding: 0 3rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2A2A2A;
}

.load-more-cta {
    height: auto;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 2rem;
}

.load-more-cta button {
    padding: .9rem 2rem;

    background: #fff;
    border: 1px solid #9f9f9f;
    border-radius: 50rem;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}




/* HEADER */


header {
    width: 100%;
    height: auto;

    padding: 2rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 1.3rem;
}

header .menu img {
    height: 1.5rem;
}

.left-side,
.right-side {
    display: flex;
}

.left-side {
    display: flex;
    gap: 1rem;
}

.right-side button {
    padding: .6rem 1.5rem;

    font-size: 1rem;
    font-weight: bold;
    color: #e4e4e4;

    background: #000;
    border-radius: 5rem;
}


/* MENU */

.menu-wrapper {
    position: relative;
}

/* Hidden by default */
.hover-menu {
    position: absolute;
    top: 120%;
    left: 0;
    width: 15rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

/* Show on hover */
.menu-wrapper:hover .hover-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu items */
.hover-menu ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.hover-menu li {
    margin-bottom: 0.75rem;
}

.hover-menu li:last-child {
    margin-bottom: 0;
}

.hover-menu a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.hover-menu a:hover {
    background: #FDD919;
}




/* MAIN */

main {
    padding: 2rem 2.5rem;

    display: flex;
    flex-direction: column;
    gap: 3rem;
}


/* SHOWCASE */

.showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.showcase-caption {
    width: 100%;
    height: auto;

    text-align: center;
    padding-top: 2rem;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-caption h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #000;
}

.showcase-caption p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2A2A2A;
}



.showcase-footer {
    height: auto;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-footer .showcase-box {
    padding: 3rem 0;
    border-top: 2px solid #DADADA;
}

.showcase-footer .showcase-box:last-child {
    border-bottom: 2px solid #DADADA;
}

.showcase-footer .showcase-box h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    padding-bottom: .5rem;
}

.showcase-footer .showcase-box p {
    font-size: 1.2rem;
    color: #000;
}


.showcase-search-bar {
    position: relative;

    height: auto;
    width: 100%;

    display: flex;
    justify-content: space-between;
    gap: 1.1rem;

    background: #F3F3F6;
    border-radius: 100rem;

    padding: 1rem 1.5rem;
}

.showcase-search-bar-img {
    height: 3.3rem;
}

.showcase-search-bar-img-ani {
    animation: beat 0.8s infinite ease-in-out;
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.showcase-search-bar input {
    width: 80%;
    color: #000;
}

.search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 .3rem 1rem #c7c7c7;
    border-radius: 1rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-item {
    padding: .8rem 1rem;
    cursor: pointer;
    transition: background 0.2s;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-result-item:hover {
    background: #f0f0f0;
}

.result-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.result-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    color: #000;
}

.result-logo {
    height: 3rem;
    border-radius: 100rem;
    object-fit: cover;
    margin-right: 1rem;
}

.no-results {
    font-size: 1.1rem;
    color: #626262;
    padding: 1rem;
}


.show-more-btn {
    display: block;
    margin: 10px auto;
    padding: 8px 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.show-more-btn:hover {
    background-color: #2563eb;
}


/* SHOWCASE POPULAR */
.showcase-popular {
    padding: 0 1rem;
    font-weight: 700;
    font-size: 1rem;
}


/* TOP */
.showcase-popular .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: .5;
}

.showcase-popular .top .top-left,
.showcase-popular .top .top-right,
.showcase-popular button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3rem;
}

.showcase-popular .top span {
    transform: translateY(.15rem);
}

.showcase-popular img {
    height: 1.5rem;
}



/* BOT */
.showcase-popular .bot {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 0.5rem 0;
    scroll-behavior: smooth;
}

.showcase-popular .bot button {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 100rem;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    padding: 0.6rem 1.5rem;
}

#toggle-popular:checked~.bot {
    display: none;
}







/* SHOWCASE ADS */

.showcase-ads {
    height: 8rem;
    width: 100%;

    background: #ececec;
    border-radius: 1rem;
}



/* SHOWCASE CONTENT */



.showcase-content .top {
    height: auto;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 .5rem 2rem .5rem;

    border-bottom: 1px solid #D9D9D9;
}

.showcase-content .top img {
    height: 1.5rem;
}

.showcase-content .top button {
    display: flex;
    align-items: center;
    gap: 1rem;

    border: 1px solid #E6E6E6;
    border-radius: 1rem;

    padding: 1rem;

    font-size: 1.1rem;
    color: #000;
}




.showcase-content .middle {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0 0.5rem 0;
    scroll-behavior: smooth;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.showcase-content .middle::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.showcase-content .middle button {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    border-radius: 100rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    padding: 0.6rem 1.5rem;
}

.showcase-content .middle .active {
    background: #F3F3F6;
}





.showcase-content .bot {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding-top: 2rem;
}

.store-card {
    padding-bottom: 1rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-cover {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #ccc;
}

.store-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 1rem;
}

.store-desc img {
    height: 1.6rem;
}

.store-desc .left,
.store-desc .right {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.store-desc .right {
    gap: .5rem;
    opacity: .25;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.store-desc .left img {
    border-radius: 100%;
    height: 2rem;
    border: 1px solid #ccc;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    color: #000;
}

.store-plan {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    padding: .3rem .5rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
}

.store-plan img {
    margin-right: .5rem;
    height: 1.5rem;
    transform: translateY(-.1rem);
}

.store-plan.plus {
    background: #1E88E5;
}

.store-plan.featured {
    background: #FFC107;
}

.store-plan.boosts {
    background: #2ECC71;
}

.store-plan.no-plan {
    font-size: 1.1rem;
    background: none;
    color: #000;
    opacity: .2;
}

.no-stores {
    font-size: 1.2rem;
    color: #626262;
    padding: 1rem;
}





/* FOOTER */

.footer {
    background: #000;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
    padding: 30px 40px;
}

.logo {
    grid-column: 1;
}

.logo img {
    height: 3.5rem;
}

.social-links {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-links {
    grid-column: 2;
}

.social-links,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li,
.footer-links li {
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.social-links a,
.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover,
.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    height: 1px;
    background: #333;
    margin: 0 40px;
}

.footer-copy {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    padding: 2rem .5rem;
}



/* AREA MODEL */

.area-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.area-modal-content {
    background: #fff;
    padding: 1.5rem;
    min-width: 250px;
    border-radius: 12px;
}

.area-modal-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.area-modal-content label {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.area-modal-content select {
    position: relative;
    width: 100%;

    padding: 1rem;
    margin-top: .3rem;

    border: 1px solid #bbb;
    border-radius: .8rem;
    background: none;
    
    font-family: "Nunito", sans-serif;
    font-size: 1.1rem;
    color:#000;

    appearance: none;
}

.area-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.area-modal-actions button {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
}

.area-modal-actions .cancel {
    background: #eee;
}





/* QR Code Shown */

#scanModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#scanBox {
    background: white;
    padding: 1.5rem;
    border-radius: 2rem;
    width: 90%;
    max-width: 400px;
    font-size: 1.1rem;
    text-align: center;
}

#reader {
    width: 100%;
    margin-top: 1.5rem;
}

#closeScan {
    margin-top: 1.1rem;
    padding: 1rem 2rem;
    background: #d50000;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
}



/* Loader */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    height: 100%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: hsla(0, 0%, 0%, 0.2);
}

.loading-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    height: auto;
    width: auto;

    background: #fff;
    border-radius: .5rem;
}

.donut {
    width: 4rem;
    height: 4rem;

    margin: 2rem;

    border-radius: 50%;
    border: .5rem solid rgba(81, 81, 81, 0.3);
    border-top-color: #000;

    animation: spin .7s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}





/* LOGO LOADER */

.logo-loader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    height: 100%;
    width: 100%;
    background: #fdd919;
    /* Initially yellow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo-loader img:nth-child(1) {
    width: auto;
    height: 7rem;
    display: block;
    /* Initially visible */
}

.logo-loader img:nth-child(2) {
    width: auto;
    height: 2.5rem;
    display: none;
    /* Initially hidden */
}