body {
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.app-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #CBB8A8;
    border-radius: 9999px;
}

.focus-ring:focus-visible {
    outline: 2px solid #8A1538;
    outline-offset: 2px;
}

.product-card {
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(138, 21, 56, 0.2);
    }
}

@media (max-width: 767px) {
    .product-card:active {
        transform: scale(0.98);
    }
}

.header-gradient {
    background: linear-gradient(135deg, #8A1538 0%, #6D102D 100%);
}

.btn-primary {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .btn-primary:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
    }
}

@media (max-width: 767px) {
    .btn-primary:active {
        transform: scale(0.95);
        opacity: 0.9;
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(138, 21, 56, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(138, 21, 56, 0); }
}
.badge-pulse {
    animation: pulse-glow 2s infinite;
}

@media (max-width: 767px) {
    input, textarea, select {
        font-size: 16px !important;
    }
    
    .mobile-spacing {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .modal-mobile {
        margin: 0.5rem;
        max-height: 95vh;
        overflow-y: auto;
    }
}

button, a, input[type="submit"] {
    -webkit-tap-highlight-color: rgba(138, 21, 56, 0.2);
    touch-action: manipulation;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8A1538;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-overlay {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-bounce {
    animation: bounce 0.3s ease;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.animate-slide-up {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
