/* pages/_shop.css - Estilos para a Loja Mallta WoW (Tema Dashboard) */

/* Herda variáveis do dashboard */
:root {
    --primary-color: #054d9b;
    --success-color: #28a745;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #eee;
    --epic-color: #a335ee;
    --rare-color: #0070dd;
    --uncommon-color: #1eff00;
    --common-color: #a0a0a0;
    --legendary-color: #ff8000;
}

/* Reset e estilos base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-color);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Cabeçalho - mantendo estilo do dashboard */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgb(8, 37, 72);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    /* color: var(--dark-color); */
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav .active a {
    color: var(--primary-color);
}

.main-nav i {
    margin-right: 5px;
}

/* Banner da loja - ajustado para tema do dashboard */
.banner-content{
    margin-top: 200px;
}
.shop-banner {
    background: linear-gradient(rgba(5, 77, 155, 0.8), rgba(5, 77, 155, 0.8)), 
                url('../images/banner1.png') center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-top: 70px; /* Compensa o header fixo */
}

.shop-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Layout principal da loja */
.shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Sidebar - estilo do dashboard */
.shop-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Lista de categorias - estilo do dashboard */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.7rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-list a:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.category-list .active a {
    background-color: var(--primary-color);
    color: white;
}

/* Filtros */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.rarity-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rarity-filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.price-range {
    padding: 0.5rem 0;
}

.slider {
    width: 100%;
    margin-bottom: 0.5rem;
}

#priceValue {
    color: var(--primary-color);
    font-weight: 600;
}

/* Área principal da loja */
.shop-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Barra de ferramentas */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    display: flex;
    width: 60%;
}

.search-box input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

.search-box button {
    padding: 0 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-box button:hover {
    background-color: #0056b3;
}

.sort-options select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Grade de itens */
.shop-grid {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.shop-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.shop-item:hover .item-image img {
    transform: scale(1.05);
}

.item-preview {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(5, 77, 155, 0.9);
    color: white;
    text-align: center;
    padding: 0.5rem;
    transition: bottom 0.3s ease;
    cursor: pointer;
}

.shop-item:hover .item-preview {
    bottom: 0;
}

.item-details {
    padding: 1.2rem;
}

.item-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.item-rarity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.item-rarity span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Cores de raridade */
.common {
    background-color: rgba(160, 160, 160, 0.1);
    color: var(--common-color);
    border: 1px solid var(--common-color);
}

.uncommon {
    background-color: rgba(30, 255, 0, 0.1);
    color: var(--uncommon-color);
    border: 1px solid var(--uncommon-color);
}

.rare {
    background-color: rgba(0, 112, 221, 0.1);
    color: var(--rare-color);
    border: 1px solid var(--rare-color);
}

.epic {
    background-color: rgba(163, 53, 238, 0.1);
    color: var(--epic-color);
    border: 1px solid var(--epic-color);
}

.legendary {
    background-color: rgba(255, 128, 0, 0.1);
    color: var(--legendary-color);
    border: 1px solid var(--legendary-color);
}

.item-level {
    background-color: #f0f0f0;
    color: #666;
}

.item-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
}

.item-price {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.current-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.item-actions {
    display: flex;
    justify-content: space-between;
}

.buy-button {
    flex: 1;
    padding: 0.7rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-button:hover {
    background-color: #0056b3;
}

.wishlist-button {
    width: 40px;
    margin-left: 0.5rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wishlist-button:hover {
    background-color: #ddd;
}

.wishlist-button.active {
    color: #ff4757;
}

/* Paginação */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-button:hover:not(.active) {
    background-color: #f5f5f5;
}

.page-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modal de visualização */
.item-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.modal-content {
    background-color: white;
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-item-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-item-image {
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-item-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.modal-item-info {
    display: flex;
    flex-direction: column;
}

.modal-item-name {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal-item-rarity {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-item-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #666;
}

.modal-item-stats {
    margin-bottom: 1.5rem;
}

.modal-item-stats h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-item-stats ul {
    list-style: none;
    padding: 0;
}

.modal-item-stats li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.modal-item-stats li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.modal-item-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-item-actions {
    display: flex;
    gap: 1rem;
}

.modal-buy-button {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-buy-button:hover {
    background-color: #0056b3;
}

/* Rodapé - mantendo estilo do dashboard */
.main-footer {
    background-color:var(--dark-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    
}

.footer-content a {
color:var(--light-bg);
}

.footer-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #666;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color:var(--light-bg);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

/* RESPONSIVIDADE */

/* Tablets e telas médias */
@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }
    
    .shop-sidebar {
        position: static;
        height: auto;
        top: auto;
        margin-bottom: 2rem;
    }
    
    .modal-item-view {
        grid-template-columns: 1fr;
    }
    
    .modal-item-image {
        margin-bottom: 1.5rem;
    }
}

/* Celulares e telas pequenas */
@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-banner h1 {
        font-size: 2rem;
    }
    
    .shop-banner p {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
}

/* Adicione isso ao seu arquivo _shop.css */

.shop-banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.banner-slide {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex !important;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.banner-slide .container {
  width: 100%;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-slide h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease;
}

.banner-slide p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  animation: fadeInUp 1.3s ease;
}

.banner-button {
  background: #8a5a2d;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  animation: fadeInUp 1.5s ease;
}

.banner-button:hover {
  background: #a06a3a;
  transform: translateY(-3px);
}

/* Slick Carousel Custom Styles */
.slick-prev, .slick-next {
  width: 40px;
  height: 40px;
  z-index: 10;
}

.slick-prev:before, .slick-next:before {
  display: none;
}

.slick-prev {
  left: 20px;
}

.slick-next {
  right: 20px;
}

.slick-prev i, .slick-next i {
  font-size: 30px;
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.slick-prev:hover i, .slick-next:hover i {
  opacity: 1;
}

.slick-dots {
  bottom: 20px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: white;
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

