/* =================================== */
/* SETUP               */
/* =================================== */

:root {
    --orange-primary: #FF6600;
    --orange-light: #FFF0E6;
    --orange-border: #FFD0B0;
    --orange-dark: #6B2B00;
    --text-light: #FFFFFF;
    --text-dark: #12151A;
    --text-dark-secondary: #070707;
    --text-gray-primary: #242A33;
    --text-gray-secondary: #4A4C56;
    --text-review: #1D1F2C;
    --bg-light: #FFFFFF;
    --bg-gray-light: #F5F7F9;
    --bg-thumb-inactive: #F8FAFB;
    --star-yellow: #FFC107;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

img {
    max-width: 100%;
    display: block;
}

a, button {
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--orange-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =================================== */
/* REUSABLE COMPONENTS         */
/* =================================== */

.container {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background-color: var(--orange-primary);
    color: var(--text-light);
    border-radius: 100px;
    font-weight: 500;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #e65c00;
}

.button--large {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

/* =================================== */
/* HEADER SECTION            */
/* =================================== */

.header {
    background: var(--bg-light);
    border-bottom: 1px solid #EAEAEA;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    gap: 2rem;
}

.header__logo span {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--orange-primary);
}

.nav__toggle {
    display: block;
}

.nav {
    display: none;
}

.header__button {
    display: none;
}

/* Mobile Navigation */
.nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav.nav-open .nav__list {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
}

.nav.nav-open .nav__item {
    width: 100%;
    padding: 1rem 0;
}

.nav.nav-open + .header__button {
    display: none;
}

/* =================================== */
/* HERO SECTION             */
/* =================================== */

.hero {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/Checker.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.hero__container {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 592px;
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--text-light);
    padding: 0;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
}

.hero__badge span {
    background-color: var(--bg-gray-light);
    padding: 7px 14px;
    border-radius: 100px;
    color: var(--text-dark);
    font-size: 12px;
    margin-left: -17.5px;
}

.hero__avatars {
    display: flex;
}

.hero__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.hero__avatar:not(:first-child) {
    margin-left: -5px;
}

.hero__title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.15;
}

.hero__description {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 474px;
}

.hero__button {
    align-self: flex-start;
}

/* =================================== */
/* PRODUCT SECTION            */
/* =================================== */

.product {
    padding: 5rem 0;
}

.product__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product__gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery__main-image {
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 24px;
    overflow: hidden;
    padding: 1rem;
}

.gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 5px;
    background-color: var(--bg-thumb-inactive);
}

.thumbnail.active {
    background-color: var(--orange-dark);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product__review {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars__rating {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-left: 0.25rem;
}

.review__count {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-review);
}

.product__title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.product__pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price__current {
    font-size: 3rem;
    font-weight: 600;
    color: var(--orange-dark);
    line-height: 1.3;
}

.price__original {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: line-through;
    color: var(--text-dark);
}

.price__discount {
    background-color: var(--orange-primary);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product__description-block .description-block__title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.product__description-block p {
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-review);
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray-primary);
}

.product__add-to-cart {
    justify-content: space-between;
}

.product__add-to-cart span {
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
}

.product__payments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 1rem 0;
}

.product__payments img {
    max-height: 58px;
    object-fit: contain;
}

.product__info-accordion .accordion__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--orange-border);
    font-weight: 500;
    color: var(--text-gray-secondary);
}

/* =================================== */
/* MEDIA QUERIES             */
/* =================================== */

@media (max-width: 425px) {
   .product__payments img{
       max-height: 35px;
   }
   .product__payments{
    gap: 0.5rem;
   }
    
}

@media (min-width: 992px) {
    .product__container {
        flex-direction: row;
        gap: 4rem;
    }
    .product__gallery, .product__details {
        flex: 1;
    }
}

@media (min-width: 1200px) {
    .nav__toggle {
        display: none;
    }
    .nav {
        display: block;
    }
    .nav__list {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .nav__link {
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-dark-secondary);
        white-space: nowrap;
        transition: color 0.3s ease;
    }
    .nav__link:hover {
        color: var(--orange-primary);
    }
    .header__button {
        display: inline-flex;
        padding: 12px 24px;
        white-space: nowrap;
    }
    .header__button span {
        font-size: 14px;
        font-weight: 600;
    }
}