:root {
    --bg-0: #050507;
    --bg-1: #0b0b10;
    --bg-2: #12121a;
    --panel: #171720;
    --panel-2: #1e1e2a;
    --panel-soft: rgba(255, 255, 255, 0.045);

    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);

    --text: #f7f7fb;
    --text-soft: #d8d8e2;
    --muted: #a7a7b8;
    --muted-dark: #777789;

    --red: #e10600;
    --red-2: #ff2d2d;
    --red-3: #ff6868;

    --blue: #4c8dff;
    --success: #20c997;
    --warning: #ffc107;
    --danger: #ff4d5a;

    --shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.26);

    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 30px;

    --container: 1280px;
}

/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at top left,
            rgba(225, 6, 0, 0.17),
            transparent 28%
        ),
        radial-gradient(
            circle at top right,
            rgba(76, 141, 255, 0.1),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            var(--bg-0),
            var(--bg-1) 42%,
            var(--bg-2)
        );
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

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

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

a:hover {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
}

.main-shell {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

/*
|--------------------------------------------------------------------------
| Header and navigation
|--------------------------------------------------------------------------
*/

.site-header {
    position: relative;
    z-index: 1050;
    overflow: visible;
    background:
        linear-gradient(
            180deg,
            rgba(15, 17, 21, 0.98),
            rgba(23, 27, 36, 0.98)
        );
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.header-top,
.nav-row,
.navbar {
    position: relative;
    z-index: 1051;
    overflow: visible !important;
}

.header-top {
    padding: 0.9rem 0;
}

.nav-row {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--line);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    padding: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.brand-name {
    color: var(--text);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.82rem;
}

.navbar {
    background: transparent !important;
}

.navbar-brand {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link.active::after {
    position: absolute;
    right: 1rem;
    bottom: 0.35rem;
    left: 1rem;
    height: 2px;
    content: "";
    background: linear-gradient(135deg, var(--red), var(--red-2));
    border-radius: 999px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    z-index: 2000;
    margin-top: 0.65rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.dropdown-menu.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background: rgba(225, 6, 0, 0.14);
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.btn {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-danger,
.bg-danger {
    background: linear-gradient(
        135deg,
        var(--red),
        var(--red-2)
    ) !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(225, 6, 0, 0.24);
}

.btn-danger:hover {
    box-shadow: 0 15px 28px rgba(225, 6, 0, 0.34);
}

.btn-outline-light {
    color: #fff;
    border-color: var(--line-strong);
}

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

.btn-outline-warning {
    color: #ffe58a;
    border-color: rgba(255, 193, 7, 0.45);
}

.btn-outline-warning:hover {
    color: #111;
    background: var(--warning);
}

.btn-outline-success {
    color: #b7ffe9;
    border-color: rgba(32, 201, 151, 0.4);
}

.btn-outline-success:hover {
    color: #07130f;
    background: var(--success);
}

.active-lang {
    color: #fff !important;
    background: var(--red) !important;
    border-color: var(--red) !important;
}

.pill-btn {
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| Hero and sections
|--------------------------------------------------------------------------
*/

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 4rem);
    background:
        linear-gradient(
            135deg,
            rgba(225, 6, 0, 0.18),
            rgba(0, 0, 0, 0.16)
        ),
        radial-gradient(
            circle at 70% 20%,
            rgba(255, 255, 255, 0.08),
            transparent 24%
        ),
        linear-gradient(180deg, #151521, #0f0f17);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero::before {
    position: absolute;
    inset: -2px;
    content: "";
    background:
        radial-gradient(
            circle at 20% 22%,
            rgba(255, 45, 45, 0.12),
            transparent 18%
        ),
        radial-gradient(
            circle at 82% 28%,
            rgba(76, 141, 255, 0.12),
            transparent 16%
        );
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-panel {
    padding: 1.2rem;
    background: rgba(8, 8, 12, 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--red-3);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.small-muted {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.card {
    overflow: hidden;
    color: var(--text);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.015)
        );
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1rem;
}

.card-hover {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 45, 45, 0.3) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

/*
|--------------------------------------------------------------------------
| Products
|--------------------------------------------------------------------------
*/

.product-card {
    height: 100%;
}

.product-media,
.ratio-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 45, 45, 0.1),
            transparent 35%
        ),
        linear-gradient(180deg, #191926, #101018);
    border-bottom: 1px solid var(--line);
}

.product-media img,
.ratio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background:
        linear-gradient(
            135deg,
            rgba(225, 6, 0, 0.18),
            rgba(0, 0, 0, 0.1)
        ),
        linear-gradient(180deg, #1a1a27, #101017);
}

.product-body {
    padding: 1rem;
}

.product-title {
    margin-bottom: 0.45rem;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.product-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.price {
    font-size: 1.2rem;
    font-weight: 900;
}

.price-old {
    margin-right: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: line-through;
}

/*
|--------------------------------------------------------------------------
| Badges and alerts
|--------------------------------------------------------------------------
*/

.badge {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 800;
}

.badge-featured {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 10px 24px rgba(225, 6, 0, 0.25);
}

.badge-soft {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.alert {
    border: 1px solid var(--line);
    border-radius: 14px;
}

.alert-warning {
    color: #ffe58a;
    background: rgba(255, 193, 7, 0.08);
}

.alert-danger {
    color: #ffb3b3;
    background: rgba(225, 6, 0, 0.1);
}

.alert-success {
    color: #b7ffe9;
    background: rgba(32, 201, 151, 0.1);
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-label {
    color: var(--text);
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 46px;
    color: var(--text) !important;
    background-color: #0f0f17 !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--radius-sm);
    box-shadow: none !important;
    color-scheme: dark;
}

.form-control:focus,
.form-select:focus {
    color: #fff !important;
    background-color: #11111a !important;
    border-color: rgba(255, 45, 45, 0.65) !important;
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.14) !important;
}

.form-control::placeholder {
    color: var(--muted-dark);
}

/*
|--------------------------------------------------------------------------
| This fixes white dropdown text/background.
|--------------------------------------------------------------------------
*/

select.form-select {
    color: #fff !important;
    background-color: #0f0f17 !important;
    color-scheme: dark;
}

select.form-select option,
select.form-select optgroup {
    color: #fff !important;
    background-color: #111117 !important;
}

select.form-select option:checked {
    color: #fff !important;
    background-color: var(--red) !important;
}

select.form-select option:hover {
    color: #fff !important;
    background-color: #2a1115 !important;
}

.form-text {
    color: var(--muted) !important;
}

.input-group-text {
    color: var(--text);
    background: #111117;
    border-color: var(--line-strong);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/

.table {
    margin-bottom: 0;
    color: var(--text);
    border-color: var(--line) !important;
}

.table-dark {
    --bs-table-bg: #101018;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: #14141d;
    --bs-table-striped-color: var(--text);
}

.table thead th {
    padding: 1rem 0.9rem;
    color: #fff;
    background: #12121b;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
}

.table td,
.table th {
    vertical-align: middle;
    border-color: var(--line);
}

.table-responsive {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.footer {
    margin-top: 3rem;
    padding: 0;
    color: var(--muted);
    background: rgba(8, 8, 12, 0.72);
    border-top: 1px solid var(--line);
}

.footer-top {
    padding: 1.75rem 0 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    padding: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.footer-title {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.footer-subtitle {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-desc {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.75;
}

.footer-heading {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    content: "";
    background: linear-gradient(135deg, var(--red), var(--red-2));
    border-radius: 999px;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    transition: 0.2s ease;
}

.footer-links a:hover {
    padding-left: 4px;
    color: #fff;
}

.footer-bottom {
    padding: 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--line);
}

/*
|--------------------------------------------------------------------------
| Utilities
|--------------------------------------------------------------------------
*/

.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.social-icons a,
.footer-social-icons a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: 0.2s ease;
}

.social-icons a:hover,
.footer-social-icons a:hover {
    transform: translateY(-2px);
    background: rgba(225, 6, 0, 0.12);
    border-color: rgba(255, 45, 45, 0.35);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.divider {
    height: 1px;
    background: var(--line);
}

.break-anywhere {
    overflow-wrap: anywhere;
}

.rtl-mode {
    direction: rtl;
    text-align: right;
}

.ltr-mode {
    direction: ltr;
    text-align: left;
}

/*
|--------------------------------------------------------------------------
| Order details overrides
|--------------------------------------------------------------------------
*/

.order-details-page .bg-body,
.order-details-page .bg-body h1,
.order-details-page .bg-body h2,
.order-details-page .bg-body h3,
.order-details-page .bg-body h4,
.order-details-page .bg-body h5,
.order-details-page .bg-body h6,
.order-details-page .bg-body p,
.order-details-page .bg-body span,
.order-details-page .bg-body div,
.order-details-page .bg-body strong,
.order-details-page .bg-body label,
.order-details-page .bg-body small {
    color: #000 !important;
}

.order-details-page .items-card,
.order-details-page .items-card h1,
.order-details-page .items-card h2,
.order-details-page .items-card h3,
.order-details-page .items-card h4,
.order-details-page .items-card h5,
.order-details-page .items-card h6,
.order-details-page .items-card p,
.order-details-page .items-card span,
.order-details-page .items-card div,
.order-details-page .items-card strong,
.order-details-page .items-card label,
.order-details-page .items-card small {
    color: #000 !important;
}

.order-details-page .text-muted {
    color: #555 !important;
}

.order-details-page .bg-dark,
.order-details-page .bg-dark h1,
.order-details-page .bg-dark h2,
.order-details-page .bg-dark h3,
.order-details-page .bg-dark h4,
.order-details-page .bg-dark h5,
.order-details-page .bg-dark p,
.order-details-page .bg-dark span,
.order-details-page .bg-dark div {
    color: #fff !important;
}

.order-details-page .btn-danger {
    color: #fff !important;
}

.order-details-page .badge {
    color: #fff !important;
}

.order-details-page .badge.bg-warning {
    color: #000 !important;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {
    .main-shell {
        padding-top: 1rem;
    }

    .hero {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }
}

@media (max-width: 767.98px) {
    .card-body {
        padding: 0.95rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .dropdown-menu {
        width: 100%;
        min-width: 12rem;
    }

    .table thead th,
    .table td {
        white-space: nowrap;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.7rem 1rem;
    color: #fff;
    background: #e10600;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: relative;
    z-index: 1050;
    background:
        linear-gradient(
            180deg,
            rgba(15, 17, 21, 0.98),
            rgba(23, 27, 36, 0.98)
        );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.header-top {
    padding: 0.85rem 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 7px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
}

.brand-text {
    display: block;
    min-width: 0;
}

.brand-name,
.brand-tag {
    display: block;
    overflow-wrap: anywhere;
}

.brand-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1.1;
}

.brand-tag {
    margin-top: 0.25rem;
    color: #a7a7b8;
    font-size: 0.72rem;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-cart-button,
.login-link,
.register-link,
.account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.header-cart-button {
    color: #fff;
    background: linear-gradient(135deg, #e10600, #ff2d2d);
}

.header-cart-button b {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding: 0 0.3rem;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    font-size: 0.68rem;
}

.language-switcher {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.language-switcher a {
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    color: #a7a7b8;
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
}

.language-switcher a.active,
.language-switcher a:hover {
    color: #fff;
    background: #e10600;
}

.account-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.account-avatar {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #fff;
    background: #e10600;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.account-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    min-width: 220px;
    padding: 0.5rem;
    color: #fff;
    background: #171720;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.account-header {
    padding: 0.65rem 0.75rem;
    color: #ff6868;
    font-size: 0.78rem;
    font-weight: 900;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    color: #d8d8e2;
    border-radius: 8px;
    font-size: 0.8rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background: rgba(225, 6, 0, 0.15);
}

.dropdown-item i {
    width: 18px;
    color: #ff6868;
}

.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    color: #ffb3b3 !important;
    background: transparent;
    border: 0;
    text-align: start;
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.login-link {
    color: #d8d8e2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.register-link {
    color: #b7ffe9;
    border: 1px solid rgba(32, 201, 151, 0.35);
}

.login-link:hover,
.register-link:hover,
.account-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.navigation-row {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navigation {
    min-height: 48px;
    padding: 0;
}

.main-navigation .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.25rem;
}

.main-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 800;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #fff !important;
    background: rgba(225, 6, 0, 0.15);
}

.main-navigation .nav-link.active {
    box-shadow: inset 0 -2px #ff2d2d;
}

.navigation-toggle {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .navigation-toggle {
    margin-right: auto;
    margin-left: 0;
}

@media (max-width: 991px) {
    .main-navigation .navbar-nav {
        align-items: stretch;
        padding: 0.75rem 0;
    }

    .main-navigation .nav-link {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .header-top-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-link {
        width: 100%;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .account-name {
        display: none;
    }

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

@media (max-width: 420px) {
    .brand-logo {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tag {
        font-size: 0.65rem;
    }

    .header-cart-button span,
    .login-link,
    .register-link {
        font-size: 0;
    }

    .header-cart-button i,
    .login-link i,
    .register-link i {
        font-size: 1rem;
    }

    .header-cart-button b {
        font-size: 0.65rem;
    }
}