/*
Theme Name: Roborock SA
Theme URI: https://www.roborocksa.co.za
Author: RoborockSA
Author URI: https://www.roborocksa.co.za
Description: Custom Roborock SA e-commerce theme. Requires WooCommerce.
Version: 1.0.0
License: Proprietary
Text Domain: roborock-sa
Tags: woocommerce, e-commerce, custom
*/

/* ===== CSS VARIABLES ===== */
:root {
  --red: #E8192C;
  --red-dark: #b5101e;
  --charcoal: #1c1c1c;
  --mid: #3a3a3a;
  --grey: #6b6b6b;
  --light: #f4f4f4;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 12px 40px rgba(232,25,44,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ===== NAV ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.site-branding a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--charcoal);
}
.site-branding a span { color: var(--red); }
.main-navigation ul { display: flex; gap: 32px; list-style: none; }
.main-navigation a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; text-decoration: none;
  color: var(--mid); transition: color 0.2s;
}
.main-navigation a:hover { color: var(--red); }
.header-cart a {
  background: var(--red); color: white;
  padding: 10px 24px; border-radius: 4px;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; transition: background 0.2s;
}
.header-cart a:hover { background: var(--red-dark); }

/* ===== HERO ===== */
.hero-section {
  padding-top: 68px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d2d2d 50%, #1a1a1a 100%);
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,25,44,0.25) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,25,44,0.15); border: 1px solid rgba(232,25,44,0.4);
  color: #ff6070; border-radius: 20px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900;
  line-height: 0.92; color: white; letter-spacing: -1px; margin-bottom: 24px;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,0.65); margin-bottom: 40px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: white; padding: 16px 36px; border-radius: 4px;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none; transition: all 0.25s; border: 2px solid var(--red); display: inline-block;
}
.btn-primary:hover {
  background: transparent; color: var(--red); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,25,44,0.4);
}
.btn-outline {
  background: transparent; color: white; padding: 16px 36px; border-radius: 4px;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none; transition: all 0.25s; border: 2px solid rgba(255,255,255,0.3); display: inline-block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.stat { border-left: 3px solid var(--red); padding-left: 16px; }
.stat-number { font-family: 'Barlow Condensed',sans-serif; font-size: 2rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--red); padding: 18px 40px;
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: white; font-size: 0.85rem; font-weight: 600; }

/* ===== WOOCOMMERCE PRODUCT GRID OVERRIDES ===== */
.woocommerce-page .woocommerce {
  max-width: 1200px; margin: 0 auto; padding: 96px 40px;
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; margin: 0;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.woocommerce ul.products li.product a img { width: 100%; height: 220px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; padding: 0 24px; margin: 16px 0 8px;
}
.woocommerce ul.products li.product .price { color: var(--charcoal); font-size: 1.6rem; font-weight: 800; padding: 0 24px; font-family: 'Barlow Condensed', sans-serif; }
.woocommerce ul.products li.product .button {
  background: var(--red); color: white; border: none; border-radius: 6px;
  padding: 12px 24px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; cursor: pointer; margin: 16px 24px 24px; display: inline-block;
  transition: background 0.2s; text-decoration: none;
}
.woocommerce ul.products li.product .button:hover { background: var(--red-dark); }

/* Shop page header */
.woocommerce-products-header { max-width: 1200px; margin: 0 auto; padding: 96px 40px 0; }
.woocommerce-products-header h1 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800;
}

/* Single product page */
.woocommerce div.product .product_title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 900;
}
.woocommerce div.product p.price { color: var(--red); font-size: 2rem; font-weight: 800; }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--red) !important; color: white !important; border-radius: 6px !important;
  font-weight: 700 !important; text-transform: uppercase !important; padding: 16px 40px !important;
  font-size: 1rem !important; letter-spacing: 0.5px !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--red-dark) !important; }

/* Cart & Checkout */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce {
  max-width: 1200px; margin: 100px auto 80px; padding: 0 40px;
}
.woocommerce .woocommerce-info { border-top-color: var(--red); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--red); color: white; border-radius: 4px; font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--red-dark); color: white; }
.woocommerce #payment #place_order {
  background: var(--red); color: white; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; border-radius: 6px; padding: 16px 40px;
}

/* ===== WHY SECTION ===== */
.why-section { background: var(--light); padding: 96px 40px; }
.why-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; line-height: 1.05; color: var(--charcoal); margin-bottom: 16px; }
.section-sub { font-size: 1rem; color: var(--grey); max-width: 560px; line-height: 1.7; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 32px; margin-top: 56px; }
.why-card { background: white; border-radius: 12px; padding: 36px 32px; border: 1px solid var(--border); transition: box-shadow 0.3s; }
.why-card:hover { box-shadow: var(--shadow-hover); }
.why-icon { width: 52px; height: 52px; border-radius: 10px; background: rgba(232,25,44,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.why-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }

/* ===== PAYMENT SECTION ===== */
.payment-section { background: var(--charcoal); color: white; padding: 96px 40px; }
.payment-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.payment-logos { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.payment-logo-pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 12px 20px; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; color: white;
}
.payment-visual {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 48px; text-align: center;
}

/* ===== BRAND STRIP ===== */
.brand-strip { background: var(--red); padding: 60px 40px; text-align: center; }
.brand-strip h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem,5vw,4rem); font-weight: 900; color: white; margin-bottom: 16px; }
.brand-strip p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 600px; margin: 0 auto 32px; }

/* ===== FOOTER ===== */
.site-footer { background: #111; color: rgba(255,255,255,0.6); padding: 64px 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px; }
.footer-brand-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-brand-name span { color: var(--red); }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: white; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ===== RESPONSIVE ===== */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}
@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .main-navigation { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-side { display: none; }
  .payment-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 24px; }
}
@media (max-width: 600px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}