﻿:root {
    --efe-blue: #c62828;
    --efe-blue-dark: #8e1c1c;
    --efe-blue-soft: #fdf2f2;
    --efe-navy: #2b2b2b;
    --efe-orange: #f4a261;
    --efe-bg: #f4f4f5;
    --efe-text: #222222;
    --efe-border: #d4d4d8;
    --rz-red: #c62828;
    --rz-red-dark: #8e1c1c;
    --rz-red-soft: #fbe9e9;
    --rz-orange: #f4a261;
    --rz-orange-soft: #fff1e6;
    --rz-silver: #e5e7eb;
    --rz-gray: #9ca3af;
    --rz-gray-dark: #4b5563;
    --rz-black: #1f1f1f;
    --rz-white: #ffffff;
    --rz-bg: #f5f5f5;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f7f7f7 0%, #f1f1f1 100%);
    color: var(--rz-black);
}

a {
    color: var(--rz-red);
}

    a:hover {
        color: var(--rz-red-dark);
    }

.topbar,
.main-header {
    background: linear-gradient(90deg, #b71c1c 0%, #cf2e2e 55%, #e53935 100%);
}

.promo-bar,
.footer-top {
    background: linear-gradient(90deg, #1f1f1f 0%, #2b2b2b 100%);
    color: var(--rz-white);
}

.promo-bar {
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.promo-bar .container {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.28rem;
    letter-spacing: .02em;
}

.promo-bar .container i {
    color: #f4b23d;
    font-size: 1.45rem;
}

.topbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.topbar .container {
    min-height: 22px;
}

.topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    min-width: 0;
    width: 100%;
    padding-left: 78px;
    flex-wrap: nowrap;
}

.topbar-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.main-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.footer-bottom {
    background: #ffffff;
}

.top-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .92rem;
    white-space: nowrap;
}

    .top-link:hover {
        color: #fff;
        opacity: 1;
    }

@media (max-width: 991.98px) {
    .topbar-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .topbar-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 0;
        flex-wrap: wrap;
    }

    .topbar-group {
        gap: 12px;
        flex-wrap: wrap;
    }
}

.brand-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #d9d9d9 100%);
    color: var(--rz-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: lowercase;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.7), 0 4px 12px rgba(0,0,0,.12);
}

.category-btn,
.action-pill,
.cart-pill {
    border-radius: 10px;
}

.category-btn {
    border-color: rgba(255,255,255,.45);
    color: #fff;
    background: rgba(255,255,255,.08);
}

    .category-btn:hover {
        color: #fff;
        background: rgba(255,255,255,.16);
    }

.search-box .form-control,
.search-box .btn {
    height: 48px;
}

.search-box .form-control {
    border: 0;
    background: #ffffff;
}

.search-box .btn {
    background: var(--rz-orange);
    border-color: var(--rz-orange);
    color: var(--rz-black);
    font-weight: 700;
}

    .search-box .btn:hover {
        background: #ee9448;
        border-color: #ee9448;
        color: var(--rz-black);
    }

.action-pill,
.cart-pill {
    padding: 11px 16px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.09);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-pill span {
    white-space: nowrap;
}

.header-actions {
    flex-wrap: nowrap;
    align-items: center;
}

.account-menu-wrap {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 400px;
    background: #fff;
    border: 1px solid #f0d8da;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
    padding: 10px 0;
    z-index: 30;
}

.account-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #f0d8da;
    border-top: 1px solid #f0d8da;
    transform: rotate(45deg);
}

.account-dropdown-head {
    padding: 10px 18px 8px;
    border-bottom: 0;
    margin-bottom: 4px;
}

.account-dropdown-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
}

.account-dropdown-col {
    padding: 14px 16px 12px;
}

.account-dropdown-col:first-child {
    background: #fdeeee;
}

.account-dropdown-col:last-child {
    background: #ffffff;
}

.account-dropdown-col + .account-dropdown-col {
    border-left: 1px solid #f1d9db;
}

.account-dropdown-title {
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    font-size: 1rem;
}

.account-dropdown-title-user {
    text-transform: uppercase;
    font-size: 1rem;
}

.account-dropdown-name {
    color: #8a5058;
    font-size: .92rem;
}

.account-dropdown-copy {
    color: #5f5f5f;
    font-size: .92rem;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 14px;
}

.account-dropdown-benefits {
    margin: 10px 0 14px;
    padding-left: 18px;
    color: #5f5f5f;
    font-size: .92rem;
}

.account-dropdown-benefits li + li {
    margin-top: 6px;
}

.account-dropdown-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #c62828;
}

.account-dropdown-cta-primary {
    background: #b71c1c;
    color: #fff;
}

.account-dropdown-cta-primary:hover {
    background: #8e1c1c;
    color: #fff;
}

.account-dropdown-cta-secondary {
    background: #fff;
    color: #b71c1c;
}

.account-dropdown-cta-secondary:hover {
    background: #fff2f2;
    color: #8e1c1c;
}

.account-dropdown-link,
.account-dropdown-button {
    width: 100%;
    display: block;
    padding: 8px 18px;
    border-radius: 0;
    color: #111827;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: .96rem;
}

.account-dropdown-link:hover,
.account-dropdown-button:hover {
    background: #f8fafc;
    color: #111827;
}

.account-dropdown-link-danger {
    color: #2563eb;
}

.account-dropdown-link-danger:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

    .action-pill:hover {
        color: #fff;
        background: rgba(255,255,255,.16);
    }

.cart-pill {
    width: 48px;
    height: 48px;
    justify-content: center;
    position: relative;
    background: #202020;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd54f;
    color: var(--rz-black);
    width: 22px;
    height: 22px;
    font-size: .75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.hero-banner {
    background: linear-gradient(100deg, #8e1c1c 0%, #c62828 45%, #e24a3b 100%);
    color: #fff;
}

.hero-copy h1 {
    font-size: 2.6rem;
    font-weight: 800;
}

.hero-product-card {
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(2px);
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

    .hero-product-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 14px;
        margin-bottom: 12px;
        background: #fff;
    }

.quick-box,
.product-card,
.summary-card,
.side-menu-card,
.content-card,
.form-card,
.info-box,
.auth-wrapper {
    background: #fff;
    border-radius: 18px;
}

.quick-box {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #ececec;
}

    .quick-box i {
        font-size: 2.1rem;
        color: var(--rz-red);
    }

    .quick-box.dark {
        background: linear-gradient(90deg, #1f1f1f 0%, #2e2e2e 100%);
        color: #fff;
    }

        .quick-box.dark i {
            color: var(--rz-orange);
        }

    .quick-box.light {
        background: #f8eded;
    }

    .quick-box.info {
        background: #f3f4f6;
    }

.quick-box-link {
    color: inherit;
}

.quick-box-link:hover {
    color: inherit;
    text-decoration: none;
}

.section-title i {
    color: var(--rz-red);
    font-size: 1.6rem;
}

.product-card {
    padding: 16px;
    box-shadow: 0 10px 22px rgba(31,31,31,.06);
    position: relative;
    height: 100%;
    border: 1px solid #ececec;
    transition: .25s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 28px rgba(31,31,31,.10);
    }

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
        background: #fafafa;
    }

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rz-orange);
    color: var(--rz-black);
    font-weight: 800;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: .8rem;
}

.price {
    font-size: 1.6rem;
    color: var(--rz-red);
    font-weight: 800;
}

    .price small {
        display: block;
        color: #7b7b7b;
        font-size: .95rem;
        text-decoration: line-through;
    }

.auth-login {
    background: linear-gradient(180deg, #f8ecec 0%, #fff 100%);
}

.auth-register {
    background: #fff;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 44px;
    color: #7d8c9b;
}

.form-card {
    max-width: 860px;
    padding: 42px;
    border: 1px solid #ececec;
}

.section-icon {
    font-size: 2.4rem;
    color: var(--rz-red);
}

.steps-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 12px;
}

.step {
    position: relative;
    font-weight: 600;
    color: #6d6d6d;
}

    .step::before {
        content: "";
        width: 16px;
        height: 16px;
        display: block;
        margin: 0 auto 8px;
        border-radius: 50%;
        background: #d3d3d3;
    }

    .step.active::before {
        background: var(--rz-red);
    }

    .step.active {
        color: var(--rz-red);
    }

.cart-item,
.mini-cart-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(31,31,31,.05);
    border: 1px solid #ededed;
}

    .cart-item img,
    .mini-cart-item img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 10px;
        background: #fafafa;
    }

.price-main {
    color: var(--rz-red);
    font-size: 1.5rem;
    font-weight: 800;
}

.price-old {
    color: #8d8d8d;
    text-decoration: line-through;
    font-size: .95rem;
}

.free-label {
    color: var(--rz-red);
    font-size: 1.2rem;
    font-weight: 700;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.btn-qty {
    border: 0;
    background: #fff;
    width: 38px;
    height: 38px;
    color: var(--rz-red);
    font-size: 1.1rem;
    font-weight: 700;
}

.qty-input {
    width: 42px;
    text-align: center;
    border: 0;
    outline: 0;
    color: var(--rz-black);
}

.summary-row.total {
    border-top: 1px solid var(--efe-border);
    padding-top: 14px;
    font-size: 1.15rem;
}

.side-menu-card a {
    display: block;
    padding: 6px 0;
    color: var(--rz-black);
    text-decoration: none;
}

    .side-menu-card a.active,
    .side-menu-card a:hover {
        color: var(--rz-red);
        font-weight: 700;
    }

.table-efe thead th {
    border-bottom: 2px solid #d2d2d2;
    color: #4f4f4f;
    font-weight: 700;
}

.table-efe tbody td {
    border-bottom: 1px solid #e7e7e7;
}

.status-ok {
    color: #5f8f28;
    font-weight: 700;
}

.info-box {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.footer-links a {
    text-decoration: none;
    color: #5f5f5f;
}

    .footer-links a:hover {
        color: var(--rz-red);
    }

.mini-cart-panel {
    position: fixed;
    top: 78px;
    right: -420px;
    width: 390px;
    max-width: calc(100vw - 20px);
    height: calc(100vh - 95px);
    background: #fff;
    z-index: 1060;
    box-shadow: -8px 0 24px rgba(0,0,0,.16);
    border-radius: 18px 0 0 18px;
    padding: 18px;
    overflow-y: auto;
    transition: right .30s ease;
    border-left: 1px solid #e7e7e7;
}

.mini-cart-panel.open {
    right: 0;
}

.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1055;
}

.mini-cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mini-cart-subtotal strong {
    color: var(--rz-red);
    font-size: 1.3rem;
}

.modal-added-cart .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,.18);
    overflow: hidden;
}

.added-modal-header {
    position: relative;
    padding: 22px 26px 12px;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.added-icon {
    color: var(--rz-red);
    font-size: 1.35rem;
    line-height: 1;
}

.added-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0;
}

.added-modal-body {
    padding: 18px 26px 10px !important;
    background: #fff;
}

.added-product-card {
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 18px 16px;
    background: #fff;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.added-product-img {
    width: 100%;
    max-width: 118px;
    height: 84px;
    object-fit: contain;
    display: inline-block;
}

.added-price {
    color: var(--rz-red);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.added-offer {
    color: #6d6d6d;
    font-size: .95rem;
}

.added-old-price {
    color: #8c8c8c;
    font-size: .95rem;
    text-decoration: line-through;
    margin-top: 4px;
}

.added-brand {
    color: #7c7c7c;
    font-size: .82rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.added-name {
    color: #163047;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.added-modal-footer {
    justify-content: flex-end;
    padding: 0 26px 22px;
    background: #fff;
}

.added-btn-primary,
.added-btn-outline {
    min-width: 150px;
    border-radius: 6px;
    font-weight: 700;
    padding: 9px 16px;
}

.custom-close {
    opacity: 1;
    filter: none;
}

.custom-close:hover {
    opacity: .85;
}

.checkout-step.active .checkout-step-circle,
.checkout-step.done .checkout-step-circle,
.delivery-option-card.active,
.address-card.active,
.pickup-point-card.active,
.payment-option-card.active,
.payment-mini-card.active {
    border-color: var(--rz-red);
}

.checkout-step.active .checkout-step-label,
.checkout-step.done .checkout-step-label,
.checkout-link-action,
.summary-footer-row.total strong,
.checkout-summary-links .checkout-link-action,
.delivery-option-icon,
.payment-option-icon {
    color: var(--rz-red);
}

.delivery-option-icon,
.payment-option-icon {
    background: var(--rz-red-soft);
}

.option-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid #8c8c8c;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.delivery-option-card.active .option-radio::after,
.payment-option-card.active .option-radio::after,
.payment-mini-card.active .option-radio::after,
.address-card.active .option-radio::after,
.pickup-point-card.active .option-radio::after,
.choice-radio.active .option-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--rz-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pickup-badge {
    display: inline-block;
    background: var(--rz-orange);
    color: var(--rz-black);
    font-size: .75rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 4px 8px;
    margin-bottom: 10px;
}

.checkout-summary-header {
    background: linear-gradient(90deg, #f5dede 0%, #f8eaea 100%);
    padding: 16px 18px 14px;
    border-radius: 8px 8px 0 0;
}

.cart-alert-success {
    background: #e7f3d8;
    color: #29421a;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary,
.added-btn-primary,
.checkout-primary-btn {
    background: linear-gradient(90deg, #b71c1c 0%, #cf2e2e 100%);
    border-color: #b71c1c;
    color: #fff;
}

    .btn-primary:hover,
    .added-btn-primary:hover,
    .checkout-primary-btn:hover {
        background: linear-gradient(90deg, #981717 0%, #b62626 100%);
        border-color: #981717;
    }

.btn-outline-primary,
.added-btn-outline {
    border-color: var(--rz-red);
    color: var(--rz-red);
    background: #fff;
}

    .btn-outline-primary:hover,
    .added-btn-outline:hover {
        background: var(--rz-red);
        color: #fff;
    }

@media (max-width: 575.98px) {
    .added-modal-header {
        padding: 18px 16px 10px;
    }

    .added-modal-body {
        padding: 14px 16px 8px !important;
    }

    .added-modal-footer {
        justify-content: center;
        padding: 0 16px 18px;
    }

    .added-btn-primary,
    .added-btn-outline {
        min-width: 0;
        width: 100%;
    }

    .added-product-card {
        padding: 14px;
    }
}

.header-logo-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 64px;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    min-width: 86px;
    min-height: 64px;
    text-decoration: none;
}

.header-logo-img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    display: block;
}

    .header-logo-img.d-none {
        display: none !important;
    }

@media (max-width: 991.98px) {
    .header-logo-box {
        justify-content: center;
        min-height: 58px;
    }

    .header-logo-link {
        width: 78px;
        min-width: 78px;
        min-height: 58px;
    }

    .header-logo-img {
        max-height: 58px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .account-dropdown {
        left: 0;
        right: auto;
        min-width: 340px;
    }

    .account-dropdown-split {
        grid-template-columns: 1fr;
    }

    .account-dropdown-col + .account-dropdown-col {
        border-left: 0;
        border-top: 1px solid #f1d9db;
    }
}
