:root {
    --theme-color: #7d59c3;
    --theme-light-color: #c4a6ec;
    --theme-lighter-color: #FEF5FD;
    --theme-hover-color: #743dc2;
    --border-color: #F4F3F4;
    --grey-border-color: #D1D1D8;
    --grey-color: #FCFCFC;
    --item-color: #686069;
    --border-radius: 0.5rem;
    --text-color: #19263d;
}

body {
    color: var(--text-color);
    font-size: 16px;
}

.badge {
    font-size: 13px;
    color: #FFFFFF;
    border-radius: 8px;
}

.top-fixed {
    position: fixed;
    width: 100%;
    z-index: 100000;
    top: 0;
    transition: transform .5s;
    -webkit-transition: -webkit-transform .5s;
}

.badge-theme {
    background-color: var(--theme-lighter-color);
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
}

.btn {
    border-radius: var(--border-radius);
    font-size: 16px;
}

.btn-primary {
    background-color: var(--theme-color);
    color: white;
    border: none;
}

.btn-secondary {
    background-color: var(--theme-lighter-color);
    color: var(--text-color);
    border: none;
}

.btn-link {
    color: var(--text-color);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--theme-color);
}

.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--theme-hover-color) !important;
}

.btn-secondary:focus,
.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus-visible {
    background-color: var(--theme-hover-color) !important;
}

.btn-purple {
    background-color: var(--theme-color);
    color: white;
}

.btn-purple:hover {
    border-color: var(--theme-hover-color);
    background-color: transparent;
    color: var(--theme-hover-color);
}

.bg-light-purple {
    background-color: var(--theme-light-color);
}

.bg-purple-outline {
    background-color: transparent;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
}

.slide-background {
    background-image: url('/img/mahida-slide.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right;
}

.btn-outline-primary {
    border-color: var(--theme-color);
    color: var(--item-color);
    background-color: var(--grey-color);
}

.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
    background-color: var(--theme-color) !important;
    color: #FFFFFF !important;
    border-color: var(--theme-color) !important;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--item-color);
    background-color: transparent;
}

.btn-outline-secondary.active {
    background-color: var(--theme-lighter-color);
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.btn-outline-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus-visible {
    background-color: var(--theme-lighter-color) !important;
    color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.overflow-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.overflow-auto::-webkit-scrollbar {
    display: none;
}

.card {
    border-width: 0
}

.card img {
    border-radius: var(--border-radius);
    height: 320px;
}

.card-body {
    padding: 1rem 0 0;
    text-align: start;
}

.no-style-link {
    text-decoration: none;
    color: inherit;
}

.text-purple {
    color: var(--theme-color);
}

.text-purple-light {
    color: #8e6ad5;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff1936;
    font-weight: 500;
    color: white;
    font-size: 0.75rem;
    padding: 0.5em 1.5em;
    z-index: 10;
    border-radius: 16px 0;
}

.custom-tooltip {
    --bs-tooltip-bg: var(--theme-hover-color);
    --bs-tooltip-color: var(--bs-white);
}

[class^="border-"], [class*=" border-"] {
    border-color: var(--grey-border-color) !important;
}

.form-control {
    color: var(--text-color);
    border-color: var(--grey-border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.form-control::placeholder {
    color: #b0b7c0;
}

.form-control:focus {
    color: var(--text-color);
    border: 1.5px solid var(--theme-color);
    outline: 0;
    box-shadow: none;
}

.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    border: 0;
    font-weight: 600;
    margin-left: 5px;
}

.dropdown .dropdown-toggle:hover,
.dropdown .dropdown-toggle:focus {
    color: var(--theme-color);
}

.dropdown .dropdown-toggle:hover img,
.dropdown .dropdown-toggle:focus img {
    border: 1px solid var(--theme-color);
}

.dropdown .dropdown-menu {
    --bs-dropdown-bg: #fff;
    --bs-dropdown-border-radius: 0.5rem;
    --bs-dropdown-border-color: #eee;
    --bs-dropdown-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown .dropdown-item {
    color: var(--text-color);
    border-radius: 0.25rem;
    margin: 8px 0;
}

.dropdown .dropdown-item:hover {
    background-color: var(--theme-lighter-color);
    color: var(--theme-color);
}

.list-group-item {
    border: 1px solid var(--grey-border-color) !important;
}

.list-group-item .img-box {
    background-color: #FAF8F9;
    padding: 10px;
    border-radius: var(--border-radius);
}

.bg-gray-light {
    background-color: #FAF8F9;
}

.address-section {
    background: #FAF8F9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.cart-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #fef6fe;
    border-radius: var(--border-radius);
    padding: 2px;
    width: min-content;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f3f4f6;
}

.quantity-btn.plus {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.quantity-btn.plus:hover {
    background: var(--theme-hover-color);
}

.quantity-display {
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

.price-original {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 18px;
}

.price-total {
    font-weight: 600;
    font-size: 18px;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.order-summary h5 {
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-total {
    font-weight: 500;
    font-size: 18px;
    border: 0;
}

.checkout-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}

.delete-btn {
    color: #ef4444;
    border: none;
    background: none;
    padding: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    color: #dc2626;
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
}

.empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    position: fixed;
    bottom: 0;
    right: 1rem;
    z-index: 10;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
}

.alert-dismissible .btn-close {
    position: relative;
    padding: 0;
    margin-left: 10px;
}

.input-caption {
    font-size: 14px;
    margin-bottom: 5px;
}

.be-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: var(--theme-lighter-color);
    color: var(--theme-color);
    margin-right: 1rem !important;
    padding: 10px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.pagination .page-item .page-link {
    border: none;
    border-radius: .5rem;
    margin: 0 .25rem;
    padding: .5em .75em;
    color: var(--theme-color);
    background: #f4eaff;
    transition: background .2s, color .2s;
}

.pagination .page-item.active .page-link {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

.pagination .page-item .page-link:hover:not(.disabled):not(.active) {
    background: #e0cfff;
    color: var(--theme-hover-color);
}

.card-stepper {
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-stepper .card-header,
.card-stepper .card-footer {
    background-color: var(--theme-lighter-color);
    border-color: var(--border-color);
}

.search-dropdown {
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1050;
    left: 0;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--theme-lighter-color);
}

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