/* Malachi Stitch and Print - Shared Styles */

* {
    font-family: 'Poppins', sans-serif;
}

/* Smooth page transitions */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    padding-top: 0; /* Remove default padding */
    margin: 0;
}

/* Add spacing only for non-swiper pages (homepage) */
body.homepage {
    padding-top: 80px;
}

/* Swiper pages handle their own spacing */
body.swiper-page {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body.homepage {
        padding-top: 70px;
    }
    
    body.swiper-page {
        padding-top: 70px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Logo placeholder - hidden by default */
.logo-placeholder {
    display: none;
}

/* Navigation */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* Section padding */
.section-padding {
    padding: 3rem 1rem; /* Reduced from 5rem to prevent too much space */
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 1rem;
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Swiper Catalog Setup - Scrollable Page */
.swiper-container-catalog {
    width: 100%;
    height: auto;
    min-height: 600px;
    padding: 2rem 0;
}

.swiper-slide-catalog {
    height: auto;
    padding: 2rem 1rem;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #667eea !important;
    background: white;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #667eea !important;
    color: white !important;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: #667eea !important;
    width: 14px !important;
    height: 14px !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #764ba2 !important;
    opacity: 1;
    width: 40px !important;
    border-radius: 7px !important;
}

/* Product Card in Swiper */
.product-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Touch-friendly elements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Gallery placeholder */
.gallery-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

/* Image gallery swiper (for samples within a page) */
.gallery-swiper {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
}

.gallery-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-container-catalog {
        min-height: 500px;
        padding: 1rem 0;
    }
    
    .swiper-slide-catalog {
        padding: 1rem 0.5rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px !important;
        height: 45px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px !important;
    }
    
    .gallery-swiper {
        height: 350px;
    }
}

/* Page transition link effect */
a[href$=".html"] {
    transition: all 0.3s ease;
}

/* Fullscreen Button */
.fullscreen-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* Show different icon when in fullscreen */
.fullscreen-btn.is-fullscreen .expand-icon {
    display: none;
}

.fullscreen-btn.is-fullscreen .compress-icon {
    display: block;
}

.fullscreen-btn .compress-icon {
    display: none;
}

/* Mobile fullscreen button adjustments */
@media (max-width: 768px) {
    .fullscreen-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}
