:root {
    --ink: #1b1b1f;
    --muted: #69707a;
    --paper: #f5f6f8;
    --line: #e7e9ee;
    --accent: #e8344e;
    --accent-dark: #b82036;
    --green: #1d7a63;
    --gold: #d99a25;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", sans-serif;
    background: var(--white);
    letter-spacing: 0;
    overflow-x: hidden;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 18px;
}

.brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
}

.brand-logo:hover {
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    background: var(--accent);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(232, 52, 78, 0.2);
}

.brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.brand-copy strong,
.brand-copy span {
    display: block;
    line-height: 1;
    white-space: nowrap;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.brand-copy span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 31px;
    padding: 0 12px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    border: 2px solid var(--accent);
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(232, 52, 78, 0.08);
}

.category-trigger i {
    color: var(--accent);
}

.category-trigger:hover {
    color: var(--accent-dark);
}

.main-menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    min-width: 0;
}

.main-menu a {
    color: #121316;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-menu a:hover {
    color: var(--accent);
}

.main-menu .menu-offer {
    min-height: 30px;
    padding: 9px 12px 0;
    color: var(--accent);
    border: 1px solid rgba(232, 52, 78, 0.42);
    border-radius: 6px;
}

.hero-section {
    padding: 14px 0 4px;
}

.hero-gallery {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    aspect-ratio: 1180 / 430;
    background: #111;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 14px 40px rgba(27, 27, 31, 0.08);
}

.hero-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 15s infinite;
}

.hero-gallery img:nth-child(1) {
    animation-delay: 0s;
}

.hero-gallery img:nth-child(2) {
    animation-delay: 5s;
}

.hero-gallery img:nth-child(3) {
    animation-delay: 10s;
}

.hero-gallery::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.46));
    pointer-events: none;
}

.hero-caption {
    position: absolute;
    left: 26px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 4px;
    max-width: min(420px, calc(100% - 52px));
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.hero-caption strong {
    font-size: clamp(24px, 3.4vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.hero-caption span {
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 700;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    height: 28px;
    padding-top: 10px;
}

.hero-dots span {
    display: block;
    width: 7px;
    height: 7px;
    background: #c7ccd5;
    border-radius: 50%;
}

.hero-dots span:first-child {
    background: var(--accent);
}

.category-section {
    padding: 8px 0 54px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
 
.featured-products {
    padding: 0 0 58px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-title-row h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 900;
    line-height: 1.12;
}

.section-title-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.section-title-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid rgba(232, 52, 78, 0.38);
    border-radius: 6px;
}

.section-title-row a:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.product-carousel {
    position: relative;
}

.product-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 184px;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: #cfd4dc transparent;
    scrollbar-width: thin;
}

.product-rail::-webkit-scrollbar {
    height: 7px;
}

.product-rail::-webkit-scrollbar-track {
    background: transparent;
}

.product-rail::-webkit-scrollbar-thumb {
    background: #cfd4dc;
    border-radius: 999px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(27, 27, 31, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover,
.product-card:focus {
    color: var(--ink);
    border-color: rgba(232, 52, 78, 0.34);
    box-shadow: 0 16px 32px rgba(27, 27, 31, 0.1);
    transform: translateY(-2px);
}

.product-card:focus-visible {
    outline: 3px solid rgba(232, 52, 78, 0.22);
    outline-offset: 3px;
}

.product-card:hover .product-info h2,
.product-card:focus .product-info h2 {
    color: var(--accent);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(232, 52, 78, 0.22);
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 12px 13px;
}

.product-info h2 {
    min-height: 48px;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.product-info strong {
    display: block;
    margin-top: auto;
    padding-top: 11px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin-top: 10px;
}

.swatches span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    color: #4d5562;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    background: #f3f4f7;
    border: 1px solid #d9dee7;
    border-radius: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(27, 27, 31, 0.14);
    cursor: pointer;
}

.carousel-btn:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

.empty-products {
    padding: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-detail-section {
    padding: 24px 0 62px;
}

.preview-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #78601a;
    font-size: 13px;
    font-weight: 900;
    background: #fff6d6;
    border: 1px solid #ead98f;
    border-radius: 6px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.product-breadcrumb a:hover {
    color: var(--accent);
}

.product-breadcrumb i {
    color: #b6bcc7;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1.06fr);
    gap: 34px;
    align-items: start;
}

.product-detail-media {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(27, 27, 31, 0.08);
}

.product-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-detail-info {
    min-width: 0;
    padding-top: 4px;
}

.product-detail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    background: var(--accent);
    border-radius: 999px;
}

.product-detail-info h1 {
    margin: 16px 0 0;
    color: var(--ink);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.product-detail-info p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.product-detail-price {
    display: block;
    margin-top: 24px;
    color: var(--accent);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.detail-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.detail-options span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    color: #4d5562;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    background: #f3f4f7;
    border: 1px solid #d9dee7;
    border-radius: 6px;
}

.detail-options .is-color {
    padding: 0;
    border-color: rgba(27, 27, 31, 0.18);
}

.product-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.product-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.product-detail-actions a:hover {
    color: var(--accent);
    border-color: rgba(232, 52, 78, 0.42);
}

.product-detail-actions .primary-action {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.product-detail-actions .primary-action:hover {
    color: var(--white);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.product-detail-panel {
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-detail-panel h2,
.related-products h2,
.product-not-found h1 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.product-detail-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.product-detail-panel ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.product-detail-panel li {
    position: relative;
    padding-left: 22px;
    color: #3d4450;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.product-detail-panel li::before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--green);
    font-family: FontAwesome;
    font-size: 12px;
}

.detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.detail-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.detail-contact a:hover {
    color: var(--accent);
}

.related-products {
    margin-top: 42px;
}

.related-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-not-found {
    display: grid;
    justify-items: start;
    gap: 12px;
    min-height: 360px;
    align-content: center;
}

.product-not-found p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.product-not-found a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    background: var(--accent);
    border-radius: 6px;
}

.contact-strip {
    padding: 28px 0;
    color: var(--white);
    background: #15161a;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-strip strong,
.contact-strip span {
    display: block;
}

.contact-strip strong {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.contact-strip span {
    margin-top: 5px;
    color: #d9dde5;
    font-size: 14px;
    line-height: 1.45;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
}

.contact-links a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-links i {
    color: var(--gold);
}

.site-footer {
    padding: 20px 0;
    color: #727986;
    background: #0d0e11;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner span {
    font-size: 13px;
}

.footer-inner nav {
    display: flex;
    gap: 16px;
}

.footer-inner a {
    color: #d7dbe3;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-inner a:hover {
    color: var(--white);
}

@keyframes heroFade {
    0% {
        opacity: 1;
        transform: scale(1.02);
    }

    30% {
        opacity: 1;
    }

    38% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-gallery img {
        animation: none;
        opacity: 0;
    }

    .hero-gallery img:first-child {
        opacity: 1;
    }

    .category-card img {
        transition: none;
    }
}

@media (max-width: 1040px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-rail {
        grid-auto-columns: 178px;
    }

    .main-menu {
        gap: 18px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .related-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 20px, 1180px);
        max-width: 100%;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
        padding: 10px 0;
        gap: 10px;
    }

    .brand-logo {
        align-self: flex-start;
    }

    .category-trigger {
        justify-content: center;
        width: 100%;
    }

    .main-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .main-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 36px;
        padding: 0 8px;
        background: var(--paper);
        border-radius: 6px;
        line-height: 1.15;
        overflow-wrap: anywhere;
        text-align: center;
        white-space: normal;
    }

    .main-menu .menu-offer {
        padding-top: 0;
    }

    .hero-section {
        padding-top: 10px;
    }

    .hero-gallery {
        min-height: 190px;
        aspect-ratio: 1.55 / 1;
    }

    .hero-caption {
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
    }

    .category-section {
        padding-bottom: 40px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .category-card {
        width: 100%;
        min-height: 124px;
        border-radius: 6px;
    }

    .category-card strong {
        right: 9px;
        bottom: 10px;
        left: 9px;
        font-size: 11px;
    }

    .section-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .section-title-row a {
        width: 100%;
    }

    .product-rail {
        grid-auto-columns: 68%;
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .carousel-btn {
        display: none;
    }

    .product-detail-section {
        padding: 18px 0 44px;
    }

    .product-detail-layout,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-layout {
        gap: 20px;
    }

    .product-detail-info h1 {
        font-size: 30px;
    }

    .product-detail-price {
        font-size: 25px;
    }

    .product-detail-actions a {
        flex: 1 1 190px;
    }

    .related-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-strip-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(370px, calc(100% - 20px));
    }
}

@media (max-width: 440px) {
    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .main-menu {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        min-height: 172px;
    }

    .category-grid {
        gap: 8px;
    }

    .category-card {
        min-height: 112px;
    }

    .product-rail {
        grid-auto-columns: 82%;
    }

    .product-detail-info h1 {
        font-size: 25px;
    }

    .product-detail-panel {
        padding: 18px;
    }

    .related-product-grid {
        grid-template-columns: 1fr;
    }
}
