/* Custom Styles for Mom's Brand */

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Horizontal margins for all content */
.container, section, nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 768px) {
    .container, section, nav {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (min-width: 1024px) {
    .container, section, nav {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

/* Navbar Effects */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Product Card Hover Effects */
.product-card {
    position: relative;
    transition: all 0.3s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 105, 30, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* Smooth Scroll Offset */
section {
    scroll-margin-top: 80px;
}

/* Button Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Image Zoom Effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFF8DC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.card-shine:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Floating Animation for Icons */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.8);
}

/* Text Shadow for Better Readability */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.active {
    max-height: 300px;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    z-index: 10;
}

/* Hero Section Video-like Effect */
.hero-overlay {
    mix-blend-mode: multiply;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    backdrop-filter: blur(5px);
}

/* WhatsApp Button Pulse */
.whatsapp-pulse {
    animation: pulse 2s infinite;
}

/* Section Divider */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, #8B4513, #D2691E, #F4A460, transparent);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Gallery Grid Hover Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(210, 105, 30, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Smooth Page Transitions */
.page-transition {
    transition: opacity 0.3s ease-in-out;
}

/* Contact Form Styles */
.contact-input {
    transition: all 0.3s ease;
}

.contact-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

/* Footer Link Hover */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F4A460;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #F4A460);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Product Info Tooltip */
.product-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-tooltip {
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(139, 69, 19, 0.1);
    border-left-color: #8B4513;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

/* Preserve Aspect Ratio for Product Images */
.product-image-container {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add to Cart Animation */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.add-to-cart-animation {
    animation: addToCart 0.3s ease;
}

/* Premium Badge Shine */
@keyframes badgeShine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

.premium-badge {
    background: linear-gradient(90deg, #F4A460 0%, #fff 50%, #F4A460 100%);
    background-size: 200% 100%;
    animation: badgeShine 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Product Modal Styles */
#productModal {
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}

#productModal > div {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-thumb {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modal-thumb.active {
    border-color: #8B4513 !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Modal detail item animations */
#modalProductDetails > div {
    animation: fadeInDetail 0.4s ease-out backwards;
}

#modalProductDetails > div:nth-child(1) { animation-delay: 0.05s; }
#modalProductDetails > div:nth-child(2) { animation-delay: 0.1s; }
#modalProductDetails > div:nth-child(3) { animation-delay: 0.15s; }
#modalProductDetails > div:nth-child(4) { animation-delay: 0.2s; }
#modalProductDetails > div:nth-child(5) { animation-delay: 0.25s; }
#modalProductDetails > div:nth-child(6) { animation-delay: 0.3s; }
#modalProductDetails > div:nth-child(7) { animation-delay: 0.35s; }

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling for modal content */
#productModal > div {
    scrollbar-width: thin;
    scrollbar-color: #8B4513 #f0f0f0;
}

#productModal > div::-webkit-scrollbar {
    width: 8px;
}

#productModal > div::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

#productModal > div::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B4513 0%, #D2691E 100%);
    border-radius: 10px;
}

#productModal > div::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D2691E 0%, #8B4513 100%);
}

/* Modal badge animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 69, 19, 0);
    }
}

/* Print Styles */
@media print {
    nav, footer, button {
        display: none;
    }
}