/* ========== SHOP — NEW DESIGN ========== */

/* Container */
#shop-tab { font-family: 'Rajdhani', 'Segoe UI', sans-serif; max-width: 1100px; margin: 0 auto; }
#shop-tab .article-container,
.article-container {
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif !important;
}

#shop-tab h3 {
    font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin: 20px 0 12px;
    background: none; border: none; clear: both;
}

/* Coins block */
.shop-coins-block {
    display: inline-flex; flex-direction: column; gap: 4px;
    padding: 14px 18px; border-radius: 10px;
    background: rgba(8,12,24,0.6); border: 1px solid rgba(255,255,255,0.06);
    margin: 0 0 16px; font-weight: 600; font-size: 14px;
}
.shop-coins-value { color: #e8c040; font-size: 20px; font-weight: 700; }
.shop-login-link-block a { color: #7bbce0; text-decoration: none; font-size: 13px; }
.shop-login-link-block a:hover { color: #fff; }
.how_to_get_cash { font-size: 12px; color: rgba(255,255,255,0.4); font-style: normal; }
.how_to_get_cash a { color: #7bbce0; text-decoration: none; }
.how_to_get_cash a:hover { color: #fff; }

/* Warning block */
.shop-apply-warn-block {
    display: inline-block; padding: 8px 14px; border-radius: 6px;
    background: rgba(232,160,64,0.08); border: 1px solid rgba(232,160,64,0.2);
    color: #e8a040; font-size: 12px; font-weight: 600;
}

/* Items — float based grid (preserve existing HTML structure) */
.shop-item {
    width: 200px;
    display: inline-block; vertical-align: top;
    background: rgba(8,12,24,0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    margin: 0 14px 14px 0; padding: 10px 0 0;
    text-align: center;
    height: auto; float: none;
}
.shop-item:hover {
    border-color: rgba(74,138,181,0.3);
    transform: translateY(-2px);
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Purchased */
.shop-item.shop-item-purchased {
    border-color: rgba(232,192,64,0.2);
}
.shop-item.shop-item-purchased:hover {
    border-color: rgba(232,192,64,0.4);
    box-shadow: none; -webkit-box-shadow: none;
}

/* Dressed */
.shop-item.shop-item-purchased.shop-item-dressed {
    border-color: rgba(92,184,92,0.2);
}
.shop-item.shop-item-purchased.shop-item-dressed:hover {
    border-color: rgba(92,184,92,0.4);
    box-shadow: none; -webkit-box-shadow: none;
}

/* Image */
.shop-item-img {
    height: 140px; display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
.shop-item img {
    max-width: 180px; max-height: 120px; object-fit: contain;
}
.shop-item-preview-img { cursor: pointer; }
.shop-item-preview-img:hover { opacity: 0.8; box-shadow: none; -webkit-box-shadow: none; }

/* Name */
.shop-item-name {
    color: #fff; font-size: 14px; font-weight: 700; padding: 8px 10px 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Left / Lifetime */
.shop-item-left, .shop-item-lifetime, .shop-item-last-date-block {
    font-size: 11px; color: rgba(255,255,255,0.4); padding: 0 10px;
}
.shop-item-left-red .fa-bolt { color: #e85050; }
.shop-item-left-yellow .fa-bolt { color: #e8c040; }
.shop-item-lifetime span { color: rgba(200,180,255,0.7); }
.shop-last-date { color: #e8c040; font-size: 11px; }
.shop-last-date-text { color: rgba(255,255,255,0.35); }

.shop-item-last-date-block { display: none; }
.shop-item-purchased .shop-item-last-date-block { display: block; padding: 4px 10px; }

/* Price */
.shop-item-price {
    font-size: 16px; font-weight: 700; padding: 8px 10px;
    color: #5cb85c; text-shadow: none;
}
.shop-item-purchased .shop-item-price { display: none; }

/* Status text */
.shop-item-purchased-text, .shop-item-dressed-text {
    font-size: 14px; font-weight: 700; padding: 6px 10px; text-shadow: none;
}
.shop-item-purchased-text { display: none; color: #e8c040; }
.shop-item-dressed-text { display: none; color: #5cb85c; }
.shop-item-purchased .shop-item-purchased-text { display: block; }
.shop-item-purchased.shop-item-dressed .shop-item-purchased-text { display: none; }
.shop-item-dressed .shop-item-dressed-text { display: block; }

/* Perk special */
.shop-item-perk.shop-item-purchased .shop-item-dressed-text { display: inline-block; }
.shop-item.shop-item-perk { height: auto; }
.shop-item-perk .shop-item-buy-btn { margin-left: 0; width: 100%; }

/* Buttons */
.shop-item-preview-btn, .shop-item-buy-btn, .shop-item-dress-btn, .shop-item-undress-btn {
    width: 50%; float: left; margin: 0;
    padding: 8px 0; border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #fff; cursor: pointer; text-shadow: none;
    transition: filter 0.2s;
}
.shop-item:after { content: ''; display: block; clear: both; }

.shop-item-preview-btn { background: rgba(74,138,181,0.6); }
.shop-item-preview-btn:hover { filter: brightness(1.2); }

.shop-item-buy-btn { background: linear-gradient(135deg, #4a8ab5, #3a7a45); }
.shop-item-buy-btn:hover { filter: brightness(1.2); }
.shop-item-buy-btn:disabled, .shop-item-buy-btn:disabled:hover {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); cursor: not-allowed; filter: none;
}

.shop-item-dress-btn, .shop-item-undress-btn { display: none; }
.shop-item-dress-btn { background: linear-gradient(135deg, #4a8ab5, #3a7a45); }
.shop-item-dress-btn:hover { filter: brightness(1.2); }
.shop-item-dress-btn:disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); cursor: not-allowed; }

.shop-item-undress-btn { background: rgba(232,160,64,0.5); }
.shop-item-undress-btn:hover { filter: brightness(1.2); }

.shop-item-purchased .shop-item-dress-btn { display: block; }
.shop-item-purchased.shop-item-dressed .shop-item-dress-btn { display: none; }
.shop-item-purchased.shop-item-dressed .shop-item-undress-btn { display: block; }
.shop-item-purchased .shop-item-buy-btn { display: none; }

/* Spinner */
.shop-item button .fa-spin { display: none; }
.shop-item button.show-fa-spinner .fa-spin { display: inline-block; }

/* Team */
.shop-item-team { font-size: 11px; margin-left: 4px; }
.shop-item-team-CT { color: #7bbce0; }
.shop-item-team-TR { color: #e8c040; }

/* Premium */
.premium_color { color: #e8c040; }

/* Fix float gaps — equal height cards */
.shop-item { min-height: 280px; }
.shop-item.shop-item-perk { min-height: 300px; }

/* Clear before skins section */
#shop-tab div[style*="clear"] {
    clear: both !important;
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    .shop-item { width: calc(50% - 7px); min-height: auto; }
}

/* ========== END SHOP ========== */
