.store-container { max-width: 1200px; margin: 50px auto 50px; padding: 0 24px; }
.store-container > header { margin-bottom: 44px !important; text-align: center; }
.store-container > header h1 { color: var(--text-dark) !important; font-size: 2.25rem; margin: 0 0 12px; }
.store-container > header p { color: var(--text-muted); margin: 0; font-size: 1.02rem; }

.store-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.store-filters select { padding: 10px 15px; border-radius: 25px; border: 1px solid var(--border); font-family: inherit; }

.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.resource-card { background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid var(--border-light); cursor: pointer; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--primary-rgb), 0.18); }

.thumb-container { position: relative; width: 100%; background: var(--bg-muted); display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--border-light); min-height: 190px; padding: 24px 0; }
.level-tag { position: absolute; top: 15px; left: 15px; background: var(--primary); color: white; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: bold; z-index: 2; }
.cart-check { display: none; }
.cart-check i { position: absolute; top: 15px; right: 15px; background: var(--success); color: white; padding: 5px; border-radius: 50%; z-index: 2; }
.thumb-container img { height: auto; }

.resource-content { padding: 22px !important; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.resource-content h3 { margin: 0 !important; font-size: 1.12rem !important; color: var(--text-dark); }
.resource-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; }
.resource-footer .price { font-weight: bold; }
.btn-cart { border-radius: 6px; padding: 8px 12px; font-weight: 700; transition: var(--transition); color: white; border: none; cursor: pointer; font-size: 0.8rem; }
.btn-cart-in { background: var(--success) !important; }
.btn-cart-add { background: var(--primary) !important; }
.btn-modal-cart { padding: 15px 35px; border-radius: 50px; }

.thumb-container > i { color: var(--border); }
#modalBody { display: contents; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(49,42,43,0.68); z-index: 10000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 900px; max-height: 90vh; border-radius: var(--radius-card); box-shadow: var(--shadow-card-hover); overflow-y: auto; position: relative; display: flex; padding: 40px; gap: 40px; }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text-muted); }
.modal-left { flex: 0 0 300px; text-align: center; }
.modal-left img { max-width: 300px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.modal-left i { font-size: 5rem; color: var(--border); }
.modal-right h2 { margin-top: 0; color: var(--text-dark); }
.modal-right .meta { background: var(--bg-input); padding: 10px; border-radius: var(--radius-card); margin: 15px 0; font-size: 0.9rem; border-left: 4px solid var(--primary); }
.modal-right .desc { line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.modal-right .modal-price { font-size: 1.5rem; font-weight: bold; color: var(--text-dark); margin-bottom: 25px; }
.modal-right .btn-modal-cart { border: none; padding: 15px 35px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: var(--transition); color: white; }

.floating-cart { position: fixed; bottom: 30px; right: 30px; background: var(--bg-card); border: 1px solid rgba(var(--primary-rgb),0.2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 12px 16px; display: flex; align-items: center; gap: 15px; z-index: 9999; }
.floating-cart .cart-info { display: flex; align-items: center; gap: 8px; }
.btn-checkout-float { background: var(--primary); color: white !important; padding: 8px 15px; border-radius: var(--radius-btn); text-decoration: none; font-weight: bold; font-size: 0.85rem; }
.btn-empty-cart { color: var(--text-muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; border: none; background: none; }

@media (max-width: 768px) {
    .store-container { margin-top: 42px; padding: 0 18px; }
    .store-container > header h1 { font-size: 1.9rem; }
    .resources-grid { gap: 16px; }
    .resource-content { padding: 16px !important; gap: 10px; }
    .resource-footer { flex-wrap: wrap; gap: 8px; }
    .modal-content { flex-direction: column; padding: 24px; }
    .floating-cart { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .resources-grid { grid-template-columns: 1fr; }
    .thumb-container { min-height: 140px; padding: 16px 0; }
    .store-filters { flex-direction: column; align-items: stretch; }
    .store-filters select { width: 100%; }
}
