/*
Theme Name: MULTITEC Child Theme
Theme URI: https://multitec.com.br
Description: Tema customizado para loja MULTITEC - Celulares e Eletrônicos
Author: MULTITEC
Author URI: https://multitec.com.br
Template: storefront
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multitec-child
Domain Path: /languages
*/

/* ==========================================================================
   VARIÁVEIS DE COR - MULTITEC
   ========================================================================== */

:root {
  --primary-color: #2563eb; /* Azul principal */
  --primary-dark: #1e40af;  /* Azul escuro */
  --secondary-color: #7c3aed; /* Roxo */
  --accent-color: #06b6d4; /* Ciano */
}

/* ==========================================================================
   IMPORTAR ESTILOS DO TEMA PAI
   ========================================================================== */

@import url("../storefront/style.css");

/* ==========================================================================
   ESTILOS GLOBAIS
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   HEADER E NAVEGAÇÃO
   ========================================================================== */

.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .site-branding img {
  max-height: 60px;
  width: auto;
}

.site-header a {
  color: white;
}

.site-header a:hover {
  color: var(--accent-color);
}

.site-header .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-header .site-description {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.25rem 0 0 0;
}

.primary-navigation {
  background-color: var(--primary-dark);
}

.primary-navigation a {
  color: white;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  background-color: var(--secondary-color);
  color: white;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-banner p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-banner .btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.hero-banner .btn:hover {
  background-color: #0891b2;
}

/* ==========================================================================
   PRODUTOS - GRID
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.product {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-price .currency {
  font-size: 0.875rem;
  font-weight: 600;
}

.product-price .amount {
  font-size: 1.75rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-to-cart,
.btn-view-details {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.875rem;
}

.btn-add-to-cart {
  background-color: var(--primary-color);
  color: white;
}

.btn-add-to-cart:hover {
  background-color: var(--primary-dark);
}

.btn-view-details {
  background-color: var(--bg-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-view-details:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ==========================================================================
   CATEGORIAS
   ========================================================================== */

.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.category-card:hover {
  transform: scale(1.05);
  color: white;
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-card-title {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ==========================================================================
   CARRINHO
   ========================================================================== */

.cart-page {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 0.5rem;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 100px 100px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.cart-item-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.cart-item-details p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.cart-summary {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--success);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #059669;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--accent-color);
}

.site-footer a:hover {
  color: white;
}

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

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 1.875rem;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .product-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem;
  }

  .cart-item-quantity,
  .cart-item-price {
    display: none;
  }
}

@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }

  .product-categories {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 2rem 1rem;
  }

  .hero-banner h1 {
    font-size: 1.5rem;
  }
}
