* {
    padding: 0;
    margin: 0;
    border: 0;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus, :active {
    outline: none;
}

a:focus, a:active {
    outline: none;
}

nav, footer, header, aside {
    display: block;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 100%;
    line-height: 1;
    font-size: 14px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

input, button, textarea {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a, a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}
body {
    display: flex;
    flex-direction: column;
}
/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;

}

.header__logo-row {
    display: flex;
    align-items: center;
    z-index: 99;
    gap: 5px;
}

.text-amber-400 {
    --tw-text-opacity: 1;
    color: rgb(251 191 36 / var(--tw-text-opacity));
    width: 2rem;
    height: 2rem;
}

.header__text-logo {

    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
}

.order-button {
    font-weight: 700;
    font-size: 15px;
    line-height: 26px;
    color: #212b36;
    padding: 12px 30px;
    background: #ffc107;
    box-shadow: 0px 8px 16px rgba(255, 193, 7, 0.24);
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.order-button:hover {
    background: #ffd557;
}

/* Основное содержание */
.all-title {
    text-align: center;
    margin: 40px 0;
    color: #333;
    font-size: 32px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.product-item {
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 24px;
}

.product-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.product-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.product-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.product-price {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: right;
}

.product-button {
    font-weight: 700;
    font-size: 15px;
    line-height: 26px;
    border: 1px solid rgba(255, 193, 7, 0.48);
    border-radius: 8px;
    padding: 11px 0px;
    max-width: 165px;
    width: 100%;
    text-align: center;
    display: block;
    background: #ffd557;
    color: black;
    transition: all .3s ease-in-out;
    text-decoration: none;
    margin-left: auto;
}

.product-button:hover {
    box-shadow: 0px 8px 16px rgba(255, 193, 7, 0.24);
}

/* Подвал */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer__info {
    gap: 5px;
    flex-wrap: wrap;
}

.flex {
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

.footer__info span, .footer__info a {
    font-size: 16px;
    line-height: 17px;
    color: white;
    position: relative;
    transition: color .3s ease-in-out;
    letter-spacing: 1px;
}

.footer__info a::after, .footer__info span::after {
    color: white;
    content: '|';
    position: absolute;
    right: -20px;
}

.footer__info a:last-child::after {
    content: none;
}

.product-navigation {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.product-navigation a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.product-navigation a:hover {
    color: #004499;
    text-decoration: underline;
}

.product-navigation-separator {
    margin: 0 8px;
    color: #999;
}

.product-detail {
    display: flex;
    gap: 40px;
    margin: 35px 0 60px 0;
}

.product-photos {
    flex: 1;
    min-width: 450px;
    height: fit-content;
    position: sticky;
    top: 10px;
}
.main {
    flex: 1 1 auto;
}
.product-main-photo {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-main-photo:hover {
    transform: scale(1.02);
}

/* Информация о товаре */
.product-details {
    flex: 1;
    padding: 0 20px;
}

.product-heading {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    color: #222;
}

.product-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffc107;
}

/* Блок цены и кнопки */
.product-purchase {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-current-price {
    font-size: 36px;
    font-weight: 700;
    color: #d32f2f;
}

.product-add-to-cart {
    padding: 14px 35px;
    background: linear-gradient(to bottom, #ffc107, #ffab00);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(255, 179, 0, 0.2);
}

.product-add-to-cart:hover {
    background: linear-gradient(to bottom, #ffca28, #ffb300);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3);
    transform: translateY(-2px);
}

/* Описание и характеристики */
.product-full-description {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.product-section-title {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.product-text {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.product-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-feature-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.product-feature-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #0066cc;
    outline: none;
}

.form-submit {
    font-weight: 700;
    font-size: 15px;
    line-height: 26px;
    color: #212b36;
    padding: 12px 30px;
    background: #ffc107;
    box-shadow: 0px 8px 16px rgba(255, 193, 7, 0.24);
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.form-submit:hover {
    background: #ffd557;
}

@media (max-width: 900px) {
    .product-detail {
        flex-direction: column;
    }

    .product-photos {
        position: static;
    }

    .product-main-photo {
        max-width: 100%;
    }

    .product-photos {
        min-width: auto;
    }

    .product-details {
        padding: 0;
    }

    .footer__info {
        flex-direction: column;
    }

    .footer__info a::after, .footer__info span::after {
        content: none;
    }
}

@media (max-width: 767px) {
    .product-item {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
    }

    .product-button {
        margin-left: inherit;
    }

    .product-price {
        text-align: left;
    }

    .product-content {
        padding: 0;
        margin-top: 20px;
        gap: 10px;
    }
    .product-item {
        padding: 15px;
    }
}