/*
Theme Name: UnoA Automotriz
Theme URI: https://unoautomotriz.com
Author: UnoA Automotriz
Author URI: https://unoautomotriz.com
Description: Landing page theme for UnoA Automotriz - Converted from Lovable React app
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unoa
*/

/* Sui Generis Font for Headings */
/* Font-face is now injected via PHP in functions.php with absolute URLs for better mobile compatibility */

/* Products Carousel Styles */
.products-carousel-wrapper {
    position: relative;
    padding: 1rem 0; /* Top/bottom padding for shadow */
}

.products-carousel-embla {
    position: relative;
}

/* Embla Viewport - matches Embla's recommended structure */
.embla__viewport {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.products-carousel-track {
    padding: 30px 0 0; /* Top and bottom padding to prevent shadow clipping */
}

/* Embla Container - Android touch fixes */
.embla__container {
    display: flex;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.products-carousel-slides {
    will-change: transform;
    gap: 0; /* Gap handled by px-2 padding on slides */
}

/* Use flex for consistent slide sizing (better than width) */
.products-carousel-slide {
    flex-shrink: 0;
    min-width: 0;
    /* Mobile: 1 slide takes full width */
    flex: 0 0 100%;
}

@media (min-width: 640px) {
    .products-carousel-slide {
        /* Tablet: 2 slides */
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (min-width: 1024px) {
    .products-carousel-slide {
        /* Desktop: 3 slides */
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

/* Ensure image containers have consistent dimensions */
.products-carousel-slide > div {
    width: 100%;
    height: 320px; /* Fixed height: h-80 = 20rem = 320px */
    position: relative;
}

.products-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Buttons */
.products-carousel-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.products-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-carousel-nav:hover:not(:disabled) {
    transform: scale(1.1);
}

.products-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
}

