/* Reusable components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family-primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-height: 44px;
    direction: rtl;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-gray-200);
    color: var(--color-gray-900);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--color-gray-300);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--color-error);
    color: var(--color-white);
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    padding: var(--spacing-sm);
    min-width: 44px;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.form-label.required::after {
    content: ' *';
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    transition: all var(--transition-base);
    direction: rtl;
    text-align: right;
    min-height: 44px;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--color-gray-400);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 6px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    background: var(--color-white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: block;
}

.form-help {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: block;
}

.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    margin-left: var(--spacing-sm);
    cursor: pointer;
}

/* ============================================
   PREMIUM PRODUCT CARD - Ultra Modern Design
   ============================================ */

.product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    border: none;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.04);
}

/* Glowing Border Effect */
.product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, 
        transparent 0%, 
        transparent 40%,
        rgba(13, 148, 136, 0) 40%,
        rgba(13, 148, 136, 0) 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease, background 0.5s ease;
}

/* Shine Effect */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 10;
    pointer-events: none;
    border-radius: 24px;
}

.product-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 
        0 4px 8px rgba(13, 148, 136, 0.08),
        0 8px 16px rgba(13, 148, 136, 0.08),
        0 16px 32px rgba(13, 148, 136, 0.12),
        0 32px 64px rgba(13, 148, 136, 0.16);
}

.product-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(13, 148, 136, 0.5) 0%, 
        rgba(8, 145, 178, 0.3) 50%,
        rgba(6, 182, 212, 0.5) 100%
    );
}

.product-card:hover::after {
    left: 130%;
}

/* ============================================
   PRODUCT BADGE - Floating Style
   ============================================ */
.product-tag {
    position: absolute;
    top: -8px;
    right: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-tag i {
    font-size: 10px;
}

.product-tag.digital {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   IMAGE CONTAINER - Premium Look
   ============================================ */
.product-card-image-container {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

/* Decorative circles */
.product-card-image-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.product-card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.product-card:hover .product-card-image-container::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
}

/* ============================================
   QUICK ACTIONS - Floating Buttons
   ============================================ */
.product-card-actions {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 12;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-quick-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--color-gray-600);
    font-size: 14px;
}

.product-quick-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.product-quick-btn.wishlist:hover {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

/* ============================================
   PRODUCT IMAGE - Floating Effect
   ============================================ */
.product-card-image {
    max-width: 85%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 5;
}

.product-card:hover .product-card-image {
    transform: scale(1.1) translateY(-12px) rotate(2deg);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.2));
}

/* ============================================
   PRODUCT INFO - Clean Typography
   ============================================ */
.product-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    position: relative;
    border-radius: 0 0 24px 24px;
}

/* Top accent line */
.product-card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-gray-200) 20%, 
        var(--color-gray-200) 80%, 
        transparent 100%
    );
}

/* ============================================
   PRODUCT NAME - Bold Typography
   ============================================ */
.product-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.3s ease;
    letter-spacing: -0.3px;
}

.product-card:hover .product-card-name {
    color: var(--color-primary);
}

/* ============================================
   RATING - Compact Design
   ============================================ */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-card-rating .stars {
    display: flex;
    gap: 2px;
}

.product-card-rating .stars i {
    font-size: 12px;
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.product-card-rating .stars i.empty {
    color: var(--color-gray-300);
    filter: none;
}

.product-card-rating .count {
    font-size: 13px;
    color: var(--color-gray-500);
    font-weight: 600;
}

/* ============================================
   STOCK STATUS - Minimal Design
   ============================================ */
.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.product-stock-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.product-stock-status.low .dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.product-stock-status.out .dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: none;
}

.product-stock-status span {
    color: #059669;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
}

/* ============================================
   PRICE - Premium Typography
   ============================================ */
.product-card-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    letter-spacing: -0.5px;
}

.product-card-price .currency {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-500);
}

.product-card-price .old-price {
    font-size: 14px;
    color: var(--color-gray-400);
    text-decoration: line-through;
    font-weight: 600;
}

/* ============================================
   CTA BUTTON - Glass Morphism
   ============================================ */
.product-card-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0891b2 100%);
    border: none;
    border-radius: 14px;
    font-family: var(--font-family-primary);
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(13, 148, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.product-card-btn span,
.product-card-btn i {
    position: relative;
    z-index: 1;
}

.product-card-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.product-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(13, 148, 136, 0.4),
        0 4px 12px rgba(13, 148, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
}

.product-card-btn:hover::before {
    left: 100%;
}

.product-card-btn:hover i {
    transform: translateX(-4px) scale(1.1);
}

.product-card-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(13, 148, 136, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE STYLES - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .product-card {
        border-radius: 20px;
    }
    
    .product-card::before {
        border-radius: 22px;
    }
    
    .product-card-image-container {
        min-height: 200px;
        padding: 24px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .product-card-image {
        max-height: 150px;
    }
    
    .product-card-info {
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }
}

/* ============================================
   RESPONSIVE STYLES - Mobile
   ============================================ */
@media (max-width: 768px) {
    .product-card {
        border-radius: 18px;
    }
    
    .product-card::before {
        border-radius: 20px;
    }
    
    .product-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .product-card-image-container {
        padding: 20px 16px;
        min-height: 180px;
        border-radius: 18px 18px 0 0;
    }
    
    .product-card-image {
        max-height: 140px;
        max-width: 80%;
    }
    
    .product-card-info {
        padding: 18px;
        border-radius: 0 0 18px 18px;
    }
    
    .product-card-info::before {
        left: 18px;
        right: 18px;
    }
    
    .product-card-name {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .product-card-price {
        font-size: 20px;
        margin-bottom: 14px;
    }
    
    .product-card-btn {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .product-card-actions {
        top: 12px;
        left: 12px;
        gap: 6px;
    }
    
    .product-quick-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 13px;
    }
    
    .product-tag {
        top: -6px;
        right: 12px;
        padding: 6px 12px;
        font-size: 10px;
        border-radius: 16px;
    }
    
    .product-card-rating {
        margin-bottom: 6px;
    }
    
    .product-card-rating .stars i {
        font-size: 11px;
    }
    
    .product-card-rating .count {
        font-size: 12px;
    }
    
    .product-stock-status {
        font-size: 11px;
        margin-bottom: 10px;
        padding: 3px 8px;
    }
    
    .product-stock-status .dot {
        width: 5px;
        height: 5px;
    }
}

/* ============================================
   RESPONSIVE STYLES - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .product-card {
        border-radius: 16px;
    }
    
    .product-card::before {
        border-radius: 18px;
    }
    
    .product-card-image-container {
        padding: 16px 14px;
        min-height: 160px;
        border-radius: 16px 16px 0 0;
    }
    
    .product-card-image {
        max-height: 120px;
    }
    
    .product-card-info {
        padding: 16px;
        border-radius: 0 0 16px 16px;
    }
    
    .product-card-info::before {
        left: 16px;
        right: 16px;
    }
    
    .product-card-name {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 8px;
    }
    
    .product-card-price {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .product-card-btn {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 13px;
        gap: 8px;
    }
    
    .product-card-btn i {
        font-size: 14px;
    }
    
    /* Show actions by default on small screens */
    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-quick-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .product-tag {
        padding: 5px 10px;
        font-size: 9px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 8px rgba(0, 0, 0, 0.04),
            0 16px 32px rgba(0, 0, 0, 0.04);
    }
    
    .product-card:hover::before {
        opacity: 0;
    }
    
    .product-card:hover::after {
        left: -100%;
    }
    
    .product-card:active {
        transform: scale(0.98);
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.06),
            0 2px 4px rgba(0, 0, 0, 0.06);
    }
    
    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-card:hover .product-card-image {
        transform: none;
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    }
    
    .product-card:hover .product-card-image-container::before {
        width: 200px;
        height: 200px;
    }
    
    .product-card-btn:hover {
        transform: none;
    }
    
    .product-card-btn:active {
        transform: scale(0.98);
    }
}

/* Legacy support for product-card-content, product-card-title etc */
.product-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-brand-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-gray-500);
    margin-top: var(--spacing-xs);
    line-height: 1.3;
}

.product-card-footer {
    margin-top: auto;
}

/* Category Card */
.category-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    position: relative;
    animation: scaleIn 0.5s ease-out;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.2);
}

.category-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-gray-100);
}

.category-card-content {
    padding: var(--spacing-lg);
}

.category-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-gray-900);
}

/* Digital Card Product (Brand-colored) */
.product-card.digital-card {
    position: relative;
}

.product-card.digital-card .product-card-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    animation: scaleIn 0.4s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.badge-error {
    background-color: var(--color-error);
    color: var(--color-white);
}

.badge-info {
    background-color: var(--color-info);
    color: var(--color-white);
}

/* Alert */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border-right: 4px solid;
    direction: rtl;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--color-success);
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: var(--color-error);
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    border-color: var(--color-info);
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--color-warning);
    color: #92400e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-gray-600);
    animation: fadeIn 0.6s ease-out;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

.empty-state-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-700);
}

.empty-state-text {
    margin-bottom: var(--spacing-lg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--color-gray-200);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-gray-200);
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-base);
}

.step.active .step-number {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.step.completed .step-number {
    background-color: var(--color-success);
    color: var(--color-white);
}

.step-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    text-align: center;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    width: fit-content;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    transition: background-color var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
}

.quantity-btn:hover:not(:disabled) {
    background-color: var(--color-gray-200);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: 0;
    background: transparent;
}

.quantity-input:focus {
    outline: none;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

