#main-content.container {
    max-width: min(92rem, calc(100vw - 2rem));
}

.shop-market-panel {
    display: grid;
    grid-template-columns: auto minmax(250px, auto);
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.75rem;
    width: fit-content;
    margin: 1.25rem auto 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06), 0 12px 30px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(8px);
}

.shop-market-panel[hidden] {
    display: none;
}

.shop-market-label {
    font-family: var(--font-display);
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    white-space: nowrap;
}

.shop-country-select {
    min-width: 250px;
    min-height: 44px;
    border: 2px solid #dbeafe;
    border-radius: 12px;
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 52%,
        calc(100% - 12px) 52%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: #1e293b;
    font: inherit;
    font-weight: 800;
    padding: 0.55rem 2.4rem 0.55rem 0.85rem;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
    cursor: pointer;
    line-height: 1.2;
}

.shop-country-select:hover {
    border-color: #93c5fd;
}

.shop-country-select:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.7);
    outline-offset: 2px;
}

.shop-market-status {
    grid-column: 1 / -1;
    justify-self: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.shop-card {
    width: 100%;
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    border-color: #cbd5e1;
}

.shop-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}


.shop-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.shop-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--c-highlight);
    color: #422006;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-sold-out-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.shop-card-info {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    margin-bottom: 0.35rem;
}

.shop-card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.shop-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-price-current {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.shop-price-compare {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.shop-card-sizes {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.shop-size-chip {
    padding: 0.25rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.shop-size-chip:hover {
    border-color: var(--c-primary);
}

.shop-size-chip.selected {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: white;
}

.shop-size-chip:focus-visible,
.shop-color-dot:focus-visible,
.shop-buy-btn:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.7);
    outline-offset: 2px;
}

.shop-card-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.shop-color-dot:hover {
    border-color: #94a3b8;
}

.shop-color-dot.selected {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px var(--c-primary);
}

.shop-buy-btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    min-height: 48px;
}

.shop-btn-disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
    border: none;
}

.shop-empty {
    font-family: var(--font-body);
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    margin: 2rem auto;
    max-width: 680px;
}

.shop-empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.shop-empty h2 {
    font-family: var(--font-display);
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.shop-empty p {
    font-family: var(--font-body);
    color: #94a3b8;
    max-width: 400px;
    margin: 0.5rem auto 0;
}

@media (max-width: 640px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-card-image {
        aspect-ratio: 4 / 3;
    }

    .shop-market-panel {
        grid-template-columns: 1fr;
        justify-content: stretch;
        justify-items: stretch;
        align-items: stretch;
        width: 100%;
        margin-top: 1rem;
        padding: 0.85rem;
        border-radius: 14px;
    }

    .shop-country-select {
        min-width: 0;
        width: 100%;
    }

    .shop-market-label,
    .shop-market-status {
        width: 100%;
    }
}
