@import url("../../base/css/base.9b5ffac4f500.css");

.container {
    width: 95%;
    padding: 90px 0px 40px 0px;
    margin-inline: auto;
}

/* CITY BANNER */
.city-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.city-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.city-banner__info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 15px;
}

.city-banner__info svg {
    fill: white;
    flex-shrink: 0;
}

.city-banner__info strong {
    font-weight: 600;
}

.city-banner__change {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.city-banner__change:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.city-banner__change svg {
    fill: white;
}

@media (max-width: 600px) {
    .city-banner {
        padding: 14px 16px;
    }
    
    .city-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .city-banner__info {
        font-size: 14px;
    }
    
    .city-banner__change {
        justify-content: center;
    }
}

/* BREADCRUMBS */
.breadcrumbs {
    margin-bottom: 18px;
    padding-left: 4px;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 800px) {
    .breadcrumbs__list {
        gap: 4px;
    }
}

.breadcrumbs__item {
    display: inline;
}

.breadcrumbs__link {
    color: var(--black-500);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.breadcrumbs__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs__separator {
    display: flex;
    align-items: center;
    user-select: none;
}

.breadcrumbs__separator svg {
    fill: var(--gray-200);
    opacity: 0.8;
}

.breadcrumbs__item--active span {
    color: var(--black-400);
    font-size: 16px;
    font-weight: 500;
}

/* PAGE TITLE */
.page-title {
    font-size: 28px;
    color: var(--black-400);
    text-align: center;
    font-family: var(--font-base-medium);
    margin: 20px 0;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 24px;
        margin: 16px 0;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__separator,
    .breadcrumbs__item--active span {
        font-size: 16px;
    }
}

/* HEADING (DEPRECATED - kept for backward compatibility) */
.heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-block: 20px;
}

.heading__subtitile {
    font-size: 12px;
    color: var(--black-500);
    text-align: center;
}

.heading__title {
    font-size: 28px;
    color: var(--black-400);
    text-align: center;
    font-family: var(--font-base-medium);
}

/* SEARCH BAR */
.search-bar {
    margin: 8px auto 0;
    width: 100%;
    max-width: 700px;
    /* padding-inline: 12px; */
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 1px solid #c0c0c0;
    padding: 0 14px 0 44px; /* left space for icon */
    font-size: 14px;
    font-family: var(--font-base-regular);
    box-sizing: border-box;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px 18px;
    /* Inline SVG for search icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23919191' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.search-input:focus {
    outline: none;
    border-color: #6d6d6d;
}

.filter-pills {
    margin: 10px auto 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 6px 2px 0;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

.pill {
    --pill-border: var(--gray-200);
    border: 1px solid var(--pill-border);
    background: transparent;
    color: var(--black-400);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 16px;
    font-family: var(--font-base-medium);
    cursor: pointer;
    white-space: nowrap;
}

.pill:hover {
    border-color: var(--black-500);
}

.pill:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.pill--active {
    background: var(--emphasis-color);
    color: var(--color-white);
    border-color: var(--emphasis-color);
}

.no-items {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 32px;
    margin-inline: 16px;
}


/* PRODUCT CARDS */

.products {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
    row-gap: 32px;
    column-gap: 16px;
}

.card {
    /* background-color: rgb(255, 189, 189); */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    line-height: 1;
    overflow: hidden;
    /* border: 1px solid #e2e2e2;
    padding: 8px;
    box-sizing: initial;
    border-radius: 16px; */
}

.image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: rgb(242, 242, 242);
}

/* NEW badge for product detail image */
/* .product-meta {
    font-size: 14px;
    position: absolute;
    padding: 4px 16px;
    background-color: #d0f3e2;
    color: rgb(5, 153, 42);
    border-radius: 4px;
    opacity: 0.9;
    left: 12px;
    top: 12px;
    margin: 0;
} */

/* Tags container — positions both NUEVO and discount badges */
.product-tags {
    position: absolute;
    left: 5px;
    top: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

.product-meta--price {
    padding: 10px 18px 10px 10px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    /* Estilos de texto (puedes ajustarlos a tu gusto) */
    color: #ffffff;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
  
    /* Fondo base con el reflejo metálico */
    background: #EE368B linear-gradient(
        65deg,
        transparent 35%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 65%
    );
    background-size: 400% 100%;
    animation: reflejo-metalico 3s infinite ease-in-out;

    /* Máscara con tu nuevo SVG optimizado */
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='203' height='90' viewBox='0 0 203 90' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16C0 7.16344 7.16344 0 16 0H157C165.837 0 173 7.16344 173 16V74C173 82.8366 165.837 90 157 90H16C7.16344 90 0 82.8366 0 74V16Z' fill='black'/%3E%3Cpath d='M116.814 56.2704C110.565 50.022 110.565 39.8914 116.814 33.643L145.77 4.68696C152.018 -1.56143 162.149 -1.56143 168.397 4.68695L197.353 33.643C203.602 39.8914 203.602 50.022 197.353 56.2704L168.397 85.2264C162.149 91.4748 152.018 91.4748 145.77 85.2264L116.814 56.2704Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='203' height='90' viewBox='0 0 203 90' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16C0 7.16344 7.16344 0 16 0H157C165.837 0 173 7.16344 173 16V74C173 82.8366 165.837 90 157 90H16C7.16344 90 0 82.8366 0 74V16Z' fill='black'/%3E%3Cpath d='M116.814 56.2704C110.565 50.022 110.565 39.8914 116.814 33.643L145.77 4.68696C152.018 -1.56143 162.149 -1.56143 168.397 4.68695L197.353 33.643C203.602 39.8914 203.602 50.022 197.353 56.2704L168.397 85.2264C162.149 91.4748 152.018 91.4748 145.77 85.2264L116.814 56.2704Z' fill='black'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

@keyframes reflejo-metalico {
  0%, 15% { background-position: 250% 0; }
  85%, 100% { background-position: -150% 0; }
}

/* Discount badge — same shape as NUEVO but green */
.product-meta--discount {
    padding: 10px 18px 10px 10px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    /* Estilos de texto (puedes ajustarlos a tu gusto) */
    color: #ffffff;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
  
    /* Fondo base con el reflejo metálico */
    background: #FF1A1A;

    /* Máscara con el nuevo SVG (2 path) */
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='159' height='90' viewBox='0 0 159 90' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16C0 7.16344 7.16344 0 16 0H113C121.837 0 129 7.16344 129 16V74C129 82.8366 121.837 90 113 90H16C7.16344 90 0 82.8366 0 74V16Z' fill='black'/%3E%3Cpath d='M73.3137 56.3118C67.0653 50.0634 67.0653 39.9327 73.3137 33.6843L102.234 4.76368C108.483 -1.48471 118.613 -1.48472 124.862 4.76367L153.782 33.6843C160.031 39.9327 160.031 50.0634 153.782 56.3118L124.862 85.2324C118.613 91.4808 108.483 91.4808 102.234 85.2324L73.3137 56.3118Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='159' height='90' viewBox='0 0 159 90' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16C0 7.16344 7.16344 0 16 0H113C121.837 0 129 7.16344 129 16V74C129 82.8366 121.837 90 113 90H16C7.16344 90 0 82.8366 0 74V16Z' fill='black'/%3E%3Cpath d='M73.3137 56.3118C67.0653 50.0634 67.0653 39.9327 73.3137 33.6843L102.234 4.76368C108.483 -1.48471 118.613 -1.48472 124.862 4.76367L153.782 33.6843C160.031 39.9327 160.031 50.0634 153.782 56.3118L124.862 85.2324C118.613 91.4808 108.483 91.4808 102.234 85.2324L73.3137 56.3118Z' fill='black'/%3E%3C/svg%3E");
   
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* Strikethrough regular price when on discount (listing cards) */
.card__price-regular {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.add-wishlist {
    /* position: absolute; */
    /* right: .5em; */
    /* top: .5em; */
    border-radius: 18px;
    height: 36px;
    width: 36px;
    border: none;
    background-color: #50505081;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.wishlist-icon {
    fill: var(--color-white);
    height: 24px;
    width: 24px;
    object-fit: contain;
}


.description {
    color: var(--black-500);

    display: flex;
    flex-direction: column;
}

.item__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.card-heading__title {
    color: #2C2C2C;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    line-height: auto;
    font-size: 16px;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 líneas */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4; /* Ajusta según tu diseño */
    max-height: calc(1.4em * 2); /* Altura máxima para 2 líneas */
}

.card__is-available {
    font-size: 10px;
    font-family: var(--font-base-medium);
    color: rgb(22, 173, 179);
}

.card-heading__price {
    display: flex;
    color: var(--black-500);
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card__price-discount {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #555555;
    /* font-family: var(--font-base-medium); */
}

.card__price-regular {
    font-size: 10px;
    color: #555555;
    text-decoration: line-through;
    /* font-family: var(--font-base-bold); */
}

.card__price {
    flex: 1;
}

.buttons {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.add-cart {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 100px;
    width: fit-content;
    border: none;
    color: white;
    background-color: #1E44D9;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-cart:hover {
    background-color: #163ab8;
}

.add-cart:focus {
    background-color: #1E44D9;
}

.add-cart:active {
    background-color: #0f2587;
}

/* Quantity selector for category page */
.quantity-selector-category {
    display: flex;
    align-items: center;
    background-color: #e9e9e9;
    height: 40px;
    border-radius: 20px;
    width: fit-content;
}

.quantity-minus-category {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 20px;
    background-color: #e9e9e9;
    border: none;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-minus-category:hover {
    background-color: #d8d8d8;
}

.quantity-plus-category {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
    background-color: #e9e9e9;
    border: none;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-plus-category:hover {
    background-color: #d8d8d8;
}

.quantity-plus-category:focus,
.quantity-minus-category:focus {
    background-color: #e9e9e9;
}

.quantity-plus-category:active,
.quantity-minus-category:active {
    background-color: #c0c0c0; 
}

.quantity-input-category {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    border: none;
    outline: none;
    text-align: center;
    user-select: none;
    background-color: #e9e9e9;
    color: rgb(0, 0, 0);
    width: 32px;
}

/* Hide number input spinners */
.quantity-input-category::-webkit-outer-spin-button,
.quantity-input-category::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input-category[type=number] {
    -moz-appearance: textfield;
}

@media screen and (min-width: 700px) {
    .container {
        padding-block: 130px;
        width: min(80vw, 1100px);
    }
    
    .heading {
        margin-block: 50px;
    }

    .products {
        grid-template-columns: repeat(auto-fit, 10rem);
        justify-content: center;
        /* grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); */
    }
}
