body {
    background: linear-gradient(155deg, #f2ece6 0%, #fdfaf6 50%, #eee2d9 100%);
    min-height: 100vh;
    font-family: "Inter", "Helvetica", Arial, sans-serif;
    color: #3b2a23;
}

a {
    text-decoration: none;
}

.card-shadow {
    box-shadow: 0 20px 45px rgba(73, 34, 22, 0.08);
    border: 1px solid rgba(194, 169, 152, 0.6);
    border-radius: 1.35rem;
    background: #ffffff;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.75rem;
    margin: 1.5rem auto 2rem;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: 0 18px 32px rgba(73, 34, 22, 0.08);
    border: 1px solid rgba(194, 169, 152, 0.6);
    width: min(1530px, calc(100% - 2rem));
}

.app-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
}

.app-navbar .navbar-brand {
    color: #492216;
    font-weight: 700;
    font-size: 1.05rem;
}

.app-navbar .navbar-brand:hover {
    color: #7a3c27;
}

.app-navbar .nav-link {
    color: #5c524e;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.app-navbar .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

@media (min-width: 992px) {
    .app-navbar .navbar-collapse {
        flex-basis: auto;
        margin-top: 0;
    }
}

.app-navbar .navbar-toggler {
    border: 1px solid rgba(194, 169, 152, 0.9);
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(73, 34, 22, 0.15);
}

.app-navbar .navbar-toggler-icon {
    filter: invert(27%) sepia(23%) saturate(1260%) hue-rotate(337deg) brightness(91%) contrast(91%);
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
    color: #492216;
    background: rgba(73, 34, 22, 0.12);
}

.btn-rounded {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-weight: 600;
}

.btn-rounded.btn-outline-secondary {
    border-color: rgba(73, 34, 22, 0.22);
    color: #3b2a23;
}

.btn-rounded.btn-outline-secondary:hover,
.btn-rounded.btn-outline-secondary:focus {
    background: #492216;
    border-color: #492216;
    color: #ffffff;
}

.btn-rounded.btn-outline-danger {
    border-color: rgba(197, 86, 88, 0.45);
    color: #a03a40;
    background: rgba(197, 86, 88, 0.08);
}

.btn-rounded.btn-outline-danger:hover,
.btn-rounded.btn-outline-danger:focus {
    background: #c54c50;
    border-color: #c54c50;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(197, 86, 88, 0.18);
}

.btn-rounded.btn-outline-danger.disabled,
.btn-rounded.btn-outline-danger:disabled {
    background: rgba(197, 86, 88, 0.08);
    border-color: rgba(197, 86, 88, 0.38);
    color: rgba(160, 58, 64, 0.6);
    box-shadow: none;
    pointer-events: none;
}

.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 1.25rem;
    border: 1px solid rgba(194, 169, 152, 0.55);
    background: #ffffff;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(73, 34, 22, 0.14);
}

.product-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    background: rgba(73, 34, 22, 0.06);
}

.product-thumb-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 1rem;
    background: rgba(73, 34, 22, 0.08);
    border: 1px dashed rgba(73, 34, 22, 0.15);
    color: #492216;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-thumb-sm {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 1rem;
    background: rgba(73, 34, 22, 0.06);
    border: 1px solid rgba(194, 169, 152, 0.5);
}

.product-thumb-fallback {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: rgba(73, 34, 22, 0.08);
    border: 1px solid rgba(194, 169, 152, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #492216;
    text-transform: uppercase;
}

.product-card .btn {
    border-radius: 1.35rem;
    font-weight: 600;
}

.variation-pill {
    border-radius: 1.35rem;
    border: 1px solid rgba(73, 34, 22, 0.18);
    padding: 0.4rem 0.9rem;
    transition: all 0.2s ease;
    background: rgba(73, 34, 22, 0.06);
    color: #492216;
    font-weight: 500;
}

.variation-pill:hover,
.variation-pill.active {
    background: #492216;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 20px rgba(73, 34, 22, 0.22);
}

.cart-sidebar {
    position: sticky;
    top: 2.25rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-radius: 1.5rem;
    border: 1px solid rgba(194, 169, 152, 0.6);
    background: #ffffff;
}

.cart-item {
    background-color: rgba(246, 239, 232, 0.8);
    border: 1px solid rgba(194, 169, 152, 0.55);
    border-radius: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.cart-item .btn-group .btn {
    border-radius: 999px;
    border-color: rgba(194, 169, 152, 0.8);
    color: #5c524e;
}

.cart-item .btn-group .btn:hover {
    background: #492216;
    color: #ffffff;
    border-color: #492216;
}

.cart-item input[type="number"] {
    border-radius: 999px;
    border: 1px solid rgba(194, 169, 152, 0.9);
    background: #ffffff;
    color: #3b2a23;
}

.cart-item-remove {
    color: #c54c50;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.cart-summary-highlight {
    background: linear-gradient(135deg, rgba(73, 34, 22, 0.1), rgba(194, 169, 152, 0.22));
    border-radius: 1.1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(73, 34, 22, 0.14);
}

.badge.bg-light.text-primary {
    background: rgba(73, 34, 22, 0.1)!important;
    color: #492216!important;
}

.btn-ghost {
    border-radius: 1.35rem;
    padding: 0.45rem 1.15rem;
    border: 1px solid rgba(194, 169, 152, 0.85);
    color: #3b2a23;
    background: #ffffff;
    transition: all 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: #ffffff;
    background: #492216;
    border-color: #492216;
    box-shadow: 0 14px 26px rgba(73, 34, 22, 0.22);
}

.search-input {
    border-radius: 1.5rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid rgba(194, 169, 152, 0.85);
    box-shadow: inset 0 1px 2px rgba(73, 34, 22, 0.05);
    background: #ffffff;
    color: #492216;
}

.search-input:focus {
    border-color: rgba(73, 34, 22, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(73, 34, 22, 0.12);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.6rem;
    border: 1px solid rgba(194, 169, 152, 0.55);
}

.stats-pill {
    background: rgba(73, 34, 22, 0.08);
    border-radius: 1.25rem;
    padding: 0.75rem 1.2rem;
    min-width: 90px;
}

.quick-settings {
    background: rgba(253, 249, 244, 0.94);
    border-radius: 1.5rem;
    border: 1px solid rgba(194, 169, 152, 0.65);
}

.quick-settings strong {
    color: #492216;
}

.logo-nav {
    width: 150px;
    max-height: 64px;
    object-fit: contain;
    background: transparent;
}

.logo-preview {
    width: 160px;
    max-height: 80px;
    object-fit: contain;
    background: rgba(73, 34, 22, 0.06);
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(194, 169, 152, 0.5);
}

.form-section-title {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(73, 34, 22, 0.55);
    font-weight: 600;
}

.product-variation-chip {
    border-radius: 1rem;
    border: 1px solid rgba(194, 169, 152, 0.65);
    padding: 0.35rem 0.75rem;
    background: rgba(73, 34, 22, 0.04);
    font-size: 0.85rem;
    color: #492216;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 22px 42px rgba(73, 34, 22, 0.12);
}

.login-card h1 {
    font-weight: 700;
    font-size: 1.6rem;
    color: #492216;
}

.login-card .form-control {
    border-radius: 1.35rem;
    border: 1px solid rgba(194, 169, 152, 0.9);
    padding: 0.75rem 1.1rem;
}

.login-card .btn-primary {
    background: #492216;
    border-color: #492216;
    border-radius: 1.5rem;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
}

.login-card .btn-primary:hover,
.login-card .btn-primary:focus {
    background: #7a3c27;
    border-color: #7a3c27;
}

.form-check-input:checked {
    background-color: #492216;
    border-color: #492216;
}

.table thead {
    background: rgba(73, 34, 22, 0.08);
}

.table thead th {
    border-bottom: none;
    color: #492216;
    font-weight: 600;
}

.badge-soft-sale {
    background: rgba(197, 86, 88, 0.15);
    color: #c54c50;
    border-radius: 1rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
}

.app-shell {
    width: min(1530px, calc(100% - 2rem));
    margin: 0 auto 3rem;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.price-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(73, 34, 22, 0.08);
    color: #492216;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
}

.btn-primary {
    background-color: #492216;
    border-color: #492216;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #7a3c27;
    border-color: #7a3c27;
}
