/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO ARTESANAL — Page-specific styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Override snap scroll for this page ─────────────────────────────── */
.page-catalogo html,
.page-catalogo {
    scroll-snap-type: none !important;
}

.page-catalogo footer {
    min-height: auto;
    scroll-snap-align: none;
}

/* ── Main Layout ──────────────────────────────────────────────────── */
.catalogo-main {
    padding-top: 80px; /* header offset */
    background-color: #ffffff;
    min-height: 100vh;
}

.catalogo-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.catalogo-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 40px 28px 40px 40px;
    border-right: 1px solid #f0ebe5;
    background-color: #fefcf9;
}

.sidebar-header {
    margin-bottom: 32px;
}

.sidebar-header h3 {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.cat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
    transition: height 0.28s ease;
}

.cat-link:hover,
.cat-link.active {
    background-color: rgba(121, 40, 33, 0.06);
    color: var(--primary-color);
}

.cat-link:hover::before,
.cat-link.active::before {
    height: 60%;
}

.cat-link i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.28s ease;
}

.cat-link:hover i,
.cat-link.active i {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════ */
.catalogo-content {
    padding: 48px 48px 80px;
}

/* ── Hero / Title ──────────────────────────────────────────────────── */
.catalogo-hero {
    margin-bottom: 50px;
}

.catalogo-title {
    font-family: var(--font-heading);
    line-height: 1.05;
    margin-bottom: 20px;
}

.title-line-1 {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
}

.title-line-2 {
    display: block;
    font-size: 56px;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--primary-color);
}

.catalogo-intro {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 520px;
}

/* ═══════════════════════════════════════════════════════════════════
   COUNT & EMPTY STATE
   ═══════════════════════════════════════════════════════════════════ */
.catalogo-count {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebe5;
}

.catalogo-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.catalogo-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.catalogo-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.catalogo-empty p {
    font-family: var(--font-body);
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARDS — Catalog version
   ═══════════════════════════════════════════════════════════════════ */
.catalogo-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.cat-product-card {
    background: #ffffff;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cat-product-card:hover {
    box-shadow: 0 12px 36px rgba(121, 40, 33, 0.12);
}

/* Tag */
.cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 2;
}

/* Image */
.cat-product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f0ea;
    overflow: hidden;
    position: relative;
}

.cat-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-product-card:hover .cat-product-image img {
    transform: scale(1.06);
}

/* Info */
.cat-product-info {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-product-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.cat-desc {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.cat-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.cat-qty-row {
    margin-bottom: 10px;
}

.cat-quantity-control {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    height: 34px;
    width: fit-content;
}

.cat-quantity-control .qty-btn {
    background: #faf7f3;
    border: none;
    width: 32px;
    height: 100%;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cat-quantity-control .qty-btn:hover {
    background: #ede8e2;
}

.cat-quantity-control .qty-input {
    width: 38px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cat-quantity-control .qty-input::-webkit-outer-spin-button,
.cat-quantity-control .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.cat-product-info .add-to-cart-btn {
    font-size: 11px;
    padding: 10px 16px;
    letter-spacing: 1px;
    border-radius: 6px;
}

.cat-view-details {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: color 0.25s ease;
}

.cat-view-details:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   GSAP — will-change hints
   ═══════════════════════════════════════════════════════════════════ */
.gsap-cat-card {
    will-change: opacity, transform;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SIDEBAR TOGGLE
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 800;
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(121, 40, 33, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-mobile-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(121, 40, 33, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1200px) {
    .catalogo-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }


}

@media (max-width: 1024px) {
    .catalogo-layout {
        grid-template-columns: 220px 1fr;
    }

    .catalogo-content {
        padding: 36px 32px 60px;
    }

    .title-line-1 {
        font-size: 44px;
    }

    .title-line-2 {
        font-size: 38px;
    }
}

/* Tablet & below: collapse sidebar */
@media (max-width: 900px) {
    .catalogo-layout {
        grid-template-columns: 1fr;
    }

    .catalogo-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 950;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding-top: 100px;
        border-right: none;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .catalogo-sidebar.open {
        left: 0;
    }

    .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }


}

/* Mobile */
@media (max-width: 768px) {
    .catalogo-main {
        padding-top: 70px;
    }

    .catalogo-content {
        padding: 28px 20px 50px;
    }

    .title-line-1 {
        font-size: 36px;
    }

    .title-line-2 {
        font-size: 30px;
    }

    .catalogo-intro {
        font-size: 13px;
    }

    .catalogo-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }



    .cat-product-image {
        height: 140px;
    }

    .cat-product-info {
        padding: 12px 14px 12px;
    }

    .cat-product-info h3 {
        font-size: 13px;
    }

    .cat-desc {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .cat-price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .cat-product-info .add-to-cart-btn {
        font-size: 10px;
        padding: 8px 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .catalogo-content {
        padding: 20px 16px 40px;
    }

    .title-line-1 {
        font-size: 30px;
    }

    .title-line-2 {
        font-size: 24px;
    }

    .catalogo-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cat-product-image {
        height: 200px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gsap-cat-card,
    .gsap-quote {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
