/*
Theme Name: Promofit Theme
Theme URI: https://bosroko.nl
Author: BOSROKO / SRAPU Studio
Author URI: https://bosroko.nl
Description: Een volledig op maat gemaakt WooCommerce webshop thema voor promotieartikelen en relatiegeschenken. Inclusief topbalk, sticky header, hero-sectie, productcategorieën, USP-balk, stappenplan en offerte-formulier.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promofit
WC requires at least: 8.0
WC tested up to: 9.0
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, responsive-layout, right-sidebar, footer-widgets, full-width-template
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  --cyan:        #16BCDC;
  --cyan-dark:   #0fa3c0;
  --cyan-light:  #e0f7fc;
  --orange:      #F97316;
  --orange-dark: #ea6600;
  --dark:        #1a1a2e;
  --dark-2:      #16213e;
  --gray-100:    #f5fafc;
  --gray-200:    #e8f4f8;
  --gray-300:    #e5e7eb;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --white:       #ffffff;
  --font-sans:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --shadow-sm:   0 2px 8px rgba(22,188,220,0.08);
  --shadow-md:   0 4px 16px rgba(22,188,220,0.15);
  --shadow-lg:   0 8px 24px rgba(22,188,220,0.18);
  --max-width:   1200px;
  --transition:  0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-dark); }

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

ul { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header .view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
  background: var(--cyan);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 0;
  text-align: center;
  letter-spacing: 0.3px;
}

#top-bar a { color: var(--white); }
#top-bar .container { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

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

/* Logo */
.site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
}

.site-branding .logo-text {
  font-size: 21px;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-branding .logo-text span { color: var(--dark); }
.site-branding .logo-sub {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.header-search input[type="search"] {
  width: 100%;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 10px 46px 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.header-search input[type="search"]:focus {
  border-color: var(--cyan);
}

.header-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 18px;
  pointer-events: none;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-quote {
  background: var(--orange);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-quote:hover { background: var(--orange-dark); }

.header-icon {
  font-size: 22px;
  cursor: pointer;
  position: relative;
  color: var(--dark);
  transition: color var(--transition);
}

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

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main navigation */
#main-navigation {
  border-top: 1px solid var(--gray-200);
}

#main-navigation ul {
  display: flex;
  gap: 2px;
}

#main-navigation ul li a {
  display: block;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

#main-navigation ul li a:hover,
#main-navigation ul li.current-menu-item a,
#main-navigation ul li.current-menu-ancestor a {
  color: var(--cyan);
  font-weight: 700;
  border-bottom-color: var(--cyan);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--cyan) 0%, #0891b2 60%, #0e7490 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  right: 100px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-title .highlight { color: #fef08a; }

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 440px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--white);
  color: var(--cyan);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}

.btn-hero-primary:hover { background: var(--cyan-light); color: var(--cyan-dark); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}

.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-emoji-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex-shrink: 0;
}

.hero-emoji-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   USP BAR
   ============================================================ */
.usp-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 0;
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.usp-icon { font-size: 28px; flex-shrink: 0; }

.usp-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}

.usp-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-section { padding: 52px 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: block;
  color: var(--dark);
}

.category-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-md);
  color: var(--cyan);
  transform: translateY(-2px);
}

.category-icon { font-size: 28px; margin-bottom: 8px; }
.category-label { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--gray-700); }
.category-card:hover .category-label { color: var(--cyan); }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  background: var(--gray-100);
  padding: 52px 0;
}

.section-intro p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* WooCommerce product grid overrides */
.products-section .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

.products-section ul.products li.product,
.pf-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-300);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.products-section ul.products li.product:hover,
.pf-product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.pf-product-thumb {
  background: #f8fafc;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pf-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 3px 9px;
}

.pf-product-body { padding: 14px 16px; }

.pf-product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.pf-product-stars { color: #f59e0b; font-size: 13px; margin-bottom: 8px; }

.pf-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pf-product-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--cyan);
}

.pf-min-qty { font-size: 12px; color: #9ca3af; }

.btn-add-to-cart,
.products-section .button,
.products-section .add_to_cart_button {
  background: var(--cyan) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 13px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background var(--transition) !important;
}

.btn-add-to-cart:hover,
.products-section .button:hover,
.products-section .add_to_cart_button:hover {
  background: var(--cyan-dark) !important;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-section { padding: 60px 0; }

.steps-section h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.steps-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 44px;
  font-size: 15px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-item { text-align: center; position: relative; }

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  height: 2px;
  background: var(--gray-300);
  z-index: 0;
}

.step-circle {
  width: 58px;
  height: 58px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.step-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 56px 24px;
  color: var(--white);
  text-align: center;
}

.cta-banner .cta-emoji { font-size: 42px; margin-bottom: 14px; }

.cta-banner h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.cta-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-cta-primary {
  background: var(--cyan);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-block;
}

.btn-cta-primary:hover { background: var(--cyan-dark); color: var(--white); }

.btn-cta-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}

.btn-cta-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-text-footer {
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-brand .logo-text-footer .logo-icon-sm {
  background: var(--cyan);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer-brand .logo-text-footer span { color: var(--cyan); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 18px;
}

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--white);
}

.social-btn:hover { background: var(--cyan); color: var(--white); }

.footer-col h4 {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ============================================================
   OFFERTE MODAL
   ============================================================ */
.pf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pf-modal-overlay.active { display: flex; }

.pf-modal {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}

.pf-modal-close:hover { color: var(--dark); }

.pf-modal .modal-emoji { font-size: 36px; margin-bottom: 10px; }

.pf-modal h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pf-modal .modal-sub {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.pf-modal input,
.pf-modal textarea,
.pf-modal select {
  width: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.pf-modal input:focus,
.pf-modal textarea:focus,
.pf-modal select:focus {
  border-color: var(--cyan);
}

.pf-modal textarea { height: 88px; resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--cyan);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}

.btn-submit:hover { background: var(--cyan-dark); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-top-color: var(--cyan);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--cyan);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--cyan-dark);
  color: var(--white);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--orange);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--orange-dark);
}

/* Single product */
.woocommerce div.product .product_title { font-size: 28px; font-weight: 800; }
.woocommerce div.product p.price { color: var(--cyan); font-size: 28px; font-weight: 800; }

/* Cart & checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading { font-weight: 700; color: var(--dark); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }

.entry-title { font-size: 32px; font-weight: 800; margin-bottom: 24px; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .products-section .products { grid-template-columns: repeat(3, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-emoji-grid { display: none; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-section .products { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-item:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #main-navigation { display: none; }
  #main-navigation.open { display: block; }
  #main-navigation ul { flex-direction: column; }
  .menu-toggle { display: block; }
  .header-search { max-width: 100%; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .header-actions .btn-quote { display: none; }
  #top-bar .container { flex-direction: column; gap: 4px; font-size: 12px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-section .products { grid-template-columns: 1fr !important; }
  .usp-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 26px; }
}
