/* ===== GOOGLE FONTS ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* ===== VARIABLES CSS ===== */

:root {
    --header-height: 3.5rem;
    /* Colors */
    --primary-color: #ff6b35;
    --primary-color-dark: #e55a2b;
    --secondary-color: #08090a;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-color-light: #666;
    --white-color: #ffd000;
    --light-color: #f8f9fa;
    --border-color: #000000;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    /* Font weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive typography */

@media screen and (max-width: 992px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

/* ===== BASE ===== */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: var(--text-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--text-color);
    text-align: center;
    margin-bottom: var(--mb-0-5);
    font-weight: var(--font-semi-bold);
}

.section__description {
    text-align: center;
    margin-bottom: var(--mb-2-5);
    color: var(--text-color-light);
}

/* ===== HEADER & NAV ===== */

.header {
    width: 100%;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: box-shadow 0.3s;
}

.header.scroll-header {
    box-shadow: 0 2px 20px var(--shadow-color);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo h2 {
    color: var(--text-color);
    font-weight: var(--font-bold);
    font-size: var(--h3-font-size);
}

.nav__logo span {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px var(--shadow-color);
    z-index: var(--z-tooltip);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.3);
}

/* ===== BREADCRUMB ===== */

.breadcrumb-container {
    padding-top: calc(var(--header-height) + 1rem);
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    padding: 0.75rem 0;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color-dark);
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: var(--font-medium);
}

/* ===== HERO ===== */

.hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 70vh;
}

.hero__title {
    font-size: var(--biggest-font-size);
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.hero__description {
    margin-bottom: var(--mb-2);
    color: var(--text-color-light);
    font-size: var(--h3-font-size);
}

.hero__btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-medium);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.hero__btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.hero__img {
    display: flex;
    justify-content: center;
}

.hero__img img {
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s;
}

.hero__img img:hover {
    transform: scale(1.05);
}

/* ===== PRODUCTS ===== */

.products {
    padding: 4rem 0;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product__card {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--danger-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    z-index: 1;
}

.product__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: var(--mb-1);
    transition: transform 0.3s;
}

.product__card:hover .product__img {
    transform: scale(1.05);
}

.product__brand {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: 0.25rem;
}

.product__name {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--text-color);
}

.product__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--mb-1);
}

.product__current-price {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.product__original-price {
    text-decoration: line-through;
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
}

.product__btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: var(--font-medium);
    transition: all 0.3s;
}

.product__btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-1px);
}

/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: var(--white-color);
    margin: 2rem;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: var(--font-bold);
    cursor: pointer;
    color: var(--text-color-light);
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--text-color);
}

.modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.modal__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.modal__details h2 {
    font-size: var(--h1-font-size);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal__brand {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: var(--normal-font-size);
}

.modal__price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal__price .current-price {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.modal__price .original-price {
    text-decoration: line-through;
    color: var(--text-color-light);
}

.modal__price .discount-badge {
    background-color: var(--danger-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.modal__description {
    color: var(--text-color-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal__sizes h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: var(--font-medium);
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}

.modal__order-btn {
    width: 100%;
    background-color: #25d366;
    color: var(--white-color);
    padding: 1rem;
    border-radius: 10px;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: var(--normal-font-size);
}

.modal__order-btn:hover {
    background-color: #1ea952;
    transform: translateY(-2px);
}

/* ===== CONTACT ===== */

.contact {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact__info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact__item {
    margin-bottom: 1rem;
}

.contact__item strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
}

.contact__item a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.contact__item a:hover {
    color: var(--primary-color-dark);
}

.contact__form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    transition: border-color 0.3s;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: var(--font-medium);
    transition: all 0.3s;
}

.form__btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.contact__map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* ===== FOOTER ===== */

.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo h3 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.footer__logo span {
    color: var(--primary-color);
}

.footer__logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links h4 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer__links ul li {
    margin-bottom: 0.5rem;
}

.footer__links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer__links ul li a:hover {
    color: var(--primary-color);
}

.footer__social h4 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.social__links {
    display: flex;
    gap: 1rem;
}

.social__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.social__links a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */

@media screen and (max-width: 992px) {
    .container {
        margin-left: var(--mb-1-5);
        margin-right: var(--mb-1-5);
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .products__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .modal__body {
        grid-template-columns: 1fr;
    }
    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white-color);
        padding: 2rem 1rem;
        transition: left 0.3s;
        box-shadow: 0 2px 20px var(--shadow-color);
    }
    .nav__menu.show-menu {
        left: 0;
    }
    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
    }
    .nav__toggle {
        display: flex;
    }
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .hero__container {
        min-height: 50vh;
    }
    .products__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .modal__content {
        margin: 1rem;
        padding: 1.5rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 576px) {
    .products__grid {
        grid-template-columns: 1fr;
    }
    .modal__content {
        width: 95%;
        margin: 0.5rem;
        padding: 1rem;
    }
    .size-options {
        justify-content: center;
    }
    .hero__title {
        font-size: var(--h1-font-size);
    }
    .hero__description {
        font-size: var(--normal-font-size);
    }
}

/* ===== LOADING ANIMATION ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}