/* Tatshree - Custom Styles */

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpDelay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounceSlowDelay {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

.animate-bounce-slow-delay {
    animation: bounceSlowDelay 2s ease-in-out 0.5s infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Zoom Effect */
.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-in:hover .zoom-image {
    transform: scale(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F0E8;
}

::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5C0015;
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Mobile CTA padding — add class pb-mobile-order on body (product pages) */
@media (max-width: 768px) {
    body.pb-mobile-order {
        padding-bottom: 80px;
    }
}

/* WhatsApp + Messenger stacked on the right */
.floating-chat-stack {
    bottom: 1.5rem;
}

@media (max-width: 767px) {
    body.pb-mobile-order .floating-chat-stack {
        bottom: 6rem;
    }
}

/* Combo page: hero + 4-up thumbnail strip */
.combo-premium-frame {
    box-shadow: 0 25px 50px -12px rgba(80, 0, 20, 0.35);
}

.combo-hero-photo img {
    transition: transform 0.5s ease, opacity 0.35s ease;
}

.combo-premium-frame:hover .combo-hero-photo img {
    transform: scale(1.02);
}

.combo-gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.combo-gallery-thumb img {
    transition: transform 0.35s ease;
}

.combo-gallery-thumb:hover {
    border-color: rgba(201, 168, 76, 0.65);
    transform: translateY(-2px);
}

.combo-gallery-thumb:hover img {
    transform: scale(1.06);
}

.combo-gallery-thumb.is-active {
    border-color: #800020;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.45), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.combo-gallery-thumb:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 3px;
}

/* Standard PDP hero image — hover zoom */
#mainImage:hover {
    cursor: zoom-in;
}

#mainImage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#mainImage:hover::after {
    opacity: 1;
}

/* Order Form Success Animation */
.order-success {
    animation: fadeUp 0.5s ease-out;
}

/* Floating button pulse ring */
.animate-bounce-slow::before,
.animate-bounce-slow-delay::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Collection listing cards */
.collection-card {
    transition: transform 0.35s ease, filter 0.35s ease;
}
.collection-card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.08));
}

/* Home — Latest collection product picks */
.latest-pick-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.latest-pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(128, 0, 32, 0.12);
}

/* Selection color */
::selection {
    background-color: rgba(128, 0, 32, 0.15);
    color: #800020;
}

/* Sticky order card transitions */
.lg\:sticky {
    transition: top 0.3s ease;
}
