/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme - Seda Roja Custom
 * Author: Seda Roja
 * Template: blocksy
 * Text Domain: blocksy
 */

/* === TRUST BAR === */
.sedaroja-top-bar {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(252,185,0,0.15);
    position: relative;
    z-index: 1001;
    box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.sedaroja-top-bar-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
.stb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border-right: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    transition: opacity 0.3s;
}
.stb-item:last-child {
    border-right: none;
}
.stb-item:hover {
    opacity: 0.75;
}
.stb-icon {
    width: 18px;
    height: 18px;
    color: #fcb900;
    flex-shrink: 0;
}
.stb-text {
    color: rgba(255,255,255,0.85);
    font-size: 12.5px;
}
.stb-text strong {
    color: #fff;
    font-weight: 600;
}

/* === STOCK BADGE === */
.sedaroja-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sedaroja-stock-badge.in-stock {
    background: #4CAF50;
    color: #fff;
}
.sedaroja-stock-badge.out-of-stock {
    background: #f44336;
    color: #fff;
}

/* === SALE BADGE === */
.onsale {
    background: #e74c3c !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
}

/* === SHIPPING NOTE === */
.sedaroja-shipping-note {
    margin-top: 15px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 3px solid #fcb900;
    border-radius: 6px;
    font-size: 13.5px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stn-icon {
    width: 20px;
    height: 20px;
    color: #fcb900;
    flex-shrink: 0;
}

/* === CHECKOUT TRUST === */
.sedaroja-checkout-trust {
    margin: 20px 0;
    padding: 15px 18px;
    background: linear-gradient(135deg, #f0f8ff, #e8f4e8);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
}
.sedaroja-checkout-trust p {
    margin: 0;
    font-size: 14px;
    color: #155724;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* === PRODUCT CARD === */
.ct-woo-card-actions {
    transition: all 0.3s ease;
}
li.product:hover .ct-woo-card-actions {
    transform: translateY(-2px);
}
li.product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}
li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* === PRICE === */
.price {
    font-weight: 700 !important;
    font-size: 16px !important;
}
.price .amount {
    color: #e74c3c;
}
.sale-price .amount {
    color: #e74c3c !important;
}
del .amount {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

/* === BUTTONS === */
.button.add_to_cart_button,
.single_add_to_cart_button {
    background: linear-gradient(135deg, #fcb900, #f0a500) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #ffd700, #fcb900) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 185, 0, 0.4) !important;
}

/* === AGE GATE === */
.age-gate__wrapper {
    --ag-gradient: linear-gradient(135deg, rgba(13,13,26,0.97), rgba(26,26,46,0.97)) !important;
}
.age-gate__background-color {
    background: transparent !important;
}
.age-gate__background {
    background: url('https://sedaroja.com/wp-content/uploads/2025/10/Logo-Dorado-1-scaled.png') center/300px no-repeat, linear-gradient(135deg, #0d0d1a, #1a1a2e) !important;
    opacity: 0.4;
}
.age-gate {
    background: transparent !important;
}
.age-gate__form {
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(252,185,0,0.2);
    border-radius: 24px !important;
    padding: 45px !important;
    max-width: 420px !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.age-gate__heading-title--logo {
    max-width: 180px !important;
    height: auto !important;
}
.age-gate__headline {
    color: #fcb900 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-top: 12px !important;
}
.age-gate__subheadline {
    color: rgba(255,255,255,0.75) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    max-width: 320px;
    margin: 8px auto !important;
}
.age-gate__challenge {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
.age-gate__submit--yes {
    background: linear-gradient(135deg, #fcb900, #ffd700) !important;
    color: #0d0d1a !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
}
.age-gate__submit--yes:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(252,185,0,0.35);
}
.age-gate__submit--no {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.6) !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}
.age-gate__submit--no:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
}

/* === FOOTER === */
.wopb-heading-style15 .wopb-heading-inner {
    color: #fcb900 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
footer a {
    transition: color 0.3s ease !important;
}
footer a:hover {
    color: #fcb900 !important;
}

/* === HEADER TRUST LINE === */
.sedaroja-header-trust {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 6px 15px;
    background: #0a0a1a;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.sedaroja-header-trust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* === MISC === */
.ct-cart-item {
    position: relative;
}
.ct-header-cart .ct-cart-item .ct-label {
    color: #fcb900 !important;
}

/* === WOOCOMMERCE CATEGORY BADGE === */
ul.products li.product .entry-meta {
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
ul.products li.product .entry-meta a {
    background: rgba(252,185,0,0.12);
    padding: 2px 8px;
    border-radius: 3px;
    color: #fcb900 !important;
    font-weight: 600;
}

/* ===========================================================
   SEDA ROJA - UX & DESIGN ENHANCEMENTS
   Added: smooth scroll, hero, product hover, whatsapp float,
   back to top, sticky cart, mobile menu, age gate, blog
   =========================================================== */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: var(--theme-palette-color-2, #B22222); color: #fff; }
::-moz-selection { background: var(--theme-palette-color-2, #B22222); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #B22222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4af37; }

/* Hero section */
.stk-5cc302c { position: relative; }
.stk-5cc302c::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--theme-palette-color-4, #17383e) 0%, transparent 100%);
    pointer-events: none;
}
.stk-b23a5b8 .stk-block-heading__text {
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}
.stk-448db44 .stk-button {
    background: linear-gradient(135deg, #d4af37 0%, #f7e8a0 50%, #d4af37 100%) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.stk-448db44 .stk-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Category cards */
.wp-block-image {
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}
.wp-block-image:hover { transform: translateY(-5px); }
.wp-block-image img { transition: transform 0.5s ease; }
.wp-block-image:hover img { transform: scale(1.08); }

/* Product cards enhancements */
.woocommerce-loop-product__link { position: relative; overflow: hidden; }
.woocommerce-loop-product__link img { transition: transform 0.5s ease; }
.woocommerce-loop-product__link:hover img { transform: scale(1.06); }
.woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    transition: color 0.3s ease;
}
.woocommerce-loop-product__title:hover { color: var(--theme-palette-color-2, #B22222) !important; }
.price del { font-size: 13px !important; opacity: 0.6; }
.price ins { text-decoration: none !important; color: #B22222; }

/* Single product page */
.woocommerce-product-gallery {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1) !important;
}
.product_title { font-size: 28px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.single_add_to_cart_button {
    background: linear-gradient(135deg, #D4AF37 0%, #F7E8A0 50%, #D4AF37 100%) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 40px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
}
.sedaroja-shipping-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--theme-palette-color-3, #395155);
    display: flex;
    align-items: center;
    gap: 6px;
}
.stn-icon {
    width: 16px;
    height: 16px;
    color: #B22222;
    flex-shrink: 0;
}
.woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--theme-palette-color-3, #395155);
    padding: 16px 0;
    border-top: 1px solid var(--theme-palette-color-5, #DFDFE2);
    border-bottom: 1px solid var(--theme-palette-color-5, #DFDFE2);
    margin: 16px 0;
}
.woocommerce-tabs {
    border-top: 2px solid var(--theme-palette-color-5, #DFDFE2) !important;
    padding-top: 24px !important;
}
.woocommerce-tabs .tabs { border-bottom: 2px solid var(--theme-palette-color-5, #DFDFE2) !important; }
.woocommerce-tabs .tabs li.active a {
    color: #B22222 !important;
    border-bottom-color: #B22222 !important;
}
.related.products > h2 {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.related.products > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #B22222;
    border-radius: 2px;
}
.woocommerce-product-gallery__trigger {
    background: rgba(0,0,0,0.6) !important;
    border-radius: 50% !important;
}
.woocommerce-product-gallery__trigger:hover { background: #B22222 !important; }

/* Testimonials */
blockquote {
    background: linear-gradient(135deg, rgba(15,14,23,0.05) 0%, rgba(178,34,34,0.05) 100%);
    border-left: 4px solid #B22222;
    border-radius: 0 12px 12px 0;
    padding: 24px 30px;
}
blockquote p { font-style: italic; font-size: 16px; line-height: 1.7; }
blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 600;
    color: #B22222;
}

/* Shop sidebar */
.widget-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-palette-color-5, #DFDFE2);
    margin-bottom: 16px;
}
.widget li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.widget li a { transition: color 0.3s ease; }
.widget li a:hover { color: #B22222; }

/* Checkout trust box */
.sedaroja-checkout-trust {
    background: linear-gradient(135deg, rgba(15,14,23,0.03) 0%, rgba(178,34,34,0.03) 100%) !important;
    border: 1px solid rgba(178,34,34,0.15) !important;
}
.sedaroja-checkout-trust p { color: #155724 !important; }

/* Footer */
.ct-footer .widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4af37;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* Floating WhatsApp Button */
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top */
.sedaroja-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    background: var(--theme-palette-color-4, #17383e);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.sedaroja-back-to-top.visible { opacity: 1; visibility: visible; }
.sedaroja-back-to-top:hover { background: #d4af37; transform: translateY(-3px); }
.sedaroja-back-to-top svg { width: 20px; height: 20px; stroke: #d4af37; transition: stroke 0.3s ease; }
.sedaroja-back-to-top:hover svg { stroke: #1a1a2e; }

/* Sticky Add to Cart (Mobile) */
@media (max-width: 768px) {
    .sedaroja-sticky-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9997;
        background: rgba(15,14,23,0.95);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .sedaroja-sticky-cart.visible { transform: translateY(0); }
    .sedaroja-sticky-cart .ssc-price {
        flex: 1;
        font-size: 18px;
        font-weight: 700;
        color: #d4af37;
    }
    .sedaroja-sticky-cart .ssc-price del { font-size: 14px; opacity: 0.6; color: rgba(255,255,255,0.6); }
    .sedaroja-sticky-cart .ssc-price ins { text-decoration: none; }
    .sedaroja-sticky-cart .single_add_to_cart_button {
        margin: 0 !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }
    body.woocommerce-cart .sedaroja-sticky-cart,
    body.woocommerce-checkout .sedaroja-sticky-cart { display: none; }
}

/* Mobile Menu */
.ct-header-trigger:hover svg { color: #B22222 !important; }
#offcanvas .ct-panel-inner {
    background: linear-gradient(135deg, #0f0e17 0%, #1a1a2e 100%) !important;
}
#offcanvas .menu-item a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}
#offcanvas .menu-item a:hover { color: #d4af37 !important; }
#offcanvas .ct-toggle-close { color: #d4af37 !important; }
#offcanvas .sub-menu {
    border-left: 2px solid rgba(212,175,55,0.2) !important;
    margin-left: 16px !important;
}

/* Empty Cart */
.cart-empty { text-align: center; padding: 40px 20px !important; font-size: 18px !important; }
.return-to-shop .button {
    background: linear-gradient(135deg, #D4AF37 0%, #F7E8A0 50%, #D4AF37 100%) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.return-to-shop .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

/* Blog */
.ct-posts article { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ct-posts article:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.ct-posts .entry-title a { transition: color 0.3s ease; }
.ct-posts .entry-title a:hover { color: #B22222 !important; }

/* Breadcrumbs */
.ct-breadcrumbs { font-size: 13px; opacity: 0.8; }
.ct-breadcrumbs a { transition: color 0.3s ease; }
.ct-breadcrumbs a:hover { color: #B22222; }

/* Responsive */
@media (max-width: 768px) {
    .sedaroja-top-bar-inner { gap: 10px; }
    .stb-item { font-size: 10px; }
    .stb-icon { width: 12px; height: 12px; }
}
@media (max-width: 600px) {
    .product_title { font-size: 22px !important; }
    .price { font-size: 20px !important; }
    .woocommerce-product-gallery { border-radius: 12px !important; }
    .sedaroja-top-bar { padding: 6px 0; }
    .stk-b23a5b8 .stk-block-heading__text { font-size: 36px !important; }
}
/* --- Recently Viewed Products --- */
.sedaroja-recently-viewed { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.rv-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.rv-item { text-decoration: none; display: block; text-align: center; transition: transform 0.3s; }
.rv-item:hover { transform: translateY(-4px); }
.rv-item img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 8px; }
.rv-name { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.rv-price { display: block; font-size: 14px; color: #e74c3c; font-weight: 700; }
@media (max-width: 768px) { .rv-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px) { .rv-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Ocultar boton WhatsApp antiguo */
#sedaroja-wa-btn { width: 40px !important; height: 40px !important; }
#sedaroja-wa-btn svg { width: 20px !important; height: 20px !important; }

/* --- Ken Burns effect on background --- */
@keyframes kenBurns {
    0% { background-size: 110%; background-position: 50% 50%; }
    50% { background-size: 100%; background-position: 50% 50%; }
    100% { background-size: 110%; background-position: 50% 50%; }
}
.stk-5cc302c,
.stk-71d0377 {
    animation: kenBurns 30s ease-in-out infinite alternate;
}