:root {
    --c-orange: #F28C28;
    --c-amber: #F5A623;
    --c-blue: #2C3E7A;
    --c-bg: #FFF8F0;
    --c-text: #1A2332;
    --c-muted: #6B7280;
    --c-border: #E5E7EB;
    --c-card: #fff;
    --font-display: 'Caveat', cursive;
    --font-body: 'Nunito', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}

.shop-hero {
    text-align: center;
    padding: 2rem 1.25rem 1rem;
}
.shop-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--c-orange);
    margin: 0 0 0.5rem;
}
.shop-intro {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.shop-controls {
    padding: 0 1.25rem 1rem;
    display: flex;
    justify-content: center;
}
.shop-toggle {
    display: flex;
    background: var(--c-card);
    border-radius: 50px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.shop-toggle-btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border: none;
    background: none;
    color: var(--c-muted);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
    white-space: nowrap;
}
.shop-toggle-btn.active {
    color: #fff;
}
.shop-toggle-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--c-orange);
    border-radius: 50px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}

.shop-view {
    display: none;
    padding: 0 1.25rem;
}
.shop-view.active {
    display: block;
}

.evento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}
.evento-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 0.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.evento-card:active {
    transform: scale(0.96);
}
.evento-card-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
.evento-card-emoji {
    font-size: 2rem;
}
.evento-card h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text);
    text-align: center;
    margin: 0;
}

.cat-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cat-search {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 2px solid var(--c-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--c-card);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.cat-search:focus {
    border-color: var(--c-orange);
}
.cat-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.cat-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    max-width: 600px;
    margin: 0 auto 0.5rem;
    scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: 2px solid var(--c-border);
    border-radius: 50px;
    background: var(--c-card);
    color: var(--c-muted);
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cat-chip.active {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: #fff;
}
.price-filter {
    max-width: 600px;
    margin: 0 auto 1rem;
}
.price-filter label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--c-muted);
    display: block;
    margin-bottom: 0.3rem;
}
.price-filter input[type="range"] {
    width: 100%;
    accent-color: var(--c-orange);
}

.shop-products {
    padding: 0 1.25rem 2rem;
}
.products-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.products-back {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-orange);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0;
    white-space: nowrap;
}
.products-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}
.products-empty {
    text-align: center;
    font-family: var(--font-body);
    color: var(--c-muted);
    padding: 3rem 1rem;
    font-size: 0.95rem;
}
.products-load-more {
    text-align: center;
    padding: 28px 0 8px;
}
.load-more-btn {
    padding: 12px 32px;
    background: var(--c-orange);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.load-more-btn:hover {
    background: #D47A20;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(242,140,40,0.3);
}
.products-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
    height: 220px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-card {
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.product-card:active {
    transform: scale(0.97);
}
.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-placeholder span {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}
.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.55rem;
    background: var(--c-orange);
    color: #fff;
    border-radius: 50px;
}
.product-heart {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.product-heart svg {
    transition: fill 0.2s, stroke 0.2s;
}
.product-heart.active svg {
    fill: var(--c-orange);
    stroke: var(--c-orange);
}
.product-heart:active {
    transform: scale(1.2);
}
.product-info {
    padding: 0.6rem 0.75rem 0.75rem;
}
.product-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.product-price {
    display: none;
}

.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}
.bottom-sheet.open {
    pointer-events: auto;
    visibility: visible;
}
.bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.35s;
}
.bottom-sheet.open .bottom-sheet-overlay {
    background: rgba(0,0,0,0.5);
}
.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--c-card);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.bottom-sheet.open .bottom-sheet-content {
    transform: translateY(0);
}
.bs-handle {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
    cursor: pointer;
}
.bs-handle span {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}
.bs-body {}
.bs-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}
.bs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bs-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bs-placeholder span {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}
.bs-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    background: var(--c-orange);
    color: #fff;
    border-radius: 50px;
}
.bs-details {
    padding: 1rem 1.25rem 1.5rem;
}
.bs-name {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 0.3rem;
}
.bs-price {
    display: none;
}
.bs-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.5;
    margin: 0 0 0.8rem;
}
.bs-avail {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.bs-avail a {
    color: var(--c-orange);
    text-decoration: underline;
}
.bs-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.bs-wa-btn {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.8rem 1.25rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.bs-wa-btn:active {
    background: #1da851;
}
.bs-heart-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--c-border);
    background: var(--c-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.bs-heart-btn.active {
    border-color: var(--c-orange);
}
.bs-heart-btn.active svg {
    fill: var(--c-orange);
    stroke: var(--c-orange);
}
.bs-related {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--c-border);
}
.bs-related h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 0.75rem;
}
.bs-related-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bs-related-scroll::-webkit-scrollbar { display: none; }
.bs-related-card {
    flex: 0 0 120px;
    scroll-snap-align: start;
    cursor: pointer;
}
.bs-related-card img,
.bs-rel-ph {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bs-rel-ph span {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
}
.bs-related-card p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--c-text);
    margin: 0.3rem 0 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bs-related-card span {
    display: none;
}

body.bs-open,
body.lb-open,
body.wl-open {
    overflow: hidden;
}

.shop-note {
    padding: 0 1.25rem 2.5rem;
}
.shop-note-inner {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF3E0, #FFF8F0);
    border: 2px dashed var(--c-amber);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.shop-note-inner p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--c-text);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}
.btn-wa-note {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* Wishlist panel styles moved to main.css */

.wa-inline-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.wa-inline-popup-visible {
    opacity: 1;
}
.wa-inline-popup-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.wa-inline-popup-box {
    position: relative;
    background: var(--c-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 300px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.wa-inline-popup-box p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text);
    margin: 0 0 1rem;
}
.wa-inline-popup-btns {
    display: flex;
    gap: 0.5rem;
}
.wa-inline-confirm {
    flex: 1;
    padding: 0.6rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.wa-inline-cancel {
    flex: 1;
    padding: 0.6rem;
    background: #f5f5f5;
    color: var(--c-muted);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.galleria-hero {
    text-align: center;
    padding: 2rem 1.25rem 1rem;
}
.galleria-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--c-orange);
    margin: 0 0 0.5rem;
}
.galleria-intro {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-muted);
    max-width: 480px;
    margin: 0 auto;
}
.galleria-filters {
    padding: 0 1.25rem 1rem;
}
.gal-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    scrollbar-width: none;
}
.gal-chips::-webkit-scrollbar { display: none; }
.gal-chip {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: 2px solid var(--c-border);
    border-radius: 50px;
    background: var(--c-card);
    color: var(--c-muted);
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: all 0.2s;
    flex-shrink: 0;
}
.gal-chip.active {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: #fff;
}
.galleria-grid {
    columns: 2;
    column-gap: 0.5rem;
    padding: 0 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.gal-item {
    break-inside: avoid;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.gal-item:active {
    transform: scale(0.97);
}
.gal-item img {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}
.gal-placeholder {
    width: 100%;
    aspect-ratio: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.gal-placeholder span {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}
.galleria-empty {
    text-align: center;
    font-family: var(--font-body);
    color: var(--c-muted);
    padding: 3rem 1rem;
}
.galleria-error {
    text-align: center;
    font-family: var(--font-body);
    color: var(--c-orange);
    padding: 3rem 1rem;
}
.galleria-instagram {
    padding: 2rem 1.25rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #FFECD2, #FCB69F);
}
.galleria-ig-inner {
    max-width: 400px;
    margin: 0 auto;
}
.galleria-ig-inner h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 0.3rem;
}
.galleria-ig-inner p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-text);
    opacity: 0.7;
    margin: 0 0 1rem;
}
.btn-ig {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    background: var(--c-text);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s;
}
.btn-ig:active {
    transform: scale(0.96);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-info {
    margin-top: 0.75rem;
    text-align: center;
}
.lightbox-evento {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.5rem;
    text-transform: capitalize;
}
.lightbox-wa {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .evento-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    .products-skeleton {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    .galleria-grid {
        columns: 3;
        max-width: 900px;
    }
    .shop-title,
    .galleria-title {
        font-size: 3rem;
    }
    .bottom-sheet-content {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }
    .bottom-sheet.open .bottom-sheet-content {
        transform: translateX(-50%) translateY(0);
    }
    .cat-search-wrap,
    .cat-chips,
    .price-filter,
    .gal-chips {
        max-width: 900px;
    }
}
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1100px;
    }
    .evento-grid {
        max-width: 1100px;
    }
    .galleria-grid {
        max-width: 1100px;
    }
}
