/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f5576c;
    --success-color: #25D366;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.logo h1 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 0.9em;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-cart {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.btn-cart:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Category Grid (Global/Shared) */
.categories-grid-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .categories-grid-primary {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
}

.categories-grid-primary .category-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #f0f0f0;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.categories-grid-primary .category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.categories-grid-primary .category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    height: 100px;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.categories-grid-primary .category-icon svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.categories-grid-primary .category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.categories-grid-primary h3 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.categories-grid-primary p {
    color: var(--text-light);
    font-size: 1.1em;
}

/* Products Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.5s ease, opacity 0.5s ease;
}

.img-blur-up {
    filter: blur(20px);
    opacity: 0.7;
}

.img-blur-up.loaded {
    filter: blur(0);
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-card h3 {
    color: var(--accent-color);
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.85em;
    line-height: 1.3;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.product-price .current-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1em;
}

.btn-add {
    width: 100%;
    padding: 11px 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
}

.btn-add:hover {
    transform: scale(1.05);
}

.btn-add:active {
    transform: scale(0.95);
}

/* Minimalist Product Card (Shared) */
.product-card.minimalist {
    border: none;
    border-radius: 0;
    position: relative;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
}

.product-card.minimalist:hover {
    box-shadow: none;
    transform: none;
}

.product-card.minimalist .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fdfdfd;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-card.minimalist .product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-card.minimalist h3 {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.2;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.9em;
}

.badge-sale {
    display: inline-block;
    background: #fff5f5;
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    width: fit-content;
    border: 1px solid #fed7d7;
}

/* Minimalist Button and Card Styles (Unified) */
.product-card.minimalist .btn-add-minimal,
.btn-add-minimal {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.btn-add-minimal:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.product-card.minimalist h3 {
    color: var(--text-dark) !important;
    font-size: 1em !important;
    margin-bottom: 5px !important;
}

.product-price .current-price {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination button {
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    padding: 10px 20px;
    color: var(--text-light);
    font-weight: 500;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.cart-modal.active {
    display: block;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    color: var(--text-dark);
    font-size: 1.5em;
}

.btn-close-cart {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.btn-clear-cart {
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--text-light);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.btn-clear-cart:hover {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #e53e3e;
    transform: translateY(-2px);
}

.btn-close-cart:hover {
    color: var(--accent-color);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item h4 {
    color: var(--text-dark);
    font-size: 1em;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.btn-quantity {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s;
}

.btn-quantity:hover {
    background: var(--secondary-color);
}

.btn-remove {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-remove:hover {
    background: #ff3838;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.cart-modal-footer {
    border-top: 2px solid #e0e0e0;
    padding: 20px;
}

.cart-total {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-total h3 {
    font-size: 1.2em;
    margin: 0;
}

.total-amount {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, background 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background: #128C7E;
}

.btn-whatsapp:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* About / Features Section */
.about-section {
    padding: 40px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon-large {
    font-size: 4em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background: var(--white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.contact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-dark);
    font-weight: 500;
}

/* General Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cart-modal-content {
        width: 100%;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid,
    .categories-grid-primary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 15px;
    }

    .product-card h3 {
        font-size: 1.1em;
    }

    .cart-modal-content {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid,
    .categories-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .categories-grid-primary {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    .categories-grid-primary .category-card {
        padding: 30px 15px;
    }

    .categories-grid-primary .category-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }

    .categories-grid-primary h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 15px;
    }

    .products-section {
        padding: 10px 0;
    }

    .feature-icon-large {
        font-size: 3em;
    }

    .about-section,
    .categories-section,
    .contact-section {
        padding: 10px 0;
    }
}

/* Product Detail Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.product-modal-overlay.active {
    display: flex;
}

.product-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    animation: modalBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalBounce {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.btn-close-modal:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(90deg);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow-y: auto;
}

.product-modal-image {
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
}

.product-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: var(--white);
}

.product-modal-info .info-top h2 {
    font-size: 2em !important;
    color: var(--text-dark) !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    line-height: 1.1 !important;
}

.info-description p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05em;
}

.info-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.btn-whatsapp-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp-detail:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        position: absolute;
        bottom: 0;
    }

    .product-modal-image {
        padding: 60px 20px 20px;
    }

    .product-modal-image img {
        max-height: 250px;
    }

    .product-modal-info {
        padding: 20px;
    }

    .product-modal-info .info-top h2 {
        font-size: 1.5em !important;
    }
}

/* Image Zoom (Lightbox) */
.zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.product-modal-image:hover .zoom-hint {
    opacity: 1;
}

.product-modal-image {
    cursor: zoom-in;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.zoom-overlay.active {
    opacity: 1;
}

.zoom-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.zoom-image-container img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-close-zoom {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-close-zoom:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .btn-close-zoom {
        top: -50px;
        right: 10px;
    }
}

/* Shimmer Loading Effect */
.shimmer-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shimmer-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.shimmer-title {
    height: 15px;
    width: 80%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.shimmer-badge {
    height: 12px;
    width: 40%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.shimmer-price {
    height: 20px;
    width: 60%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.shimmer-btn {
    height: 40px;
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.shimmer-image::after,
.shimmer-title::after,
.shimmer-badge::after,
.shimmer-price::after,
.shimmer-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Category Shimmer */
.shimmer-category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
}

.shimmer-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.shimmer-title-short {
    height: 18px;
    width: 60%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.shimmer-desc-lines {
    height: 12px;
    width: 90%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.shimmer-icon-circle::after,
.shimmer-title-short::after,
.shimmer-desc-lines::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

/* Contact Map */
.map-container {
    margin-top: 20px;
    /* Reducido para que se pegue al título de sección si hay uno */
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin-top: 30px;
    }
}

/* Unified Contact Card */
.unified-contact-card {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    margin-top: 40px;
    /* Cambiado de -60px a 40px para dar separación real */
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 1.8em;
    line-height: 1;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.detail-text h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.detail-text p {
    color: var(--text-dark);
    font-size: 0.95em;
    margin: 0;
}

.contact-actions {
    text-align: center;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    background: #20BA5A;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
        margin-top: 20px;
    }

    .unified-contact-card {
        padding: 30px 20px;
        margin-top: -40px;
        border-radius: 20px;
    }

    .contact-header h2 {
        font-size: 1.8em;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-whatsapp-large {
        width: 100%;
        justify-content: center;
        font-size: 1.1em;
        padding: 15px 25px;
    }
}