@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
    --brand-primary: #e10600;
    --brand-primary-hover: #b10500;
    --brand-primary-border-hover: #8e0400;
    --brand-accent: #e10600;
    --brand-accent-hover: #b10500;
    --brand-accent-border-hover: #8e0400;
    --brand-dark: #2a2928;
    --brand-light: #f4f0ea;
    --brand-hero: url("/assets/majster3d/banner.jpg");
    --m3-ink: #1c1b1a;
    --m3-muted: #6d675f;
    --m3-line: #e4ddd4;
    --m3-card: #fffcf8;
    --m3-red: #e10600;
}

body {
    background-color: var(--brand-light);
    color: var(--m3-ink);
    font-family: Outfit, "Segoe UI", sans-serif;
}

.navbar-shop {
    background: rgba(244, 240, 234, 0.92) !important;
    border-bottom: 1px solid var(--m3-line);
    backdrop-filter: blur(14px);
}

.navbar-shop .navbar-brand,
.navbar-shop .nav-link {
    color: var(--m3-ink) !important;
}

.navbar-shop .navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.navbar-shop .navbar-brand img {
    height: 42px !important;
    width: 42px;
    border-radius: 14px;
    object-fit: cover;
}

.navbar-shop .nav-link {
    border-radius: 999px;
    margin: 0 2px;
    font-weight: 500;
    color: var(--m3-muted) !important;
}

.navbar-shop .nav-link:hover {
    background: #fff;
    color: var(--m3-ink) !important;
}

.navbar-shop .navbar-toggler {
    border-color: var(--m3-line) !important;
    border-radius: 12px;
}

.navbar-shop .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828, 27, 26, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.btn-accent,
.btn-brand,
.btn-danger,
.btn-primary {
    background-color: var(--m3-red);
    border-color: var(--m3-red);
    color: #fff;
    font-weight: 600;
    text-transform: none;
    border-radius: 999px;
}

.btn-accent:hover,
.btn-brand:hover,
.btn-danger:hover,
.btn-primary:hover,
.btn-accent:focus,
.btn-brand:focus,
.btn-danger:focus,
.btn-primary:focus {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #fff;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary {
    border-radius: 999px;
    border-color: var(--brand-dark);
    color: var(--m3-ink);
    font-weight: 600;
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.navbar-shop .badge-accent {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

.header-hero {
    width: min(1140px, calc(100% - 48px));
    margin: 22px auto 0;
    min-height: 380px;
    border-radius: 32px;
    overflow: hidden;
    border-bottom: none;
    display: flex;
    align-items: flex-end;
    background-color: #1a120f;
    background-image: linear-gradient(90deg, rgba(18, 12, 10, 0.78) 0%, rgba(18, 12, 10, 0.34) 56%, rgba(18, 12, 10, 0.08) 100%), var(--brand-hero);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(40, 30, 20, 0.12);
}

.header-hero .text-center {
    text-align: left !important;
}

.header-hero h1 {
    text-transform: none !important;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.header-hero h1.display-4 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.header-hero .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.card,
.card-shop {
    background: var(--m3-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40, 30, 20, 0.06);
}

.card-shop:hover {
    transform: translateY(-4px);
}

.card-shop > .card-img-top {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.col-md-6 > .card-img-top {
    border-radius: 24px;
}

.product-thumb {
    border-radius: 12px;
}

.img-thumbnail {
    border-color: var(--m3-line);
    border-radius: 16px;
}

.card-header.bg-dark,
.card.bg-dark {
    background-color: var(--m3-card) !important;
    color: var(--m3-ink) !important;
    border-bottom: 1px solid var(--m3-line);
}

.card-header.bg-dark.text-white,
.card.bg-dark.text-white,
.card-header.bg-dark .text-white,
.card.bg-dark .text-white {
    color: var(--m3-ink) !important;
}

section.py-5 > .container > .row:has(> .col-lg-3) {
    flex-direction: column;
}

section.py-5 > .container > .row:has(> .col-lg-3) > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.col-lg-3 > .list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: none !important;
    border-radius: 0;
}

.col-lg-3 > .list-group > .list-group-item {
    width: auto;
    margin: 0;
    border: 1px solid var(--m3-line) !important;
    border-radius: 999px !important;
    background: var(--m3-card);
    color: var(--m3-ink);
    font-weight: 500;
    padding: 10px 16px;
}

.col-lg-3 > .list-group > .list-group-item:hover {
    background: #fff;
    color: var(--m3-ink);
}

.col-lg-3 > .list-group > .list-group-item.active {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff;
}

section.py-5 h2.text-center {
    text-align: left !important;
    letter-spacing: -0.03em;
}

.bg-white.border-start,
.category-description,
.product-page-top-panel {
    background: var(--m3-card) !important;
    border-color: var(--m3-red) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(40, 30, 20, 0.06);
}

section.bg-light {
    background-color: transparent !important;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--m3-line);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--m3-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.16);
}

.input-group > .form-control,
.input-group > .btn,
.input-group > .input-group-text {
    border-radius: 0 !important;
}

.input-group > .input-group-text:first-child,
.input-group > input[hidden] + .form-control,
.input-group > .form-control:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.input-group > .btn {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.form-check-input:checked {
    background-color: var(--m3-red);
    border-color: var(--m3-red);
}

.form-check-input:focus {
    border-color: var(--m3-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.16);
}

.custom-option.border-primary {
    border-color: var(--m3-red) !important;
}

.pagination .page-link {
    border-radius: 999px !important;
    margin: 0 4px;
    border: 1px solid var(--m3-line);
    color: var(--m3-ink);
}

.pagination .page-item.active .page-link {
    background: var(--m3-red);
    border-color: var(--m3-red);
    color: #fff;
}

.breadcrumb-item a {
    color: var(--m3-muted);
}

.breadcrumb-item.active {
    color: var(--m3-ink);
}

footer.shop-footer {
    background: transparent !important;
    border-top: none;
    padding-top: 1.25rem !important;
}

footer.shop-footer > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    background: var(--m3-card);
    border: 1px solid var(--m3-line);
    border-radius: 24px;
    padding: 18px 22px;
    text-align: left !important;
    color: var(--m3-ink) !important;
}

footer.shop-footer .text-white,
footer.shop-footer .text-white-50,
footer.shop-footer a {
    color: var(--m3-ink) !important;
}

footer.shop-footer .text-white-50,
footer.shop-footer p {
    color: var(--m3-muted) !important;
}

footer.shop-footer .mb-3 {
    margin-bottom: 0 !important;
}

footer.shop-footer img {
    height: 42px !important;
    width: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    border-radius: 20px;
    border-top: none;
    background-color: rgba(42, 41, 40, 0.96);
}

.modal-content {
    border-radius: 24px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .header-hero {
        width: calc(100% - 24px);
        min-height: 280px;
        border-radius: 22px;
    }
}
