/*
Theme Name: Nordic Pharma 2.0
Theme URI: https://nordicpharmaeu.com
Author: Nordic Pharma
Author URI: https://nordicpharmaeu.com
Description: Premium research-grade pharmaceutical compounds theme for Nordic Pharma
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nordic-pharma-theme
Tags: woocommerce, ecommerce, pharmaceutical, clean, modern
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  --background: #ffffff;
  --foreground: #1a2332;
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-foreground: #ffffff;
  --secondary: #f0f4f8;
  --secondary-foreground: #1e2d3d;
  --muted: #f5f7fa;
  --muted-foreground: #6b7c93;
  --border: #dde3ed;
  --card: #ffffff;
  --card-foreground: #1a2332;
  --radius: 0.5rem;
  --input-border: #c5cdd9;
  --input-focus: #0066cc;
}

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

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

.nav-toggle {
  display: none;
}

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

.main-nav a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(0, 102, 204, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 600;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-btn:hover {
  background: var(--muted);
}

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  bottom: -50px;
  right: 10%;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--secondary);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  padding: 24px;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.purity-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 12px;
}

/* ========== BENEFITS ========== */
.benefits-list {
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.benefit-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 102, 204, 0.15);
  line-height: 1;
  margin-right: 12px;
  letter-spacing: -0.02em;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.benefit-desc {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a6fd4 100%);
  color: white;
  text-align: center;
}

.cta-section .section-title {
  color: white;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ========== TRUST BADGES ========== */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-badge {
  text-align: center;
  padding: 16px;
}

.trust-badge-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.trust-badge-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ========== PAGE CONTENT ========== */
.page-content {
  padding: 60px 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-logo svg {
  color: #60a5fa;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.selection {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--input-border) !important;
    border-radius: var(--radius) !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 0.9375rem !important;
    color: var(--foreground) !important;
    background: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

/* ========== SHARED INPUT STYLES ========== */
/* Base input style used by both theme and WooCommerce */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  font-family: "DM Sans", sans-serif;
}

/* ========== WOOCOMMERCE — GLOBAL ========== */
.woocommerce-page .woocommerce {
  padding: 40px 0;
}

/* All WooCommerce buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: background 0.2s !important;
  border: none !important;
}

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

/* Info/message banners */
.woocommerce-info,
.woocommerce-message {
  border-top: 4px solid var(--primary) !important;
  background: var(--muted) !important;
  border-radius: var(--radius) !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  font-size: 0.9rem !important;
}

/* ========== WOOCOMMERCE — PRODUCT LOOP ========== */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--radius) * 2) !important;
  overflow: hidden !important;
  transition: all 0.3s !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-4px) !important;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  padding: 24px !important;
  background: white !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  padding: 16px 20px 8px !important;
  color: var(--foreground) !important;
}

.woocommerce ul.products li.product .price {
  padding: 0 20px 8px !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 20px !important;
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  width: calc(100% - 40px) !important;
  text-align: center !important;
  transition: background 0.2s !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--primary-dark) !important;
}

/* ========== WOOCOMMERCE — SINGLE PRODUCT ========== */
.woocommerce div.product .product_title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--primary) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

/* ========== WOOCOMMERCE — CART PAGE ========== */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: 60px 0;
}

.woocommerce-cart h1,
.woocommerce-checkout h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  background: white !important;
  font-family: "DM Sans", sans-serif !important;
}

.woocommerce table.shop_table th {
  background: var(--muted) !important;
  padding: 14px 20px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--muted-foreground) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid var(--border) !important;
}

.woocommerce table.shop_table td {
  padding: 20px !important;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle !important;
  font-size: 0.9375rem !important;
}

.woocommerce table.shop_table td.product-name {
  font-weight: 600 !important;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.woocommerce table.shop_table img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  padding: 4px !important;
  background: white !important;
}

.woocommerce .cart_totals {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 28px !important;
  float: right !important;
  width: 420px !important;
}

.woocommerce .cart_totals h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

.woocommerce .cart_totals table {
  width: 100% !important;
  border: none !important;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  padding: 10px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 0.9375rem !important;
}

.woocommerce .cart_totals table .order-total th,
.woocommerce .cart_totals table .order-total td {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border-bottom: none !important;
  padding-top: 16px !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout {
  margin-top: 20px !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 14px 24px !important;
  display: block !important;
  text-align: center !important;
  transition: background 0.2s !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--primary-dark) !important;
}

.woocommerce .coupon input[type="text"] {
  padding: 10px 14px !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 0.9rem !important;
  outline: none !important;
  margin-right: 8px !important;
  background: white !important;
  color: var(--foreground) !important;
  transition: border-color 0.2s !important;
}

.woocommerce .coupon input[type="text"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12) !important;
}

/* ========== WOOCOMMERCE — CHECKOUT PAGE ========== */

/* Kill WooCommerce's default float layout */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  float: none !important;
  width: 100% !important;
}

/* Custom checkout grid layout */
.np-checkout-wrap {
  display: grid !important;
  grid-template-columns: 1fr 520px !important;
  gap: 48px;
  align-items: start;
}

.np-checkout-left,
.np-checkout-right {
  min-width: 0;
}

.np-checkout-right {
  width: 100%;
  max-width: 520px;
}

/* Section headings */
.woocommerce-checkout h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ---- CHECKOUT FORM FIELDS ---- */
/* Labels */
.woocommerce form .form-row label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--foreground) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* All text inputs, selects, textareas */
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="number"],
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 0.9375rem !important;
  color: var(--foreground) !important;
  background: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  margin-bottom: 0.2em;
}

.woocommerce form .form-row input[type="text"]:focus,
.woocommerce form .form-row input[type="email"]:focus,
.woocommerce form .form-row input[type="tel"]:focus,
.woocommerce form .form-row input[type="password"]:focus,
.woocommerce form .form-row input[type="number"]:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12) !important;
  margin-bottom: 0.2em;
}

/* Placeholder colour */
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder {
  color: #a0aab8 !important;
}

/* Textarea height */
.woocommerce form .form-row textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Order review box */
.woocommerce #order_review {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 28px !important;
}

.woocommerce table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border: none !important;
  table-layout: auto !important;
}

.woocommerce table.woocommerce-checkout-review-order-table th,
.woocommerce table.woocommerce-checkout-review-order-table td {
  padding: 10px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 0.9rem !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.woocommerce table.woocommerce-checkout-review-order-table .product-total {
  white-space: nowrap !important;
}

.woocommerce table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce table.woocommerce-checkout-review-order-table .order-total td {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border-bottom: none !important;
  color: var(--primary) !important;
}

/* Place order button */
.woocommerce #place_order {
  width: 100% !important;
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  margin-top: 20px !important;
}

.woocommerce #place_order:hover {
  background: var(--primary-dark) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Mobile nav toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    order: 3;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile dropdown nav */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--muted);
  }

  .header-inner {
    position: relative;
  }

  /* Hide primary CTA on mobile header */
  .header-actions .btn-primary,
  .btn-primary.shop-now-btn {
    display: none !important;
  }

  /* Hero */
  .hero-section {
    padding: 60px 0;
    min-height: 70vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Benefits */
  .benefit-item {
    flex-direction: column;
    gap: 16px;
  }

  /* Single product */
  .np-product-detail-grid > div:first-child {
    position: static !important;
  }

  .np-product-detail-grid h1 {
    font-size: 1.6rem !important;
  }

  /* Checkout — stack columns, "Your order" on top */
  .np-checkout-wrap {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    gap: 24px !important;
    overflow: hidden !important;
  }

  .np-checkout-left,
  .np-checkout-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
  }

  /* Move "Your order" above "Billing details" on mobile */
  .np-checkout-right {
    -webkit-order: -1 !important;
    order: -1 !important;
  }

  .np-checkout-left {
    -webkit-order: 1 !important;
    order: 1 !important;
  }

  /* Checkout review table — hard reset for mobile */
  .woocommerce-checkout-review-order-table,
  .woocommerce-checkout-review-order-table tbody,
  .woocommerce-checkout-review-order-table tr {
    display: table !important;
    width: 100% !important;
  }

  .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout-review-order-table td {
    display: table-cell !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .woocommerce-checkout-review-order-table .product-name {
    width: 70% !important;
  }

  .woocommerce-checkout-review-order-table .product-total {
    width: 30% !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  /* Cart totals full width on mobile */
  .woocommerce .cart_totals {
    float: none !important;
    width: 100% !important;
  }
}
.woocommerce-checkout .payment_method_ppcp-card-button-gateway label img {
  content: url('https://m.media-amazon.com/images/I/61+R8A+qamL._AC_UF894,1000_QL80_.jpg') !important;
  width: 200px !important;
  height: auto !important;
}
/* ========== WOOCOMMERCE — MY ACCOUNT ========== */
.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}

/* Sidebar nav */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--muted-foreground) !important;
  transition: all 0.2s !important;
  list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--muted) !important;
  color: var(--primary) !important;
  list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(0, 102, 204, 0.08) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  list-style: none !important;
}

/* Content area */
.woocommerce-account .woocommerce-MyAccount-content {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 32px !important;
}

input[type="radio"] {
    list-style: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
  }
}
/* ── Add to Cart Fix ── */
form.variations_form.cart table.variations {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}
form.variations_form.cart table.variations tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
form.variations_form.cart table.variations tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
form.variations_form.cart table.variations th.label {
    display: block !important;
    padding: 0 0 4px 0 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #888 !important;
    border: none !important;
}
form.variations_form.cart table.variations td.value {
    display: block !important;
    padding: 0 !important;
    border: none !important;
}
form.variations_form.cart table.variations td.value select {
    display: block !important;
    width: 100% !important;
    padding: 11px 40px 11px 14px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    background-color: #fafafa !important;
    color: #333 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
form.variations_form.cart table.variations td.value select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}
form.variations_form.cart .quantity {
    margin-bottom: 14px !important;
}
form.variations_form.cart input.qty {
    width: 80px !important;
    padding: 11px 10px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: #fafafa !important;
    -moz-appearance: textfield !important;
    box-sizing: border-box !important;
}
form.variations_form.cart input.qty::-webkit-inner-spin-button,
form.variations_form.cart input.qty::-webkit-outer-spin-button { -webkit-appearance: none !important; }
form.variations_form.cart input.qty:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}
form.variations_form.cart .single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.28) !important;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}
form.variations_form.cart .single_add_to_cart_button:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(37,99,235,0.38) !important;
}

.special-offer {
    background: #1e3a8a;
    border-left: 6px solid #60a5fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.offer-text strong {
    color: #93c5fd;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.offer-text span {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.offer-code {
    background: #2563eb;
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.2rem;
}
/* ========== MARQUEE BAR ========== */
.marquee-bar {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 50%, #0080ff 100%);
    overflow: hidden;
    padding: 16px 0;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.35);
}

/* fade edges */
.marquee-bar::before,
.marquee-bar::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-bar::before {
    left: 0;
    background: linear-gradient(to right, #0052a3, transparent);
}
.marquee-bar::after {
    right: 0;
    background: linear-gradient(to left, #0080ff, transparent);
}

.marquee-track {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    will-change: transform;
}

.marquee-track span {
    display: inline-block;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.marquee-track span:hover {
    opacity: 1;
}

.marquee-track span::after {
    content: "◆";
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.45rem;
    vertical-align: middle;
}

.marquee-track span:last-child::after {
    content: "";
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== WOOCOMMERCE CART & CHECKOUT POLISH ========== */
body.woocommerce-cart,
body.woocommerce-checkout {
  background: var(--background);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: 48px 0 72px;
}

.np-cart-wrap {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
}

.np-cart-wrap > div:first-child > div:first-child {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm);
}

.np-cart-header {
  background: var(--muted) !important;
  border-bottom-color: var(--border) !important;
}

.np-cart-row {
  min-height: 108px;
  background: #fff;
  transition: background 0.2s;
}

.np-cart-row:hover { background: #fafdff; }

.np-cart-product img {
  border-radius: 6px !important;
  border-color: var(--border) !important;
  background: #fff;
}

.np-cart-product a:hover { color: var(--primary) !important; }

.np-cart-qty input,
.np-coupon-row input {
  border-color: var(--input-border) !important;
  background: #fff !important;
}

.np-cart-qty input:focus,
.np-coupon-row input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(7, 89, 133, 0.12);
}

.np-cart-remove a:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.np-summary {
  top: 84px;
  border-radius: 8px !important;
  box-shadow: var(--shadow-md);
}

.np-summary h2 { color: var(--primary-dark); }

.np-checkout-wrap {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
}

.np-checkout-left .woocommerce-billing-fields,
.np-checkout-left .woocommerce-shipping-fields,
.np-checkout-left .woocommerce-additional-fields {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.np-checkout-left .woocommerce-billing-fields h3,
.np-checkout-left .woocommerce-shipping-fields h3,
.np-checkout-left .woocommerce-additional-fields h3 {
  margin-top: 0 !important;
  color: var(--primary-dark);
}

.woocommerce-checkout .np-checkout-right h3#order_review_heading {
  margin: 0 !important;
  padding: 0 0 16px !important;
  border-bottom: 0 !important;
  color: var(--primary-dark);
}

.woocommerce-checkout #order_review {
  border-radius: 8px !important;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 84px;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  height: 46px !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: var(--radius) !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 14px !important;
  color: var(--foreground) !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 8px !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    padding: 32px 0 48px;
  }

  .np-cart-wrap,
  .np-checkout-wrap {
    gap: 24px;
  }

  .np-summary,
  .woocommerce-checkout #order_review {
    position: static;
  }

  .np-checkout-left .woocommerce-billing-fields,
  .np-checkout-left .woocommerce-shipping-fields,
  .np-checkout-left .woocommerce-additional-fields {
    padding: 20px 16px;
  }
}

/* ========== POLISH PASS ========== */
:root {
  --background: #f8fafc;
  --foreground: #172033;
  --primary: #075985;
  --primary-dark: #0c4a6e;
  --secondary: #e0f2fe;
  --secondary-foreground: #164e63;
  --muted: #f1f5f9;
  --muted-foreground: #5b6b7f;
  --border: #d7e0ea;
  --card: #ffffff;
  --input-border: #b9c7d6;
  --input-focus: #075985;
  --radius: 0.375rem;
  --shadow-sm: 0 2px 8px rgba(23, 32, 51, 0.06);
  --shadow-md: 0 14px 32px rgba(23, 32, 51, 0.11);
}

body { background: var(--background); }

.site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.site-logo {
  color: var(--primary-dark);
  letter-spacing: 0;
}

.site-logo::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 6px 0 0 var(--secondary), 0 6px 0 var(--secondary);
}

.main-nav a:hover,
.main-nav a.active { color: var(--primary); background: var(--secondary); }

.btn { border-radius: var(--radius); min-height: 42px; letter-spacing: 0.01em; }

.btn-primary { box-shadow: 0 4px 10px rgba(7, 89, 133, 0.18); }

.btn-primary:hover { box-shadow: 0 6px 16px rgba(7, 89, 133, 0.25); }

.cart-btn { color: var(--primary-dark); }

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

.hero-section { background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); }
.hero-section::before, .hero-section::after { opacity: 0.45; }
.hero-title, .section-title, .page-title { letter-spacing: -0.01em; }
.badge, .purity-badge { border-radius: var(--radius); }

.marquee-bar {
  padding: 12px 0;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.marquee-track { animation-duration: 70s; gap: 0; }

.marquee-track span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0 1.25rem;
}

.marquee-track span::after { content: '/'; margin-left: 1.25rem; color: #7dd3fc; }

.trust-badges { background: #fff; padding: 28px 0; }

.card, .product-card, .woocommerce ul.products li.product, .np-product-card {
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm);
}

.card:hover, .product-card:hover, .woocommerce ul.products li.product:hover, .np-product-card:hover {
  box-shadow: var(--shadow-md) !important;
}

.np-product-card > div { background: #fff; }
.np-product-card h3:hover { color: var(--primary) !important; }
.site-footer { background: #172033; }
.footer-logo svg, .footer-contact-item svg { color: #7dd3fc; }
.footer-links a:hover { color: #7dd3fc; }

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .site-logo { font-size: 1.05rem; }
  .hero-section { padding: 64px 0; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .trust-badges { gap: 8px; grid-template-columns: repeat(2, 1fr); }
}

