@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}
.animate-pulse-ring::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUp 0.6s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.4s ease-out; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scaleIn 0.3s ease-out; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow { animation: spin-slow 3s linear infinite; }

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.category-tile {
    transition: all 0.3s ease;
}
.category-tile:hover {
    border-color: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216,27,96,0.15);
}

.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.5rem; color: #ddd; transition: color 0.2s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f59e0b; }

.size-pill {
    transition: all 0.2s ease;
}
.size-pill:hover, .size-pill.active {
    background: #d81b60;
    color: white;
    border-color: #d81b60;
}

.color-swatch {
    transition: all 0.2s ease;
}
.color-swatch.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #d81b60;
}

.order-timeline .step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    width: 2px;
    height: calc(100% - 16px);
    background: #e5e7eb;
}
.order-timeline .step:last-child::before { display: none; }
.order-timeline .step.active::before { background: #d81b60; }
.order-timeline .step.completed::before { background: #10b981; }

.gallery-thumb.active {
    border-color: #d81b60;
    box-shadow: 0 0 0 2px rgba(216,27,96,0.3);
}

.quantity-btn {
    transition: all 0.15s ease;
}
.quantity-btn:active { transform: scale(0.9); }

.toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@media (max-width: 1023px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
}

@media (max-width: 639px) {
    .container { padding-left: 12px; padding-right: 12px; }
}

.rating-bar-bg {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 999px;
    height: 8px;
    transition: width 0.6s ease;
}

.tab-active {
    border-bottom: 3px solid #d81b60;
    color: #d81b60;
}

.zoom-container { overflow: hidden; position: relative; }
.zoom-container img { transition: transform 0.4s ease; }
.zoom-container:hover img { transform: scale(1.5); }

select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select:focus, input:focus, textarea:focus {
    border-color: #d81b60;
    box-shadow: 0 0 0 3px rgba(216,27,96,0.1);
}
