/*
Theme Name: Go Maderas
Theme URI: https://gomaderas.com
Author: Go Maderas
Description: Tema personalizado para Go! Maderas - Venta de maderas, herrajes, pinturas y tornillería en Uruguay.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: go-maderas
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --primary: #FF6600;
  --primary-hover: #e65c00;
  --secondary: #1a1d23;
  --secondary-light: #2a2d33;
  --background: #ffffff;
  --foreground: #1a1d23;
  --muted: #f1f1f1;
  --muted-foreground: #6b7280;
  --border: #e5e5e5;
  --radius: 0.5rem;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== NAVBAR ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--secondary);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.875rem;
  color: #fff;
}

.site-logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}

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

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .menu-toggle { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 35, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  color: #fff;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin-top: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline-dark:hover {
  background: var(--muted);
}

/* ========== CATEGORIES ========== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title span {
  color: var(--primary);
}

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

@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: #fff;
}

.category-card h3 {
  font-size: 1.125rem;
}

.category-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ========== ABOUT ========== */
.about-section {
  background: var(--muted);
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.about-grid h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted-foreground);
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

/* ========== PRODUCTS GRID ========== */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--muted);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1rem;
}

.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
}

.product-card-name {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.product-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.5rem;
}

.offer-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item p.label {
  font-weight: 700;
}

.contact-info-item a,
.contact-info-item .value {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .contact-form { padding: 2rem; }
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
  margin-bottom: 1rem;
}

.contact-form .btn {
  width: auto;
  justify-content: center;
  background: var(--muted);
  color: var(--foreground);
  padding: 0.8rem 1.8rem;
}

.contact-form .btn:hover {
  background: var(--border);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--secondary);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
}

.footer-logo span {
  color: var(--primary);
}

.site-footer h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

.site-footer ul li {
  margin-bottom: 0.25rem;
}

.site-footer ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

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

/* ========== CTA ========== */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-section p {
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* ========== DELIVERY INFO ========== */
.delivery-note {
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.delivery-note strong {
  color: var(--primary);
}

/* ========== TEXT HELPERS ========== */
.text-primary {
  color: var(--primary);
}

/* ========== CATALOG FILTERS ========== */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter:hover {
  background: var(--muted);
}

.btn-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
}

.product-detail-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-detail-adjustment {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.product-detail-description {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.badge-outline {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== VARIANT SELECTORS ========== */
.variant-type-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-btn:hover {
  border-color: var(--primary);
}

.variant-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.variant-adj {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========== ADD TO CART BUTTONS ========== */
.after-add-buttons,
.after-add-buttons-detail {
  display: flex;
}

/* ========== CART PAGE ========== */
.cart-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: 2fr 1fr; }
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--muted);
}

.cart-item-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  width: 6rem;
  text-align: right;
}

.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.btn-remove:hover {
  opacity: 1;
}

.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
}

@media (max-width: 767px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item-total { width: auto; text-align: left; }
}

/* ========== CHECKOUT ========== */
.checkout-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: opacity 0.3s;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.delivery-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .delivery-zones-grid { grid-template-columns: 1fr; }
}

.delivery-zone-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.delivery-zone-btn:hover {
  border-color: rgba(255, 102, 0, 0.5);
}

.delivery-zone-btn.active {
  border-color: var(--primary);
  background: rgba(255, 102, 0, 0.05);
}

.bank-info {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.bank-row + .bank-row {
  border-top: 1px solid var(--border);
}

.btn-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  opacity: 0.6;
}

.btn-copy:hover {
  opacity: 1;
}

/* ========== POLICY PAGES ========== */
.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.policy-content ul,
.policy-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-content strong {
  color: var(--foreground);
}

/* ========== FOOTER BOTTOM ========== */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

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

.footer-policy-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-size: 0.75rem;
}

.footer-policy-links a:hover {
  color: var(--primary);
}
/* TEST VISUAL TEMPORAL */
body {
  outline: 6px solid red !important;
}