/*
Theme Name: NeckEase Pro
Theme URI: https://neckeasepro.com
Author: NeckEase Pro
Description: A clean, medical-inspired single-product WooCommerce theme for NeckEase Pro neck massager.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neckease-pro
Tags: e-commerce, woocommerce, single-product, clean, medical
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --blue-dark:    #0C447C;
  --blue-mid:     #185FA5;
  --blue-light:   #378ADD;
  --blue-pale:    #E6F1FB;
  --blue-muted:   #B5D4F4;
  --green-dark:   #085041;
  --green-mid:    #0F6E56;
  --green-med:    #1D9E75;
  --green-pale:   #E1F5EE;
  --green-border: #5DCAA5;
  --amber:        #BA7517;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted:   #888;
  --border:       rgba(0,0,0,0.1);
  --surface:      #fff;
  --bg:           #f8f9fc;
  --radius-md:    8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --font-head:    'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-mid);
  color: var(--blue-pale);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--blue-pale); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--surface); color: var(--text-primary); }

.btn-white {
  background: #fff;
  color: var(--blue-mid);
}
.btn-white:hover { background: var(--blue-pale); color: var(--blue-dark); }

.btn-large { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-md); }
.btn-full { width: 100%; display: block; }

/* =============================================
   BADGE / PILL
   ============================================= */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge-blue { background: var(--blue-pale); color: var(--blue-dark); }
.badge-green { background: var(--green-pale); color: var(--green-dark); }
.badge-sale { background: #fff3cd; color: #7a5000; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text-primary); }

.header-cta { margin-left: 12px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--surface);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { }

.hero-badge { margin-bottom: 16px; }

.hero h1 { margin-bottom: 16px; }

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.price-current {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.price-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-savings {
  font-size: 14px;
  color: var(--green-med);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-med);
  flex-shrink: 0;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* =============================================
   SOCIAL PROOF BAR
   ============================================= */
.social-bar {
  background: var(--blue-dark);
  color: var(--blue-pale);
  padding: 14px 0;
}

.social-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.social-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.social-stat strong {
  font-weight: 600;
  color: #fff;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 17px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feat-icon svg { width: 22px; height: 22px; stroke: var(--blue-mid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { background: var(--surface); }

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.6% + 24px);
  right: calc(16.6% + 24px);
  height: 2px;
  background: var(--blue-pale);
  z-index: 0;
}

.step { text-align: center; position: relative; z-index: 1; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--blue-pale);
}

.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* =============================================
   REVIEWS
   ============================================= */
.reviews { background: var(--bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stars { color: var(--amber); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }

.review-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-name { font-size: 14px; font-weight: 500; }
.reviewer-tag { font-size: 12px; color: var(--text-muted); }

/* =============================================
   GUARANTEE
   ============================================= */
.guarantee { background: var(--surface); }

.guarantee-box {
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.guarantee-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-icon-wrap svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.guarantee-content h2 { color: var(--green-dark); margin-bottom: 8px; font-size: 26px; }
.guarantee-content p { color: var(--green-mid); font-size: 16px; line-height: 1.65; }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  background: var(--blue-mid);
  padding: 80px 0;
  text-align: center;
}

.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta p { color: var(--blue-muted); font-size: 17px; margin-bottom: 28px; }
.final-cta .urgency { font-size: 13px; color: var(--blue-muted); margin-top: 12px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--text-primary);
  color: #aaa;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo { font-family: var(--font-head); font-size: 20px; color: #fff; }
.footer-logo span { color: var(--blue-light); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #aaa; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 13px; }

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

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

.woocommerce-message { background: var(--green-pale); border-left: 4px solid var(--green-med); color: var(--green-dark); }
.woocommerce-error { background: #fff0f0; border-left: 4px solid #e24b4a; color: #7a1f1f; }

/* Cart & Checkout clean styling */
.woocommerce-cart .container,
.woocommerce-checkout .container {
  padding-top: 40px;
  padding-bottom: 60px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.woocommerce table.shop_table th { background: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); padding: 14px 20px; }
.woocommerce table.shop_table td { padding: 16px 20px; border-top: 1px solid var(--border); }
.woocommerce table.shop_table .product-name a { font-weight: 500; color: var(--text-primary); }

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--blue-mid) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 28px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border: none !important;
  transition: background 0.15s !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--blue-dark) !important;
}

.woocommerce .single_add_to_cart_button {
  width: 100%;
  font-size: 17px !important;
  padding: 18px 28px !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .guarantee-box { flex-direction: column; text-align: center; padding: 32px 24px; }
  .social-bar .container { gap: 24px; }
}

@media (max-width: 600px) {
  section { padding: 48px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .site-nav { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions .btn { width: 100%; }
}
