:root {
    --red: #e20f19;
    --red-dark: #b9040c;
    --red-soft: #fff0f1;
    --ink: #151316;
    --muted: #746b70;
    --line: #f0e4e6;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(226, 15, 25, 0.16);
    --shadow-soft: 0 18px 45px rgba(21, 19, 22, 0.08);
    --radius: 28px;
    --green: #0f9d4f;
    --green-dark: #0b7a3d;
    --green-soft: #e9fbf0;
    --gold: #ff8a00;
    --gold-dark: #cc6f00;
    --gold-soft: #fff4e5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(226, 15, 25, 0.12), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #fff8f9 47%, #ffffff 100%);
    overflow-x: hidden;
}

body::selection {
    background: var(--red);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-glow {
    position: fixed;
    z-index: -1;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite;
}

.page-glow-one {
    top: 8rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(226, 15, 25, 0.18), transparent 68%);
}

.page-glow-two {
    right: -12rem;
    bottom: 8rem;
    background: radial-gradient(circle, rgba(226, 15, 25, 0.16), transparent 68%);
    animation-delay: 1.5s;
}

.site-header,
.site-footer,
.hero,
.catalog-section,
.detail-shell,
.error-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.announce-bar {
    overflow: hidden;
    background: linear-gradient(90deg, var(--red-dark), var(--red), var(--gold));
    color: var(--white);
}

.announce-track {
    display: flex;
    gap: 2.5rem;
    padding: 0.5rem 0;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: marquee 22s linear infinite;
}

.announce-track span {
    flex: 0 0 auto;
    padding-inline: 1.25rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.brand img {
    width: 108px;
    height: 108px;
    object-fit: contain;
}

.header-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.pill,
.page-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(226, 15, 25, 0.12);
}

.pill-soft,
.page-chip {
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
}

.pill-red {
    color: var(--white);
    background: linear-gradient(135deg, var(--red), #ff5b64);
    box-shadow: 0 16px 36px rgba(226, 15, 25, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: stretch;
    padding: 64px 0 42px;
}

.hero-copy {
    position: relative;
    padding: clamp(2rem, 5vw, 4.25rem);
    border: 1px solid rgba(226, 15, 25, 0.1);
    border-radius: calc(var(--radius) + 10px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 247, 0.9)),
        radial-gradient(circle at top right, rgba(226, 15, 25, 0.18), transparent 24rem);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -76px;
    top: -70px;
    border-radius: 999px;
    border: 32px solid rgba(226, 15, 25, 0.08);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #ff9197);
    box-shadow: 0 0 0 7px rgba(226, 15, 25, 0.08);
}

.hero h1,
.detail-info h1,
.error-card h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2.2rem, 6vw, 5.3rem);
    line-height: 1.08;
    letter-spacing: -0.068em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
}

.search-box {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(620px, 100%);
    gap: 0.75rem;
    padding: 0.55rem;
    border: 1px solid rgba(226, 15, 25, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(226, 15, 25, 0.1);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0.95rem 1.15rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.search-box button,
.card-button,
.primary-link,
.page-button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), #ff505a);
    box-shadow: 0 14px 32px rgba(226, 15, 25, 0.28);
    font: inherit;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.search-box button {
    padding: 0.95rem 1.35rem;
}

.search-box button:hover,
.card-button:hover,
.primary-link:hover,
.page-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(226, 15, 25, 0.26);
}

.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 1.4rem;
    border-radius: calc(var(--radius) + 10px);
    background:
        linear-gradient(155deg, rgba(226, 15, 25, 0.92), rgba(255, 101, 110, 0.82)),
        linear-gradient(180deg, var(--white), #ffe9eb);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: calc(var(--radius) + 2px);
}

.hero-card img {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 34px;
    object-fit: cover;
    background: var(--white);
    box-shadow: 0 26px 58px rgba(84, 0, 5, 0.28);
    animation: floatLogo 4.5s ease-in-out infinite;
}

.hero-card div {
    position: relative;
    padding: 1.2rem;
    color: var(--white);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.hero-card span {
    display: block;
    margin-bottom: 0.45rem;
    opacity: 0.8;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-card strong {
    display: block;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.catalog-section {
    padding: 28px 0 70px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-heading h2 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    position: relative;
    border: 1px solid rgba(226, 15, 25, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(226, 15, 25, 0.12), transparent 46%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(226, 15, 25, 0.2);
    box-shadow: 0 26px 62px rgba(226, 15, 25, 0.14);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    display: grid;
    place-items: center;
    min-height: 238px;
    margin: 0.8rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(226, 15, 25, 0.12), transparent 58%),
        linear-gradient(180deg, #fffafa, #fff1f2);
    overflow: hidden;
}

.product-image img {
    width: 78%;
    height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(21, 19, 22, 0.08));
    transition: transform 0.28s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045) rotate(-1deg);
}

.product-body {
    position: relative;
    padding: 0.35rem 1.15rem 1.2rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.product-meta span,
.detail-codes span {
    display: inline-flex;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    color: var(--red-dark);
    background: var(--red-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.product-card h3 {
    min-height: 3.1rem;
    margin: 0 0 0.8rem;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.product-card h3 a:hover {
    color: var(--red);
}

.product-location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.qty-pill {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 900;
    font-size: 0.78rem;
    white-space: nowrap;
}

.product-location.muted-location .qty-pill {
    background: rgba(0, 0, 0, 0.06);
    color: #8f898c;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(226, 15, 25, 0.1);
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-footer strong {
    color: var(--red);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.page-button {
    display: inline-flex;
    align-items: center;
    min-width: 132px;
    justify-content: center;
    padding: 0.9rem 1.1rem;
}

.page-button.disabled {
    cursor: not-allowed;
    color: #b3a5aa;
    background: #f4ecee;
    box-shadow: none;
    opacity: 0.72;
}

.page-current {
    min-width: 110px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 15, 25, 0.14);
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.page-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(226, 15, 25, 0.16);
}

.page-number.is-current {
    color: var(--white);
    background: linear-gradient(135deg, var(--red), #ff505a);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(226, 15, 25, 0.28);
    cursor: default;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--muted);
    font-weight: 800;
}

.empty-state,
.error-card {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 380px;
    padding: 2rem;
    border: 1px solid rgba(226, 15, 25, 0.1);
    border-radius: calc(var(--radius) + 8px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.empty-state img,
.error-card img {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin-bottom: 1rem;
}

.empty-state h3,
.error-card h1 {
    margin: 0.5rem 0;
    letter-spacing: -0.05em;
}

.empty-state p,
.error-card p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.65;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
}

.detail-shell {
    padding: 40px 0 78px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1.1rem;
    color: var(--red);
    font-weight: 800;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: stretch;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(226, 15, 25, 0.1);
    border-radius: calc(var(--radius) + 12px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.detail-media {
    display: grid;
    place-items: center;
    min-height: 530px;
    border-radius: calc(var(--radius) + 2px);
    background:
        radial-gradient(circle, rgba(226, 15, 25, 0.13), transparent 60%),
        linear-gradient(145deg, #fffafb, #ffecee);
    overflow: hidden;
}

.detail-media img {
    width: min(80%, 470px);
    max-height: 470px;
    object-fit: contain;
    filter: drop-shadow(0 30px 38px rgba(21, 19, 22, 0.12));
    animation: floatLogo 5.5s ease-in-out infinite;
}

.detail-info {
    padding: clamp(1rem, 3vw, 2.4rem) clamp(0.4rem, 2vw, 1rem);
}

.detail-info h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.detail-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
}

.detail-price {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #ff5b64);
    box-shadow: 0 18px 40px rgba(226, 15, 25, 0.3);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.stock-panel,
.description-box {
    border: 1px solid rgba(226, 15, 25, 0.1);
    border-radius: 24px;
    background: rgba(255, 250, 251, 0.8);
    overflow: hidden;
}

.stock-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), #ff6770);
    font-weight: 800;
}

.stock-panel ul {
    list-style: none;
    margin: 0;
    padding: 0.35rem 1.1rem 1rem;
}

.stock-panel li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.stock-panel li:last-child {
    border-bottom: 0;
}

.stock-panel li strong {
    color: var(--ink);
}

.stock-qty-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.stock-qty-value strong {
    font-size: 1rem;
}

.stock-qty-value em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.public-stock-panel .stock-empty .stock-qty-value em {
    color: #a89fa2;
}

.status-available {
    color: var(--green-dark) !important;
}

.status-empty {
    color: #a89fa2 !important;
}

.description-box {
    margin-top: 1.2rem;
    padding: 1.1rem;
}

.description-box h2 {
    margin: 0 0 0.7rem;
    letter-spacing: -0.04em;
}

.description-content {
    color: var(--muted);
    line-height: 1.7;
}

.description-content p:first-child {
    margin-top: 0;
}

.error-shell {
    padding: 44px 0 76px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 28px 0 38px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer div {
    display: grid;
    gap: 0.25rem;
}

.site-footer strong,
.site-footer a {
    color: var(--ink);
    font-weight: 900;
}

.site-footer a:hover {
    color: var(--red);
}

.animate-in {
    animation: fadeUp 0.75s ease both;
}

.delay-1 {
    animation-delay: 0.14s;
}

.reveal-card {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-card.is-visible {
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-card img {
    animation-name: floatLogoHero;
}

@keyframes floatLogoHero {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announce-track,
    .stock-badge.urgent-badge {
        animation: none;
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(22px, -18px, 0) scale(1.05);
    }
}

@media (max-width: 1060px) {
    .hero,
    .detail-card {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 300px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-media {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-pills {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 28px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 24px;
    }

    .search-box button {
        width: 100%;
    }

    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .pagination {
        flex-wrap: wrap;
    }

    .detail-media {
        min-height: 320px;
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-footer,
    .hero,
    .catalog-section,
    .detail-shell,
    .error-shell {
        width: min(100% - 22px, 1180px);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: 220px;
    }

    .hero-copy {
        padding: 1.5rem;
    }

    .hero h1,
    .detail-info h1,
    .error-card h1 {
        letter-spacing: -0.055em;
    }
}

/* Ajustes orientados a tienda para cliente final */
.shop-header {
    border: 1px solid rgba(226, 15, 25, 0.12);
    box-shadow: 0 18px 55px rgba(226, 15, 25, 0.08);
}

.shop-hero {
    background:
        radial-gradient(circle at 10% 20%, rgba(226, 15, 25, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,246,247,0.94));
    border: 1px solid rgba(226, 15, 25, 0.10);
    box-shadow: 0 30px 90px rgba(226, 15, 25, 0.11);
}

.shop-hero h1 {
    max-width: 780px;
}

.promo-card small,
.rating-row small,
.customer-note {
    color: var(--muted);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.15rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(226, 15, 25, 0.10);
    box-shadow: 0 20px 55px rgba(31, 8, 13, 0.07);
    backdrop-filter: blur(18px);
}

.filter-bar label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-bar select {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(226, 15, 25, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fff7f8);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    padding: 0.95rem 1rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.filter-bar select:focus {
    border-color: rgba(226, 15, 25, 0.55);
    box-shadow: 0 0 0 4px rgba(226, 15, 25, 0.10);
}

.filter-bar button,
.clear-filter {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    padding: 0 1.35rem;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-bar button {
    color: #fff;
    background: linear-gradient(135deg, #e20f19, #ff5a63);
    box-shadow: 0 15px 35px rgba(226, 15, 25, 0.23);
    cursor: pointer;
}

.clear-filter {
    color: #e20f19;
    background: rgba(226, 15, 25, 0.08);
}

.amazon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-product-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(226, 15, 25, 0.20);
    box-shadow: 0 24px 60px rgba(226, 15, 25, 0.13);
}

.rating-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.25rem 0 0.5rem;
    color: #e20f19;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.buy-style {
    background: linear-gradient(135deg, #e20f19, #ff6d75) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(226, 15, 25, 0.22);
}

.customer-detail-card {
    border: 1px solid rgba(226, 15, 25, 0.12);
    background: linear-gradient(135deg, #fff, #fff8f8);
}

.customer-note {
    margin: -0.5rem 0 1rem;
    font-weight: 600;
}

.purchase-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.4rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 138, 0, 0.25);
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.4;
}

.purchase-note::before {
    content: "ℹ";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
}

@media (max-width: 1060px) {
    .amazon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .amazon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .amazon-grid {
        grid-template-columns: 1fr;
    }
}

/* V4: vitrina digital y admin de ubicaciones publicadas */
.flash-stack {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 1rem;
    display: grid;
    gap: .6rem;
}

.flash {
    border-radius: 18px;
    padding: .9rem 1rem;
    font-weight: 800;
    border: 1px solid rgba(226, 15, 25, .14);
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-soft);
}
.flash-success { color: #18692f; }
.flash-error { color: var(--red-dark); }

.compact-hero {
    grid-template-columns: 1fr;
    padding: 38px 0 20px;
}
.compact-hero .hero-copy {
    padding: clamp(2rem, 5vw, 3.3rem) clamp(2rem, 5vw, 3.3rem) clamp(2.35rem, 5vw, 3.75rem);
}
.compact-hero h1 {
    font-size: clamp(3rem, 7.4vw, 6rem);
    line-height: 1.08;
    padding-bottom: 0.08em;
    background: linear-gradient(135deg, var(--ink), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.location-filter {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}
.filter-bar button,
.admin-form button,
.danger-button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), #ff505a);
    box-shadow: 0 14px 32px rgba(226, 15, 25, 0.20);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    padding: .95rem 1.25rem;
}
.clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red-dark);
    font-weight: 900;
    padding: .85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 15, 25, .14);
    background: #fff;
}
.product-card.is-sold-out {
    filter: grayscale(.85);
    opacity: .72;
    background: #f4f1f2;
}
.product-card.is-sold-out:hover {
    transform: translateY(-2px);
}
.sold-out-badge,
.stock-badge {
    position: absolute;
    z-index: 4;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem .75rem;
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.sold-out-badge {
    background: linear-gradient(135deg, #555, #919191);
}

.stock-badge {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    box-shadow: 0 12px 28px rgba(15, 157, 79, .28);
}

.stock-badge.urgent-badge {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    box-shadow: 0 12px 28px rgba(255, 138, 0, .32);
    animation: pulseBadge 1.6s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.detail-badge {
    top: 1.4rem;
    right: 1.4rem;
}
.availability-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .4rem 0 1rem;
    min-height: 2.2rem;
}
.availability-title {
    width: 100%;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}
.availability-chip,
.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .38rem .55rem;
    font-size: .74rem;
    font-weight: 900;
}

.availability-chip {
    color: var(--green-dark);
    background: var(--green-soft);
}

.status-chip {
    color: var(--red-dark);
    background: var(--red-soft);
}
.muted-location {
    color: #8f898c;
}
.availability-chip.chip-empty {
    color: #8f898c;
    background: rgba(0, 0, 0, 0.045);
}
.small-empty {
    min-height: 260px;
}
.public-stock-panel .stock-empty {
    color: #9a9194;
    background: rgba(0,0,0,.025);
}
.public-stock-panel .stock-empty strong {
    color: #777;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 76px;
}
.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.admin-heading h1,
.admin-card h1,
.admin-card h2 {
    margin: .45rem 0 .8rem;
    letter-spacing: -.06em;
    line-height: 1;
}
.admin-heading h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.admin-card h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.admin-card h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.admin-heading p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}
.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
    gap: 1.2rem;
    align-items: start;
}
.admin-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(226, 15, 25, .1);
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-soft);
}
.narrow-card {
    width: min(520px, 100%);
    margin: 0 auto;
}
.admin-form {
    display: grid;
    gap: 1rem;
}
.admin-form label {
    display: grid;
    gap: .45rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form select {
    width: 100%;
    border: 1px solid rgba(226, 15, 25, .14);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fff8f9);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    padding: .95rem 1rem;
    outline: none;
}
.admin-form select[multiple] {
    border-radius: 22px;
    min-height: 220px;
}

.checkbox-filter {
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(226, 15, 25, 0.14);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.65rem 0.85rem;
    outline: none;
}

.checkbox-filter:focus {
    border-color: rgba(226, 15, 25, 0.5);
    box-shadow: 0 0 0 4px rgba(226, 15, 25, 0.1);
}

.checkbox-list {
    display: grid;
    gap: 0.35rem;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.7rem;
    border: 1px solid rgba(226, 15, 25, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fff8f9);
}

.checkbox-list-item {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease;
}

.checkbox-list-item:hover {
    background: var(--red-soft);
}

.checkbox-list-item input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--red);
}
.admin-form small {
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.45;
}
.check-row {
    display: flex !important;
    grid-template-columns: unset !important;
    align-items: center;
    flex-direction: row;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.check-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--red);
}
.admin-actions,
.admin-item-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    align-items: center;
}
.admin-list {
    display: grid;
    gap: .9rem;
}
.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 15, 25, .1);
    background: linear-gradient(135deg, #fff, #fff6f7);
}
.admin-list-item.is-hidden {
    filter: grayscale(.8);
    opacity: .68;
}
.admin-list-item h3 {
    margin: 0 0 .4rem;
    font-size: 1.18rem;
    letter-spacing: -.04em;
}
.admin-list-item p {
    margin: .25rem 0;
    color: var(--muted);
    line-height: 1.45;
}
.admin-item-actions {
    justify-content: flex-end;
}
.admin-item-actions form { margin: 0; }
.danger-button {
    background: linear-gradient(135deg, #5a5a5a, #999);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.empty-admin {
    padding: 1rem;
    border-radius: 20px;
    background: #fff8f9;
    color: var(--muted);
}

@media (max-width: 880px) {
    .location-filter,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-heading,
    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-item-actions {
        justify-content: flex-start;
    }
}
