/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Spartan:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 4rem;

    /*========== Colors ==========*/
    --first-color: black;
    --first-color-alt: black;
    --title-color: hsl(0, 0%, 13%);
    --text-color: black;
    --text-color-dark: black;
    --text-color-light: white;
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 93%);
    --border-color: black;
    --border-color-alt: black;

    /*========== Font and typography ==========*/
    --body-font: "Lato", sans-serif;
    --second-font: "League Spartan" sans-serif;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.75rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.375rem;
    --large-font-size: 1.125rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    --tiny-font-size: 0.6875rem;

    /*========== Font weight ==========*/
    --weight-400: 400;
    --weight-500: 500;
    --weight-600: 600;
    --weight-700: 700;

    /*========== Transition ==========*/
    --transition: cubic-bezier(0, 0, 0.05, 1);
}

/* Responsive typography */
@media screen and (max-width: 1200px) {
    :root {
        --big-font-size: 2.25rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.375rem;
        --h3-font-size: 1.25rem;
        --h4-font-size: 1.125rem;
        --large-font-size: 1rem;
        --normal-font-size: 0.9375rem;
        --small-font-size: 0.8125rem;
        --smaller-font-size: 0.6875rem;
        --tiny-font-size: 0.625rem;
    }
}

/*=============== BASE ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

input,
textarea,
body {
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--weight-400);
}

body {
    background-color: var(--body-color);
}

h1,
h2,
h3,
h4 {
    font-family: var(--second-font);
    color: var(--title-color);
    font-weight: var(--weight-600);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

p {
    margin-bottom: 0;
}

img {
    max-width: 100%;
}

button,
textarea,
input {
    background-color: transparent;
    border: none;
    outline: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 0.75rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 2rem;
}

.section--lg {
    padding-block: 4rem;
}

.section__title {
    font-size: var(--h4-font-size);
    margin-bottom: 1.5rem;
}

.section__title span {
    color: var(--first-color);
}

.form__input {
    border: 1px solid var(--border-color-alt);
    height: 45px;
    padding-inline: 1rem;
    font-size: var(--small-font-size);
    border-radius: 0.25rem;
}

.form {
    row-gap: 0.5rem;
}

.form__group {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.textarea {
    height: 200px;
    padding-block: 1rem;
    resize: none;
}

/*=============== HEADER & NAV ===============*/





.header__top {
    background-color: var(--first-color-alt);
    border-bottom: 1px solid var(--first-color);
    padding-block: 0.875rem;
    height: 4rem;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__contact span:first-child {
    margin-right: 2rem;
}

.header__contact span,
.header__alert-news,
.header__alert-top-action {
    font-size: var(--small-font-size);
}

.header__alert-news {
    margin-left: 10rem;
    color: var(--text-color-light);
    font-weight: var(--weight-600);
}


.header__top-action {
    color: var(--text-color-light);
}



.nav,
.nav__menu,
.nav__list,
.header__user-actions {
    display: flex;
    align-items: center;
}

.nav {
    height: calc(var(--header-height) + 2.5rem);
    justify-content: space-between;
    column-gap: 1rem;
}

.nav__logo-img {
    width: 210px;

}

.nav__menu {

    flex-grow: 1;
    margin-left: 2.5rem;
}

.nav__list {
    column-gap: 2.5rem;
    margin-right: auto;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--weight-700);
    transform: all 0.3s var(--transition);
}

.search__btn {
    position: absolute;
    top: 24%;
    right: 1.25rem;
    cursor: pointer;
}

.header__search {
    width: 340px;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

.header__search .form__input {
    width: 100%;
}

.header__user-actions {
    column-gap: 1.25rem;
}

.header__action-btn {
    position: relative;
}

.header__action-btn img {
    width: 24px;
}

.nav__menu-top,
.nav__toggle {
    display: none;
}

.active-link,
.nav__link:hover {
    color: var(--first-color);
}

/*=============== BUTTONS ===============*/

.btnnn {
    background-color: black;
    color: white;
    height: 49px;
    padding: 0 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    display: inline;
    transition: all 0.3s ease;
}


.form__btn-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.or-login {
    margin: 0;
    font-size: 14px;
    color: var(--text-color, #000);
}

.google-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btnnn--md,
.btnnn--sm {
    font-family: var(--body-font);
}

.btnnn--md {
    height: 45px;
    line-height: 40px;
}

.btnnn--sm {
    height: 40px;
    line-height: 35px;
}

/*=============== FOOTER ===============*/
.footer__container {
    grid-template-columns: 4.5fr repeat(2, 2fr) 3.5fr;
    padding-block: 2.5rem;
}

.footer__logo-img {
    width: 210px;
}

.footer__subtitle {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-block: 1.25rem 0.625rem;
}

.footer__description {
    margin-bottom: 0.25rem;
}

.footer__description span {
    font-weight: var(--weight-600);
}

.footer__social .footer__subtitle {
    margin-top: 1.875rem;
}

.footer__social-links {
    column-gap: 0.25rem;
}

.footer__social-icon {
    width: 20px;
    opacity: 0.7;
}

.footer__title {
    font-size: var(--large-font-size);
    margin-block: 1rem 1.25rem;
}

.footer__link {
    color: var(--title-color);
    font-size: var(--small-font-size);
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s var(--transition);
}

.footer__link:hover {
    color: var(--first-color);
    margin-left: 0.25rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 1.25rem;
    border-top: 1px solid var(--border-color-alt);
}

/*===================RESEND OTP===============*/


.otp-timer {
    text-align: center;
    margin: 15px 0;
}

.resend-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    /* Hidden initially */
}

.resend-btn:hover {
    background-color: #0056b3;
}

.timer-text {
    color: #666;
}

.expired {
    display: none;
}



/*=============== BREADCRUMBS ===============*/
.breadcrumb {
    background-color: var(--container-color);
    padding: 1rem 0;
}

.breadcrumb__list {
    column-gap: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align items to the left */
    gap: 0.5rem;
    font-size: var(--small-font-size)
}

.breadcrumb__link {
    cursor: pointer;
    color: var(--text-color);
    font-size: var(--small-font-size);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 776px;
    }

    .accounts__container {
        grid-template-columns: 3fr 9fr;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .header__top {
        display: none;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__logo-img {
        width: 116px;
    }

    .nav__menu {
        position: fixed;
        right: -100%;
        top: 0;
        max-width: 400px;
        width: 100%;
        height: 100%;
        padding: 1.25rem 2rem;
        background-color: var(--body-color);
        z-index: 100;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 2rem;
        box-shadow: 0 0 15px hsl(0, 0%, 0%, 0.1);
        transition: right 0.5s ease-in-out;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        order: 1;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 1.5rem;
    }

    .nav__link {
        font-size: var(--large-font-size);
    }

    .header__search .form__input {
        border-color: var(--first-color);
    }

    .nav__menu-top,
    .nav__toggle {
        display: flex;
    }

    .nav__toggle,
    .nav__close {
        cursor: pointer;
    }

    .nav__menu-top {
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 1.25rem;
    }

    .nav__menu-logo img {
        width: 100px;
    }

    .nav__close {
        font-size: var(--h1-font-size);
        margin-right: 10px;
    }

    .header__action-btn {
        width: 21px;
    }

    .home__container {
        grid-template-columns: 5.5fr 6.5fr;
    }
}

/* For medium devices */
@media screen and (max-width: 992px) {
    .container {
        max-width: 570px;
    }

    .btnnn {
        height: 45px;
        line-height: 39px;
    }

    .btnnn--md {
        height: 42px;
        line-height: 35px;
    }

    .btnnn--sm {
        height: 38px;
        line-height: 35px;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (max-width: 768px) {
    .container {
        max-width: 570px;
    }

}

/* For small devices */
@media screen and (max-width: 576px) {
    .form__group {
        grid-template-columns: 1fr;
    }

    .cart__total {
        padding: 1.25rem;
    }

    .payment__methods {
        margin-block: 2.25rem 2.5rem;
    }

    .footer__title {
        margin-top: 0.25rem;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
    }

    .product__actions {
        display: none;
    }

    .header__search {
        max-width: 300px;
    }
}

@media screen and (max-width: 350px) {
    .action__btn {
        width: 34px;
        height: 34px;
        line-height: 36px;
    }

    .cart__actions {
        justify-content: center;
    }

    .home__img {
        display: none;
    }

    .header__search {
        max-width: 270px;
    }
}