:root {
    --bc-red: #df111b;
    --bc-red-dark: #b90f17;
    --bc-black: #151515;
    --bc-yellow: #ffd33d;
    --bc-bg: #f3f3f3;
    --bc-card: #ffffff;
    --bc-border: #e5e5e5;
    --bc-muted: #727272;
    --bc-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    background: var(--bc-bg);
    color: #222;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.bc-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.bc-topbar {
    background: #111;
    color: #fff;
    font-size: 13px;
}

.bc-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bc-topbar-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.bc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bc-red);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
}

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

.bc-logo {
    display: flex;
    align-items: center;
    width: 172px;
    min-width: 132px;
}

.bc-logo img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.bc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.bc-nav a {
    position: relative;
    padding: 12px 0;
}

.bc-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.2s ease;
}

.bc-nav a:hover::after,
.bc-nav a.is-active::after {
    width: 100%;
}

.bc-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.bc-hotline {
    text-align: right;
    line-height: 1.1;
}

.bc-hotline span {
    display: block;
    font-size: 12px;
    opacity: 0.92;
}

.bc-hotline strong {
    display: block;
    margin-top: 3px;
    font-size: 22px;
}

.bc-cart-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--bc-red);
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.bc-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    background: var(--bc-yellow);
    color: #111;
    font-size: 11px;
    font-weight: 800;
}

.bc-main {
    min-height: calc(100vh - 220px);
}

.bc-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.12)),
        url("footer-bg.jpg") center/cover;
    color: #fff;
}

.bc-hero-inner {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0;
}

.bc-hero h1 {
    max-width: 700px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.03;
    text-transform: uppercase;
}

.bc-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
}

.bc-section {
    padding: 34px 0 60px;
}

.bc-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.bc-field,
.bc-select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--bc-border);
    background: #fff;
    color: #222;
    padding: 0 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bc-field:focus,
.bc-select:focus {
    border-color: var(--bc-red);
    box-shadow: 0 0 0 3px rgba(223, 17, 27, 0.12);
}

.bc-search {
    position: relative;
}

.bc-search .bc-field {
    padding-right: 48px;
}

.bc-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--bc-red);
    cursor: pointer;
}

.bc-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 18px;
    scrollbar-width: thin;
}

.bc-category-pill {
    flex: 0 0 auto;
    border: 1px solid var(--bc-border);
    background: #fff;
    color: #222;
    padding: 11px 18px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bc-category-pill:hover,
.bc-category-pill.is-active {
    background: var(--bc-red);
    border-color: var(--bc-red);
    color: #fff;
}

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

.bc-product-card {
    background: var(--bc-card);
    box-shadow: var(--bc-shadow);
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bc-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.bc-product-image {
    position: relative;
    height: 235px;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--bc-border);
}

.bc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
}

.bc-product-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.bc-product-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #b7b7b7;
    background: #f0f0f0;
    font-size: 32px;
}

.bc-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.bc-product-title {
    min-height: 42px;
    margin: 0 0 10px;
    color: #111;
    font-size: 16px;
    line-height: 1.3;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-product-desc {
    margin: 0 0 16px;
    color: var(--bc-muted);
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.bc-price {
    color: var(--bc-red);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.bc-btn {
    border: 0;
    background: var(--bc-red);
    color: #fff;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bc-btn:hover {
    background: #111;
    color: #fff;
}

.bc-btn-secondary {
    background: #111;
}

.bc-btn-outline {
    background: #fff;
    color: var(--bc-red);
    border: 1px solid var(--bc-red);
}

.bc-btn-outline:hover {
    background: var(--bc-red);
}

.bc-btn-icon {
    width: 40px;
    min-height: 40px;
    padding: 0;
}

.bc-page-title {
    margin: 0 0 22px;
    color: var(--bc-red);
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
}

.bc-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.bc-card {
    background: #fff;
    box-shadow: var(--bc-shadow);
}

.bc-card-pad {
    padding: 28px;
}

.bc-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--bc-border);
}

.bc-cart-item:first-child {
    padding-top: 0;
}

.bc-cart-image {
    height: 104px;
    background: #fafafa;
    display: grid;
    place-items: center;
    padding: 10px;
}

.bc-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bc-cart-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.bc-muted {
    color: var(--bc-muted);
}

.bc-modifier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.bc-chip {
    background: #f4f4f4;
    color: #444;
    padding: 5px 9px;
    font-size: 12px;
}

.bc-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.bc-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bc-qty {
    width: 72px;
    height: 40px;
    border: 1px solid var(--bc-border);
    text-align: center;
}

.bc-remove {
    border: 0;
    background: transparent;
    color: var(--bc-red);
    font-size: 22px;
    cursor: pointer;
}

.bc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    color: #555;
}

.bc-summary-row.total {
    margin-top: 10px;
    border-top: 1px solid var(--bc-border);
    color: #111;
    font-size: 19px;
    font-weight: 900;
}

.bc-summary-row.total span:last-child {
    color: var(--bc-red);
}

.bc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bc-form-group {
    margin-bottom: 14px;
}

.bc-form-group.is-full {
    grid-column: 1 / -1;
}

.bc-label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

textarea.bc-field {
    min-height: 108px;
    padding-top: 12px;
    resize: vertical;
}

.bc-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #ffd1d4;
    background: #fff3f4;
    color: #a20d14;
}

.bc-alert.success {
    border-color: #bfe9ca;
    background: #effbf2;
    color: #17622c;
}

.bc-page-intro {
    max-width: 700px;
    margin: -8px 0 24px;
    color: var(--bc-muted);
    line-height: 1.7;
}

.bc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    background: #fff4d6;
    color: #8c5c00;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.bc-status-badge.is-green {
    background: #e9f8ee;
    color: #17622c;
}

.bc-status-badge.is-blue {
    background: #e8f0ff;
    color: #174a91;
}

.bc-status-badge.is-red {
    background: #fff0f1;
    color: #a20d14;
}

.bc-track-card {
    overflow: hidden;
}

.bc-track-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--bc-red), var(--bc-red-dark));
    color: #fff;
}

.bc-track-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.bc-track-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.bc-track-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 34px 28px 30px;
    background: #fff;
}

.bc-track-step {
    position: relative;
    min-height: 112px;
    padding: 0 14px;
    background: transparent;
    text-align: center;
}

.bc-track-step::after {
    content: "";
    position: absolute;
    top: 21px;
    left: calc(50% + 21px);
    width: calc(100% - 42px);
    height: 2px;
    background: var(--bc-border);
    z-index: 0;
}

.bc-track-step:last-child::after {
    display: none;
}

.bc-track-step.is-done,
.bc-track-step.is-current {
    background: transparent;
}

.bc-track-step.is-done::after {
    background: var(--bc-red);
}

.bc-track-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e5e5e5;
    color: #777;
    font-size: 17px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px #fff;
}

.bc-track-step.is-done .bc-track-icon,
.bc-track-step.is-current .bc-track-icon {
    background: var(--bc-red);
    color: #fff;
}

.bc-track-step strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
}

.bc-track-step span {
    display: block;
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bc-track-step.is-done strong,
.bc-track-step.is-current strong {
    color: var(--bc-red);
}

.bc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bc-detail-item {
    padding: 14px;
    background: #fafafa;
    border: 1px solid var(--bc-border);
}

.bc-detail-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--bc-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bc-detail-item strong {
    display: block;
    color: #111;
    line-height: 1.45;
}

.bc-list-lines {
    display: grid;
    gap: 11px;
}

.bc-list-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--bc-border);
}

.bc-list-line:last-child {
    border-bottom: 0;
}

.bc-profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 24px 28px;
    margin-bottom: 22px;
    background: #111;
    color: #fff;
    box-shadow: var(--bc-shadow);
}

.bc-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bc-red);
    color: #fff;
    font-size: 30px;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.bc-profile-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.bc-profile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.bc-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.bc-profile-stat {
    padding: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.bc-profile-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-transform: uppercase;
}

.bc-profile-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}

.bc-address-card {
    padding: 16px;
    border: 1px solid var(--bc-border);
    background: #fafafa;
}

.bc-address-card.is-default {
    border-color: rgba(223, 17, 27, 0.35);
    background: #fff7f7;
}

.bc-order-card {
    background: #fff;
    box-shadow: var(--bc-shadow);
    padding: 22px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bc-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.11);
}

.bc-order-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bc-border);
}

.bc-order-code {
    display: block;
    margin-bottom: 6px;
    color: #111;
    font-size: 20px;
    font-weight: 900;
}

.bc-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--bc-muted);
    font-size: 13px;
}

.bc-order-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    padding-top: 16px;
}

.bc-order-total {
    text-align: right;
}

.bc-order-total span {
    display: block;
    color: var(--bc-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bc-order-total strong {
    display: block;
    margin-top: 5px;
    color: var(--bc-red);
    font-size: 22px;
}

.bc-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bc-address-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.bc-icon-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bc-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--bc-border);
    background: #fff;
    color: var(--bc-red);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.bc-hidden {
    display: none;
}

.bc-empty {
    padding: 58px 20px;
    text-align: center;
}

.bc-empty i {
    color: #c8c8c8;
    font-size: 54px;
}

.bc-empty h2 {
    margin: 18px 0 10px;
    color: #111;
}

.bc-footer {
    background: #111 url("footer-bg.jpg") center/cover;
    color: #fff;
    margin-top: 30px;
}

.bc-footer-overlay {
    background: rgba(0, 0, 0, 0.76);
    padding: 34px 0;
}

.bc-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, 0.84);
}

.bc-footer strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bc-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: grid;
    gap: 10px;
}

.bc-floating a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bc-red);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.bc-pagination {
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .bc-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-nav {
        gap: 16px;
        font-size: 13px;
    }
}

@media (max-width: 820px) {
    .bc-topbar {
        display: none;
    }

    .bc-header-inner {
        min-height: 74px;
    }

    .bc-nav {
        display: none;
    }

    .bc-hotline {
        display: none;
    }

    .bc-toolbar,
    .bc-layout {
        grid-template-columns: 1fr;
    }

    .bc-menu-grid {
        gap: 14px;
    }

    .bc-product-image {
        height: 210px;
    }

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

    .bc-track-header,
    .bc-profile-hero {
        grid-template-columns: 1fr;
    }

    .bc-track-progress {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .bc-track-step {
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 12px;
        min-height: auto;
        padding: 0 0 22px;
    }

    .bc-track-step::after {
        left: 21px;
        top: 42px;
        width: 2px;
        height: calc(100% - 42px);
    }

    .bc-track-icon {
        margin: 0;
    }

    .bc-detail-grid,
    .bc-profile-stats {
        grid-template-columns: 1fr;
    }

    .bc-order-head,
    .bc-order-body {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .bc-order-total {
        text-align: left;
    }

    .bc-cart-item {
        grid-template-columns: 88px 1fr;
    }

    .bc-cart-total {
        grid-column: 1 / -1;
        text-align: right;
    }

    .bc-footer-inner {
        flex-direction: column;
    }
}

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

    .bc-logo {
        width: 140px;
    }

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

    .bc-card-pad {
        padding: 20px;
    }

    .bc-hero-inner {
        min-height: 220px;
    }
}
