
:root {
    --bg: #101010;
    --panel: #191919;
    --panel-light: #242424;
    --text: #f2f2f2;
    --muted: #a5a5a5;
    --accent: #e32636;
    --line: #383838;
    --max-width: 1320px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body, button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.announcement {
    padding: 9px 16px;
    background: var(--accent);
    color: #171914;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px max(5%, calc((100% - var(--max-width)) / 2));
    background: rgba(23, 25, 20, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: var(--bg);
    font-size: 13px;
    letter-spacing: 0;
}

.logo-accent {
    color: var(--accent);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #d1d2c9;
    font-size: 13px;
}

.navigation a:hover,
.footer > a:last-child:hover {
    color: var(--accent);
}

.cart-button {
    padding: 11px 15px;
    background: transparent;
    border: 1px solid #686c58;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cart-button span {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    margin-left: 6px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    overflow: hidden;
    background-color: #24271f;
    background-image:
        linear-gradient(
        90deg,
        rgba(16, 18, 14, 0.85) 0%,
        rgba(16, 18, 14, 0.55) 50%,
        rgba(16, 18, 14, 0.20) 100%
    ),
        url("images/hero.png");
    background-position: center, center 42%;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(23, 25, 20, 0.65), transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 45px 75px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    line-height: 0.99;
    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 450px;
    margin: 28px 0;
    color: #d0d1c8;
    font-size: 15px;
    line-height: 1.9;
}

.primary-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 50px;
    padding: 0 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--accent);
    color: var(--bg);
}

.primary-button:hover {
    background: #c2d394;
    transform: translateY(-2px);
}

.primary-button span {
    font-size: 19px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 65px;
    color: #b6b8aa;
    font-size: 9px;
    letter-spacing: 1.4px;
}

.hero-side-label {
    position: absolute;
    right: 24px;
    bottom: 35px;
    color: #dedfd5;
    font-size: 9px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.ticker {
    overflow: hidden;
    padding: 17px 0;
    background: var(--accent);
    color: var(--bg);
}

.ticker > div {
    width: max-content;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    word-spacing: 7px;
}

.ticker span {
    margin: 0 30px;
}

.section-wrap {
    width: min(100% - 64px, var(--max-width));
    margin: 0 auto;
}

.categories,
.catalog {
    padding-top: 100px;
    padding-bottom: 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 35px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.contact h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 53px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.section-heading h2 span,
.contact h2 span,
.dialog-header h2 span {
    color: var(--accent);
}

.section-note {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.6px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
    background: var(--panel);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.65);
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 13, 10, 0.92), transparent 75%);
}

.category-info {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
}

.category-info > span:first-child {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.category-info h3 {
    margin: 7px 0 0;
    font-size: 27px;
    font-weight: 900;
}

.category-arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #a8aa9d;
    font-size: 19px;
}

.catalog {
    padding-bottom: 100px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.filter-button {
    padding: 11px 16px;
    background: transparent;
    border: 1px solid var(--line);
    color: #c3c5ba;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.filter-button:hover,
.filter-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

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

.product {
    min-width: 0;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--panel);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7);
    transition: transform 0.4s ease;
}

.product:hover .product-image-wrap img {
    transform: scale(1.04);
}

.product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.product-info {
    padding-top: 14px;
}

.product-category {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.product h3 {
    margin: 7px 0;
    font-size: 15px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.add-button {
    min-height: 37px;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid #5e624e;
    color: var(--text);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.add-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.manifesto {
    padding: 100px 24px;
    background:
        linear-gradient(rgba(24, 27, 20, 0.94), rgba(24, 27, 20, 0.94)),
        url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1800&q=80")
        center / cover;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.manifesto-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.manifesto h2 {
    margin: 0;
    font-size: clamp(30px, 6vw, 65px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.manifesto h2 span {
    color: var(--accent);
}

.manifesto-inner > p:last-child {
    max-width: 560px;
    margin: 25px auto 0;
    color: #c0c2b6;
    font-size: 14px;
    line-height: 1.9;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding-top: 85px;
    padding-bottom: 85px;
}

.contact p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
}

.outline-button {
    flex-shrink: 0;
    border: 1px solid #6b7058;
}

.outline-button:hover {
    background: var(--accent);
    color: var(--bg);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px max(5%, calc((100% - var(--max-width)) / 2));
    border-top: 1px solid var(--line);
}

.footer p,
.footer > a:last-child {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.2px;
}

.footer-logo {
    font-size: 12px;
}

.footer-logo .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.cart-dialog {
    width: min(480px, calc(100% - 28px));
    max-height: 85vh;
    padding: 25px;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid #535747;
    color: var(--text);
}

.cart-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
}

.cart-items {
    display: grid;
    gap: 15px;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.cart-item p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 12px;
}

.remove-item {
    align-self: center;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.cart-disclaimer {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .header {
        padding-right: 24px;
        padding-left: 24px;
    }

    .navigation {
        gap: 16px;
    }

    .hero-content {
        padding-right: 30px;
        padding-left: 30px;
    }

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

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }

    .section-wrap {
        width: calc(100% - 40px);
    }
}

@media (max-width: 600px) {
    .announcement {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 16px;
    }

    .logo {
        font-size: 12px;
        gap: 7px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        font-size: 12px;
    }

    .cart-button {
        padding: 8px 10px;
        font-size: 10px;
    }

    .hero {
        min-height: 570px;
        background-position: center, 58% center;
    }

    .hero-content {
        padding: 75px 22px 50px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 68px);
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 340px;
        font-size: 13px;
    }

    .hero-note {
        gap: 12px;
        margin-top: 45px;
        font-size: 8px;
    }

    .hero-side-label {
        right: 9px;
        bottom: 20px;
        font-size: 7px;
    }

    .section-wrap {
        width: calc(100% - 32px);
    }

    .categories,
    .catalog {
        padding-top: 65px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }

    .section-heading h2,
    .contact h2 {
        font-size: 37px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

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

    .product-grid {
        gap: 25px 12px;
    }

    .product h3 {
        font-size: 13px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-button {
        width: 100%;
    }

    .product-price {
        font-size: 14px;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-button {
        padding: 9px 10px;
        font-size: 9px;
    }

    .manifesto {
        padding: 75px 20px;
    }

    .manifesto h2 {
        font-size: 34px;
    }

    .contact {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .footer {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 25px 16px;
    }

    .footer p {
        order: 3;
        width: 100%;
    }
    
}

/* Кнопки кошика та соцмереж */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-menu {
    position: relative;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #383838;
    color: #f2f2f2;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.social-button:hover,
.social-button[aria-expanded="true"] {
    border-color: #e32636;
    color: #e32636;
}

.social-button span {
    font-size: 17px;
}

.social-links {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    padding: 7px;
    background: #191919;
    border: 1px solid #383838;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.social-links[hidden] {
    display: none;
}

.social-links a {
    display: block;
    padding: 13px 10px;
    color: #f2f2f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.social-links a:hover {
    background: #292020;
    color: #e32636;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 6px;
    }

    .social-button {
        min-height: 39px;
        padding: 0 9px;
        font-size: 9px;
        gap: 5px;
    }

    .cart-button {
        padding: 8px;
    }
}


/* ПОШУК У ВЕРХНЬОМУ МЕНЮ */
.header-search {
    display: flex;
    align-items: center;
    width: 220px;
    height: 38px;
    margin-left: 18px;
    background: #141414;
    border: 1px solid #383838;
    border-left: 2px solid #e32636;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search:focus-within {
    border-color: #e32636;
    background: #191919;
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 0 0 12px;
    border: none;
    outline: none;
    background: transparent;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.header-search input::placeholder {
    color: #777;
}

.header-search input::-webkit-search-cancel-button {
    display: none;
}

.header-search button {
    flex-shrink: 0;
    width: 38px;
    height: 100%;
    border: none;
    background: transparent;
    color: #e32636;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-search button:hover {
    color: #fff;
    background: #e32636;
}

/* СОРТУВАННЯ ТОВАРІВ */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 22px 0;
    padding: 0;
}

.sort-bar label {
    color: #a5a5a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sort-bar select {
    width: 245px;
    min-height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid #383838;
    border-left: 2px solid #e32636;
    border-radius: 0;
    outline: none;
    background-color: #141414;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sort-bar select:hover,
.sort-bar select:focus {
    border-color: #e32636;
    background-color: #1b1b1b;
}

.sort-bar select option {
    background: #141414;
    color: #f2f2f2;
}

/* Адаптація для телефонів */
@media (max-width: 600px) {
    .sort-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .sort-bar select {
        width: 100%;
    }
}

/* КНОПКА СПІВПРАЦІ */
.cooperation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #e32636;
    background: #e32636;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cooperation-button:hover {
    background: #191919;
    border-color: #e32636;
}

.cooperation-button span {
    font-size: 14px;
}

/* Картки секцій SQUAD 13 */

#contact,
#about-us,
#cooperation {
    box-sizing: border-box;
    margin: 45px auto;
    width: calc(100% - 64px);
    max-width: 1320px;
    padding: 48px;
    background: #151515;
    border: 1px solid #383838;
    border-left: 4px solid #ed2638;
}

/* Відступи всередині блоків */

#contact > div,
#about-us .about-us-inner {
    max-width: 100%;
}

/* Адаптація для телефонів */

@media (max-width: 700px) {
    #contact,
    #about-us,
    #cooperation {
        width: calc(100% - 28px);
        margin: 24px auto;
        padding: 24px 18px;
    }
}

/* Блок повернення товару */
.returns-section {
    padding: 90px 6%;
    background: #101010;
    border: 1px solid #383838;
    border-left: 4px solid #e32636;
    margin: 40px auto;
    max-width: 1320px;
}

.returns-content {
    max-width: 900px;
}

.returns-section .eyebrow {
    color: #e32636;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.returns-section h2 {
    color: #f2f2f2;
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 900;
    margin: 20px 0;
}

.returns-section h2 span {
    color: #e32636;
}

.returns-section h3 {
    color: #f2f2f2;
    margin-top: 35px;
}

.returns-section p,
.returns-section li {
    color: #b8b8b8;
    line-height: 1.8;
}

.returns-section ol {
    padding-left: 24px;
}

.returns-note {
    margin: 30px 0;
    font-size: 14px;
}

/* Кнопка оформлення замовлення */
.checkout-button {
    width: 100%;
    margin-top: 22px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e32636;
    color: #fff;
    border: 1px solid #e32636;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.checkout-button:hover {
    background: transparent;
    color: #e32636;
}
.checkout-button[hidden] {
    display: none !important;
}
/* ===== SQUAD 13 — ФОРМА ОФОРМЛЕННЯ ЗАМОВЛЕННЯ ===== */

dialog.checkout-dialog {
    width: min(680px, calc(100% - 32px));
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;
    border: 1px solid #343434;
    border-radius: 4px;
    background: #111111;
    color: #f5f5f5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

dialog.checkout-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
}

/* Заголовок і кнопка закриття */

.checkout-dialog .dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
}

.checkout-dialog .dialog-header h2,
.checkout-dialog .dialog-header h3 {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-dialog .dialog-header h2 span,
.checkout-dialog .dialog-header h3 span {
    color: #e32636;
}

.checkout-dialog #close-checkout {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #444444;
    border-radius: 2px;
    background: transparent;
    color: #ffffff;
    font-size: 23px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.checkout-dialog #close-checkout:hover {
    background: #e32636;
    border-color: #e32636;
}

/* Поля форми */

#checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

#checkout-form > label {
    align-self: end;
    margin-top: 8px;
    color: #bdbdbd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#checkout-form > input,
#checkout-form > select,
#checkout-form > textarea,
#checkout-form > div[id="delivery-branch-group"],
#checkout-form > div[id="delivery-address-group"],
#checkout-form > #checkout-summary {
    min-width: 0;
    box-sizing: border-box;
}

#checkout-form > input,
#checkout-form > select,
#checkout-form > textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    outline: none;
    background: #1b1b1b;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}

#checkout-form > input:focus,
#checkout-form > select:focus,
#checkout-form > textarea:focus {
    border-color: #e32636;
    background: #202020;
}

#checkout-form input::placeholder,
#checkout-form textarea::placeholder {
    color: #777777;
}

#checkout-form select {
    cursor: pointer;
}

#checkout-form > #delivery-branch-group,
#checkout-form > #delivery-address-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 6px;
}

#checkout-form > #delivery-branch-group[hidden],
#checkout-form > #delivery-address-group[hidden] {
    display: none !important;
}

#checkout-form > #delivery-branch-group label,
#checkout-form > #delivery-address-group label {
    color: #bdbdbd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

#checkout-form > #delivery-branch-group input,
#checkout-form > #delivery-address-group input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    outline: none;
    background: #1b1b1b;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
}

#checkout-form > #delivery-branch-group input:focus,
#checkout-form > #delivery-address-group input:focus {
    border-color: #e32636;
}

#checkout-form > label[for="customer-comment"],
#checkout-form > #customer-comment,
#checkout-form > #checkout-summary,
#checkout-form > button[type="submit"] {
    grid-column: 1 / -1;
}

#checkout-form > textarea {
    min-height: 90px;
    resize: vertical;
}

/* Підсумок замовлення */

#checkout-form > #checkout-summary {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #333333;
    border-left: 3px solid #e32636;
    background: #181818;
}

#checkout-summary h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

#checkout-summary p {
    margin: 8px 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
}

#checkout-summary p strong {
    color: #ffffff;
    font-size: 17px;
}

/* Кнопка підтвердження */

#checkout-form > button[type="submit"] {
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    padding: 16px 20px;
    border: 1px solid #e32636;
    border-radius: 2px;
    background: #e32636;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#checkout-form > button[type="submit"]:hover {
    border-color: #ff3547;
    background: #ff3547;
}

#checkout-form > button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Адаптація для телефона */

@media (max-width: 600px) {
    dialog.checkout-dialog {
        width: calc(100% - 20px);
        max-height: 92vh;
        padding: 20px 16px;
    }

    .checkout-dialog .dialog-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    #checkout-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    #checkout-form > label,
    #checkout-form > input,
    #checkout-form > select,
    #checkout-form > textarea,
    #checkout-form > #delivery-branch-group,
    #checkout-form > #delivery-address-group,
    #checkout-form > #checkout-summary,
    #checkout-form > button[type="submit"] {
        grid-column: 1 / -1;
    }
}
/* Ціни в замовленні з промокодом */
.order-old-total {
    color: #858585;
    filter: blur(0.6px);
    opacity: 0.7;
    text-decoration: line-through;
    font-size: 15px;
}

.order-discount {
    color: #e32636;
    font-size: 15px;
    font-weight: 600;
}

.order-final-total {
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

/* ПРОМОКОД SQUAD 13 */
.promo-field {
    margin-top: 24px;
    width: 100%;
}

.promo-field label {
    display: block;
    margin-bottom: 10px;
    color: #f2f2f2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.promo-input-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.promo-input-row #promo-code {
    flex: 1;
    min-width: 0;
}

.promo-input-row #apply-promo {
    flex-shrink: 0;
}

#promo-code {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    background: #171717;
    color: #fff;
    border: 1px solid #444;
    border-left: 3px solid #e32636;
    border-radius: 0;
    outline: none;
    font-size: 15px;
    text-transform: uppercase;
    transition: border-color 0.2s;
}
/* Кнопка особистого кабінету SQUAD 13 */
.account-button {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #454545;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
}

.account-button span {
    color: #e32636;
    margin-left: 5px;
}

.account-button:hover {
    background: #e32636;
    border-color: #e32636;
    color: #ffffff;
}

.account-button:hover span {
    color: #ffffff;
}

/* ===== SQUAD 13 — ОСОБИСТИЙ КАБІНЕТ ===== */

.account-modal[hidden],
.account-form[hidden],
#account-profile[hidden] {
    display: none !important;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.account-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 38px;
    background: #111111;
    border: 1px solid #383838;
    border-top: 3px solid #e32636;
    color: #f5f5f5;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.account-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #414141;
    font-size: 26px;
    cursor: pointer;
    transition: 0.2s;
}

.account-close:hover {
    background: #e32636;
    border-color: #e32636;
}

.account-eyebrow {
    margin: 0 0 12px;
    color: #e32636;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.account-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.15;
    font-weight: 900;
}

.account-panel h2 span {
    color: #e32636;
}

.account-description {
    margin: 0 0 28px;
    color: #999999;
    font-size: 13px;
    line-height: 1.6;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 26px;
}

.account-tab {
    padding: 14px 8px;
    background: #191919;
    color: #aaaaaa;
    border: 1px solid #383838;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.account-tab.active {
    background: #e32636;
    border-color: #e32636;
    color: #ffffff;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-form label {
    margin-top: 8px;
    color: #d5d5d5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.account-form input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 15px;
    background: #1b1b1b;
    color: #ffffff;
    border: 1px solid #393939;
    border-radius: 0;
    font: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.account-form input:focus {
    border-color: #e32636;
}

.account-submit {
    width: 100%;
    margin-top: 18px;
    padding: 17px 14px;
    background: #e32636;
    color: #ffffff;
    border: 1px solid #e32636;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.account-submit:hover {
    background: #c91d2d;
    border-color: #c91d2d;
}

.account-message {
    margin: 16px 0 0;
    color: #e32636;
    font-size: 13px;
    line-height: 1.5;
}

#account-profile {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #383838;
}

#account-profile h3 {
    font-size: 18px;
}

#account-profile p {
    color: #cccccc;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .account-modal {
        padding: 10px;
    }

    .account-panel {
        padding: 30px 20px;
    }
}


/* Картки замовлень SQUAD 13 */
.account-order-card {
    background: #171717;
    border: 1px solid #333;
    border-left: 3px solid #e32636;
    padding: 22px;
    margin: 18px 0;
}

.account-order-card h4 {
    font-size: 18px;
    margin: 0 0 14px;
    color: #fff;
}

.account-order-card h5 {
    color: #e32636;
    font-size: 13px;
    letter-spacing: 2px;
    margin: 22px 0 12px;
}

.account-order-card p {
    color: #ccc;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.account-order-items {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 8px 0;
}

.account-order-items p {
    margin: 8px 0;
}

.account-order-card .account-order-total {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin-top: 18px;
}

.account-order-card .account-order-status {
    display: inline-block;
    background: #262626;
    border: 1px solid #444;
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 0;
}

/* ===== SQUAD 13 — ДИЗАЙН ОСОБИСТОГО КАБІНЕТУ ===== */

.account-panel {
    background: #111111;
    color: #f2f2f2;
    border: 1px solid #303030;
    border-top: 2px solid #ef2636;
    padding: 28px;
    box-sizing: border-box;
}

.account-panel h2,
.account-panel h3 {
    color: #f5f5f5;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.account-panel h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.account-panel h3 {
    font-size: 20px;
    margin: 24px 0 16px;
}

.account-panel input,
.account-panel select,
.account-panel textarea {
    width: 100%;
    box-sizing: border-box;
    background: #191919;
    color: #ffffff;
    border: 1px solid #393939;
    border-radius: 0;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.account-panel input:focus,
.account-panel select:focus,
.account-panel textarea:focus {
    border-color: #ef2636;
}

.account-panel label {
    display: block;
    margin: 14px 0 8px;
    color: #bcbcbc;
    font-size: 13px;
    font-weight: 700;
}

.account-panel .account-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 14px 18px;
    background: #ef2636;
    color: #ffffff;
    border: 1px solid #ef2636;
    font-weight: 800;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.account-panel .account-submit:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

.account-panel .account-message {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
}

.account-orders {
    margin-top: 30px;
}

#account-orders-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

#account-orders-list > div {
    background: #171717;
    border: 1px solid #333333;
    border-left: 3px solid #ef2636;
    padding: 20px;
    overflow-wrap: anywhere;
}

#account-orders-list h4 {
    color: #ffffff;
    font-size: 17px;
    margin: 0 0 14px;
}

#account-orders-list p {
    color: #c9c9c9;
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0;
}

#account-orders-list strong {
    color: #ffffff;
}

#account-profile {
    padding-bottom: 24px;
    border-bottom: 1px solid #333333;
}

#account-profile-name,
#account-profile-phone {
    color: #cccccc;
    line-height: 1.6;
}

#change-password-form {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid #333333;
}

@media (max-width: 600px) {
    .account-panel {
        padding: 20px 16px;
    }

    .account-panel h2 {
        font-size: 25px;
    }

    #account-orders-list > div {
        padding: 16px;
    }
}
/* Покращення читабельності замовлень */
#account-orders-list > div {
    border-radius: 2px;
    margin-bottom: 4px;
}

#account-orders-list p {
    overflow-wrap: anywhere;
    line-height: 1.8;
}

#account-orders-list h4 {
    line-height: 1.5;
}

.account-panel {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-color: #777 #171717;
    scrollbar-width: thin;
}

.account-order-product {
    padding: 8px 0;
    line-height: 1.6;
    border-bottom: 1px solid #292929;
    overflow-wrap: anywhere;
}

.account-order-product:last-child {
    border-bottom: none;
}
/* Покращення особистого кабінету SQUAD 13 */
.account-panel {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #e32636 #171717;
}

.account-panel input,
.account-panel select,
.account-panel textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .account-panel {
        max-width: 100%;
        max-height: 92vh;
        padding: 20px 16px;
    }
}
/* Покращене оформлення історії замовлень */
.account-order-card {
    background: #171717;
    border: 1px solid #333;
    border-left: 3px solid #ef2636;
    padding: 22px;
    margin: 18px 0;
}

.account-order-card h4 {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.account-order-card p {
    color: #bbb;
    line-height: 1.6;
    margin: 10px 0;
}

.account-order-products {
    margin: 14px 0;
    color: #eee;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.account-order-product {
    padding: 5px 0;
    border-bottom: 1px solid #292929;
}

.account-order-total {
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
    margin-top: 18px !important;
}

.account-order-status {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #444;
    background: #202020;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
}

/* ===== АДМІН-ПАНЕЛЬ SQUAD 13 ===== */

.admin-panel-content {
    width: min(1400px, 96vw);
    max-width: 96vw;
    max-height: 90vh;
    overflow: auto;
    background: #111111;
    color: #f5f5f5;
    border: 1px solid #393939;
}

.admin-panel-content h2 {
    color: #ff2636;
    margin-bottom: 8px;
}

.admin-panel-content > p {
    color: #999999;
    font-size: 12px;
    letter-spacing: 2px;
}

.admin-orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 16px;
}

.admin-orders-toolbar h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 1px;
}

#admin-orders-refresh {
    padding: 10px 18px;
    background: #ff2636;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

#admin-orders-message {
    color: #bdbdbd;
    font-size: 14px;
}

.admin-orders-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-orders-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-orders-table th {
    background: #222222;
    color: #ff2636;
    padding: 14px 12px;
    border-bottom: 1px solid #444444;
    white-space: nowrap;
}

.admin-orders-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #333333;
    vertical-align: top;
    line-height: 1.5;
}

.admin-orders-table tbody tr:hover {
    background: #1b1b1b;
}

.admin-orders-table select {
    min-width: 140px;
    padding: 9px;
    background: #222222;
    color: #ffffff;
    border: 1px solid #444444;
}

.admin-orders-table button {
    padding: 9px 12px;
    background: #ff2636;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.admin-orders-table button:hover,
#admin-orders-refresh:hover {
    background: #d71928;
}

@media (max-width: 700px) {
    .admin-panel-content {
        padding: 18px;
    }

    .admin-orders-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Кнопка відкриття форми зміни пароля */

/* Кнопка відкриття форми зміни пароля */
#toggle-password-form {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 30px 0 20px;
    padding: 16px 20px;
    background: #ff2636;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#toggle-password-form:hover {
    background: #d71928;
}


/* Кнопка відкриття форми зміни пароля */
#toggle-password-form {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 30px 0 20px;
    padding: 16px 20px;
    background: #ff2636;
    color: #ffffff;
    border: 1px solid #ff2636;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#toggle-password-form:hover {
    background: #ffffff;
    color: #111111;
}
