/* Custom Styles for Boutique Store */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Product hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form styles */
.form-control {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-transparent;
}

.btn {
    @apply px-6 py-2 rounded-lg font-medium transition duration-200;
}

.btn-primary {
    @apply bg-gray-900 text-white hover:bg-gray-800;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-900 hover:bg-gray-300;
}

/* Alert messages */
.alert {
    @apply p-4 rounded-lg mb-4;
}

.alert-success {
    @apply bg-green-100 text-green-700 border border-green-200;
}

.alert-error {
    @apply bg-red-100 text-red-700 border border-red-200;
}

.alert-warning {
    @apply bg-yellow-100 text-yellow-700 border border-yellow-200;
}

/* Table styles */
.data-table {
    @apply w-full border-collapse;
}

.data-table th {
    @apply bg-gray-50 px-4 py-3 text-left font-semibold text-gray-700 border-b;
}

.data-table td {
    @apply px-4 py-3 border-b;
}

.data-table tr:hover {
    @apply bg-gray-50;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Product image zoom */
.product-image-container {
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    transition: transform 0.5s ease;
}

.product-image-container:hover img {
    transform: scale(1.1);
}

/* Custom checkbox */
.custom-checkbox {
    @apply w-5 h-5 text-gray-900 border-gray-300 rounded focus:ring-gray-500;
}

/* Price tag */
.price-tag {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold bg-gray-100 text-gray-800;
}

.price-tag.sale {
    @apply bg-red-100 text-red-800;
}

/* Badge */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

/* Sticky header shadow */
header.scrolled {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cart item animation */
.cart-item-remove {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 641px) {
    .show-mobile {
        display: none;
    }
}
