/* ===========================
   CUSTOM STYLES - CAKESHOP
   =========================== */

/* Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(31, 41, 55, 0.7);
}

/* Product image zoom */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 0.5s ease;
}
.img-zoom-container:hover img {
    transform: scale(1.08);
}

/* Hero slider */
.hero-slide {
    transition: opacity 0.8s ease-in-out;
}

/* Rating stars */
.star-rating {
    color: #fbbf24;
}
.star-rating .empty {
    color: #d1d5db;
}

/* Badge pulse */
.badge-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Price tag */
.price-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.price-tag .original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85em;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tab indicator */
.tab-active {
    position: relative;
}
.tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ec4899;
    border-radius: 1px;
}

/* Mobile menu transition */
#mobile-menu .absolute {
    transition: transform 0.3s ease;
}

/* Auto-dismiss flash messages */
.flash-msg {
    animation: slideIn 0.4s ease-out, fadeOut 0.4s ease-in 4s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* Quantity input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Focus ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}

/* Print */
@media print {
    nav, footer, .no-print { display: none !important; }
    main { padding: 0 !important; }
}