/* ============================================ */
/* Flatsome Shortcodes Compatibility CSS */
/* Version: 2.7.1 - Optimized for performance */
/* ============================================ */

/* VARIABLES CSS - Sistema de tema */
:root {
    --ux-primary: #dc2626;
    --ux-primary-hover: #b91c1c;
    --ux-secondary: #10b981;
    --ux-accent: #f59e0b;
    --ux-foreground: #000000;
    --ux-muted: #6b7280;
    --ux-muted-bg: #f3f4f6;
    --ux-border: #e5e7eb;
    --ux-radius: 12px;
    --ux-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ux-shadow-lg: 0 12px 24px rgba(220, 38, 38, 0.15);
}

/* ============================================ */
/* TIPOGRAFÍA - Headings reducidos */
/* ============================================ */
.row h1, .col h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 0.5em; }
.row h2, .col h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 0.5em; }
.row h3, .col h3 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5em; }
.row h4, .col h4 { font-size: 1.25rem; line-height: 1.35; margin-bottom: 0.5em; }
.row h5, .col h5 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 0.5em; }
.row h6, .col h6 { font-size: 1rem; line-height: 1.4; margin-bottom: 0.5em; }

/* ============================================ */
/* PAGE HEADER - Oculto para SEO */
/* ============================================ */
.page-header,
.page-title-wrapper,
.page-header-inner {
    opacity: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================ */
/* GRID NATIVO WOOCOMMERCE - Fallback mejorado */
/* ============================================ */
ul.products {
    display: grid !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
ul.products.columns-5 { grid-template-columns: repeat(5, 1fr) !important; }

ul.products li.product {
    margin: 0 !important;
    padding: 1rem !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}
ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transform: translateY(-4px) !important;
}
ul.products li.product img {
    max-height: 180px !important;
    width: 100% !important;
    object-fit: contain !important;
    margin-bottom: 1rem !important;
}
ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
}
ul.products li.product .price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #dc2626 !important;
}
ul.products li.product .button {
    margin-top: auto !important;
    background: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
}
ul.products li.product .button:hover {
    background: #b91c1c !important;
}

@media (max-width: 991px) {
    ul.products.columns-4,
    ul.products.columns-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 767px) {
    ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    ul.products li.product img { max-height: 120px !important; }
    ul.products li.product .woocommerce-loop-product__title { font-size: 0.85rem !important; }
}

/* ============================================ */
/* UX PRODUCT CATEGORIES GRID */
/* ============================================ */
.ux-product-categories-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    grid-template-columns: repeat(2, 1fr);
}

/* Desktop columns (large-X) */
@media (min-width: 850px) {
    .ux-product-categories-grid.large-2 { grid-template-columns: repeat(2, 1fr); }
    .ux-product-categories-grid.large-3 { grid-template-columns: repeat(3, 1fr); }
    .ux-product-categories-grid.large-4 { grid-template-columns: repeat(4, 1fr); }
    .ux-product-categories-grid.large-5 { grid-template-columns: repeat(5, 1fr); }
    .ux-product-categories-grid.large-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Tablet columns (medium-X) */
@media (min-width: 550px) and (max-width: 849px) {
    .ux-product-categories-grid.medium-2 { grid-template-columns: repeat(2, 1fr); }
    .ux-product-categories-grid.medium-3 { grid-template-columns: repeat(3, 1fr); }
    .ux-product-categories-grid.medium-4 { grid-template-columns: repeat(4, 1fr); }
    .ux-product-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile columns (small-X) */
@media (max-width: 549px) {
    .ux-product-categories-grid.small-1 { grid-template-columns: repeat(1, 1fr); }
    .ux-product-categories-grid.small-2 { grid-template-columns: repeat(2, 1fr); }
    .ux-product-categories-grid.small-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Depth/Shadow */
.ux-product-categories-grid.has-depth .ux-category-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ux-product-categories-grid.has-depth .ux-category-card:hover {
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}

.ux-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
}
.ux-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}
.ux-category-image {
    position: relative;
    padding-top: 80%;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    overflow: hidden;
}
.ux-category-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.ux-category-card:hover .ux-category-image img {
    transform: translate(-50%, -50%) scale(1.1);
}
.ux-category-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}
.ux-category-info {
    padding: 1rem 0.75rem;
    text-align: center;
    background: #fff;
}
.ux-category-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ux-category-count {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 549px) {
    .ux-category-name { font-size: 0.75rem; }
    .ux-category-info { padding: 0.75rem 0.5rem; }
    .ux-category-image { padding-top: 90%; }
}

/* ============================================ */
/* UX CATEGORIES CAROUSEL */
/* ============================================ */
.ux-categories-carousel-wrapper {
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.ux-categories-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    margin: -1rem 0;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.ux-categories-carousel::-webkit-scrollbar {
    height: 6px;
}
.ux-categories-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.ux-categories-carousel::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 3px;
}
.ux-categories-carousel::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

.ux-categories-carousel .ux-category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: calc(20% - 0.8rem);
    min-width: 160px;
}

/* Columnas del carousel */
.ux-categories-carousel.cols-4 .ux-category-card { width: calc(25% - 0.75rem); }
.ux-categories-carousel.cols-5 .ux-category-card { width: calc(20% - 0.8rem); }
.ux-categories-carousel.cols-6 .ux-category-card { width: calc(16.666% - 0.833rem); }

@media (max-width: 991px) {
    .ux-categories-carousel .ux-category-card { width: calc(33.333% - 0.666rem); min-width: 140px; }
}

@media (max-width: 549px) {
    .ux-categories-carousel .ux-category-card { width: calc(50% - 0.5rem); min-width: 120px; }
    .ux-categories-carousel { gap: 0.75rem; }
}

/* Título de categorías */
.ux-categories-title {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Carousel Arrows */
.ux-categories-carousel-wrapper {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    color: #dc2626;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

@media (max-width: 549px) {
    .carousel-arrow { width: 32px; height: 32px; font-size: 1.2rem; }
    .carousel-prev { left: -5px; }
    .carousel-next { right: -5px; }
}

/* ============================================ */
/* ESTILOS MEJORADOS PARA IMAGE-BOX */
/* ============================================ */

.image-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.image-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: var(--ux-radius);
    overflow: hidden;
    box-shadow: var(--ux-shadow);
    border: 1px solid var(--ux-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--ux-shadow-lg);
    border-color: var(--ux-primary);
}

.image-box-img-container {
    position: relative;
    width: 100%;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.image-box-img-container img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Cuando tiene aspect ratio (padding-top), la imagen es absoluta */
.image-box-img-container[style*="padding-top"] {
    min-height: 0;
}
.image-box-img-container[style*="padding-top"] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.image-box:hover .image-box-img-container img {
    transform: scale(1.05);
}

.image-box-content {
    padding: 1rem;
    text-align: center;
    flex: 1;
}
.image-box-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
}
.image-box-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Sombra y efectos */
.image-box.has-shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.image-box.has-shadow:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Hover effects para imagen */
.image-box.hover-zoom-fade .image-box-img-container img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.image-box.hover-zoom-fade:hover .image-box-img-container img {
    transform: scale(1.1);
    opacity: 0.9;
}
.image-box.hover-zoom .image-box-img-container img {
    transition: transform 0.4s ease;
}
.image-box.hover-zoom:hover .image-box-img-container img {
    transform: scale(1.1);
}

/* Alineación de image-box */
.image-box.text-left .image-box-content { text-align: left; }
.image-box.text-center .image-box-content { text-align: center; }
.image-box.text-right .image-box-content { text-align: right; }

.image-box-content .ux-text,
.image-box-content > div {
    margin: 0;
}

.image-box h2,
.image-box h3 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.image-box:hover h2,
.image-box:hover h3 {
    color: var(--ux-primary) !important;
}

.image-box a {
    text-decoration: none;
    color: inherit;
}

.featured-box {
    background: #ffffff;
    border-radius: var(--ux-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--ux-border);
    box-shadow: var(--ux-shadow);
}

.featured-box h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
    font-weight: 700 !important;
}

.row.style-small {
    margin-bottom: 2rem;
}

.row.style-small > .col {
    margin-bottom: 1.5rem;
}

/* ============================================ */
/* UX BUILDER COMPONENTS */
/* ============================================ */

.ux-section {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.ux-section:first-child {
    padding-top: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h1,
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--ux-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.ux-title {
    margin: 1.5rem 0;
    font-weight: 700;
}

.ux-text {
    margin: 1.25rem 0;
    line-height: 1.8;
}

/* Row & Col - Sistema de Grid */
.row {
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.row-inner {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.row-inner.align-top { align-items: flex-start; }
.row-inner.align-middle { align-items: center; }
.row-inner.align-bottom { align-items: flex-end; }
.row-inner.justify-left { justify-content: flex-start; }
.row-inner.justify-center { justify-content: center; }
.row-inner.justify-right { justify-content: flex-end; }
.row-inner.justify-space-between { justify-content: space-between; }

.row > .col {
    box-sizing: border-box !important;
    padding: 0 15px !important;
    float: none !important;
    flex: 0 0 auto !important;
}

.col.text-left, .col.text-left .col-inner { text-align: left !important; }
.col.text-center, .col.text-center .col-inner { text-align: center !important; }
.col.text-right, .col.text-right .col-inner { text-align: right !important; }

/* Centrar imágenes cuando el col está centrado */
.col.text-center img,
.col.text-center .ux-image-wrapper { 
    margin-left: auto !important; 
    margin-right: auto !important; 
    display: block;
}

.col-inner {
    padding: 15px;
    box-sizing: border-box;
}

/* UX Image con anchos responsivos */
.ux-image-wrapper {
    width: var(--ux-img-width, 100%);
    max-width: 100%;
    display: inline-block;
}

.ux-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive widths para ux_image */
@media (max-width: 849px) {
    .ux-image-wrapper {
        width: var(--ux-img-width-md, var(--ux-img-width, 100%));
    }
}

@media (max-width: 549px) {
    .ux-image-wrapper {
        width: var(--ux-img-width-sm, var(--ux-img-width-md, var(--ux-img-width, 100%)));
    }
}

.text-center .ux-image-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
}

.col-inner-wrapper {
    flex: 1 1 auto;
}

/* Grid de 12 columnas - MOBILE FIRST */
@media (max-width: 549px) {
    .row > .col.small-1 { width: 8.33333% !important; flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .row > .col.small-2 { width: 16.66667% !important; flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .row > .col.small-3 { width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important; }
    .row > .col.small-4 { width: 33.33333% !important; flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .row > .col.small-5 { width: 41.66667% !important; flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .row > .col.small-6 { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
    .row > .col.small-7 { width: 58.33333% !important; flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .row > .col.small-8 { width: 66.66667% !important; flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .row > .col.small-9 { width: 75% !important; flex: 0 0 75% !important; max-width: 75% !important; }
    .row > .col.small-10 { width: 83.33333% !important; flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .row > .col.small-11 { width: 91.66667% !important; flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .row > .col.small-12 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .row > .col:not([class*="small-"]) { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

@media (min-width: 550px) and (max-width: 849px) {
    .row > .col.medium-1 { width: 8.33333% !important; flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .row > .col.medium-2 { width: 16.66667% !important; flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .row > .col.medium-3 { width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important; }
    .row > .col.medium-4 { width: 33.33333% !important; flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .row > .col.medium-5 { width: 41.66667% !important; flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .row > .col.medium-6 { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
    .row > .col.medium-7 { width: 58.33333% !important; flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .row > .col.medium-8 { width: 66.66667% !important; flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .row > .col.medium-9 { width: 75% !important; flex: 0 0 75% !important; max-width: 75% !important; }
    .row > .col.medium-10 { width: 83.33333% !important; flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .row > .col.medium-11 { width: 91.66667% !important; flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .row > .col.medium-12 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .row > .col:not([class*="medium-"]):not([class*="small-"]) { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

@media (min-width: 850px) {
    .row > .col.large-1 { width: 8.33333% !important; flex: 0 0 8.33333% !important; max-width: 8.33333% !important; }
    .row > .col.large-2 { width: 16.66667% !important; flex: 0 0 16.66667% !important; max-width: 16.66667% !important; }
    .row > .col.large-3 { width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important; }
    .row > .col.large-4 { width: 33.33333% !important; flex: 0 0 33.33333% !important; max-width: 33.33333% !important; }
    .row > .col.large-5 { width: 41.66667% !important; flex: 0 0 41.66667% !important; max-width: 41.66667% !important; }
    .row > .col.large-6 { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
    .row > .col.large-7 { width: 58.33333% !important; flex: 0 0 58.33333% !important; max-width: 58.33333% !important; }
    .row > .col.large-8 { width: 66.66667% !important; flex: 0 0 66.66667% !important; max-width: 66.66667% !important; }
    .row > .col.large-9 { width: 75% !important; flex: 0 0 75% !important; max-width: 75% !important; }
    .row > .col.large-10 { width: 83.33333% !important; flex: 0 0 83.33333% !important; max-width: 83.33333% !important; }
    .row > .col.large-11 { width: 91.66667% !important; flex: 0 0 91.66667% !important; max-width: 91.66667% !important; }
    .row > .col.large-12 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .row > .col:not([class*="large-"]):not([class*="medium-"]):not([class*="small-"]) { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Accordion */
.accordion {
    margin-bottom: 20px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.accordion-title {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.accordion-title:hover {
    background-color: #f9fafb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.accordion-title:hover span {
    color: #dc2626;
}

.accordion-title span {
    flex: 1;
    transition: color 0.2s ease;
}

.accordion-title .toggle {
    margin-right: 15px;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.accordion-title:hover .toggle {
    background-color: #fee2e2;
    border-color: #dc2626;
}

.accordion-title .toggle i {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #333;
    transition: transform 0.3s ease, border-top-color 0.2s ease;
}

.accordion-title:hover .toggle i {
    border-top-color: #dc2626;
}

.accordion-title.active {
    background-color: #f9fafb;
}

.accordion-title.active .toggle {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: rotate(0deg);
}

.accordion-title.active .toggle i {
    transform: rotate(180deg);
    border-top-color: #fff;
}

.accordion-inner {
    padding: 10px 20px 15px 71px;
}

/* Section */
.section {
    padding: 3rem 0;
    box-sizing: border-box;
}

.section:first-child {
    padding-top: 2rem;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-header.text-light {
    color: #fff;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1170px;
    margin: 0 auto;
}

/* Product Categories Grid */
.product-categories-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.product-categories-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.product-categories-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.product-categories-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.product-categories-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }

.product-category-item {
    text-align: center;
    transition: transform 0.3s;
}

.product-category-item:hover {
    transform: translateY(-5px);
}

.product-category-item a {
    text-decoration: none;
    color: inherit;
}

.product-category-item .category-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.product-category-item .category-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.product-category-item:hover .category-image img {
    transform: scale(1.05);
}

.product-category-item .category-title {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #111827;
}

.product-category-item .category-count {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Category Carousel */
.category-carousel-wrapper {
    position: relative;
    margin: 2rem 0;
}

.category-carousel-container {
    overflow: hidden;
    margin-bottom: 1rem;
}

.category-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
    will-change: transform;
}

.category-carousel-slide {
    flex-shrink: 0;
    width: calc(33.333% - 0.67rem);
}

.category-carousel-card {
    display: block;
    text-decoration: none;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-carousel-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-carousel-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    padding: 1rem;
}

.category-carousel-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
}

.category-carousel-label {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.category-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-carousel-dot {
    width: 8px;
    height: 8px !important;
    min-width: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    min-height: 8px !important;
}

.category-carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.category-carousel-dot.active {
    background: #1f2937;
    transform: scale(1.3);
}

/* UX Banner */
.ux-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.ux-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ux-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ux-banner .banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Text Box */
.text-box {
    box-sizing: border-box;
}

.text-box h1, .text-box h2, .text-box h3, .text-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.text-box p {
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.button-medium { padding: 12px 30px; font-size: 14px; }
.button-small { padding: 8px 20px; font-size: 12px; }
.button-large { padding: 16px 40px; font-size: 16px; }

.button-primary,
.button-primary.button-fill {
    background-color: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.button-primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.button-primary.button-outline {
    background-color: transparent;
    color: #dc2626;
    border-color: #dc2626;
}

.button-primary.button-outline:hover {
    background-color: #dc2626;
    color: #fff;
}

.button-white,
.button-white.button-fill {
    background-color: #fff;
    color: #1f2937;
    border-color: #fff;
}

.button-white:hover {
    background-color: #f9fafb;
    border-color: #f9fafb;
}

.button-white.button-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.button-white.button-outline:hover {
    background-color: #fff;
    color: #1f2937;
}

/* Slider */
.ux-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ux-slider .swiper-wrapper {
    display: flex;
}

.ux-slider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

.ux-slider .swiper-button-next,
.ux-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.ux-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.ux-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Stack */
.ux-stack {
    display: flex;
    box-sizing: border-box;
}

.ux-stack > * {
    box-sizing: border-box;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 1024px) {
    .product-categories-grid.columns-md-2 { grid-template-columns: repeat(2, 1fr); }
    .product-categories-grid.columns-md-3 { grid-template-columns: repeat(3, 1fr); }
    .product-categories-grid.columns-md-4 { grid-template-columns: repeat(4, 1fr); }
    .product-categories-grid.columns-3:not([class*="columns-md-"]),
    .product-categories-grid.columns-4:not([class*="columns-md-"]),
    .product-categories-grid.columns-5:not([class*="columns-md-"]) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-box {
        margin-bottom: 1rem;
    }
    
    .image-box h2,
    .image-box h3 {
        font-size: 0.95rem !important;
    }
    
    .ux-section {
        padding: 0;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.875rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .ux-banner .banner-content {
        padding: 1.5rem;
    }
    
    .button {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .product-categories-grid.columns-sm-1 { grid-template-columns: 1fr; }
    .product-categories-grid.columns-sm-2 { grid-template-columns: repeat(2, 1fr); }
    .product-categories-grid:not([class*="columns-sm-"]) { grid-template-columns: 1fr; }
    
    .category-carousel-slide {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .category-carousel-slide {
        width: 100%;
    }
}

