/* General Shop Styles */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --color-text: #1a1a1a;
    --color-subtext: #666;
    --color-accent: #000;
    --color-bg: #fff;
    --color-light-bg: #f8f8f8;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
    -ms-touch-action: none;
}

.shop-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 140px 0 40px;
    overflow-x: hidden;
}

/* Hero Section (Legacy/Fallback) */
.shop-hero {
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 60px;
    position: relative;
}

.shop-hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #000;
    margin: 40px auto 0;
}

.shop-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: var(--color-text);
}

.shop-title-accent {
    font-style: italic;
    font-weight: 400;
    color: #444;
}

.shop-subtitle {
    font-size: 1.1rem;
    color: var(--color-subtext);
    letter-spacing: 0.05em;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0;
}

/* Filter Section */
.filter-section {
    margin-bottom: 60px;
    padding: 0;
    border: none;
    text-align: center;
}

.filter-container {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--color-light-bg);
    padding: 8px;
    border-radius: 40px;
}

.filter-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 20px 0;
    justify-content: center;
    align-items: start;
}

/* Minimalist Product Card */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    background: transparent;
    margin-bottom: 0px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity .4s, transform .4s;
}

/* Hover details overlay for Shop/Catalog */
.product-image .masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.product-image:hover .masonry-overlay {
    opacity: 1;
}

.product-image .overlay-content {
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.product-image:hover .overlay-content {
    transform: translateY(0);
}

.product-image .overlay-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.6rem;
    margin: 0 0 12px 0;
    font-weight: 400;
    color: #111;
    line-height: 1.2;
}

.product-image .overlay-details {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

body:not(.catalog-page) .product-image:hover img {
    transform: scale(1.05);
}

/* Sold Overlay */
.product-card.sold {
    position: relative;
}

.product-card.sold::after {
    content: 'VENDIDO';
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

body.lang-en .product-card.sold::after {
    content: "SOLD";
}

.product-card.sold .product-price {
    text-decoration: line-through;
    opacity: 0.5;
    display: none;
}

.product-card.sold .btn-grid-buy {
    display: none !important;
}

.product-card.sold .btn-grid-details {
    border-right: none;
}

/* Lightbox Modal (Pure Image Zoom) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s, background-color 0.3s;
    background-color: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    user-select: none;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
}


/* Info */
.product-info {
    text-align: center;
    flex-grow: 1;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 4px 0;
    color: #000;
}

.product-artist {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-price {
    color: #000;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Shop Info Section */
.shop-info-section {
    background-color: var(--color-light-bg);
    padding: 80px 20px;
    margin-top: 100px;
}

.shop-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.shop-info-item {
    flex: 1;
    min-width: 250px;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000;
}

.shop-info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.shop-info-item p {
    color: var(--color-subtext);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Image Modal Styling */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    /* Increased to ensure it covers navbar/footer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    display: flex;
    margin: auto;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.modal-image-wrapper {
    flex: 1.5;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #111;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.3s, background-color 0.3s;
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    color: #fff;
    background-color: #111;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.modal-info-wrapper {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.modal-dimensions,
.modal-technique {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-price {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 30px;
    color: #000;
}

.btn-modal-buy {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-modal-buy:hover {
    background: #333;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #000;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.modal-close:hover {
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Minimalist Grid Actions */
.product-actions-grid {
    display: flex;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.btn-grid-action {
    flex: 1;
    background: transparent;
    border: none;
    color: #000;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-grid-details {
    border-right: 1px solid #eee;
}

.btn-grid-action:hover {
    background: #fafafa;
}

.product-card.hidden {
    display: none;
}

/* --- Vertical Shop Hero (Landing) --- */
.shop-hero-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 48px;
    gap: 40px;
}

.hero-header {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Eyebrow line */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bbb;
    margin: 0 0 22px;
}

.hero-eyebrow-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: #ddd;
    display: block;
}

/* Title */
.shop-hero-vertical .shop-title {
    font-size: 4.2rem;
    margin: 0 0 12px;
    line-height: 1.05;
}

/* Subtitle */
.shop-hero-vertical .shop-subtitle {
    font-size: 0.78rem;
    color: #aaa;
    letter-spacing: 0.22em;
    margin: 0 0 36px;
}

/* CTA area */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    transition: background 0.22s, gap 0.22s;
}

.hero-catalog-btn svg {
    transition: transform 0.22s;
    flex-shrink: 0;
}

.hero-catalog-btn:hover {
    background: #222;
    gap: 16px;
    color: #fff;
}

.hero-catalog-btn:hover svg {
    transform: translateX(4px);
}

.hero-obra-count {
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: #bbb;
    text-transform: uppercase;
}

/* Mobile */
@media (max-width: 600px) {
    .shop-hero-vertical .shop-title {
        font-size: 2.8rem;
    }
    .hero-catalog-btn {
        width: 100%;
        justify-content: center;
    }
}

.hero-featured {
    width: 100%;
    max-width: 100%;
}



/* --- Carousel Styling Refinement --- */
.shop-hero-vertical .featured-carousel-wrapper {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-top: 20px;
}

.shop-hero-vertical .featured-label {
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #666;
    position: relative;
    display: inline-block;
}

/* Add decorative lines to label */
.shop-hero-vertical .featured-label::before,
.shop-hero-vertical .featured-label::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ddd;
}

.shop-hero-vertical .featured-label::before {
    right: 100%;
    margin-right: 15px;
}

.shop-hero-vertical .featured-label::after {
    left: 100%;
    margin-left: 15px;
}

/* When label is inside the row (has a sibling link), hide the right line */
.featured-label-row .featured-label::after {
    display: none;
}

/* Restore Carousel Logic Styles */
.carousel-container-mini {
    position: relative;
    width: 100%;
    padding: 0 72px;
    box-sizing: border-box;
}

.carousel-container-mini .carousel-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: none;
    max-width: 100%;
    box-sizing: border-box;
}

.carousel-container-mini .carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-container-mini .carousel-card {
    flex: 0 0 450px;
    /* Use a significantly wider card for organic aspect ratios to breathe and appreciate the image */
    margin: 0;
    scroll-snap-align: center;
    box-sizing: border-box;
}

.carousel-container-mini .product-image {
    aspect-ratio: auto;
    height: 320px;
}

.carousel-container-mini .product-image img {
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    width: 100%;
}

.carousel-container-mini .product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.carousel-container-mini .product-price {
    font-size: 0.8rem;
    color: #000;
}

/* Mobile Adjustments */
/* Mobile Adjustments */
@media (max-width: 900px) {
    .shop-hero-vertical {
        padding: 40px 0;
        gap: 30px;
    }

    .shop-hero-vertical .shop-title {
        font-size: 2.5rem;
    }

    .carousel-container-mini {
        padding: 0 20px;
    }

    .carousel-container-mini .carousel-card {
        flex: 0 0 320px;
    }

    .carousel-container-mini .product-image {
        height: auto;
    }
}

@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .products-grid {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .shop-info-container {
        flex-direction: column;
        align-items: center;
    }

    .shop-info-section {
        padding: 50px 20px;
        margin-top: 60px;
    }

    .image-modal {
        background-color: #fff;
    }

    .modal-container {
        flex-direction: column;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        overflow-y: auto;
        border-radius: 0;
        margin-top: 0;
        width: 100%;
        box-shadow: none;
    }

    .modal-image-wrapper {
        padding: 15px;
        flex: 1 1 auto;
        /* Allow image wrapper to taking remaining space */
        min-height: 40vh;
        /* Ensure image is visible */
    }

    .modal-image {
        max-height: 40vh;
    }

    .modal-info-wrapper {
        padding: 20px;
        flex: none;
        /* Prevent this from growing */
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .modal-price {
        font-size: 1.1rem;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .btn-modal-buy {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Standard scrolling layout for mobile */
@media (max-width: 600px) {

    /* Allow natural scrolling */
    .shop-container {
        padding-top: 60px;
        padding-bottom: 20px;
        min-height: 100vh;
        display: block;
        /* Remove flex constraints */
        overflow-x: hidden;
        /* clave */
        overflow-y: visible;
    }

    /* Hero adjusts to content */
    .shop-hero-vertical {
        padding: 27px 15px !important;
        gap: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 20px;
        /* Reduced from 40px */
    }

    .hero-header {
        margin-bottom: 10px;
    }

    .shop-hero-vertical .shop-title {
        font-size: 2rem;
        margin: 0 0 5px 0;
        line-height: 1.2;
    }

    .shop-hero-vertical .shop-subtitle {
        font-size: 0.9rem;
        margin: 0;
    }

    .shop-hero-vertical .featured-label {
        display: block;
        /* Show label again */
        font-size: 1rem;
        margin-bottom: 15px;
        color: #999;
    }

    .shop-hero-vertical .featured-carousel-wrapper {
        margin-top: 10px;
        /* Reduced from 20px */
        width: 100%;
        display: block;
    }

    .carousel-container-mini {
        padding: 0 15px;
    }

    .carousel-container-mini .product-image {
        height: 220px;
    }

    .carousel-container-mini .carousel-card {
        flex: 0 0 85%;
        margin: 0;
    }

    .carousel-container-mini .product-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .carousel-container-mini .product-price {
        font-size: 0.9rem;
        padding: 5px 0;
    }

    /* CTA Text/Button */
    .shop-cta-section {
        padding: 0 0 40px;
        /* Removed top padding, kept bottom */
        text-align: center;
    }

    .btn-see-all {
        padding: 15px 0 !important;
        font-size: 0.85rem;
        background: #000;
        color: #fff;
        width: 100%;
        min-width: unset;
        border-radius: 0;
        display: block;
    }

    /* Use regular flow for Info Section */
    .shop-info-section {
        position: relative;
        /* Not fixed */
        width: 100%;
        height: auto;
        padding: 40px 20px;
        background-color: #fcfcfc;
        border-top: 1px solid #ddd;
        z-index: 1;
        display: block;
    }

    .shop-info-container {
        display: flex;
        flex-direction: row;
        /* Horizontal alignment */
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        text-align: center;
    }

    .shop-info-item {
        flex: 1;
        padding: 0;
        border: none;
        width: auto;
    }

    .info-icon {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .shop-info-item h3 {
        font-size: 0.75rem;
        margin-bottom: 0;
        display: block;
        line-height: 1.2;
    }

    .shop-info-item p {
        display: none;
        /* Hide desc to fit side-by-side */
    }

    /* Restore Footer */
    footer {
        display: block;
        padding: 40px 0 80px;
        /* Extra padding at bottom */
    }


    /* Mobile-specific button adjustments (smaller) */
    .product-actions-grid {
        margin-top: auto;
        /* Ensure it stays at bottom */
    }

    .btn-grid-action {
        padding: 10px 0;
        font-size: 0.70rem;
    }

    .btn-grid-details {
        border-right: 1px solid #eee;
        background: transparent;
        border-top: none;
        border-left: none;
        border-bottom: none;
    }

    .btn-grid-buy {
        background: transparent;
        color: #000;
        border: none;
    }
}

@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .products-grid {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .shop-info-container {
        align-items: center;
    }

    .shop-info-section {
        padding: 50px 20px;
        margin-top: 60px;
    }

    .modal-container {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
        /* Prevent covering screen edges completely */
        width: 90%;
        margin: auto;
        border-radius: 12px;
        /* iOS card feel */
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .modal-image-wrapper {
        padding: 0;
        /* Remove padding */
        height: 40vh;
        /* Fixed height for image area */
        background: #f8f8f8;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .modal-image {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        padding: 20px;
    }

    .modal-info-wrapper {
        padding: 20px;
        /* Reduced padding */
        overflow-y: auto;
        /* Scroll info if needed */
        max-height: 40vh;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 2rem;
    }

    .shop-subtitle {
        font-size: 0.9rem;
    }

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

    .filter-container {
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .filter-btn {
        width: 100%;
        border: 1px solid #eee;
        margin-bottom: 5px;
        padding: 10px;
    }

    .filter-btn.active {
        box-shadow: none;
        border-color: #000;
    }

    .modal-close {
        top: 20px;
        right: 20px;
    }
}

/* --- Catalog / Sidebar Layout --- */
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

.catalog-header-actions {
    margin-bottom: 20px;
}

.back-link {
    text-decoration: none;
    color: #666;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #000;
}

.catalog-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.catalog-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 40px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

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

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-filter-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s;
    text-align: left;
}

.sidebar-filter-btn:hover,
.sidebar-filter-btn.active {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
}

/* Price Inputs in Sidebar */
.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #333;
}

.price-filter-arrow {
    background: #ccc;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.price-filter-arrow:hover {
    background: #000;
}

/* Catalog Content Grid Override */
.catalog-content .products-grid {
    padding-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* ── Floating Catalog Banner (removed) ── */

.shop-cta-section {
    text-align: center;
    padding: 72px 20px;
    background: #0e0e0e;
    margin: 20px 0 0;
    position: relative;
    overflow: hidden;
}

.shop-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.018) 40px,
        rgba(255,255,255,0.018) 41px
    );
    pointer-events: none;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 28px;
    position: relative;
}

/* Featured label row (unused now, kept for safety) */
.featured-label-row { display: contents; }
.featured-ver-todo { display: none; }

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    color: #000;
    padding: 20px 52px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    transition: background 0.25s, gap 0.3s, box-shadow 0.25s;
}

.btn-see-all::after {
    content: '→';
    font-size: 1rem;
    font-weight: 300;
    transition: transform 0.25s;
}

.btn-see-all:hover {
    background: #f0f0f0;
    gap: 22px;
    box-shadow: 0 0 50px rgba(255,255,255,0.14);
    color: #000;
}

.btn-see-all:hover::after {
    transform: translateX(5px);
}



/* Mobile Responsiveness for Catalog */
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Inline filters for mobile/tablet */
    .catalog-sidebar {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Force horizontal */
        gap: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
        align-items: flex-end;
        /* Align labels/inputs */
    }

    .sidebar-section {
        flex: 1;
        /* Equal width */
        min-width: 0;
        margin-bottom: 0;
    }

    .filter-dropdown {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {

    /* ... existing mobile styles ... */
    .shop-title {
        font-size: 2rem;
    }

    .shop-subtitle {
        font-size: 0.9rem;
    }

    /* Force 2 columns on mobile ONLY */
    .catalog-content .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* Scale down text to fit nicely in 2 columns */
    .catalog-content .product-card {
        margin-bottom: 15px;
    }

    .catalog-content .product-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 3px;
        padding: 0 5px;
    }

    .catalog-content .product-price {
        font-size: 0.8rem;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .catalog-content .btn-grid-action {
        font-size: 0.55rem;
        padding: 8px 2px;
        gap: 3px;
    }

    .catalog-content .btn-icon svg {
        width: 12px;
        height: 12px;
    }

    .product-card {
        margin-bottom: 20px;
    }

    /* Hide sidebar filter logic if needed, but we start with horizontal */
    .filter-container {
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .filter-btn {
        width: 100%;
        border: 1px solid #eee;
        margin-bottom: 5px;
        padding: 10px;
    }

    .filter-btn.active {
        box-shadow: none;
        border-color: #000;
    }

    .modal-close {
        top: 20px;
        right: 20px;
    }
}

/* --- Novedades Section --- */
.shop-novedades-section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.novedades-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    color: #333;
}

@media (max-width: 768px) {
    .shop-novedades-section {
        padding: 40px 20px;
    }

    .novedades-title {
        font-size: 2rem;
    }
}