/*
Theme Name: TurboWallTrowel
Theme URI: https://turbowalltrowel.com.hr
Author: Ordinis j.d.o.o.
Description: Minimalna WooCommerce tema za TurboWallTrowel podesivi gleter. Optimizirana za konverziju, Shop3D ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: Private
Text Domain: turbowalltrowel
*/

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

:root {
  --orange: #E8510A;
  --orange-l: #F06830;
  --orange-d: #C43F00;
  --dark: #1a1a1a;
  --dark-2: #2d2d2d;
  --gray: #f5f5f5;
  --gray-2: #e8e8e8;
  --text: #333;
  --text-l: #666;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body {
  font-family: 'Barlow', 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-d); }
img { max-width: 100%; height: auto; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }

/* === BUTTONS === */
.btn, .button, button[type="submit"],
.woocommerce .single_add_to_cart_button,
.woocommerce-cart .checkout-button,
.woocommerce #payment #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover, .button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: var(--orange-d) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,81,10,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange) !important;
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white) !important;
}

/* === HEADER === */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

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

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

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.header-nav a:hover { color: var(--white); }

.header-cart a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  background: var(--orange);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.header-cart a:hover { background: var(--orange-d); color: var(--white); }
.cart-count { background: var(--white); color: var(--orange); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo { color: var(--white); font-weight: 700; font-size: 18px; }
.footer-logo span { color: var(--orange); }

.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* === WOOCOMMERCE OVERRIDES === */
.woocommerce-page .woocommerce {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Product page */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery { border-radius: var(--radius); overflow: hidden; }

.woocommerce div.product .summary {
  position: sticky;
  top: 100px;
}

.woocommerce div.product h1.product_title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.woocommerce div.product .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 24px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 16px;
  color: var(--text-l);
  margin-bottom: 24px;
  line-height: 1.7;
}

.woocommerce div.product form.cart { margin-bottom: 24px; }

.woocommerce div.product form.cart .qty {
  width: 70px;
  padding: 12px;
  border: 2px solid var(--gray-2);
  border-radius: var(--radius);
  font-size: 18px;
  text-align: center;
  margin-right: 12px;
}

/* Cart */
.woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart-form table th {
  background: var(--gray);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.woocommerce-cart-form table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-2);
  vertical-align: middle;
}

.cart_totals {
  background: var(--gray);
  padding: 28px;
  border-radius: var(--radius);
  margin-top: 32px;
}

/* Checkout */
.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-2);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--orange);
}

.woocommerce form .form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

#order_review { background: var(--gray); padding: 28px; border-radius: var(--radius); }
#order_review h3 { margin-bottom: 20px; }

/* Notices */
.woocommerce-message,
.woocommerce-info {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.woocommerce-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  list-style: none;
}

/* === HERO (front-page) === */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,81,10,0.2) 0%, transparent 70%);
}

.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-tag { display: inline-block; background: rgba(232,81,10,0.2); border: 1px solid rgba(232,81,10,0.4); color: var(--orange-l); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-features { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-feat { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 14px; }
.hero-feat::before { content: '✓'; color: var(--orange); font-weight: 800; }

/* === BENEFITS === */
.benefits { padding: 80px 20px; background: var(--gray); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.benefit-card { background: var(--white); padding: 32px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.benefit-icon { font-size: 40px; margin-bottom: 16px; }
.benefit-card h3 { margin-bottom: 12px; color: var(--dark); }
.benefit-card p { color: var(--text-l); font-size: 15px; line-height: 1.6; }

/* === SPECS === */
.specs { padding: 80px 20px; }
.specs-inner { max-width: 900px; margin: 0 auto; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--gray); }
.specs-table td { padding: 12px 16px; font-size: 15px; }
.specs-table td:first-child { font-weight: 600; color: var(--dark); width: 45%; }
.specs-table td:last-child { color: var(--text-l); }

/* === HOW IT WORKS === */
.how { padding: 80px 20px; background: var(--dark); }
.how h2 { color: var(--white); text-align: center; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--white); margin: 0 auto 20px; }
.step h3 { color: var(--white); margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.6); font-size: 15px; }

/* === TESTIMONIALS === */
.testi { padding: 80px 20px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.testi-card { background: var(--gray); padding: 28px; border-radius: var(--radius); }
.testi-stars { color: var(--orange); font-size: 18px; margin-bottom: 16px; letter-spacing: 3px; }
.testi-text { font-style: italic; color: var(--text-l); margin-bottom: 20px; line-height: 1.7; }
.testi-name { font-weight: 700; color: var(--dark); }
.testi-role { font-size: 13px; color: var(--text-l); }

/* === CTA === */
.cta { background: var(--orange); padding: 80px 20px; text-align: center; }
.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; }
.btn-white { background: var(--white) !important; color: var(--orange) !important; }
.btn-white:hover { background: var(--gray) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .summary { position: static; }
  .woocommerce-checkout .woocommerce { grid-template-columns: 1fr; }
  .benefits-grid, .specs-grid, .steps, .testi-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-nav { display: none; }
}
