/*
Theme Name: Pollytex
Theme URI: https://pollytex.straks.online
Description: Custom B2B raamdecoratie theme for Pollytex — ported look & feel from the Vendure storefront (purple #61245b / orange #ec8b5d, Barlow). WooCommerce-ready.
Author: Pollytex
Version: 0.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: pollytex
*/

/* ============================================================
   Brand tokens (mirrors Vendure tailwind.config.js)
   ============================================================ */
:root {
  --primary-50:  #f9f4f8;
  --primary-100: #f2e9f1;
  --primary-200: #e5d3e3;
  --primary-300: #d8bdd5;
  --primary-400: #cba7c7;
  --primary-500: #61245b; /* main brand */
  --primary-600: #4e1d49;
  --primary-700: #3b1637;
  --primary-800: #280f25;
  --primary-900: #150813;

  --accent-500:  #ec8b5d; /* button accent */
  --accent-600:  #e8733c;
  --accent-700:  #d15b24;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --container: 1180px;
  --radius: 0.75rem;
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-700); }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

.ptx-container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.ptx-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem; border-radius: .5rem; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: all .15s ease; text-align: center;
}
.ptx-btn-primary { background: var(--primary-600); color: #fff; }
.ptx-btn-primary:hover { background: var(--primary-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ptx-btn-white { background: #fff; color: var(--primary-700); }
.ptx-btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.ptx-btn-outline { border-color: var(--primary-600); color: var(--primary-600); background: transparent; }
.ptx-btn-outline:hover { background: var(--primary-50); }
.ptx-btn-outline-white { border-color: #fff; color: #fff; background: transparent; }
.ptx-btn-outline-white:hover { background: #fff; color: var(--primary-700); }
.ptx-btn-accent { background: var(--accent-500); color: #fff; }
.ptx-btn-accent:hover { background: var(--accent-600); color:#fff; }

/* ============================================================
   Header
   ============================================================ */
.ptx-header { position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to right, var(--primary-700), var(--primary-600), var(--primary-700));
  box-shadow: var(--shadow-lg); }

.ptx-topbar { background: var(--primary-800); color: #fff; height: 40px; font-size: .875rem; }
.ptx-topbar .ptx-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.ptx-topbar a { color: #fff; }
.ptx-topbar a:hover { color: var(--primary-200); }
.ptx-topbar-left { display: flex; align-items: center; gap: 1.5rem; }
.ptx-topbar-right { color: var(--primary-200); }

.ptx-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem; gap: 1rem; }
.ptx-logo img { height: 38px; width: auto; }
.ptx-logo-text { font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: .02em; }

.ptx-nav-center { display: flex; align-items: center; gap: 1.75rem; }
.ptx-nav-center a:not(.ptx-btn) { color: #fff; font-weight: 500; }
.ptx-nav-center a:not(.ptx-btn):hover { color: var(--primary-200); }

.ptx-nav-actions { display: flex; align-items: center; gap: .75rem; }
.ptx-icon-btn { display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: .5rem; color: #fff; background: transparent; border: 0; cursor: pointer; transition: background .15s; }
.ptx-icon-btn:hover { background: rgba(255,255,255,.1); color:#fff; }
.ptx-cart-badge { position: absolute; top: 2px; right: 2px; background: var(--accent-500); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 9999px; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; }
.ptx-signin { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: .5rem;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 500; font-size: .9rem; }
.ptx-signin:hover { background: rgba(255,255,255,.22); color: #fff; }

.ptx-burger { display: none; background: transparent; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
.ptx-mobile-menu { display: none; padding: 0 1rem 1rem; }
.ptx-mobile-menu a:not(.ptx-btn) { display: block; color: #fff; padding: .65rem .9rem; border-radius: .5rem; }
.ptx-mobile-menu a:not(.ptx-btn):hover { background: rgba(255,255,255,.1); }
.ptx-mobile-menu .ptx-btn { margin-bottom: .5rem; }

@media (max-width: 1023px) {
  .ptx-nav-center { display: none; }
  .ptx-burger { display: inline-flex; }
  .ptx-mobile-menu.open { display: block; }
  .ptx-signin span { display: none; }
}

/* ============================================================
   Homepage sections
   ============================================================ */
.ptx-hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; }
.ptx-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ptx-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.ptx-hero-inner { position: relative; z-index: 1; }
.ptx-hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 1.25rem; max-width: 46rem; }
.ptx-hero p { font-size: clamp(1.1rem, 2.2vw, 1.5rem); max-width: 40rem; color: #f3f4f6; margin-bottom: 2rem; }
.ptx-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.ptx-section { padding: 5rem 0; }
.ptx-section-gray { background: var(--gray-50); }
.ptx-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.25rem); }
.ptx-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ptx-about-img { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-2xl); height: 460px; }
.ptx-about-img img { width: 100%; height: 100%; object-fit: cover; }
.ptx-about p { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 1rem; }
.ptx-about .tagline { font-weight: 600; color: var(--primary-600); }

.ptx-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ptx-feature { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); transition: all .2s ease; }
.ptx-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2xl); }
.ptx-feature-icon { width: 64px; height: 64px; border-radius: 9999px; background: var(--primary-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--primary-600); }
.ptx-feature h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.ptx-feature p { color: var(--gray-600); margin: 0; }
.ptx-section-title { text-align: center; margin-bottom: 3.5rem; }

.ptx-contact { padding: 5rem 0; color: #fff;
  background: linear-gradient(to bottom right, var(--primary-700), var(--primary-600), var(--primary-800)); }
.ptx-contact-head { max-width: 50rem; margin: 0 auto 3rem; text-align: center; }
.ptx-contact-head p { color: var(--primary-100); font-size: 1.25rem; }
.ptx-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 64rem; margin: 0 auto; }
.ptx-contact-card { background: rgba(255,255,255,.1); backdrop-filter: blur(4px); padding: 1.5rem;
  border-radius: var(--radius); text-align: center; transition: all .2s ease; }
.ptx-contact-card:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); box-shadow: var(--shadow-2xl); }
.ptx-contact-card svg { margin: 0 auto 1rem; }
.ptx-contact-card h3 { margin-bottom: .35rem; font-size: 1rem; }
.ptx-contact-card a { color: #fff; }
.ptx-contact-card a:hover { color: var(--primary-200); }

.ptx-cta { padding: 5rem 0; text-align: center; }
.ptx-cta p { font-size: 1.25rem; color: var(--gray-600); max-width: 40rem; margin: 0 auto 2.5rem; }
.ptx-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (max-width: 900px) {
  .ptx-about-grid { grid-template-columns: 1fr; }
  .ptx-features { grid-template-columns: 1fr; }
  .ptx-contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ptx-contact-grid { grid-template-columns: 1fr; }
  .ptx-topbar-right { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.ptx-footer { background: var(--gray-900); color: var(--gray-300); }
.ptx-footer .ptx-container { padding-top: 3rem; padding-bottom: 3rem; }
.ptx-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ptx-footer h3, .ptx-footer h4 { color: #fff; }
.ptx-footer h3 { font-size: 1.15rem; }
.ptx-footer p, .ptx-footer li, .ptx-footer a { font-size: .9rem; color: #d1d5db; }
.ptx-footer ul { list-style: none; padding: 0; margin: 0; }
.ptx-footer li { margin-bottom: .5rem; }
.ptx-footer a:hover { color: #fff; }
.ptx-footer-info div { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.ptx-footer-bottom { border-top: 1px solid var(--gray-800); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: .85rem; }
@media (max-width: 900px) { .ptx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ptx-footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Generic page / WooCommerce-light
   ============================================================ */
.ptx-page { padding: 3rem 0 4rem; min-height: 50vh; }
.ptx-page h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--primary-500); }
.woocommerce span.onsale { background: var(--accent-500); }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button.alt {
  background: var(--primary-600); color: #fff;
}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover { background: var(--primary-700); }
