@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --header-height: 3rem;
    --font-semi: 600;
    --font-bold: 700;
    --first-color: #E55947;
    --first-color-alt: #D2321E;
    --white-color: #FAFAFF;
    --dark-color: #101010;
    --dark-color-light: #606060;
    --gray-color: #F0F1F3;
    --body-font: 'Open Sans', sans-serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.75rem;
    --mb1: 0.5rem;
    --mb2: 1rem;
    --mb3: 1.5rem;
    --mb4: 2rem;
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
    }
}

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

h1, h2, h3, h4, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--mb2);
    padding: 0 var(--mb2);
}

.section-title {
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: 0;
    text-align: left;
}

.section-all {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi);
    color: var(--first-color);
    transition: 0.3s;
}

.section-all:hover {
    color: var(--first-color-alt);
    transform: translateX(5px);
}

.bd-grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
}

@media screen and (min-width: 768px) {
    .bd-grid {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 3rem);
    }
}

/* ========== NAVBAR ========== */
.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    margin-bottom: var(--mb4);
}

.nav-link {
    color: var(--dark-color);
    font-weight: var(--font-semi);
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--first-color);
}

.nav-logo {
    font-weight: var(--font-bold);
    font-size: 1.2rem;
}

.nav-cart {
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-cart-link {
    position: relative;
    display: inline-block;
    margin-right: var(--mb2);
    color: var(--dark-color);
}

.nav-cart-link:hover {
    color: var(--first-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background-color: var(--first-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-toggle {
    font-size: 1.5rem;
    cursor: pointer;
}

.active {
    color: var(--first-color);
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: 100%;
        padding: 2rem;
        background-color: var(--white-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s;
        z-index: var(--z-fixed);
    }

    .show {
        right: 0;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .nav {
        height: calc(var(--header-height) + 1rem);
    }

    .nav-menu {
        margin-left: auto;
    }

    .nav-list {
        display: flex;
    }

    .nav-item {
        margin-left: var(--mb4);
        margin-bottom: 0;
    }

    .nav-toggle {
        display: none;
    }
}

/* ========== HOME ========== */
.home {
    background-color: var(--gray-color);
    overflow: hidden;
}

.home-container {
    height: calc(100vh - var(--header-height));
    position: relative;
    align-items: center;
}

.home-data {
    padding-top: 4rem;
    text-align: center;
}

.home-title {
    font-size: var(--big-font-size);
    line-height: 1.1;
    letter-spacing: 0.3rem;
    margin-bottom: 2rem;
}

.home-title span {
    font-size: var(--h1-font-size);
    display: block;
}

.home-img {
    width: 250px;
    position: relative;
    margin: 2rem auto 0;
}

@media screen and (min-width: 768px) {
    .home-container {
        grid-template-columns: repeat(2, 1fr);
        height: 100vh;
    }

    .home-data {
        padding: 0;
        text-align: left;
    }

    .home-title {
        letter-spacing: 1rem;
    }

    .home-img {
        width: 370px;
        position: absolute;
        right: 10%;
        bottom: 10%;
        margin: 0;
    }
}

@media screen and (min-width: 1024px) {
    .home-img {
        right: 15%;
        width: 420px;
    }
}

/* ========== BUTTONS ========== */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
}

.offer-btn {
    background-color: var(--first-color);
}

/* ========== COLLECTION ========== */
.collection-container {
    row-gap: 2rem;
}

.collection-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--gray-color);
    transition: 0.3s;
    border-radius: 12px;
}

.collection-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.collection-img {
    width: 100px;
}

.collection-data {
    text-align: right;
}

.collection-title {
    font-size: var(--h1-font-size);
    line-height: 1.2;
    margin-bottom: var(--mb1);
    text-transform: uppercase;
    font-weight: var(--font-semi);
}

.collection-subtitle {
    font-size: var(--h2-font-size);
    color: var(--dark-color-light);
}

.collection-description {
    font-size: var(--small-font-size);
    color: var(--dark-color-light);
    margin-bottom: var(--mb1);
}

.collection-view {
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi);
}

.collection-view:hover {
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    .collection-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .collection-img {
        width: 130px;
    }
}

/* ========== FEATURED ========== */
.featured-container {
    row-gap: 2rem;
}

.featured-product {
    transition: 0.3s;
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.featured-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.featured-box {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--gray-color);
    padding: 1.5rem;
}

.featured-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: var(--font-semi);
}

.featured-img {
    width: 150px;
    height: auto;
}

.featured-data {
    text-align: center;
    padding: 1rem;
}

.featured-name {
    margin-bottom: var(--mb1);
    text-transform: uppercase;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
}

.featured-price {
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-size: 1.2rem;
    display: block;
    margin-bottom: var(--mb1);
}

.featured-description {
    font-size: var(--small-font-size);
    color: var(--dark-color-light);
    margin-bottom: var(--mb2);
}

.add-to-cart-btn {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
    cursor: pointer;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: var(--font-semi);
}

.add-to-cart-btn:hover {
    background-color: var(--first-color);
}

.add-to-cart-btn.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
}

@media screen and (min-width: 768px) {
    .featured-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* ========== OFFER ========== */
.offer-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i.postimg.cc/gk55tWrb/offer.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-radius: 16px;
    margin: 0 1rem;
}

.offer-data {
    padding: 3rem 1rem;
    color: var(--white-color);
}

.offer-title {
    font-size: var(--h1-font-size);
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: var(--font-bold);
    margin-bottom: var(--mb2);
}

.offer-description {
    margin-bottom: var(--mb3);
    letter-spacing: 0.1rem;
}

@media screen and (min-width: 768px) {
    .offer-data {
        padding: 5rem 2rem;
    }
}

/* ========== NEW ========== */
.new-container {
    row-gap: 2rem;
}

.new-box {
    background-color: var(--gray-color);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.new-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.new-img {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--gray-color);
}

.new-info {
    padding: 1rem;
    text-align: center;
    background-color: var(--white-color);
}

.new-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.new-info p {
    font-size: var(--small-font-size);
    color: var(--dark-color-light);
    margin-bottom: 0.5rem;
}

.new-price {
    display: block;
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {
    .new-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (min-width: 1024px) {
    .new-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== NEWSLETTER ========== */
.newsletter {
    text-align: center;
    background-color: var(--gray-color);
}

.newsletter-container {
    padding: 2rem 0;
}

.newsletter-description {
    margin-bottom: var(--mb2);
    font-size: var(--small-font-size);
    color: var(--dark-color-light);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    outline: none;
    border: none;
    background-color: var(--white-color);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: var(--normal-font-size);
}

@media screen and (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        width: 500px;
        margin: 0 auto;
    }

    .newsletter-input {
        flex: 1;
    }
}

/* ========== SPONSORS ========== */
.sponsors-container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    padding: 1.5rem 0;
}

.sponsors-logo {
    display: flex;
    justify-content: center;
}

.sponsors-logo img {
    width: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.sponsors-logo img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .sponsors-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer-container {
    row-gap: 2rem;
    margin-bottom: var(--mb4);
    padding: 2rem 0;
}

.footer-box {
    text-align: center;
}

.footer-title {
    margin-bottom: var(--mb1);
    font-size: 1.1rem;
}

.footer-deal {
    margin-bottom: var(--mb2);
    color: var(--dark-color-light);
}

.footer-stores {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-store {
    width: 100px;
}

.footer-link {
    color: var(--dark-color-light);
    transition: 0.3s;
    line-height: 2;
}

.footer-link:hover {
    color: var(--first-color);
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social {
    font-size: 1.5rem;
    color: var(--dark-color-light);
    transition: 0.3s;
}

.footer-social:hover {
    color: var(--first-color);
    transform: translateY(-3px);
}

.footer-copy {
    border-top: 1px solid var(--dark-color-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--dark-color-light);
    font-size: var(--small-font-size);
}

@media screen and (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .footer-box {
        text-align: left;
    }

    .footer-stores,
    .footer-socials {
        justify-content: flex-start;
    }
}

/* ========== CARRITO ========== */
.cart-section {
    min-height: 60vh;
    padding: 2rem 0;
}

.cart-items {
    margin-bottom: var(--mb4);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-color);
    gap: 1rem;
    flex-wrap: wrap;
    background-color: var(--white-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: var(--gray-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.cart-item-info {
    flex: 2;
    min-width: 120px;
}

.cart-item-name {
    font-weight: var(--font-semi);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--first-color);
    font-weight: var(--font-bold);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--gray-color);
    padding: 0.3rem 0.8rem;
    border-radius: 25px;
}

.cart-item-quantity button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.cart-item-quantity button:hover {
    background-color: var(--first-color);
    color: white;
}

.cart-item-quantity span {
    font-weight: var(--font-semi);
    min-width: 25px;
    text-align: center;
}

.cart-item-remove {
    background-color: var(--first-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    border-radius: 25px;
    font-size: var(--small-font-size);
    transition: 0.2s;
}

.cart-item-remove:hover {
    background-color: var(--first-color-alt);
}

.cart-total {
    text-align: right;
    font-size: 1.3rem;
    font-weight: var(--font-bold);
    margin: var(--mb4) 0;
    padding: 1rem;
    background-color: var(--gray-color);
    border-radius: 8px;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-empty-msg {
    text-align: center;
    padding: 3rem;
    color: var(--dark-color-light);
}

@media screen and (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-info {
        text-align: center;
    }

    .cart-total {
        text-align: center;
    }

    .cart-actions {
        justify-content: center;
    }
}

/* ========== NOTIFICACIÓN ========== */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--first-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    transition: 0.3s;
    font-family: var(--body-font);
    font-size: var(--small-font-size);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}