/* Shop System Styles */
.shop-container {
    padding: 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 30px;
}

.shop-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.shop-search-bar {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #5e3100;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.search-btn {
    padding: 10px 30px;
    background: linear-gradient(90deg, rgb(68 55 40) 0%, rgb(65 38 7) 35%, rgb(137 92 24) 100%);
    border: 1px solid #5e3100;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(90deg, rgb(78 65 50) 0%, rgb(75 48 17) 35%, rgb(147 102 34) 100%);
}

/* Categories showcase with real icons */
.shop-categories-menu {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
    overflow: visible;
    padding: 0;
}

.shop-categories-menu .category-btn {
    /* 32px tile width and height */
    flex: 0 0 32px;
    height: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
    border-radius: 8px;
    border: 2px solid #5e3100;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.shop-categories-menu .category-btn .cat-icon-wrap {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    display: grid;
    place-items: center;
}

.shop-categories-menu .category-btn .cat-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: -webkit-optimize-contrast;
}

.shop-categories-menu .category-btn .cat-label {
    font-size: 10px;
    font-weight: bold;
    line-height: 1.15;
}

.shop-categories-menu .category-btn:hover,
.shop-categories-menu .category-btn.active {
    /* transform: translateY(-6px); */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    border-color: rgb(137 92 24);
}

/* End of showcase categories styles */

/* Grid is default; List will be applied via .list-view */
.shop-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.shop-offers-grid.list-view { display: block; gap: 0; }

/* Card: default (grid view) as vertical block */
.shop-offer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.75);
}
.shop-offer-card .offer-icon { flex: 0 0 auto; margin: 0 0 10px; height: auto; display:flex; align-items:center; justify-content:center; }
.shop-offer-card .offer-info { margin: 0 0 10px; min-width: 0; width: 100%; }
.shop-offer-card .offer-footer { width: 100%; display:flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #222; margin: 0; }

/* List view overrides */
.shop-offers-grid.list-view .shop-offer-card { flex-direction: row; align-items: center; text-align: left; padding: 10px 15px; border-radius: 6px; margin-bottom: 2px; }
.shop-offers-grid.list-view .shop-offer-card .offer-icon { flex: 0 0 60px; margin: 0 18px 0 0; height: 60px; }
.shop-offers-grid.list-view .shop-offer-card .offer-info { flex: 1 1 auto; min-width: 200px; margin: 0; }
.shop-offers-grid.list-view .shop-offer-card .offer-footer { flex: 0 0 170px; display:flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding-left: 12px; border-top: none; margin-left: 12px; }

/* Keep hover behavior sane */
.shop-offer-card:hover { transform: none; box-shadow: 0 6px 14px rgba(0,0,0,0.45); border-color: rgb(137 92 24); }

/* Shop System Styles - DEBUG TEST */
body.shop-debug {
    border: 5px solid red !important;
}

/* Estilos bÃƒÂ¡sicos garantidos para content-area */
.content-area {
    width: 100%;
}

/* Garantir que o main-container funcione */
.main-container {
    display: grid;
    gap: 5px;
    flex: 1;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .shop-offers-grid {
        grid-template-columns: 1fr;
    }

    .shop-categories-menu {
        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
    }

    .purchase-form {
        margin: 20px 10px;
        padding: 20px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .shop-offer-card,
    .btn-buy-offer,
    .search-btn {
        transition: none !important;
    }

    .shop-offer-card:hover,
    .shop-offers-grid.list-view .shop-offer-card:hover {
        transform: none !important;
    }
}

body .cyber-shop {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body .shop-header {
    text-align: center;
    margin-bottom: 30px;
}

body .shop-title {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

body .shop-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

body .shop-account-info {
    margin-top: 20px;
}

body .account-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin: 0 auto;
    max-width: 600px;
    flex-wrap: nowrap;
}

body .account-points.guest {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

body .points-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

body .points-value {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    padding: 5px 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

body .guest-message {
    font-size: 16px;
    font-weight: 500;
    color: #856404;
    width: 100%;
    display: flex;
    flex: 0 100%;
}

body .btn-donate,
body .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 94px;
}

body a.btn-login:last-child {
    min-width: 140px;
}

body .btn-donate {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    min-width: 130px;
}

body .btn-donate:hover {
    background: linear-gradient(135deg, #218838 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    color: white;
}

body .btn-login:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    color: white;
}

body .shop-filters {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

body .filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

body .search-box {
    flex: 1;
    min-width: 300px;
}

body .search-form {
    display: flex;
    gap: 5px;
}

body .search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

body .search-btn {
    padding: 10px 15px;
    background: #fff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body .category-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

body .shop-stats {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

body .stats-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

body .stat-item {
    font-size: 14px;
    color: #495057;
}

body .shop-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    margin-bottom: 30px;
}

body .shop-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body .offer-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

body .offer-name {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

body .offer-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
}

body .offer-count {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

body .offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

body .offer-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

body .btn-buy-offer {
    display: inline-block;
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

body .btn-buy-offer:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

body .shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

body .no-results {
    text-align: center;
    padding: 40px 20px;
}

body .no-results-icon {
    font-size: 3em;
    margin-bottom: 20px;
}