/* ============================================================
   UNAS-style Shared Stylesheet — Trinexus SEO Sites
   Based on Trinexus.pl UNAS webshop design
   Font: Quicksand | Primary: #196F80 | Accent: #29ADDB
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #196F80;
  --primary-dark: #0e4f5c;
  --accent: #29ADDB;
  --accent-light: #e8f7fc;
  --text: #1C2236;
  --text-light: #5a6178;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --green: #28a745;
  --green-light: #d4edda;
  --yellow: #E8D44D;
  --lime: #C5E84D;
  --purple: #9b59b6;
  --red-badge: #e74c3c;
  --font: 'Quicksand', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 15px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: .2s ease;
  --max-width: 1320px;
  --sidebar-width: 280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-layout {
  display: flex;
  gap: 32px;
  padding: 24px 0;
}

.page-layout .sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.page-layout .main-content {
  flex: 1;
  min-width: 0;
}

/* ─── Header / Top Bar ─────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.header-contact {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

.header-contact strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.header-spacer { flex: 1; }

.header-search {
  display: flex;
  align-items: center;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 380px;
  flex: 1;
}

.header-search input {
  border: none;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  flex: 1;
  outline: none;
  background: transparent;
}

.header-search button {
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--accent);
  font-size: 1.1rem;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  color: var(--text);
  font-size: 1.3rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li { display: flex; align-items: center; }

.breadcrumb li + li::before {
  content: '›';
  margin: 0 10px;
  color: var(--gray-400);
  font-size: 1.1em;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ─── Sidebar ──────────────────────────────────────────────── */
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.sidebar-nav .active > a {
  color: var(--primary);
  font-weight: 700;
}

.sidebar-nav .count {
  font-size: 0.75rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sidebar-nav ul ul {
  padding-left: 16px;
}

.sidebar-nav ul ul a {
  font-size: 0.85rem;
  font-weight: 400;
}

.sidebar-widget {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

.sidebar-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ─── Page Title ───────────────────────────────────────────── */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

/* ─── Hero Banner (brand page) ─────────────────────────────── */
.brand-banner {
  background: linear-gradient(135deg, var(--accent-light) 0%, #e0f4f4 100%);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.brand-banner-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.brand-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.brand-banner .read-more {
  display: block;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 10px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 32px -32px -32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-banner .read-more:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── Subcategory Cards (image + title) ────────────────────── */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.subcat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.subcat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.subcat-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 16px;
  background: var(--gray-50);
}

.subcat-card .subcat-name {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Series Grid (large image cards with overlay text) ───── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.series-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

.series-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-card .series-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}

.series-card .series-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.series-card .series-desc {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 4px;
  line-height: 1.4;
}

.series-card:hover .series-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}

/* ─── CTA Buttons (UNAS pill style) ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-yellow {
  background: var(--yellow);
  color: var(--text);
  border-color: var(--yellow);
}

.btn-lime {
  background: var(--lime);
  color: var(--text);
  border-color: var(--lime);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 0.9rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ─── CTA Row (3 colored buttons) ─────────────────────────── */
.cta-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.cta-row .btn { flex: 1; min-width: 180px; text-align: center; }

/* ─── Product Grid ─────────────────────────────────────────── */
.product-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.product-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.badge-sale { background: var(--red-badge); color: var(--white); }
.badge-new { background: var(--green); color: var(--white); }
.badge-bestseller { background: var(--accent); color: var(--white); }
.badge-stock { background: var(--green-light); color: #155724; font-weight: 600; }
.badge-order { background: #fff3cd; color: #856404; font-weight: 600; }

.product-card .wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--gray-400);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

.product-card .wishlist:hover { color: var(--accent); }

.product-card .product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 16px;
  background: var(--white);
}

.product-card .product-info {
  padding: 12px 16px 16px;
}

.product-card .product-status {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-name a {
  color: inherit;
  text-decoration: none;
}

.product-card .product-sku {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-card .product-price-old {
  font-size: 0.82rem;
  color: var(--gray-600);
  text-decoration: line-through;
  margin-right: 6px;
}

.product-card .add-to-cart {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--lime);
  color: var(--text);
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition);
}

.product-card .add-to-cart:hover {
  background: #b8db40;
  color: var(--text);
}

/* ─── Info Section (about text) ────────────────────────────── */
.info-section {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}

.info-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.info-section p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.info-section p:last-child { margin-bottom: 0; }

/* ─── Highlight Box (warranty, shipping etc.) ──────────────── */
.highlight-box {
  background: linear-gradient(135deg, #f0f9ff 0%, var(--accent-light) 100%);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.highlight-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.highlight-box .highlight-features {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ─── Series Highlight Cards (Cayman, Armada etc.) ─────────── */
.series-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.series-highlight:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.series-highlight img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.series-highlight .series-hl-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 2px;
}

.series-highlight .series-hl-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.series-highlight .series-hl-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ─── Show More Button ─────────────────────────────────────── */
.show-more {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  margin: 0 0 32px;
}

.show-more:hover { background: var(--primary); color: var(--white); }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-section { margin: 32px 0; }
.faq-section h2 { font-size: 1.3rem; margin-bottom: 16px; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  display: none;
  padding: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

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

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

/* ─── Scroll to Top ────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 99;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-layout { flex-direction: column; }
  .page-layout .sidebar { width: 100%; }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { max-width: 100%; order: 10; margin-top: 8px; }
  .header-contact { display: none; }
  .series-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-banner { padding: 20px; }
  .brand-banner h2 { font-size: 1.5rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { min-width: auto; }
  .info-section { padding: 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── FAQ JS toggle ────────────────────────────────────────── */
