/* Sección Catálogos — La Grabadería */
.catalogos-section {
    --cat-gold: #8c6d2a;
    --cat-gold-light: #b18b5e;
    --cat-title: #1a1715;
    padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(5.5rem, 10vw, 8.5rem);
    background: linear-gradient(180deg, #faf7f2 0%, #f5efe6 42%, #ffffff 100%);
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Espacio visual inferior para que la botella “entre” en Catálogos */
.catalogos-section .container {
    position: relative;
    z-index: 2;
}

.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(140, 109, 42, 0.4), transparent);
}

.catalogos-header {
    margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

.catalogos-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(140, 109, 42, 0.92);
    margin: 0 0 0.35rem;
}

.catalogos-title-main {
    color: var(--cat-title);
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
}

.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%, var(--cat-gold-light) 85%, transparent);
}

.catalogos-intro {
    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-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 24px);
    align-items: stretch;
}

@media (min-width: 992px) {
    .catalogos-grid {
        gap: 18px 16px;
    }
}

.catalogos-item {
    --cat-card-bg: #ffffff;
    flex: 1 1 calc(50% - 7px);
    width: calc(50% - 7px);
    max-width: 280px;
    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;
}

.catalogos-item--has-image::before {
    display: none;
}

.catalogos-hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Empieza arriba; en hover pan vertical hasta abajo (como Lavinería) */
    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(92, 74, 42, 0.78) 0%,
        rgba(140, 109, 42, 0.48) 48%,
        rgba(177, 139, 94, 0.34) 100%
    );
    opacity: 0;
    transition: opacity 0.42s ease 0.06s;
    z-index: 1;
    pointer-events: none;
}

.catalogos-item--has-image:hover::before,
.catalogos-item--has-image:focus-visible::before {
    clip-path: inset(0 0 0 0 round 14px);
}

.catalogos-item--has-image:hover::after,
.catalogos-item--has-image:focus-visible::after {
    opacity: 0;
}

.catalogos-item:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 109, 42, 0.32);
    box-shadow:
        0 2px 4px rgba(140, 109, 42, 0.1),
        0 14px 36px rgba(26, 23, 21, 0.08);
}

.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-title);
}

.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, #fffdf9 0%, #f5efe6 100%);
    border-radius: 50%;
    border: 2px solid rgba(140, 109, 42, 0.22);
    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(177, 139, 94, 0.35) 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(140, 109, 42, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 14px rgba(140, 109, 42, 0.2);
}

.catalogos-item:hover .catalogos-btn::before {
    opacity: 1;
}

.catalogos-icon {
    display: inline-block;
    color: var(--cat-gold);
    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: #5c4a2a;
}

.catalogos-label {
    flex: 1;
    color: var(--cat-title);
    font-size: clamp(0.875rem, 2.1vw, 1rem);
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.28s ease, text-shadow 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-grid {
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .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::before,
    .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% 50%;
    }

    .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 {
        opacity: 0;
        visibility: hidden;
    }

    .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 {
        transform: none;
    }

    .catalogos-item:hover .catalogos-icon,
    .catalogos-item:focus-visible .catalogos-icon {
        transform: none;
    }
}

/* Reveal al scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.55s ease var(--reveal-delay, 0ms),
        transform 0.55s ease var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Promo con botella breakout: solo fade, sin transform que atrapa el overflow */
.grabaderia-promo-reveal.reveal-on-scroll,
.grabaderia-promo-reveal.reveal-on-scroll.is-visible {
    transform: none !important;
}

.catalogos-reveal {
    position: relative;
    z-index: 1;
    overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .catalogos-item:hover .catalogos-icon {
        transform: none;
    }
}

/* Botones tema — base dorada Grabadería (el tema no define .theme-btn.btn-one) */
.theme-btn.btn-one,
.product-add-btn.theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background: #8c6d2a;
    color: #fff !important;
    border: none;
    border-radius: 980px;
    padding: 0 1.5rem;
    min-height: 44px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-btn.btn-one:hover,
.product-add-btn.theme-btn:hover,
.theme-btn.btn-one:focus-visible,
.product-add-btn.theme-btn:focus-visible {
    background: #6b5320;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(140, 109, 42, 0.22);
}


/* Cards producto */
.furniture__product {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.furniture__product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 23, 21, 0.08);
}

.furniture__product .product-thumb img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.furniture__product:hover .product-thumb img {
    transform: scale(1.04);
}

/* Catálogo productos: card estilo Apple (como cajitamelosa /regalos), paleta Grabadería */
.our-shop .product-grid-apple {
    --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%;
}

.our-shop .shop-block-one .inner-box .image-box .image {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border-radius: 28px;
    background: #f5efe6;
    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: #efe6d6;
}

.our-shop .shop-block-one .inner-box .image-box .image {
    overflow: hidden;
}

.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) */
    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));
}

/* figure.product-img-frame--custom define --product-user-zoom; el img lo hereda */

.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: #8c6d2a;
}

.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.15rem 0 1.1rem;
    padding: 0;
    border: none;
    background: none;
    color: #8c6d2a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    min-height: 1.2em;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.our-shop .product-card-more:hover {
    color: #6b5320;
}

.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;
    background: #8c6d2a !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.our-shop .shop-block-one .product-add-btn:hover,
.our-shop .shop-block-one .product-add-btn:focus-visible {
    background: #6b5320 !important;
    color: #fff !important;
    transform: none;
    box-shadow: none !important;
}

.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;
    }
}

/* Catálogo /productos: layout con sidebar de categorías (réplica de cajitamelosa /regalos) */
.shop-page-section .content-side {
    margin-bottom: 30px;
}

.shop-page-section .our-shop .catalog-toolbar {
    margin-bottom: 30px;
    text-align: center;
}

.shop-page-section .our-shop .catalog-toolbar .catalog-search {
    max-width: 100%;
}

.shop-page-section .catalog-empty {
    text-align: center;
    color: #8a827a;
    padding: 3rem 1rem;
}

/* Medidas idénticas a cajitamelosa (style.css .shop-sidebar) */
.shop-sidebar {
    position: relative;
    display: block;
    background: #fff;
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.10);
    padding: 43px 30px 40px 30px;
}

.shop-sidebar .widget-title {
    position: relative;
    display: block;
    margin-bottom: 22px;
}

.shop-sidebar .widget-title h4 {
    position: relative;
    display: block;
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    color: #1a1715;
}

.shop-sidebar .category-widget .widget-title {
    margin-bottom: 15px;
}

.shop-sidebar .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar .category-list > li {
    position: relative;
    display: block;
    margin-bottom: 15px;
}

.shop-sidebar .category-list > li:last-child {
    margin-bottom: 0;
}

.shop-sidebar .category-list a {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #141417;
    padding-left: 18px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.shop-sidebar .category-list a i {
    position: absolute;
    left: 0px;
    top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #8c6d2a;
}

.shop-sidebar .category-list a:hover,
.shop-sidebar .category-list a.is-active {
    color: #8c6d2a;
}

.shop-sidebar .category-sublist {
    list-style: none;
    margin: 8px 0 4px;
    padding: 0 0 0 18px;
}

.shop-sidebar .category-sublist li {
    margin-bottom: 4px;
}

.shop-sidebar .category-sublist a {
    display: inline-block;
    padding: 0;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: #6b6560;
    text-decoration: none;
    transition: color 0.25s ease;
}

.shop-sidebar .category-sublist a:hover,
.shop-sidebar .category-sublist a.is-active {
    color: #8c6d2a;
}

.shop-sidebar .category-sublist a.is-active {
    font-weight: 600;
}

@media (max-width: 991px) {
    .shop-page-section .sidebar-side {
        margin-top: 24px;
    }
}

/* Footer social hover */
.theme-social a {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-social a:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Promo CTA flecha */
.grabaderia-promo__btn span {
    display: inline-flex;
    transition: transform 0.25s ease;
}

.grabaderia-promo__btn:hover span {
    transform: translateX(4px);
}
