/* Sección Catálogos — Cajita Melosa (mismo efecto hover que La Vinería) */
.catalogos-section {
    --cat-gold: #f4ac00;
    --cat-gold-dark: #c98900;
    --cat-title: #1a1715;
    padding: clamp(3.25rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #fffbf3 0%, #fff8e8 42%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.catalogos-section a.catalogos-item {
    text-decoration: none;
    color: inherit;
}

.catalogos-section::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(920px, 88vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 172, 0, 0.45), transparent);
}

.catalogos-header {
    margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

.catalogos-kicker {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(201, 137, 0, 0.92);
    margin: 0 0 0.35rem;
}

.catalogos-title-main {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--cat-title);
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.catalogos-heading-line {
    width: 4rem;
    height: 3px;
    margin: 0.5rem auto 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--cat-gold) 40%, #ffd56a 85%, transparent);
}

.catalogos-intro {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: rgba(26, 23, 21, 0.58);
    max-width: 22rem;
    margin: 0 auto;
    line-height: 1.4;
}

.catalogos-section .catalogos-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(14px, 3vw, 24px);
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .catalogos-section .catalogos-grid {
        gap: 18px 16px;
    }
}

.catalogos-section .catalogos-item {
    --cat-card-bg: #ffffff;
    flex: 0 0 auto !important;
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    text-decoration: none;
    cursor: pointer;
    min-height: clamp(4.125rem, 11vw, 4.75rem);
    padding: 10px 12px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--cat-card-bg);
    border: 1px solid rgba(26, 23, 21, 0.07);
    box-shadow:
        0 1px 2px rgba(26, 23, 21, 0.04),
        0 8px 24px rgba(26, 23, 21, 0.05);
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

/* Imagen de hover: fuera del flujo + reveal clip-path + pan vertical una vez */
.catalogos-item--has-image::before {
    content: none;
    display: none;
}

.catalogos-hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Empieza en la parte superior; en hover baja hasta la inferior */
    object-position: 50% 0%;
    border-radius: inherit;
    clip-path: inset(0 100% 0 0 round 14px);
    transition:
        clip-path 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        object-position 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
    z-index: 0;
    pointer-events: none;
}

.catalogos-item--has-image:hover .catalogos-hover-img,
.catalogos-item--has-image:focus-visible .catalogos-hover-img {
    clip-path: inset(0 0 0 0 round 14px);
    object-position: 50% 100%;
}

.catalogos-item--has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        rgba(244, 172, 0, 0.72) 0%,
        rgba(244, 172, 0, 0.42) 48%,
        rgba(255, 213, 106, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.42s ease 0.06s;
    z-index: 1;
    pointer-events: none;
}

.catalogos-item--has-image:hover::after,
.catalogos-item--has-image:focus-visible::after {
    opacity: 0;
}

.catalogos-item:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 172, 0, 0.38);
    box-shadow:
        0 2px 4px rgba(244, 172, 0, 0.12),
        0 14px 36px rgba(201, 137, 0, 0.1);
}

.catalogos-item:focus-visible {
    outline: 2px solid var(--cat-gold);
    outline-offset: 3px;
}

.catalogos-item:hover .catalogos-label,
.catalogos-item:focus-visible .catalogos-label {
    color: var(--cat-gold-dark);
}

.catalogos-item--has-image:hover .catalogos-label,
.catalogos-item--has-image:focus-visible .catalogos-label {
    opacity: 0;
    visibility: hidden;
}

.catalogos-item--has-image:hover .catalogos-btn,
.catalogos-item--has-image:focus-visible .catalogos-btn {
    opacity: 0;
    visibility: hidden;
    transform: none;
}

.catalogos-btn {
    width: clamp(52px, 12vw, 64px);
    height: clamp(52px, 12vw, 64px);
    background: linear-gradient(145deg, #fffdf8 0%, #fff4dc 100%);
    border-radius: 50%;
    border: 2px solid rgba(244, 172, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        opacity 0.32s ease,
        visibility 0.32s ease;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.catalogos-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 213, 106, 0.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.catalogos-item:hover .catalogos-btn,
.catalogos-item:focus-visible .catalogos-btn {
    transform: scale(1.06);
    border-color: rgba(244, 172, 0, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 14px rgba(244, 172, 0, 0.22);
}

.catalogos-item:hover .catalogos-btn::before {
    opacity: 1;
}

.catalogos-icon {
    color: var(--cat-gold-dark);
    font-size: clamp(26px, 5vw, 30px);
    font-weight: 400;
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s ease;
}

.catalogos-item:hover .catalogos-icon,
.catalogos-item:focus-visible .catalogos-icon {
    transform: rotate(90deg);
    color: var(--cat-gold);
}

.catalogos-label {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--cat-title);
    font-size: clamp(0.875rem, 2.1vw, 1rem);
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.28s ease, opacity 0.32s ease, visibility 0.32s ease;
    word-break: break-word;
    hyphens: auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .catalogos-section {
        padding: 3rem 0 clamp(3rem, 8vw, 4rem);
    }

    .catalogos-header {
        margin-bottom: 2rem;
    }

    .catalogos-grid {
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .catalogos-section::before {
        width: min(440px, 92vw);
    }

    .catalogos-header {
        margin-bottom: 1.25rem;
    }

    .catalogos-intro {
        font-size: 0.8125rem;
        padding: 0 8px;
    }

    .catalogos-grid {
        gap: 8px;
        padding: 0 12px;
    }

    .catalogos-item {
        flex-direction: row;
        align-items: center;
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalogos-item,
    .catalogos-btn,
    .catalogos-icon {
        transition: none !important;
    }

    .catalogos-item--has-image::after,
    .catalogos-hover-img {
        transition: none !important;
    }

    .catalogos-item--has-image:hover .catalogos-hover-img,
    .catalogos-item--has-image:focus-visible .catalogos-hover-img {
        clip-path: inset(0 0 0 0 round 14px);
        object-position: 50% 100%;
    }

    .catalogos-item--has-image:hover::after,
    .catalogos-item--has-image:focus-visible::after {
        opacity: 0;
    }

    .catalogos-item--has-image:hover .catalogos-label,
    .catalogos-item--has-image:focus-visible .catalogos-label,
    .catalogos-item--has-image:hover .catalogos-btn,
    .catalogos-item--has-image:focus-visible .catalogos-btn {
        opacity: 0;
        visibility: hidden;
    }

    .catalogos-item:hover {
        transform: none;
    }

    .catalogos-item:hover .catalogos-btn,
    .catalogos-item:focus-visible .catalogos-btn,
    .catalogos-item:hover .catalogos-icon,
    .catalogos-item:focus-visible .catalogos-icon {
        transform: none;
    }
}

/* Catálogo Regalos: composición tipo Apple (imagen dominante, sin caja envolvente) */
.our-shop .product-grid-apple {
    /* Mismo aire vertical que el gutter horizontal de Bootstrap (15px + 15px) */
    --apple-gap: 30px;
    row-gap: var(--apple-gap) !important;
}

.our-shop .product-grid-apple > .shop-block {
    display: flex;
    margin-bottom: var(--apple-gap) !important;
    padding-bottom: 0 !important;
}

.our-shop .shop-block {
    display: flex;
}

.our-shop .shop-block-one.product-card-apple,
.our-shop .shop-block-one {
    width: 100%;
    height: auto;
    display: flex;
}

.our-shop .shop-block-one .inner-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-align: center;
}

.our-shop .shop-block-one .inner-box:hover {
    transform: none;
    box-shadow: none !important;
    border-color: transparent;
}

.our-shop .shop-block-one .inner-box .image-box {
    flex-shrink: 0;
    width: 100%;
}

/* Media frame: fill square, crop suave centrado (práctica e-commerce) */
.our-shop .shop-block-one .inner-box .image-box .image {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border-radius: 28px;
    background: #fff8ec;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s ease;
}

.our-shop .shop-block-one .inner-box:hover .image-box .image {
    transform: scale(1.012);
    background: #fff3d9;
}

.our-shop .shop-block-one .inner-box .image-box .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--product-object-fit, cover);
    /* Hereda --product-* del figure (encuadre admin Blake) */
    object-position: var(--product-focus-x, 50%) var(--product-focus-y, 50%);
    transform: scale(calc(var(--product-optical-zoom, 1.06) * var(--product-user-zoom, 1)));
    transform-origin: var(--product-focus-x, 50%) var(--product-focus-y, 50%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        object-position 0.35s ease;
}

.our-shop .shop-block-one .inner-box:hover .image-box .image img {
    transform: scale(calc(var(--product-optical-zoom, 1.06) * var(--product-user-zoom, 1) * 1.038));
}

.our-shop .shop-block-one .inner-box .lower-content.product-detail-enhanced {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    padding: 1.35rem 0.5rem 0.25rem;
    text-align: center;
}

.our-shop .shop-block-one .inner-box .lower-content h6 {
    min-height: 2.5em;
    margin: 0 0 0.4rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.our-shop .shop-block-one .inner-box .lower-content h6 a {
    color: #1a1715;
}

.our-shop .shop-block-one .inner-box .lower-content h6 a:hover {
    color: #c98900;
}

.our-shop .product-card-subtitle {
    margin: 0 0 0.45rem;
    min-height: 2.6em;
    max-width: 18rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #6b6560;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.our-shop .product-card-subtitle--empty {
    visibility: hidden;
}

.our-shop .product-card-more {
    margin: 0 0 0.65rem;
    padding: 0;
    border: none;
    background: none;
    color: #a3720a;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    min-height: 1.2em;
}

.our-shop .product-card-more:hover {
    color: #c98900;
}

.our-shop .product-card-more--spacer {
    display: block;
    pointer-events: none;
}

.our-shop .shop-block-one .inner-box .lower-content .price {
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #1a1715;
}

.our-shop .product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    width: 100%;
}

.our-shop .shop-block-one .product-add-btn {
    width: auto !important;
    min-width: 8.5rem;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 1.35rem !important;
    border-radius: 980px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    line-height: 1 !important;
    text-transform: none !important;
    box-sizing: border-box;
}

.our-shop .product-subcategory {
    display: none;
}

@media (max-width: 767px) {
    .our-shop .shop-block-one .inner-box .image-box .image {
        border-radius: 22px;
        padding: 0;
    }

    .our-shop .shop-block-one .inner-box .lower-content.product-detail-enhanced {
        padding-top: 1.1rem;
    }

    .our-shop .shop-block-one .inner-box .lower-content h6 {
        font-size: 1.05rem;
    }
}

/* Redes sociales flotantes (mismo estilo que La Grabadería) */
.sticky-container1 {
    padding: 0;
    margin: 0;
    position: fixed;
    right: -130px;
    top: 230px;
    width: 190px;
    z-index: 1100;
}

.sticky-container1:hover {
    right: 0;
}

.sticky1 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky1 li {
    list-style-type: none;
    height: 60px;
    padding: 0;
    margin: 0 0 1px;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.sticky1 li img {
    float: left;
    margin: 5px 4px 5px 5px;
}

@media (max-width: 575px) {
    .sticky-container1 {
        right: 0;
        top: auto;
        bottom: 96px;
        width: auto;
    }

    .sticky1 li {
        height: auto;
    }
}

/* Botones header — estilo suave Cajita Melosa */
.cajita-nav-actions {
    gap: 10px;
}

.cajita-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.15rem;
    border-radius: 999px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.cajita-header-btn::before {
    display: none;
}

.cajita-header-btn--cart {
    background: linear-gradient(180deg, #fffdf8 0%, #fff6e6 100%);
    border-color: rgba(244, 172, 0, 0.45);
    color: #9a6a00 !important;
    box-shadow: 0 4px 14px rgba(244, 172, 0, 0.12);
}

.cajita-header-btn--cart i {
    font-size: 0.95rem;
    color: #f4ac00;
}

.cajita-header-btn--cart:hover,
.cajita-header-btn--cart:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 172, 0, 0.75);
    box-shadow: 0 8px 20px rgba(244, 172, 0, 0.2);
    color: #7a5200 !important;
}

.cajita-header-btn--cta {
    background: linear-gradient(135deg, #ffd36a 0%, #f4ac00 52%, #e89600 100%);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(244, 172, 0, 0.28);
}

.cajita-header-btn--cta:hover,
.cajita-header-btn--cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(244, 172, 0, 0.34);
    color: #fff !important;
}

.cajita-header-btn__count {
    font-weight: 600;
}

@media (max-width: 991px) {
    .cajita-nav-actions .cajita-header-btn {
        flex: 1 1 auto;
        min-height: 44px;
        padding: 0.58rem 1rem;
        font-size: 0.85rem;
    }
}
