/* =============================================
   LI Маркет - Component Styles
   ============================================= */


/* Product Card Component */
.product-card .card-body {
    padding: 1.3rem 1.1rem 1.1rem 1.1rem;
}

/* Favorite button */
.favorite-btn {
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    backdrop-filter: blur(4px);
}
.favorite-btn:hover {
    transform: scale(1.15);
}
.favorite-btn:active {
    transform: scale(0.95);
}

/* Breadcrumbs mobile */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.85rem;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
}

.product-card .add-to-cart-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    background: var(--accent-warm);
    box-shadow: 0 2px 8px rgba(196,150,10,0.10);
}

.product-card .add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(107,127,94,0.18);
    transform: scale(1.10);
}

.product-card .add-to-cart-btn:active {
    transform: scale(0.96);
}

.product-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}


/* Price styling */
.product-card .fw-bold.fs-5 {
    color: var(--accent-color);
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}


/* Order Card Component */
.order-card {
    transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.order-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-hover);
}


/* Review Component */
.review-card {
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1);
    background: var(--cream-light);
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
}

.review-card .star-rating {
    font-size: 0.9rem;
}

/* Cart Item */

.cart-qty-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 12px;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    background: var(--accent-warm);
    color: var(--primary-color);
    border: 1.5px solid var(--accent-color);
}

.cart-qty-btn:hover {
    transform: scale(1.08);
    background: var(--primary-color);
    color: #fff;
}

.cart-qty-input {
    font-weight: 600;
}


/* Filter Sidebar */
.filters-card .form-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.2px;
}

/* Modal */
.modal-content {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .product-card .card-body {
        padding: 0.7rem 0.5rem 0.9rem 0.5rem;
    }
    .category-section-card {
        margin-bottom: 1.1rem;
    }
    .btn-primary, .btn-accent {
        font-size: 1rem;
        padding: 0.7em 1.2em;
    }
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.modal-header {
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

/* Empty State */
.empty-state {
    padding: 3.5rem 1rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.4;
    color: var(--text-muted-warm);
}

.empty-state p {
    color: var(--text-muted-warm);
    font-size: 1rem;
    margin-top: 0.75rem;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Profile Card */
.profile-card .card-body {
    padding: 1.75rem;
}

/* Statistics Card */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Carousel */
.carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 1rem;
}

/* Table Styles */
.table thead th {
    background: var(--cream-light);
    border-bottom: 2px solid #E8E0D5;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.88rem;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: var(--primary-light);
}

.table td {
    vertical-align: middle;
}

/* Input Group */
.input-group .form-control {
    border-radius: 8px;
}

.input-group .btn {
    border-radius: 8px;
}

/* Search Bar in Navbar */
.navbar .input-group .form-control {
    border-radius: 24px 0 0 24px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    font-size: 0.9rem;
    height: 40px;
}

.navbar .input-group .form-control::placeholder {
    color: #A09888;
}

.navbar .input-group .form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.navbar .input-group .btn {
    border-radius: 0 24px 24px 0;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    height: 40px;
    transition: all 0.15s ease;
}

.navbar .input-group .btn:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Checkout */
.checkout-summary {
    position: sticky;
    top: 80px;
}

/* Courier Panel */
.courier-order-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.courier-order-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-hover);
}

/* ========== Text Utilities ========== */
.text-muted {
    color: var(--text-muted-warm) !important;
}

/* ========== Image Consistency ========== */
img {
    max-width: 100%;
    height: auto;
}

/* Product detail page image */
.product-detail-img {
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* ========== Pagination ========== */
.page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: none;
    color: var(--text-dark);
    transition: all 0.15s ease;
}

.page-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== Tooltips ========== */
.tooltip-inner {
    border-radius: 8px;
    font-size: 0.83rem;
    padding: 0.4rem 0.7rem;
}

.courier-order-card:hover {
    transform: translateX(4px);
}

/* Auth Pages */
.auth-card {
    max-width: 450px;
    margin: 2rem auto;
}

.auth-card .card {
    border-radius: 20px;
    overflow: hidden;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
}

/* Tooltip */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

/* Status Timeline */
.status-timeline {
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.status-timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.status-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Price Display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-old {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.9em;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .stat-card .display-4 {
        font-size: 1.8rem;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 576px) {
    .product-card .add-to-cart-btn {
        width: 30px;
        height: 30px;
    }

    .cart-qty-btn {
        width: 28px;
        height: 28px;
    }
}
