/* ============================================================
   SHOP STYLES - SUR SHOP (FINAL)
   ============================================================ */

/* ========== GENERAL ========== */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

@media (max-width: 768px) {
    .shop-container { padding: 16px 14px 40px; }
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(28, 57, 187, 0.06) 0%, rgba(234, 179, 8, 0.04) 100%);
    border-radius: 28px;
    padding: 32px 36px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        border-radius: 22px;
        margin-bottom: 28px;
    }
}

.header-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 12px 30px -8px rgba(28, 57, 187, 0.4);
}

.header-icon svg { width: 36px; height: 36px; }

@media (max-width: 768px) {
    .header-icon { width: 60px; height: 60px; border-radius: 18px; }
    .header-icon svg { width: 30px; height: 30px; }
}

.shop-header .title-wrapper { flex: 1; }

.shop-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .shop-header h1 { font-size: 24px; }
}

.shop-header p { color: var(--text-muted); font-size: 14px; }

.cart-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cart-header-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -8px rgba(28, 57, 187, 0.3);
}

.cart-header-btn svg { width: 20px; height: 20px; stroke: currentColor; }

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.section-title .emoji { font-size: 26px; }
.section-title .count-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 8px;
}

/* ========== CATEGORIES ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 36px; }
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px -12px rgba(28, 57, 187, 0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(28, 57, 187, 0.1) 0%, rgba(28, 57, 187, 0.05) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.05) rotate(-3deg);
}

.category-icon svg { width: 30px; height: 30px; }
.category-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.category-card p { font-size: 12px; color: var(--text-muted); }

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 36px; } }
@media (max-width: 480px) { .products-grid { gap: 10px; } }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px -12px rgba(28, 57, 187, 0.3);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-input);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img { transform: scale(1.08); }

.product-badge {
    position: absolute;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.product-badge.discount { top: 12px; right: 12px; background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-badge.new { top: 12px; right: 12px; background: linear-gradient(135deg, #10b981, #059669); }
.product-badge.featured { top: 12px; left: 12px; background: linear-gradient(135deg, #f59e0b, #d97706); }
.product-badge.out-of-stock { top: 12px; right: 12px; background: linear-gradient(135deg, #6b7280, #4b5563); }

.product-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (max-width: 768px) { .product-info { padding: 12px 14px 14px; } }

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) { .product-name { font-size: 13px; } }

.product-category-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.current-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    direction: ltr;
}

@media (max-width: 768px) { .current-price { font-size: 14px; } }

.old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    direction: ltr;
}

.stock-indicator {
    font-size: 11px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-indicator.in-stock { color: #10b981; }
.stock-indicator.out-of-stock { color: #ef4444; }

/* ========== QUICK ADD BTN ========== */
.quick-add-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    box-shadow: 0 8px 20px -6px rgba(28, 57, 187, 0.5);
    z-index: 3;
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quick-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px -6px rgba(28, 57, 187, 0.6);
}

.quick-add-btn svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .quick-add-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }
    .quick-add-btn svg { width: 16px; height: 16px; }
}

/* ========== BACK LINK ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.back-link svg { width: 18px; height: 18px; }

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.filter-bar .result-count { font-size: 13px; color: var(--text-muted); }
.filter-bar .result-count strong { color: var(--text-primary); font-weight: 700; }

.sort-select {
    padding: 9px 20px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 57, 187, 0.1);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(28, 57, 187, 0.3);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 16px -6px rgba(28, 57, 187, 0.4);
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.page-arrow { display: flex; align-items: center; gap: 6px; }
.page-arrow svg { width: 16px; height: 16px; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    grid-column: 1 / -1;
}

.empty-state svg {
    stroke: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.empty-state .shop-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px -6px rgba(28, 57, 187, 0.5);
}

.empty-state .shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -6px rgba(28, 57, 187, 0.6);
}

/* ========== CART PAGE ========== */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.cart-header h1 { font-size: 28px; font-weight: 700; }
.cart-header .badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover { border-color: var(--primary); }

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .category { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover { background: var(--primary); color: white; }
.quantity-display { font-weight: 600; min-width: 24px; text-align: center; }

.remove-btn {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 30px;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.cart-summary {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-top: 24px;
}

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

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

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 16px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: 16px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(28, 57, 187, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.empty-cart svg { stroke: var(--text-muted); opacity: 0.5; margin-bottom: 20px; }
.empty-cart h3 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

.shop-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(28, 57, 187, 0.4);
}

@media (max-width: 768px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-image { width: 60px; height: 60px; }
    .cart-item-actions { width: 100%; justify-content: flex-end; }
}

/* ========== CHECKOUT PAGE ========== */
.checkout-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    animation: fadeIn 0.4s ease;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.checkout-header .icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px -6px rgba(28, 57, 187, 0.4);
}

.checkout-header .icon svg { width: 26px; height: 26px; }
.checkout-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.checkout-header .subtitle { font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
    .checkout-header h1 { font-size: 22px; }
    .checkout-header .icon { width: 46px; height: 46px; }
    .checkout-header .icon svg { width: 22px; height: 22px; }
}

.checkout-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease;
}

@media (max-width: 768px) {
    .checkout-card { padding: 22px 18px; border-radius: 18px; }
}

.form-section { margin-bottom: 28px; }
.form-section:last-of-type { margin-bottom: 0; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.form-section-title svg { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.form-group label .required { color: #ef4444; }

.input-wrapper { position: relative; }
.input-wrapper .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    pointer-events: none;
    transition: stroke 0.2s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    box-sizing: border-box;
    direction: rtl;
}

.form-group textarea { padding: 14px 16px; resize: vertical; min-height: 85px; line-height: 1.7; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(28, 57, 187, 0.1);
    background: var(--bg-card);
}

.form-group input:focus + .input-icon { stroke: var(--primary); }

.form-group input[type="tel"],
.form-group input[type="text"] {
    direction: ltr;
    text-align: right;
}

.order-summary {
    background: linear-gradient(135deg, rgba(28, 57, 187, 0.04) 0%, rgba(28, 57, 187, 0.01) 100%);
    border: 1.5px solid rgba(28, 57, 187, 0.12);
    border-radius: 18px;
    padding: 20px 22px;
    margin-top: 24px;
}

@media (max-width: 768px) { .order-summary { padding: 16px; } }

.order-summary .summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(28, 57, 187, 0.12);
}

.order-summary .summary-title svg { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; }

.order-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.order-summary .row.total {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1.5px dashed rgba(28, 57, 187, 0.2);
}

.order-summary .row.total .value { font-size: 19px; color: var(--primary); }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    margin-top: 24px;
    box-shadow: 0 6px 20px -6px rgba(16, 185, 129, 0.5);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.submit-btn:hover::before { left: 100%; }

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -6px rgba(16, 185, 129, 0.6);
}

.submit-btn:active { transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.submit-btn svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }

.payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px 16px;
    background: var(--bg-input);
    border-radius: 12px;
}

.payment-note svg { width: 14px; height: 14px; stroke: #10b981; flex-shrink: 0; }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== ORDERS PAGE ========== */
.orders-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.orders-header h1 { font-size: 28px; font-weight: 700; }
.orders-header h1 span { font-size: 16px; color: var(--text-muted); font-weight: 400; }

.status-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.status-filter-btn {
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.status-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.status-filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.status-filter-btn .count { background: rgba(255, 255, 255, 0.2); padding: 0 8px; border-radius: 30px; font-size: 11px; }
.status-filter-btn.active .count { background: rgba(255, 255, 255, 0.3); }

.order-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.order-card:hover { border-color: var(--primary-soft); transform: translateY(-2px); }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.order-id { font-size: 16px; font-weight: 600; }
.order-id .hash { color: var(--text-muted); font-weight: 400; }
.order-date { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.order-date svg { width: 14px; height: 14px; }

.order-status-badge { padding: 4px 14px; border-radius: 30px; font-size: 12px; font-weight: 600; }
.order-status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.order-status-badge.paid { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.order-status-badge.processing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.order-status-badge.shipped { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.order-status-badge.delivered { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.order-status-badge.cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.order-items { padding: 12px 0; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.order-item:last-child { border-bottom: none; }
.order-item .name { font-size: 14px; }
.order-item .name .qty { color: var(--text-muted); font-size: 12px; }
.order-item .price { font-weight: 600; color: var(--primary); font-size: 14px; }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.order-total { font-size: 18px; font-weight: 700; color: var(--primary); }
.order-total span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.order-actions { display: flex; gap: 10px; }

.order-actions .btn-detail {
    padding: 8px 20px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.order-actions .btn-detail:hover { background: var(--primary-light); transform: translateY(-2px); }

.order-actions .btn-pay {
    padding: 8px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-actions .btn-pay:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }

.order-actions .btn-cancel {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: 30px;
    color: var(--danger);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-actions .btn-cancel:hover { background: var(--danger); color: white; }

@media (max-width: 768px) {
    .order-card { padding: 16px; }
    .order-card-header { flex-direction: column; align-items: flex-start; }
    .order-card-footer { flex-direction: column; align-items: stretch; }
    .order-actions { flex-direction: column; }
    .order-actions .btn-detail, .order-actions .btn-pay, .order-actions .btn-cancel { text-align: center; justify-content: center; }
    .status-filters { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .status-filter-btn { flex-shrink: 0; font-size: 12px; padding: 5px 12px; }
}

@media (max-width: 480px) {
    .orders-header h1 { font-size: 22px; }
    .order-item { flex-direction: column; align-items: flex-start; gap: 4px; }
    .order-total { font-size: 16px; }
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

@media (max-width: 768px) { .product-container { padding: 16px 14px 40px; } }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.product-detail::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(28, 57, 187, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
        border-radius: 24px;
    }
}

.product-image-wrapper { position: relative; z-index: 2; }

.product-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-input);
}

.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-image:hover img { transform: scale(1.05); }

.discount-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px -6px rgba(239, 68, 68, 0.5);
    z-index: 3;
}

.product-info { position: relative; z-index: 2; display: flex; flex-direction: column; }

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(28, 57, 187, 0.08);
    border: 1px solid rgba(28, 57, 187, 0.15);
    border-radius: 30px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

.product-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); line-height: 1.3; }

@media (max-width: 768px) { .product-info h1 { font-size: 24px; } }

.product-price-section { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.current-price { font-size: 32px; font-weight: 900; color: var(--primary); direction: ltr; }
@media (max-width: 768px) { .current-price { font-size: 26px; } }

.old-price { font-size: 18px; color: var(--text-muted); text-decoration: line-through; direction: ltr; }

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    align-self: flex-start;
}

.stock-status.in-stock { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.stock-status.out-of-stock { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.stock-status svg { width: 18px; height: 18px; }

.product-description-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.product-description-title svg { width: 20px; height: 20px; stroke: var(--primary); }
.product-description { color: var(--text-secondary); line-height: 1.9; margin-bottom: 28px; font-size: 14px; }

.quantity-section { margin-bottom: 20px; }
.quantity-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }

.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 6px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { background: var(--primary); color: white; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.quantity-input {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-input:focus { outline: none; }

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px -6px rgba(28, 57, 187, 0.5);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover::before { left: 100%; }
.add-to-cart-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -6px rgba(28, 57, 187, 0.6); }
.add-to-cart-btn:active { transform: translateY(-1px); }
.add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.add-to-cart-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.related-products { margin-top: 48px; }
.related-products h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 22px; color: var(--text-primary); }
.related-products h2 svg { width: 24px; height: 24px; stroke: var(--primary); }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 16px 40px -12px rgba(28, 57, 187, 0.3); }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.related-card:hover img { transform: scale(1.08); }
.related-card .info { padding: 14px; }
.related-card .name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-card .price { font-size: 14px; font-weight: 800; color: var(--primary); direction: ltr; }

@media (max-width: 768px) {
    .related-card .name { font-size: 13px; }
    .related-card .price { font-size: 13px; }
}

/* ========== FLOATING CART BUTTON ========== */
.floating-cart-btn {
    position: fixed;
    bottom: 110px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px -6px rgba(28, 57, 187, 0.6);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatCart 3s ease-in-out infinite;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px -6px rgba(28, 57, 187, 0.8);
    animation-play-state: paused;
}

.floating-cart-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes floatCart {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .floating-cart-btn {
        width: 54px;
        height: 54px;
        bottom: 130px;
        left: 16px;
    }
    .floating-cart-btn svg {
        width: 24px;
        height: 24px;
    }
}

