/*
Theme Name: Distribuidora Aveirense
Theme URI: https://distribuidoraaveirense.pt
Author: Distribuidora Aveirense
Author URI: https://distribuidoraaveirense.pt
Description: Tema oficial da Distribuidora Aveirense - Tudo para o seu negócio. Compatível com WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: distribuidora-aveirense
Tags: woocommerce, custom-menu, custom-logo, responsive-layout
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --da-red: #E31E24;
  --da-red-dark: #c01a1f;
  --da-dark: #1a1a1a;
  --da-dark-2: #111;
  --da-gray: #f7f7f7;
  --da-border: #e5e7eb;
  --da-text: #374151;
  --da-text-light: #6b7280;
  --da-white: #ffffff;
  --da-max-width: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--da-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.da-container {
  max-width: var(--da-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.da-btn-red {
  display: inline-block;
  background: var(--da-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.da-btn-red:hover { background: var(--da-red-dark); color: #fff; }

.da-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--da-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.da-section-subtitle {
  text-align: center;
  color: var(--da-text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
#da-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--da-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  width: 100%;
}

/* Top bar */
.da-topbar {
  border-bottom: 1px solid #f3f4f6;
}
.da-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.25rem;
}
.da-topbar-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.da-topbar-search input {
  display: none;
  font-size: 0.75rem;
  color: var(--da-text);
  border: none;
  outline: none;
  background: transparent;
  width: 13rem;
}
.da-topbar-search input::placeholder { color: #9ca3af; }
@media (min-width: 768px) { .da-topbar-search input { display: block; } }

.da-topbar-search button {
  color: var(--da-text-light);
  padding: 0.25rem;
  transition: color 0.2s;
}
.da-topbar-search button:hover { color: var(--da-red); }

.da-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--da-text);
}
.da-topbar-actions a {
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.da-topbar-actions a:hover { color: var(--da-red); }
.da-topbar-sep { color: #d1d5db; }

.da-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--da-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}
.da-lang-btn:hover { background: var(--da-red-dark); }

/* Main header */
.da-mainheader-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}
.da-logo img {
  height: 65px;
  width: auto;
}
.da-header-right {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .da-header-right { display: flex; } }

.da-main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.da-main-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.da-main-nav a:hover { color: var(--da-red); }

.da-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.da-cart-btn:hover { opacity: 0.8; }
.da-cart-icon {
  position: relative;
}
.da-cart-icon img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}
.da-cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--da-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.da-cart-info { text-align: right; line-height: 1.2; }
.da-cart-num { color: var(--da-red); font-weight: 900; font-size: 1.125rem; line-height: 1; }
.da-cart-label { font-size: 10px; color: var(--da-text-light); text-transform: uppercase; font-weight: 600; }

/* Mobile hamburger */
.da-mobile-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--da-text);
}
@media (min-width: 768px) { .da-mobile-toggle { display: none; } }

/* Category bar */
.da-catbar {
  background: var(--da-dark);
  display: none;
}
@media (min-width: 768px) { .da-catbar { display: block; } }

.da-catbar-inner {
  display: flex;
  align-items: center;
}

.da-catitem {
  position: relative;
}
.da-catitem > a,
.da-catitem > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  cursor: pointer;
}
.da-catitem > a:hover,
.da-catitem > button:hover,
.da-catitem.active > a,
.da-catitem.active > button {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.da-catitem.highlight > a,
.da-catitem.highlight > button {
  background: var(--da-red);
  color: #fff;
}
.da-catitem.highlight > a:hover,
.da-catitem.highlight > button:hover {
  background: var(--da-red-dark);
}

.da-catitem svg.chevron {
  opacity: 0.7;
  transition: transform 0.2s;
  width: 12px;
  height: 12px;
}
.da-catitem.open svg.chevron { transform: rotate(180deg); }

.da-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--da-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  z-index: 50;
  min-width: 220px;
}
.da-catitem:hover .da-dropdown,
.da-catitem.open .da-dropdown { display: block; }

.da-dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--da-text);
  transition: all 0.15s;
}
.da-dropdown a:first-child {
  color: var(--da-text-light);
  font-style: italic;
  border-bottom: 1px solid #f3f4f6;
}
.da-dropdown a:hover {
  background: var(--da-red);
  color: #fff;
}

/* Mobile menu */
.da-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--da-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.da-mobile-menu.open { display: block; }
.da-mobile-menu-inner { padding: 1rem; }
.da-mobile-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.da-mobile-search input {
  flex: 1;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}
.da-mobile-search input:focus { border-color: var(--da-red); }
.da-mobile-search button {
  background: var(--da-red);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.da-mobile-nav { space-y: 0.25rem; }
.da-mobile-nav a,
.da-mobile-nav button {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}
.da-mobile-nav a:hover,
.da-mobile-nav button:hover { color: var(--da-red); }

.da-mobile-cats {
  background: var(--da-dark);
  padding: 0.5rem 1rem;
}
.da-mobile-cats a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #d1d5db;
  transition: color 0.2s;
}
.da-mobile-cats a:hover { color: #fff; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.da-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
  height: 420px;
}
.da-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}
.da-slide.active { opacity: 1; z-index: 1; }
.da-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.da-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.da-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.da-slide-text { text-align: center; color: #fff; padding: 1rem; max-width: 48rem; }
.da-slide-text h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.1;
}
.da-slide-text a {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.da-slide-text a:hover { background: #fff; color: #1a1a1a; }

.da-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 0.5rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.da-slider-arrow:hover { background: rgba(0,0,0,0.6); }
.da-slider-arrow.prev { left: 0.75rem; }
.da-slider-arrow.next { right: 0.75rem; }

.da-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.da-slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.da-slider-dot.active {
  background: #fff;
  transform: scale(1.1);
}

.da-slider-social {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.da-slider-social-icons { display: flex; gap: 0.25rem; }
.da-slider-social-icons a {
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.da-slider-social-icons a:hover { background: var(--da-red); }
.da-slider-social-icons a svg { width: 1rem; height: 1rem; }
.da-slider-url { color: #fff; font-size: 10px; opacity: 0.8; letter-spacing: 0.03em; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.da-product-card {
  border: 1px solid var(--da-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.da-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.da-product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.da-product-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--da-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
}
.da-product-card:hover .da-product-badge { opacity: 1; }

.da-product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.da-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.da-product-card:hover .da-product-img img { transform: scale(1.05); }

.da-product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}
.da-product-placeholder .logo-big { font-size: 1.875rem; font-weight: 900; color: var(--da-red); }
.da-product-placeholder .logo-sub { font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; }
.da-product-placeholder .logo-tagline { font-size: 8px; color: #9ca3af; font-style: italic; margin-top: 2px; }

.da-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #f3f4f6;
}
.da-product-info {
  padding: 0.5rem 0.75rem 0.25rem;
  flex: 1;
}
.da-product-name {
  font-weight: 900;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #111827;
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.da-product-name:hover { color: var(--da-red); }
.da-product-meta { font-size: 0.75rem; color: var(--da-text-light); margin-top: 2px; }
.da-product-price { font-size: 0.875rem; font-weight: 700; color: var(--da-red); margin-top: 0.25rem; }

.da-product-actions {
  padding: 0.25rem 0.75rem 0.75rem;
  display: flex;
  gap: 0.25rem;
}
.da-product-actions a.da-btn-saibamais {
  flex: 1;
  background: var(--da-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem;
  text-align: center;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}
.da-product-actions a.da-btn-saibamais:hover { background: var(--da-red-dark); }
.da-btn-add-cart {
  background: #f3f4f6;
  color: var(--da-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--da-border);
  transition: background 0.2s;
  cursor: pointer;
}
.da-btn-add-cart:hover { background: #e5e7eb; }

/* Product carousel / grid */
.da-product-carousel {
  position: relative;
  margin-top: 1.5rem;
}
.da-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.375rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  color: var(--da-text);
}
@media (min-width: 768px) { .da-carousel-arrow { display: flex; } }
.da-carousel-arrow:hover { background: var(--da-red); color: #fff; border-color: var(--da-red); }
.da-carousel-arrow.prev { left: -1.25rem; }
.da-carousel-arrow.next { right: -1.25rem; }

.da-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.da-product-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .da-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .da-product-grid { grid-template-columns: repeat(6, 1fr); } }

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.da-section-white { padding: 2.5rem 0; background: #fff; }
.da-section-gray { padding: 2.5rem 0; background: var(--da-gray); }

/* News cards */
.da-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .da-news-grid { grid-template-columns: repeat(3, 1fr); } }

.da-news-card {
  background: #fff;
  border: 1px solid var(--da-border);
  transition: box-shadow 0.2s;
}
.da-news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.da-news-card img { width: 100%; height: 11rem; object-fit: cover; }
.da-news-card-body { padding: 1rem; }
.da-news-card h3 {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.da-news-card h3 a { transition: color 0.2s; }
.da-news-card h3 a:hover { color: var(--da-red); }
.da-news-card p {
  color: var(--da-text-light);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.da-news-card .da-readmore {
  color: var(--da-red);
  font-size: 0.75rem;
  font-weight: 600;
  transition: text-decoration 0.2s;
}
.da-news-card .da-readmore:hover { text-decoration: underline; }

/* Brands grid */
.da-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) { .da-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .da-brands-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .da-brands-grid { grid-template-columns: repeat(9, 1fr); } }

.da-brand-item {
  border: 1px solid var(--da-border);
  background: #fff;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: all 0.2s;
}
.da-brand-item:hover { border-color: var(--da-red); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.da-brand-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.da-brand-item span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s;
}
.da-brand-item:hover span { color: var(--da-red); }

/* Contact bar */
.da-contact-bar {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}
.da-contact-bar p { font-size: 0.875rem; color: #374151; }
.da-contact-bar .label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #374151; margin-bottom: 0.5rem; font-size: 0.875rem; }
.da-contact-bar .note { font-size: 0.75rem; color: #9ca3af; margin-bottom: 0.25rem; }
.da-contact-bar strong { font-weight: 700; }
.da-contact-bar a { color: var(--da-red); transition: text-decoration 0.2s; }
.da-contact-bar a:hover { text-decoration: underline; }

/* ============================================================
   PRODUTOS PAGE
   ============================================================ */
.da-page-banner {
  background: var(--da-dark);
  padding: 2rem 0;
}
.da-page-banner h1 {
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.da-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}
.da-breadcrumb a { color: #9ca3af; transition: color 0.2s; }
.da-breadcrumb a:hover { color: var(--da-red); }
.da-breadcrumb span { color: #fff; font-weight: 700; }

.da-produtos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .da-produtos-layout { grid-template-columns: 240px 1fr; }
}

/* Sidebar */
.da-sidebar {
  display: none;
}
@media (min-width: 768px) { .da-sidebar { display: block; } }

.da-sidebar-section {
  background: #f9fafb;
  border: 1px solid var(--da-border);
  padding: 1rem;
  margin-bottom: 1rem;
}
.da-sidebar-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--da-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--da-red);
  letter-spacing: 0.05em;
}
.da-sidebar-section form { display: flex; flex-direction: column; gap: 0.5rem; }
.da-sidebar-section input[type="text"],
.da-sidebar-section select {
  width: 100%;
  font-size: 0.875rem;
  border: 1px solid var(--da-border);
  padding: 0.375rem 0.625rem;
  outline: none;
  transition: border-color 0.2s;
}
.da-sidebar-section input[type="text"]:focus,
.da-sidebar-section select:focus { border-color: var(--da-red); }

.da-sidebar-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.da-btn-outline-red {
  display: inline-block;
  border: 1px solid var(--da-red);
  color: var(--da-red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}
.da-btn-outline-red:hover { background: var(--da-red); color: #fff; }

.da-subcats-list a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--da-text);
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s;
}
.da-subcats-list a:hover,
.da-subcats-list a.active { color: var(--da-red); font-weight: 700; }

.da-brands-list { display: flex; flex-direction: column; gap: 0.25rem; }
.da-brands-list a {
  font-size: 0.8rem;
  color: var(--da-text-light);
  transition: color 0.2s;
}
.da-brands-list a:hover { color: var(--da-red); }

/* Products main area */
.da-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.da-products-count { font-size: 0.875rem; color: var(--da-text-light); }
.da-products-sort select {
  font-size: 0.875rem;
  border: 1px solid var(--da-border);
  padding: 0.375rem 0.625rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.da-products-sort select:focus { border-color: var(--da-red); }

.da-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .da-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .da-products-grid { grid-template-columns: repeat(4, 1fr); } }

.da-empty-state {
  padding: 2.5rem;
  text-align: center;
  border: 1px dashed var(--da-border);
  color: var(--da-text-light);
}
.da-empty-state p { font-size: 0.875rem; margin-bottom: 1rem; }

/* Pagination */
.da-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.da-pagination a,
.da-pagination span {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--da-border);
  color: var(--da-text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.da-pagination a:hover { background: var(--da-red); color: #fff; border-color: var(--da-red); }
.da-pagination span.current { background: var(--da-red); color: #fff; border-color: var(--da-red); font-weight: 700; }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.da-single-product {
  padding: 2rem 0;
}
.da-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .da-single-layout { grid-template-columns: 1fr 1fr; } }

.da-single-img { border: 1px solid var(--da-border); padding: 1rem; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.da-single-img img { max-width: 100%; max-height: 400px; object-fit: contain; }

.da-single-info {}
.da-single-ref { font-size: 0.75rem; color: var(--da-text-light); margin-bottom: 0.5rem; }
.da-single-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; color: var(--da-dark); }
.da-single-price { font-size: 1.25rem; font-weight: 700; color: var(--da-red); margin-bottom: 1rem; }
.da-single-desc { font-size: 0.875rem; color: var(--da-text); line-height: 1.7; margin-bottom: 1.5rem; }

.da-single-attrs { margin-bottom: 1.5rem; }
.da-single-attrs table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.da-single-attrs td { padding: 0.375rem 0.5rem; border-bottom: 1px solid #f3f4f6; }
.da-single-attrs td:first-child { font-weight: 700; color: var(--da-text); width: 40%; }
.da-single-attrs td:last-child { color: var(--da-text-light); }

.da-add-to-quote-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.da-qty-input {
  width: 4rem;
  border: 1px solid var(--da-border);
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  text-align: center;
  outline: none;
}
.da-qty-input:focus { border-color: var(--da-red); }

.da-btn-addquote {
  background: var(--da-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}
.da-btn-addquote:hover { background: var(--da-red-dark); }

.da-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--da-border);
  color: var(--da-text);
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  transition: all 0.2s;
}
.da-btn-pdf:hover { border-color: var(--da-red); color: var(--da-red); }

/* ============================================================
   NOTICIAS
   ============================================================ */
.da-noticias-page { padding: 2rem 0; }
.da-noticias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .da-noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .da-noticias-grid { grid-template-columns: repeat(3, 1fr); } }

.da-noticia-card { background: #fff; border: 1px solid var(--da-border); transition: box-shadow 0.2s; }
.da-noticia-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.da-noticia-card img { width: 100%; height: 13rem; object-fit: cover; }
.da-noticia-card-body { padding: 1.25rem; }
.da-noticia-date { font-size: 0.75rem; color: var(--da-text-light); margin-bottom: 0.5rem; }
.da-noticia-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.da-noticia-card h2 a { color: #111; transition: color 0.2s; }
.da-noticia-card h2 a:hover { color: var(--da-red); }
.da-noticia-card p { font-size: 0.875rem; color: var(--da-text-light); line-height: 1.6; margin-bottom: 1rem; }
.da-noticia-card .da-readmore { color: var(--da-red); font-size: 0.875rem; font-weight: 600; }
.da-noticia-card .da-readmore:hover { text-decoration: underline; }

/* Single news */
.da-single-news { max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.da-single-news img.featured { width: 100%; height: 350px; object-fit: cover; margin-bottom: 2rem; }
.da-single-news h1 { font-size: 1.75rem; font-weight: 900; margin-bottom: 1rem; color: var(--da-dark); }
.da-single-news .content { font-size: 0.9375rem; line-height: 1.8; color: var(--da-text); }
.da-single-news .content p { margin-bottom: 1rem; }
.da-single-news .content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.da-single-news .content img { max-width: 100%; margin: 1rem 0; }

/* ============================================================
   EMPRESA PAGE
   ============================================================ */
.da-empresa-page { padding: 2rem 0; }
.da-empresa-hero { background: var(--da-dark); padding: 3rem 0; margin-bottom: 2rem; color: #fff; }
.da-empresa-hero h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.da-empresa-section { margin-bottom: 3rem; }
.da-empresa-section h2 { font-size: 1.375rem; font-weight: 900; color: var(--da-red); text-transform: uppercase; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f3f4f6; }
.da-empresa-section p { font-size: 0.9375rem; line-height: 1.8; color: var(--da-text); margin-bottom: 0.75rem; }

/* ============================================================
   MARCAS PAGE
   ============================================================ */
.da-marcas-page { padding: 2rem 0; }
.da-marcas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .da-marcas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .da-marcas-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .da-marcas-grid { grid-template-columns: repeat(6, 1fr); } }

.da-marca-card {
  border: 1px solid var(--da-border);
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  text-align: center;
}
.da-marca-card:hover { border-color: var(--da-red); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.da-marca-card img { max-height: 70px; width: auto; object-fit: contain; }
.da-marca-card h3 { font-size: 0.875rem; font-weight: 700; color: var(--da-text); }

/* ============================================================
   CONTACTOS PAGE
   ============================================================ */
.da-contactos-page { padding: 2rem 0; }
.da-contactos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .da-contactos-layout { grid-template-columns: 1fr 1fr; } }

.da-contact-card { background: var(--da-gray); padding: 1.5rem; border: 1px solid var(--da-border); }
.da-contact-card h2 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; color: var(--da-dark); padding-bottom: 0.5rem; border-bottom: 2px solid var(--da-red); }
.da-contact-card .info-row { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--da-text); }
.da-contact-card .info-row svg { flex-shrink: 0; margin-top: 2px; color: var(--da-red); }
.da-map-wrap { height: 400px; border: 1px solid var(--da-border); margin-top: 2rem; overflow: hidden; }
.da-map-wrap iframe { width: 100%; height: 100%; border: none; }

/* Contact form */
.da-contact-form { background: #fff; border: 1px solid var(--da-border); padding: 1.5rem; }
.da-contact-form h2 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; color: var(--da-dark); padding-bottom: 0.5rem; border-bottom: 2px solid var(--da-red); }
.da-form-group { margin-bottom: 1rem; }
.da-form-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.375rem; color: var(--da-text); }
.da-form-group input,
.da-form-group select,
.da-form-group textarea {
  width: 100%;
  border: 1px solid var(--da-border);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.da-form-group input:focus,
.da-form-group select:focus,
.da-form-group textarea:focus { border-color: var(--da-red); }
.da-form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   ORÇAMENTO PAGE
   ============================================================ */
.da-orcamento-page { padding: 2rem 0; }
.da-orcamento-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .da-orcamento-layout { grid-template-columns: 1fr 380px; } }

.da-cart-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.da-cart-table th { text-align: left; padding: 0.625rem 0.75rem; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; background: #f9fafb; border-bottom: 2px solid var(--da-border); color: var(--da-text); }
.da-cart-table td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.da-cart-table tr:hover td { background: #fafafa; }

.da-cart-item-img { width: 3rem; height: 3rem; object-fit: contain; border: 1px solid var(--da-border); padding: 2px; }
.da-cart-remove { color: var(--da-red); background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0.25rem; transition: opacity 0.2s; }
.da-cart-remove:hover { opacity: 0.7; }
.da-qty-ctrl { display: flex; align-items: center; gap: 0.25rem; }
.da-qty-ctrl button { width: 1.5rem; height: 1.5rem; background: #f3f4f6; border: 1px solid var(--da-border); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.da-qty-ctrl button:hover { background: var(--da-red); color: #fff; border-color: var(--da-red); }
.da-qty-ctrl input { width: 2.5rem; text-align: center; border: 1px solid var(--da-border); padding: 0.125rem; font-size: 0.875rem; }

.da-quote-form-card { background: #f9fafb; border: 1px solid var(--da-border); padding: 1.5rem; }
.da-quote-form-card h2 { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--da-red); }

/* ============================================================
   FOOTER
   ============================================================ */
.da-footer { background: #222; color: #fff; }

.da-footer-search { background: var(--da-dark-2); padding: 2rem 0; }
.da-footer-search h3 { text-align: center; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; margin-bottom: 1rem; }
.da-footer-search-form { display: flex; max-width: 32rem; margin: 0 auto; gap: 0.5rem; }
.da-footer-search-form input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.da-footer-search-form input::placeholder { color: #9ca3af; }
.da-footer-search-form input:focus { border-color: var(--da-red); }

.da-footer-main { padding: 2.5rem 0; }
.da-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .da-footer-grid { grid-template-columns: repeat(3, 1fr); } }

.da-footer-col h3 {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--da-red);
}

.da-footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; color: #9ca3af; }
.da-footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: #6b7280; width: 13px; height: 13px; }
.da-footer-contact-item strong { color: #fff; }
.da-footer-contact-item a { color: #9ca3af; transition: color 0.2s; }
.da-footer-contact-item a:hover { color: var(--da-red); }

.da-footer-loc-title { color: var(--da-red); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; display: block; transition: text-decoration 0.2s; }
.da-footer-loc-title:hover { text-decoration: underline; }

.da-newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.da-newsletter-form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.da-newsletter-form input::placeholder { color: #9ca3af; }
.da-newsletter-form input:focus { border-color: var(--da-red); }
.da-newsletter-form p { font-size: 0.875rem; color: #9ca3af; margin-bottom: 1rem; }

.da-footer-about-text { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; margin-bottom: 1rem; }
.da-social-icons { display: flex; gap: 0.75rem; }
.da-social-icons a {
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.da-social-icons a:hover { background: var(--da-red); }
.da-social-icons a svg { width: 1rem; height: 1rem; }

.da-footer-bottom {
  background: var(--da-dark-2);
  padding: 1rem 0;
}
.da-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}
@media (min-width: 768px) { .da-footer-bottom-inner { flex-direction: row; } }
.da-footer-bottom-links { display: flex; gap: 1rem; }
.da-footer-bottom-links a { color: #6b7280; transition: color 0.2s; }
.da-footer-bottom-links a:hover { color: var(--da-red); }

/* ============================================================
   TOAST / NOTIFICATION
   ============================================================ */
.da-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.da-toast {
  background: #1f2937;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: auto;
}
.da-toast.show { opacity: 1; transform: translateY(0); }
.da-toast.success::before { content: '✓ '; color: #10b981; }
.da-toast.error::before { content: '✗ '; color: var(--da-red); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-page .da-container { max-width: var(--da-max-width); }

/* WooCommerce product loop */
.woocommerce ul.products { margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
}
.woocommerce ul.products.columns-4 { display: grid !important; grid-template-columns: repeat(4,1fr) !important; gap: 1px !important; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--da-red) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--da-red-dark) !important; }

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border-radius: 0 !important;
  border-color: var(--da-border) !important;
  font-size: 0.875rem !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--da-red) !important; outline: none !important; box-shadow: none !important; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px) {
  .da-hero { height: 260px; }
  .da-slide-text h1 { font-size: 1.25rem; }
  .da-single-layout { grid-template-columns: 1fr; }
  .da-produtos-layout { grid-template-columns: 1fr; }
  .da-contactos-layout { grid-template-columns: 1fr; }
  .da-orcamento-layout { grid-template-columns: 1fr; }
}

/* Loading spinner */
.da-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}
.da-spinner::after {
  content: '';
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--da-border);
  border-top-color: var(--da-red);
  border-radius: 50%;
  animation: da-spin 0.7s linear infinite;
}
@keyframes da-spin { to { transform: rotate(360deg); } }
