/* Layout */
.store-wrap {
    max-width: 1100px;
    box-shadow: 0 0 24px rgba(255, 140, 0, .45);
}

/* Filters row */
.store-filters,
.store-list {
    box-sizing: border-box;
    width: 100%;
}

.store-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1rem;
    margin-bottom: 1.25rem;
}

.store-search {
    flex: 1 1 320px;
}

.store-search input {
    display: block;
    width: 100%;
    padding: .6rem .9rem;

    background-color: #111;
    color: orange;
    border: 2px solid orange;
    border-radius: 8px;

    text-align: center;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.store-search input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, .15);
}

/* Small legend */
.store-legend {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .4rem;

    color: #bbb;
    font-size: .95rem;
    user-select: none;
}

.legend-dot {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    margin-right: .25rem;

    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 165, 0, .25);
}

.legend-discount {
    background: #ffa500;
}

.legend-limit {
    background: transparent;
    border: 2px solid #ffa500;
}

.legend-sep {
    margin: 0 .2rem;
    opacity: .6;
}

/* Sections and list */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* more air */
}

.category-title {
    margin: .2rem 0 .6rem;

    color: #ffa500;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .2px;
    user-select: none;
}

/* Card */
.store-item {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem;

    background: rgba(17, 17, 17, 0.92);
    border: 1px solid rgba(255, 165, 0, 0.35);
    border-left: 6px solid transparent;
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(255, 140, 0, 0.20);

    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease,
        box-shadow .25s ease, transform .2s ease;
}

.store-item:hover {
    background: rgba(26, 26, 26, 0.96);
    border-left-color: orange;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.35);
    transform: translateY(-3px);
}

.store-item:focus {
    outline: 2px solid rgba(255, 165, 0, .8);
    outline-offset: 2px;
}

.store-item+.store-item {
    margin-top: 0.9rem;
}

/* Header */
.store-header {
    display: block;
}

.store-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.store-title {
    margin: 0;

    color: orange;
    font-size: 1.25rem;
    font-weight: 800;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

.store-badges {
    display: inline-flex;
    gap: .4rem;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;

    background: transparent;
    color: #ffa500;
    border: 1.5px solid #ffa500;
    border-radius: 999px;
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.25);

    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
    user-select: none;
}

.badge-limit {
    transition: box-shadow .2s ease, transform .2s ease;
}

.badge-limit:hover {
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.45);
    transform: translateY(-1px);
}

.badge-discount {
    background: #ffa500;
    color: #111;
    border: 1.5px solid #ffa500;
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.35);
}

/* Meta (collapsible) */
.store-meta {
    margin-top: .6rem;
    padding: 0 1.1rem;

    background-color: rgba(26, 26, 26, .9);
    color: #ddd;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #0008;

    font-size: 1rem;
    line-height: 1.55;
    user-select: text;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease, padding .25s ease;
}

.store-meta.visible {
    max-height: 1200px;
    opacity: 1;
    padding: 1rem 1.1rem;
}

.meta-label {
    margin-top: .8rem;
    color: orange;
    font-weight: 700;
    letter-spacing: .2px;
}

.meta-value {
    margin-top: .2rem;
    color: #f0e6dc;
}

/* Inline rows */
.meta-inline-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .8rem 1.2rem;
    margin-top: .6rem;
}

.meta-inline-group .meta-label,
.meta-inline-group .meta-value {
    margin-top: 0;
}

/* Price */
.original-price {
    margin-right: .5rem;
    color: #999;
    font-weight: 500;
    text-decoration: line-through;
}

.discounted-price {
    color: #ffe6c6;
    font-weight: 800;
}

/* Leftover highlighting */
.limit-high {
    color: #00cc66;
    font-weight: 700;
}

.limit-medium {
    color: #ffcc00;
    font-weight: 700;
    animation: pulseYellow 3s ease-in-out infinite;
}

.limit-low {
    color: #ff4444;
    font-weight: 800;
    animation: pulse 1.6s ease-in-out infinite;
}

/* Note block */
.oferta-limit-note {
    padding-left: .6rem;

    background: linear-gradient(90deg, rgba(255, 165, 0, .08), transparent 60%);
    border-left: 3px solid #ffa500;
    border-radius: 6px;
}

.oferta-limit-note .meta-value a {
    color: #ffd9a1;
    text-decoration: underline;
}

.oferta-limit-note .meta-value a:hover {
    background: orange;
    color: #111;
    border-radius: 4px;
    padding: 0 .25rem;
}

/* Buttons */
.meta-actions {
    margin-top: .8rem;
}

.copy-button {
    padding: .45rem .85rem;

    background: transparent;
    color: orange;
    border: 2px solid orange;
    border-radius: 8px;

    cursor: pointer;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}

.copy-button:hover {
    background: orange;
    color: black;
    border-color: orange;
    transform: translateY(-1px);
}

/* Sold-out variant */
#soldout-list .store-item {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 165, 0, 0.25);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.15);
    opacity: .95;
}

#soldout-title {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #333;
}

/* No services */
#no-services-message {
    max-width: 460px;
    margin: 1.75rem auto .75rem;
    padding: 2rem 1.5rem;

    background-color: #1a1a1a;
    color: #ddd;
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(255, 140, 0, .20);
    text-align: center;

    user-select: none;
    transition: background-color .2s ease;
}

#no-services-message:hover {
    background-color: #222;
    cursor: default;
}

.is-hidden {
    display: none !important;
}

/* Footer */
.store-footer {
    padding: 1rem 0 0;
    text-align: left;
}

.store-footer a {
    color: orange;
    text-decoration: underline;
}

.store-footer a:hover {
    background: orange;
    color: #111;
    border-radius: 6px;
    padding: 0 .25rem;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulseYellow {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: .85;
        filter: brightness(1.15);
    }
}

/* Small screens */
@media (max-width: 640px) {
    .store-title {
        font-size: 1.1rem;
    }

    .badge {
        font-size: .8rem;
    }

    .store-search {
        flex: 1 1 100%;
    }

    .store-legend {
        width: 100%;
        justify-content: flex-start;
        margin-top: .25rem;
    }
}