@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f1f1f1;
    background-color: #1a1a1a;
}

.header {
    background-color: #2c2c2c;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header--sticky {
    position: sticky;
    top: 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header__logo .header__title {
    font-family: 'SUSE Mono', monospace;
    font-weight: 400;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header__nav {
    display: flex;
    gap: 1.5rem;
}

.header__nav-link {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: #fa7474;
}

.header__logo-link {
    text-decoration: none;
}

.search-form {
    display: flex;
    flex: 0 1 400px;
}

.search-form__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #555;
    border-radius: 0;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
}

.search-form__button {
    background-color: #555;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form__button:hover {
    background-color: #666;
}

.header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header__action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #555;
    border-radius: 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #f1f1f1;
    text-decoration: none;
}

.header__action:hover, .header__action.active {
    background-color: #444;
}

.header__action--cart {
    position: relative;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-info__text {
    font-size: 0.9rem;
    white-space: nowrap;
}

.session-info__link {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
}

.header__action-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.banner-wrapper {
    position: relative;
}

.banner {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.banner::-webkit-scrollbar {
    display: none;
}

.banner__half {
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 0;
    height: 560px;
    flex: 0 0 450px;
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.banner__half:hover .banner__image {
    transform: scale(1.05);
}

.banner__content {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.banner__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.banner__text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.banner__button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.banner__button:hover {
    background-color: white;
    color: #2c3e50;
}

.banner__title-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    pointer-events: auto;
}

.banner__title-link:hover {
    color: #e74c3c;
}

.carousel {
    margin: 3rem 0;
    position: relative;
}

.carousel__title {
    font-family: 'SUSE Mono', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 200;
    color: #fff;
}

.carousel__container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
}

.carousel__container::-webkit-scrollbar {
    display: none;
}

.carousel__item {
    flex: 0 0 330px;
    background-color: #2c2c2c;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.carousel__item:hover {
    transform: translateY(-5px);
}

.carousel__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.carousel__content {
    padding: 1rem;
}

.carousel__item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 200;
    color: #f1f1f1;
}

.carousel__item-price {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-weight: 200;
    font-size: 1.3rem;
}

.carousel__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel__control {
    background-color: #555;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel__control:hover {
    background-color: #666;
}

.table-section {
    margin: 3rem 0;
    scroll-margin-top: 100px;
}

.table-section__title {
    font-family: 'SUSE Mono', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 200;
    color: #fff;
}

.table-container {
    overflow-x: auto;
    background-color: #2c2c2c;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.size-table thead,
.size-table tbody,
.size-table tr {
    display: contents;
}

.size-table th,
.size-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #555;
}

.size-table th {
    font-family: 'SUSE Mono', monospace;
    background-color: #444;
    color: white;
    font-weight: 400;
    position: sticky;
    top: 0;
}

.size-table tbody tr:nth-child(odd) td {
    background-color: #222;
}

.size-table tbody tr:nth-child(even) td {
    background-color: #2c2c2c;
}

.size-table tbody tr:hover td {
    background-color: #444;
}

.contacts {
    margin: 3rem 0;
    background-color: #2c2c2c;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 100px;
}

.contacts__container {
    display: flex;
    gap: 2rem;
}

.contacts__info {
    flex: 1;
}

.contacts__title {
    font-family: 'SUSE Mono', monospace;
    font-weight: 350;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 2px solid #fa7474;
    padding-bottom: 0.5rem;
}

.contacts__address {
    font-style: normal;
    line-height: 1.8;
}

.contacts__address p {
    margin-bottom: 1rem;
}

.contacts__link {
    color: #fa7474;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts__link:hover {
    color: #ff7f50;
    text-decoration: underline;
}

.contacts__map {
    flex: 1;
}

#map {
    height: 400px;
    background-color: #333;
}

.promo-banner {
    background-color:  #fa7474;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.promo-banner__title {
    font-family: 'SUSE Mono', monospace;
    font-weight: 350;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.promo-banner__text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.promo-banner__button {
    background-color: white;
    color: #ff6b6b;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-banner__button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.footer {
    background-color: #111;
    color: #ecf0f1;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__section {
    flex: 1;
    margin-bottom: 1.5rem;
}

.footer__title {
    font-family: 'SUSE Mono', monospace;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__subtitle {
    font-family: 'SUSE Mono', monospace;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer__text {
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__link:hover {
    color: #e74c3c;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__social-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__social-link:hover {
    color: #e74c3c;
}

.footer__bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer__copyright {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.font-suse {
    font-family: 'SUSE Mono', monospace;
    font-weight: 400;
}

@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        flex: 1;
        width: 100%;
    }
    
    .banner {
        flex-direction: column;
        height: auto;
    }
    
    .banner__half {
        height: 300px;
    }
    
    .about__container {
        flex-direction: column;
    }
    
    .contacts__container {
        flex-direction: column;
    }
    
    .footer__container {
        flex-direction: column;
    }
    
    .promo-banner {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .header__container {
        padding: 0 2rem;
    }
    
    .main {
        padding: 0 2rem;
    }
    
    .footer__container {
        padding: 0 2rem;
    }
}

@media (min-width: 1201px) and (max-width: 1920px) {
    .header__container {
        max-width: 1400px;
    }
    
    .main {
        max-width: 1400px;
    }
    
    .footer__container {
        max-width: 1400px;
    }
}

@media (min-width: 1921px) {
    .header__container {
        max-width: 1600px;
    }
    
    .main {
        max-width: 1600px;
    }
    
    .footer__container {
        max-width: 1600px;
    }
    
    .banner {
        height: 600px;
    }
    
    .carousel__item {
        flex: 0 0 350px;
    }
}

@media (min-width: 2560px) {
    .header__container {
        max-width: 2000px;
    }
    
    .main {
        max-width: 2000px;
    }
    
    .footer__container {
        max-width: 2000px;
    }
    
    .banner {
        height: 700px;
    }
    
    .carousel__item {
        flex: 0 0 400px;
    }
}

#new-collection {
    scroll-margin-top: 100px;
}



.cart-page,
.profile-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.cart-page h2,
.profile-page h2 {
    font-family: 'SUSE Mono', monospace;
    font-weight: 350;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.button {
    background-color: #555;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'SUSE Mono', monospace;
}

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

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.button--register {
    background-color: transparent;
    border: 1px solid #555;
}

.cart-table {
    width: min(900px, 95vw);
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cart-table th,
.cart-table td {
    border: 1px solid #444;
    padding: 0.75rem;
    text-align: left;
    color: #fff;
}

.cart-table__item-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-table__image {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.cart-total {
    color: #fff;
    font-family: 'SUSE Mono', monospace;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.page-shell {
    padding: 2.5rem 0 3rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #444;
    background: #222;
}

.page-header--compact {
    margin-bottom: 1.5rem;
}

.page-header__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    color: #c5c5c5;
    max-width: 760px;
}

.page-header__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button--ghost {
    background: transparent;
    border: 1px solid #777;
}

.button--danger {
    background: #8e2c2c;
}

.button--danger:hover {
    background: #a93636;
}

.button--small {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: #242424;
    border: 1px solid #3c3c3c;
    min-height: 100%;
}

.catalog-card__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.catalog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.catalog-card__meta,
.detail-card__meta {
    color: #fa7474;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-card__title {
    font-size: 1.2rem;
}

.catalog-card__description,
.detail-card__description {
    color: #d0d0d0;
}

.catalog-card__price,
.detail-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.catalog-card__actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.catalog-card__actions form,
.button-row form,
.inline-form {
    margin: 0;
}

.event-panel {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid #3e3e3e;
    background: #1f1f1f;
}

.event-panel__header {
    margin-bottom: 1rem;
}

.event-panel__header p {
    color: #c5c5c5;
}

.event-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-feed__empty {
    color: #bdbdbd;
}

.event-toast {
    padding: 0.9rem 1rem;
    border-left: 4px solid #fa7474;
    background: #2b2b2b;
    transition: opacity 0.3s ease;
}

.event-toast--hidden {
    opacity: 0;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid #3f3f3f;
    background: #232323;
}

.detail-card__media {
    min-width: 0;
}

.detail-card__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.detail-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card__date {
    color: #b5b5b5;
}

.form-panel {
    padding: 1.5rem;
    border: 1px solid #3f3f3f;
    background: #232323;
}

.form-error {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #b44;
    color: #ffd5d5;
    background: rgba(180, 68, 68, 0.12);
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field span {
    color: #d7d7d7;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #555;
    background: #1a1a1a;
    color: #f1f1f1;
    font: inherit;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.inline-form--danger {
    margin-top: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #3f3f3f;
    background: #232323;
}

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

    .detail-card {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 1rem;
    }

    .page-header__title {
        font-size: 1.6rem;
    }

    .catalog-card__actions,
    .button-row,
    .page-header__actions {
        width: 100%;
    }

    .catalog-card__actions .button,
    .button-row .button,
    .page-header__actions .button {
        width: 100%;
        justify-content: center;
    }
}
