/**
 * Frontend Modern Theme for Quincaillerie
 * Based on backend admin.css design system
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FDBA74;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== Cards ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

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

.btn-success:hover:not(:disabled) {
    background: #059669;
    color: white;
}

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

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-dark {
    background: var(--bg-gray);
    color: white;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.alert i {
    font-size: 18px;
}

/* ===== Product Cards ===== */
.product-card .card {
    height: 100%;
    transition: var(--transition);
}

.product-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.product-title {
    font-size: 0.95rem;
    line-height: 1.3;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--text-primary);
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.product-rating i {
    color: #FFC107;
}

.product-rating .count {
    color: var(--text-muted);
}

.product-badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    left: 10px;
    background: var(--danger);
    color: white;
}

.product-badge.new {
    right: 10px;
    background: var(--success);
    color: white;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ===== Stock Badge ===== */
.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Filters ===== */
.filters-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.filter-item input {
    width: 16px;
    height: 16px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ===== Cart Table ===== */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-table tbody tr:hover {
    background: var(--bg-light);
}

.cart-table tbody td {
    padding: 16px;
    vertical-align: middle;
}

.cart-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-product-name {
    font-weight: 500;
    color: var(--text-primary);
}

.cart-product-ref {
    font-size: 12px;
    color: var(--text-muted);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 500;
    background: var(--bg-white);
}

.quantity-input:focus {
    outline: none;
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.free-shipping {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* ===== Checkout Steps ===== */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.checkout-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.step-number.active {
    background: var(--primary-color);
    color: white;
}

.step-number.completed {
    background: var(--success);
    color: white;
}

.step-title {
    font-weight: 500;
}

.step-title.active {
    color: var(--primary-color);
}

.address-card {
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--primary-color);
}

.address-card.selected {
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
}

.address-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ===== Image Gallery ===== */
.image-gallery {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* ===== Reviews ===== */
.reviews-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.average-rating {
    text-align: center;
}

.rating-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    rating-count {
        font-size: 14px;
        color: var(--text-muted);
    }
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin: 8px 0;
}

.review-stars i {
    color: #FFC107;
    font-size: 14px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* ===== Wishlist ===== */
.wishlist-item {
    transition: var(--transition);
}

.wishlist-item:hover {
    transform: translateY(-3px);
}

.wishlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.wishlist-btn {
    flex: 1;
    font-size: 13px;
}

.wishlist-btn-add {
    justify-content: center;
    gap: 6px;
}

.wishlist-btn-remove {
    max-width: 40px;
    padding: 8px;
}

/* ===== Order History ===== */
.order-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.order-number {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.order-date {
    font-size: 13px;
    color: var(--text-muted);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.order-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.order-status.shipped {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-items {
    padding: 10px 0;
}

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.order-item-qty {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Search ===== */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion:hover {
    background: var(--bg-light);
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    overflow: hidden;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    font-size: 15rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-icon.primary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

.feature-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.feature-icon.warning {
    background: rgba(245, 158, 11,  Pushback(0.1);
    color: var(--warning);
}

.feature-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Category Cards ===== */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.section-link {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    color: var(--primary-dark);
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    /* animation: fadeIn 0.4s ease; */ /* Disabled - no fade-in animation */
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .filters-sidebar {
        position: relative;
        top: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .checkout-steps {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .search-btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: flex;
        flex-direction: column;
        border-bottom: 2px solid var(--border-color);
    }

    .cart-table tbody td {
        padding: 10px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
