/* ========== SHOP MODAL - Seguindo padrão do jogo ========== */

/* Modal principal da loja */
#shopModal.floating-window {
    width: 440px;
    max-width: 92vw;
    min-height: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    overflow: hidden;
}

/* Header da loja - Segue padrão .window-header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(60, 50, 40, 0.7), rgba(30, 25, 20, 0.8));
    border-bottom: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.shop-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 15px;
    color: var(--gold-light, #f8e6c8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    margin: 0;
    font-weight: normal;
}

/* Botão fechar - Mesmo estilo do modal de Configurações */
.shop-close-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 6px;
    color: var(--text-muted, #a09080);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.shop-close-btn:hover {
    background: rgba(60, 50, 40, 0.6);
    border-color: var(--gold-primary, #d4af37);
    color: var(--gold-primary, #d4af37);
}

/* Tabs da loja */
.shop-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-bottom: 1px solid rgba(100, 80, 60, 0.4);
}

.shop-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(212, 175, 55, 0.6);
    font-family: 'MedievalSharp', cursive;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-tab:hover {
    color: var(--gold-light, #f4d03f);
    background: rgba(212, 175, 55, 0.1);
}

.shop-tab.active {
    color: var(--gold-light, #f4d03f);
    border-bottom: 2px solid var(--gold-primary, #d4af37);
    background: rgba(212, 175, 55, 0.15);
}

/* Conteúdo principal */
.shop-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.shop-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.shop-panel.hidden {
    display: none;
}

/* ========== ÍCONES DE MOEDA ========== */
.shop-coin-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    image-rendering: pixelated;
    margin-left: 4px;
}

.shop-coin-icon-sm {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    image-rendering: pixelated;
    margin: 0 2px;
}

.shop-coin-icon-xs {
    width: 11px;
    height: 11px;
    vertical-align: middle;
    image-rendering: pixelated;
}

/* ========== ABA DE COMPRAR ========== */
.shop-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    min-height: 200px;
    max-height: 350px;
    /* Scrollbar sempre visível */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.6) rgba(30, 24, 18, 0.4);
    scrollbar-gutter: stable;
    /* Melhorar scroll em dispositivos touch */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.shop-empty-message {
    color: rgba(180, 160, 130, 0.6);
    text-align: center;
    padding: 40px 20px;
    font-family: 'MedievalSharp', cursive;
    font-style: italic;
    font-size: 14px;
}

/* Card de item à venda */
.shop-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8), rgba(20, 15, 10, 0.8));
    border: 1px solid rgba(100, 80, 60, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-item-card:hover {
    border-color: var(--gold-dark, #8b7355);
    background: linear-gradient(135deg, rgba(60, 45, 30, 0.9), rgba(40, 30, 20, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.shop-item-icon {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.shop-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop-item-name {
    font-family: 'MedievalSharp', cursive;
    font-size: 13px;
    color: var(--gold-light, #f4d03f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item-stock {
    font-size: 11px;
    color: rgba(180, 160, 130, 0.7);
}

.shop-item-price {
    font-size: 12px;
    color: #f4d03f;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.shop-item-arrow {
    color: var(--gold-dark, #8b7355);
    font-size: 16px;
    padding-left: 8px;
}

/* Detalhes do item */
#shopItemDetails {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.shop-back-btn {
    background: rgba(60, 45, 30, 0.8);
    border: 1px solid rgba(100, 80, 60, 0.6);
    border-radius: 6px;
    color: var(--gold-light, #f4d03f);
    padding: 6px 12px;
    font-family: 'MedievalSharp', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-back-btn:hover {
    background: rgba(80, 60, 40, 0.9);
    border-color: var(--gold-primary, #d4af37);
}

.shop-details-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.shop-details-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.shop-details-name {
    font-family: 'MedievalSharp', cursive;
    font-size: 14px;
    color: var(--gold-light, #f4d03f);
}

/* Lista de ofertas - NOVO LAYOUT */
.shop-offers-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
    max-height: 300px;
    /* Scrollbar sempre visível */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.6) rgba(30, 24, 18, 0.4);
    scrollbar-gutter: stable;
    /* Melhorar scroll em dispositivos touch */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.shop-offer-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.9), rgba(25, 18, 12, 0.9));
    border: 1px solid rgba(100, 80, 60, 0.5);
    border-radius: 8px;
    transition: all 0.2s;
}

.shop-offer-card:hover {
    border-color: rgba(140, 110, 80, 0.7);
}

.shop-offer-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-offer-item-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.shop-offer-item-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
}

.shop-offer-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop-offer-item-name {
    font-family: 'MedievalSharp', cursive;
    font-size: 14px;
    color: var(--gold-light, #f4d03f);
    font-weight: bold;
}

.shop-offer-seller-name {
    font-size: 11px;
    color: rgba(180, 160, 130, 0.7);
}

.shop-offer-available {
    font-size: 11px;
    color: #4caf50;
}

.shop-offer-available strong {
    color: inherit;
    font-weight: normal;
}

.shop-offer-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.shop-offer-quantity-row {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.shop-offer-qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(60, 45, 30, 0.8);
    border: none;
    color: var(--gold-light, #f4d03f);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-offer-qty-btn:hover {
    background: rgba(80, 60, 40, 0.9);
}

.shop-offer-qty-input {
    width: 40px;
    height: 28px;
    background: rgba(20, 15, 10, 0.8);
    border: none;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
}

.shop-offer-qty-input:focus {
    outline: none;
}

.shop-offer-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.shop-offer-total-price {
    font-size: 16px;
    color: #f4d03f;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.shop-offer-buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #2d7d32, #1b5e20);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-offer-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #388e3c, #2d7d32);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.shop-offer-buy-btn.disabled,
.shop-offer-buy-btn:disabled {
    background: linear-gradient(135deg, #555, #333);
    border-color: #666;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* ========== ABA DE VENDER ========== */
.shop-sell-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.shop-citizen-warning {
    color: #ff9800;
    font-size: 12px;
    text-align: center;
    padding: 8px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.shop-citizen-warning.hidden {
    display: none;
}

.shop-earnings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-main, #e8e0d5);
}

.shop-earnings-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-earnings strong {
    color: #f4d03f;
    font-size: 14px;
}

.shop-collect-btn {
    background: linear-gradient(135deg, #8B7355, #6b5845);
    border: 1px solid var(--gold-primary, #d4af37);
    border-radius: 4px;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-collect-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #a08565, #8B7355);
}

.shop-collect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Formulário de venda */
.shop-sell-form {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.shop-sell-form h3 {
    font-family: 'MedievalSharp', cursive;
    font-size: 12px;
    color: var(--gold-light, #f4d03f);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-sell-form.hidden {
    display: none;
}

/* Slots de inventário para venda */
.shop-inventory-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.shop-inventory-slot {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8), rgba(20, 15, 10, 0.8));
    border: 1px solid rgba(100, 80, 60, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.shop-inventory-slot.sellable {
    cursor: pointer;
}

.shop-inventory-slot.unavailable {
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(30, 25, 20, 0.6), rgba(15, 12, 10, 0.6));
    border-color: rgba(60, 50, 40, 0.4);
}

.shop-inventory-slot.sellable:hover {
    border-color: var(--gold-primary, #d4af37);
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.shop-inventory-slot.selected {
    border-color: var(--gold-light, #f4d03f);
    box-shadow: 0 0 12px rgba(244, 208, 63, 0.5);
    background: linear-gradient(135deg, rgba(60, 50, 35, 0.9), rgba(40, 32, 22, 0.9));
}

.shop-inventory-slot img {
    width: 80%;
    height: 80%;
    image-rendering: pixelated;
}

.shop-slot-quantity {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Detalhes de venda */
#shopSellDetails {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid rgba(100, 80, 60, 0.4);
}

#shopSellDetails.hidden {
    display: none;
}

.shop-sell-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 80, 60, 0.3);
}

.shop-sell-item-preview img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.shop-sell-item-preview span {
    font-family: 'MedievalSharp', cursive;
    font-size: 14px;
    color: var(--gold-light, #f4d03f);
    font-weight: bold;
}

.shop-sell-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-sell-inputs label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-main, #e8e0d5);
}

.shop-sell-inputs input[type="number"] {
    width: 70px;
    padding: 6px 8px;
    background: rgba(20, 15, 10, 0.8);
    border: 1px solid rgba(100, 80, 60, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.shop-sell-inputs input[type="number"]:focus {
    outline: none;
    border-color: var(--gold-primary, #d4af37);
}

.shop-sell-total {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-main, #e8e0d5);
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(100, 80, 60, 0.3);
}

.shop-sell-total strong {
    color: #f4d03f;
    font-size: 18px;
}

.shop-sell-confirm-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #2d7d32, #1b5e20);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    color: #fff;
    font-family: 'MedievalSharp', cursive;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.shop-sell-confirm-btn:hover {
    background: linear-gradient(135deg, #388e3c, #2d7d32);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Minhas listagens */
.shop-my-listings {
    flex: 1;
    min-height: 80px;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.shop-my-listings h3 {
    font-family: 'MedievalSharp', cursive;
    font-size: 12px;
    color: var(--gold-light, #f4d03f);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-listings-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-height: 150px;
    overflow-y: auto;
    /* Scrollbar sempre visível */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.6) rgba(30, 24, 18, 0.4);
    scrollbar-gutter: stable;
    /* Melhorar scroll em dispositivos touch */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.shop-my-listing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8), rgba(20, 15, 10, 0.8));
    border: 1px solid rgba(100, 80, 60, 0.4);
    border-radius: 6px;
}

.shop-listing-icon {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.shop-listing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-listing-name {
    font-size: 12px;
    color: var(--text-main, #e8e0d5);
}

.shop-listing-details {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(180, 160, 130, 0.7);
}

.shop-listing-cancel-btn {
    background: rgba(100, 0, 0, 0.6);
    border: 1px solid rgba(150, 0, 0, 0.8);
    border-radius: 4px;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-listing-cancel-btn:hover {
    background: rgba(150, 0, 0, 0.8);
}

/* ========== SCROLLBAR personalizada ========== */
.shop-items-list::-webkit-scrollbar,
.shop-offers-list::-webkit-scrollbar,
.shop-listings-list::-webkit-scrollbar {
    width: 6px;
}

.shop-items-list::-webkit-scrollbar-track,
.shop-offers-list::-webkit-scrollbar-track,
.shop-listings-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.shop-items-list::-webkit-scrollbar-thumb,
.shop-offers-list::-webkit-scrollbar-thumb,
.shop-listings-list::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.6);
    border-radius: 3px;
}

.shop-items-list::-webkit-scrollbar-thumb:hover,
.shop-offers-list::-webkit-scrollbar-thumb:hover,
.shop-listings-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* ========== RESPONSIVO - Mobile ========== */
@media screen and (max-width: 768px) {
    #shopModal.floating-window {
        width: 95vw;
        max-height: 85vh;
        min-height: 380px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .shop-title {
        font-size: 13px;
    }

    .shop-tab {
        padding: 10px 12px;
        font-size: 11px;
    }

    .shop-item-card {
        padding: 8px;
    }

    .shop-item-icon {
        width: 36px;
        height: 36px;
    }

    .shop-offer-card {
        padding: 10px;
    }

    .shop-offer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .shop-offer-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .shop-offer-item-icon {
        width: 40px;
        height: 40px;
    }

    .shop-inventory-slot {
        width: 42px;
        height: 42px;
    }

    .shop-coin-icon {
        width: 16px;
        height: 16px;
    }

    .shop-coin-icon-sm {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-height: 600px) {
    #shopModal.floating-window {
        max-height: 90vh;
        min-height: 280px;
    }

    .shop-items-list {
        max-height: 200px;
    }

    .shop-offers-list {
        max-height: 180px;
    }
}

/* ========== DURABILIDADE DOS ITENS ========== */
.shop-offer-item-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 48px;
    flex-shrink: 0;
}

.shop-offer-durability-bar {
    width: 44px;
    height: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.shop-offer-durability-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.shop-offer-durability-text {
    font-size: 11px;
    font-weight: normal;
}


/* ========== ABA DE ESTÁBULO ========== */
.shop-stable-section {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(100, 80, 60, 0.4);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-stable-section h3 {
    margin: 0;
    font-family: 'MedievalSharp', cursive;
    font-size: 13px;
    color: var(--gold-light, #f4d03f);
}

.shop-stable-hint {
    margin: 0;
    font-size: 12px;
    color: rgba(200, 180, 150, 0.75);
}

.shop-stable-status {
    font-size: 12px;
    color: rgba(240, 220, 180, 0.9);
}

.shop-stable-store-btn {
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px solid rgba(139, 115, 85, 0.7);
    background: linear-gradient(135deg, rgba(60, 45, 30, 0.9), rgba(35, 25, 15, 0.9));
    color: var(--gold-light, #f4d03f);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'MedievalSharp', cursive;
    font-size: 12px;
    transition: all 0.2s ease;
}

.shop-stable-store-btn:hover:not(:disabled) {
    border-color: var(--gold-primary, #d4af37);
    background: linear-gradient(135deg, rgba(75, 55, 35, 0.95), rgba(45, 32, 20, 0.95));
}

.shop-stable-store-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-stable-scrolls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-stable-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.85), rgba(20, 15, 10, 0.85));
    border: 1px solid rgba(100, 80, 60, 0.45);
    border-radius: 6px;
}

.shop-stable-item img {
    width: 38px;
    height: 38px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.shop-stable-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop-stable-name {
    font-family: 'MedievalSharp', cursive;
    font-size: 12px;
    color: var(--gold-light, #f4d03f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-stable-location {
    font-size: 11px;
    color: rgba(190, 170, 140, 0.7);
}

.shop-stable-retrieve-btn {
    padding: 6px 10px;
    border: 1px solid rgba(139, 115, 85, 0.7);
    background: rgba(40, 30, 20, 0.8);
    color: var(--gold-light, #f4d03f);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'MedievalSharp', cursive;
    font-size: 11px;
    transition: all 0.2s ease;
}

.shop-stable-retrieve-btn:hover:not(:disabled) {
    border-color: var(--gold-primary, #d4af37);
    background: rgba(60, 45, 30, 0.9);
}

.shop-stable-retrieve-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
