/*
Theme Name: AUREVO GT
Theme URI: https://example.com/gt5-taillights
Author: Custom Theme
Author URI: https://example.com
Description: Premium WordPress theme for AUREVO GT LED tail light upgrades for Maserati GranTurismo. Dark automotive aesthetic, WooCommerce ready, responsive, with cinematic carousel, product grids and essential pages.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: gt5-taillights
Tags: e-commerce, woocommerce, custom-menu, featured-images, full-width-template, theme-options, translation-ready, dark
*/

/* ===== CSS Variables ===== */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1c1c1c;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent: #c8101a;
  --accent-hover: #e81722;
  --accent-glow: rgba(200, 16, 26, 0.45);
  --border: #2a2a2a;
  --success: #22c55e;
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --transition: 0.25s ease;
  --header-h: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(10,10,10,0.97); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  height: 52px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a {
  color: var(--text-primary);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav .current-menu-item > a::after { width: 100%; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions .header-cta {
  padding: 12px 22px;
  font-size: 0.78rem;
}
.header-cart {
  position: relative;
  color: var(--text-primary);
  font-size: 1.25rem;
}
.header-cart .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 640px;
  max-height: 900px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: #050505;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
}
.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.98) 28%, rgba(5,5,5,0.86) 40%, rgba(5,5,5,0.38) 53%, rgba(5,5,5,0) 70%),
    linear-gradient(0deg, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0) 30%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0) 20%);
}
.slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.slide-content {
  max-width: 620px;
  padding: 0;
}
.slide-product {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdbdbd;
  line-height: 1.6;
  margin-bottom: 32px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.slide-product span { color: var(--accent); }
.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.9vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}
.slide-title .accent { color: var(--accent); }
.slide-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: #d7d7d7;
  max-width: 520px;
  margin-bottom: 20px;
}
.slide-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn-primary span { transition: transform var(--transition); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 2px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-link span { transition: transform var(--transition); }
.btn-link:hover span { transform: translateX(4px); }
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: none;
}
.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(5,5,5,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 26, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
}
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-info {
  padding: 22px;
}
.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.product-info h3 a:hover { color: var(--accent); }
.product-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.product-price del {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-right: 8px;
  font-weight: 400;
}
.product-actions {
  display: flex;
  gap: 10px;
}
.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.85rem;
}

/* Featured Taillights card — matches reference design */
.gt5-pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gt5-pcard .product-image {
  aspect-ratio: 4 / 3.4;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt5-pcard .product-image a { display: block; width: 100%; height: 100%; }
.gt5-pcard .product-image img { object-fit: contain; padding: 18px; }
.pcard-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
.gt5-pcard .product-badge { top: 12px; left: 12px; }
.gt5-pcard .product-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.gt5-pcard .product-info h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 6px;
  text-align: left;
  /* Reserve two lines so 1-line and 2-line titles keep price/button aligned */
  min-height: 2.6em;
}
.gt5-pcard .product-meta { margin-bottom: 10px; text-align: left; }
.gt5-pcard .product-price { font-size: 1.15rem; margin-bottom: 18px; text-align: left; }
.gt5-pcard .product-actions { margin-top: auto; padding-top: 4px; }
.btn-viewshop {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 13px 16px;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-viewshop:hover {
  background: #e11d2e;
  color: #fff;
  box-shadow: 0 0 20px rgba(225,29,46,0.45);
}

/* ===== Features / USP ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(200, 16, 26, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(200,16,26,0.2), rgba(200,16,26,0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Why Choose AUREVO GT */
.why-header { margin-bottom: 48px; text-align: center; }
.why-header .eyebrow { display: inline-block; }
.why-eyebrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.why-line {
  width: 64px;
  height: auto;
  display: block;
  flex: none;
}
.why-pillars {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 18px 0 14px;
  line-height: 1.35;
}
.why-pillars .dot { color: var(--accent); margin: 0 6px; }
/* red glow bar under the pillar headline — cropped from the reference artwork */
.why-glow {
  display: block;
  width: min(687px, 78%);
  height: auto;
  margin: 4px auto 18px;
}
.why-header > p { color: var(--text-secondary); }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-card .feature-icon {
  width: 72px;
  height: 72px;
  background: none;
  margin-bottom: 16px;
}
.why-card .feature-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.why-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.why-card h3 {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.15;
  margin-bottom: 10px;
}
.why-card h3 .w-red { color: var(--accent); }
.why-card h3 .w-white { color: var(--text-primary); }
.why-card p {
  margin-top: auto;
  padding-top: 10px;
}
@media (max-width: 992px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-pillars { font-size: 1.25rem; }
}

/* ===== About / CTA Section ===== */
.about-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #111 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-content .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
  font-family: var(--font-heading);
}
.stat-item span { font-size: 0.9rem; color: var(--text-secondary); }
.about-tagline {
  margin-top: 20px !important;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.about-tagline strong { font-weight: 800; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.testimonial-card .stars {
  color: #fbbf24;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}
.author-info strong { display: block; font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== Footer ===== */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .site-logo img { height: 44px; }
.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,16,26,0.1);
}

/* ===== Page Content ===== */
.page-header {
  margin-top: var(--header-h);
  padding: 80px 0 50px;
  background: linear-gradient(180deg, #111 0%, var(--bg-dark) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 12px; }
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.breadcrumb a:hover { color: var(--accent); }
/* NOTE: `.content-area` is always paired with `.container`, whose horizontal
   padding (0 24px) this shorthand used to wipe out — that left every inner page
   with edge-to-edge text on phones. Keep the side padding in the shorthand. */
.content-area {
  padding: 60px 24px 90px;
}
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.entry-content li { margin-bottom: 0.5rem; color: var(--text-secondary); }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(200,16,26,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== WooCommerce Overrides ===== */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.woocommerce ul.products li.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 !important;
  width: 100% !important;
  transition: all var(--transition);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 26, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.woocommerce ul.products li.product a img {
  margin: 0;
  border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  padding: 16px 16px 4px;
  color: var(--text-primary);
}
.woocommerce ul.products li.product .price {
  padding: 0 16px 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}
.woocommerce ul.products li.product .button {
  margin: 0 16px 16px;
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--accent-hover) !important;
}
.woocommerce div.product {
  margin-top: 40px;
}
.woocommerce div.product .product_title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.woocommerce div.product p.price {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  margin: 20px 0;
  color: var(--text-secondary);
}
.woocommerce div.product form.cart .button {
  background: var(--accent) !important;
  color: white !important;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
}
.woocommerce div.product form.cart .button:hover {
  background: var(--accent-hover) !important;
}
.woocommerce-tabs {
  margin-top: 50px;
}
.woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0 0 24px;
}
.woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  margin: 0 24px 0 0;
  padding: 0;
}
.woocommerce-tabs ul.tabs li a {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--bg-card);
  border-top-color: var(--accent);
  color: var(--text-primary);
}
.woocommerce-cart-form,
.woocommerce-checkout {
  color: var(--text-primary);
}
.woocommerce table.shop_table {
  border-color: var(--border);
  background: var(--bg-card);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--border);
  color: var(--text-primary);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--accent-hover) !important;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid { gap: 32px; }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .slide-content { max-width: 560px; }
  .slide-title { font-size: clamp(2.4rem, 5.6vw, 3.8rem); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.active {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .main-nav.active ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .hero-carousel {
    height: calc(100svh - var(--header-h));
    min-height: 560px;
    max-height: 760px;
  }
  .carousel-slide::before {
    background:
      linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.08) 22%, rgba(5,5,5,0.55) 46%, rgba(5,5,5,0.95) 70%, #050505 100%);
  }
  .slide-inner {
    align-items: flex-end;
    padding-bottom: 96px;
  }
  .slide-content { max-width: 100%; }
  .slide-product {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 10px;
  }
  .slide-title {
    font-size: clamp(2.1rem, 8.6vw, 3rem);
    margin-bottom: 14px;
  }
  .slide-subtitle {
    font-size: 0.95rem;
    color: #e6e6e6;
    margin-bottom: 18px;
  }
  .slide-actions { gap: 18px; }
  .slide-actions .btn {
    padding: 13px 24px;
    font-size: 0.8rem;
  }
  .slide-actions .btn-link {
    padding: 12px 2px;
    font-size: 0.8rem;
  }
  .carousel-arrows { display: none; }
  .carousel-controls { bottom: 28px; }
  .section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .site-logo img { height: 38px; }
  .header-actions { gap: 12px; }
  .header-actions .header-cta { padding: 10px 14px; font-size: 0.7rem; }
  .header-cart { display: none; }
}

/* Shop archive card actions: Add to cart + View cart */
.gt5-shop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.gt5-shop-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
}
.gt5-shop-actions .add_to_cart_button {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.gt5-shop-actions .add_to_cart_button:hover {
  background: #e11d2e;
  box-shadow: 0 0 20px rgba(225,29,46,0.45);
}
.gt5-shop-actions .view-cart-button {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.28);
}
.gt5-shop-actions .view-cart-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* WooCommerce injects <a class="added_to_cart wc-forward">View cart</a> next
   to the Add-to-cart button after AJAX add. Hide it declaratively — the
   permanent View cart button above is enough (JS removal is not reliable). */
.gt5-shop-actions .added_to_cart.wc-forward,
.product-actions .added_to_cart.wc-forward,
a.added_to_cart.wc-forward {
  display: none !important;
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================
   Policies Page (page-policies.php)
   Sticky anchor sidebar + long-form policy content. Every colour below reuses
   the theme variables declared in :root, so the page stays visually identical
   to the rest of the site.
   ========================================================================== */

/* Page header subtitle — extends the existing .page-header block */
.page-header .page-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* Two-column shell: sticky nav + content */
.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sticky anchor navigation */
.policy-nav {
  position: sticky;
  top: 100px;
  padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.policy-nav-title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.policy-nav ul { display: block; }
.policy-nav li { margin-bottom: 2px; }
.policy-nav a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.policy-nav a:hover,
.policy-nav a:focus-visible {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-left-color: var(--accent);
}
/* Scrollspy: item matching the section currently under the fixed header */
.policy-nav a.is-active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Content column */
.policy-body { min-width: 0; }

/* Sections — fixed header offset for in-page anchors */
.policy-section { scroll-margin-top: 100px; }
.policy-section + .policy-section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.policy-section h2 {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}
.policy-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.policy-section h3 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.policy-section h4 {
  margin: 30px 0 10px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.policy-section p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.policy-section strong,
.policy-section b {
  color: var(--text-primary);
  font-weight: 700;
}
.policy-section a { color: var(--accent); }
.policy-section a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.policy-section ul,
.policy-section ol {
  margin: 0 0 18px 22px;
  list-style: disc;
}
.policy-section ol { list-style: decimal; }
.policy-section li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.policy-section li::marker { color: var(--accent); }

/* Small uppercase kicker shown under a section title.
   Scoped to .policy-section so it outranks the generic ".policy-section p" rule. */
.policy-section .policy-lede {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.policy-section .policy-meta {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
}
.policy-section .policy-nav-hint {
  margin: 32px 0 0;
  font-size: 0.95rem;
}
.policy-section .policy-nav-hint a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.policy-section .policy-nav-hint a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* FAQ accordion (native <details>/<summary>) */
.faq-item {
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.faq-item[open] {
  background: var(--bg-elevated);
  border-color: rgba(200, 16, 26, 0.4);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}
.faq-item summary:hover::after {
  border-color: var(--accent);
  background: rgba(200, 16, 26, 0.12);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p:last-child,
.faq-answer ul:last-child,
.faq-answer ol:last-child { margin-bottom: 0; }
.faq-answer ul,
.faq-answer ol { margin: 10px 0 14px 22px; }

/* Responsive: sidebar collapses into a scrollable pill bar (CSS only) */
@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .policy-nav {
    position: static;
    top: auto;
    padding: 12px;
    /* Grid items default to min-width:auto, which lets the non-wrapping pills
       row widen the whole column (142px of page overflow at 390px). Allow the
       item to shrink so `overflow-x: auto` on the list can do its job. */
    min-width: 0;
  }
  .policy-nav-title { display: none; }
  .policy-nav ul {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .policy-nav li {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .policy-nav a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .policy-nav a:hover,
  .policy-nav a:focus-visible {
    border-color: var(--accent);
    border-left-color: var(--accent);
  }
  /* Pills use a full 1px border, so the active state needs the whole ring */
  .policy-nav a.is-active {
    border-color: var(--accent);
    background: var(--bg-elevated);
    color: var(--text-primary);
  }
  .policy-section + .policy-section {
    margin-top: 48px;
    padding-top: 48px;
  }
}
@media (max-width: 480px) {
  .faq-item summary {
    padding: 16px;
    font-size: 0.94rem;
  }
  .faq-answer { padding: 0 16px 16px; }
}

/* Header fits five navigation items (Home / Shop / Policies / About / Contact)
   between the mobile toggle breakpoint (768px) and the tablet layout: tighten
   the nav spacing instead of letting the row overflow. */
@media (min-width: 769px) and (max-width: 992px) {
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 0.9rem; }
  .header-actions { gap: 14px; }
}

/* ==========================================================================
   Policies page — mobile adaptation
   The long-form policy page was designed for the two-column desktop shell and
   inherited desktop type/spacing on phones. Everything below narrows the page
   header, tightens long-form type, and turns the sidebar into a swipeable pill
   bar that no longer paints a heavy card frame around a single row.
   ========================================================================== */
@media (max-width: 900px) {
  /* Restore breathing room lost to the `.content-area` shorthand (see note there) */
  .container.content-area { padding: 44px 20px 64px; }

  .page-header { padding: 56px 0 36px; }
  .page-header .page-subtitle {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Sidebar becomes a floating pill bar: drop its card frame, keep it swipeable */
  .policy-nav {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .policy-nav ul {
    gap: 8px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .policy-nav li { scroll-snap-align: start; }
  .policy-nav a {
    padding: 8px 15px;
    font-size: 0.84rem;
  }

  /* Anchors land a little closer under the fixed header on small screens */
  .policy-section { scroll-margin-top: 92px; }
  .policy-section h2 { font-size: 1.45rem; }

  /* WhatsApp CTA becomes a full-width tap target */
  .policy-section .policy-nav-hint a {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container.content-area { padding: 32px 16px 56px; }

  .page-header { padding: 44px 0 30px; }
  .page-header h1 { font-size: 1.9rem; }
  .page-header .page-subtitle { font-size: 0.92rem; }

  .policy-section h2 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    font-size: 1.28rem;
  }
  .policy-section h3 { margin: 24px 0 10px; font-size: 1.02rem; }
  .policy-section h4 { margin: 22px 0 8px; font-size: 0.95rem; }
  .policy-section p,
  .policy-section li { font-size: 0.95rem; line-height: 1.7; }
  .policy-section ul,
  .policy-section ol { margin: 0 0 16px 18px; }
  .policy-section li { margin-bottom: 6px; }
  .policy-section + .policy-section {
    margin-top: 36px;
    padding-top: 36px;
  }
  .policy-section .policy-nav-hint { margin-top: 24px; }

  .policy-nav a { padding: 7px 13px; font-size: 0.8rem; }

  .faq-item summary { padding: 14px; font-size: 0.92rem; }
  .faq-answer { padding: 0 14px 14px; }
  .faq-answer p,
  .faq-answer li { font-size: 0.92rem; }
}

/* ==========================================================================
   Single product page (single-product.php via woocommerce.php)
   WooCommerce own stylesheets are dequeued in functions.php, so the gallery,
   summary, tabs and related grid are all laid out here from scratch.
   ========================================================================== */

/* Slim breadcrumb strip — the product title is rendered in the summary column */
body.single-product .page-header {
  padding: 26px 0 24px;
  text-align: left;
}
body.single-product .page-header h1 { display: none; }
body.single-product .page-header .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

.woocommerce div.product {
  position: relative; /* anchors the .onsale badge over the gallery */
  margin-top: 0;
}

@media (min-width: 901px) {
  body.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    column-gap: 56px;
    row-gap: 48px;
    align-items: start;
  }
  /* Full-width rows below the gallery + summary pair */
  body.single-product div.product > .woocommerce-tabs,
  body.single-product div.product > .related,
  body.single-product div.product > .upsells,
  body.single-product div.product > .gt5-related {
    grid-column: 1 / -1;
  }
}

body.single-product div.product > .woocommerce-product-gallery,
body.single-product div.product > .summary {
  width: 100% !important;
  max-width: 100%;
  float: none !important;
  margin: 0 !important;
}

/* ---- Gallery ---- */
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 84px;
  margin: 0;
  list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0.55;
  cursor: pointer;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* ---- Sale badge ---- */
body.single-product span.onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Summary column ---- */
.single-product .summary .product_title {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.28;
}
.single-product .summary p.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.7rem;
}
.single-product .summary p.price del {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
}
.single-product .summary p.price ins {
  text-decoration: none;
  color: var(--accent);
}
.single-product .summary .woocommerce-product-details__short-description {
  margin: 0 0 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.single-product .summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.single-product .summary .product_meta a { color: var(--text-primary); }
.single-product .summary .product_meta a:hover { color: var(--accent); }

/* ---- Add to cart row ---- */
body.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 24px;
}
body.single-product div.product form.cart .quantity {
  display: inline-flex;
  margin: 0;
}
body.single-product div.product form.cart .qty {
  width: 78px;
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
}
body.single-product div.product form.cart .qty:focus {
  outline: none;
  border-color: var(--accent);
}
body.single-product div.product form.cart .button {
  padding: 15px 40px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---- Tabs ---- */
.single-product .woocommerce-tabs {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
}
.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 1px;
  margin-bottom: -1px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.single-product .woocommerce-tabs .panel {
  padding: 4px 0 0;
  color: var(--text-secondary);
}
.single-product .woocommerce-tabs .panel > h2 { display: none; }
.single-product .woocommerce-tabs .panel p { line-height: 1.75; }
.single-product .woocommerce-tabs .panel h2,
.single-product .woocommerce-tabs .panel h3 { color: var(--text-primary); }

/* Review form inherits theme tokens instead of unstyled browser defaults */
.single-product .woocommerce-tabs input[type="text"],
.single-product .woocommerce-tabs input[type="email"],
.single-product .woocommerce-tabs input[type="url"],
.single-product .woocommerce-tabs textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.single-product .woocommerce-tabs input[type="text"]:focus,
.single-product .woocommerce-tabs input[type="email"]:focus,
.single-product .woocommerce-tabs textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.single-product .woocommerce-tabs .form-submit input[type="submit"],
.single-product .woocommerce-tabs #submit {
  width: auto;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.single-product .woocommerce-tabs .form-submit input[type="submit"]:hover { background: var(--accent-hover); }

/* ---- Related products: reuse the shop card grid verbatim ---- */
.single-product .gt5-related {
  margin-top: 64px;
}
.single-product .gt5-related-title {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
}
.single-product .gt5-related-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

/* ---- Mobile / tablet ---- */
@media (max-width: 900px) {
  body.single-product .page-header {
    padding: 34px 0 28px;
    text-align: center;
  }
  body.single-product .page-header h1 {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  /* The title already appears in the page header on phones */
  .single-product .summary .product_title { display: none; }
  body.single-product div.product { display: block; }
  .single-product .summary { margin-top: 26px; }
  .single-product .summary p.price { font-size: 1.5rem; }
  body.single-product div.product form.cart {
    gap: 12px;
    margin: 22px 0 20px;
  }
  body.single-product div.product form.cart .button {
    flex: 1 1 auto;
    min-width: 180px;
    padding: 15px 24px;
  }
  .single-product .woocommerce-tabs { margin-top: 40px; }
  .single-product .woocommerce-tabs ul.tabs { gap: 22px; }
  .single-product .gt5-related { margin-top: 48px; }
  .single-product .gt5-related .products-grid { gap: 18px; }
}

/* WooCommerce prints the zoom trigger with an emoji as its only content, which
   lands as a stray 18px glyph in the page corner once the WC stylesheet is gone.
   Re-anchor it as a proper circular button in the gallery's top-right corner. */
body.single-product .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.62);
  color: #fff;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
body.single-product .woocommerce-product-gallery__trigger:hover {
  border-color: var(--accent);
  background: rgba(200, 16, 26, 0.75);
}
body.single-product .woocommerce-product-gallery__trigger img.emoji {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Swap the emoji glyph inside the zoom trigger for a drawn magnifier, so the
   button looks intentional instead of like a stray emoji. */
body.single-product .woocommerce-product-gallery__trigger img.emoji { display: none; }
body.single-product .woocommerce-product-gallery__trigger::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
}
body.single-product .woocommerce-product-gallery__trigger::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transform: rotate(45deg);
}

/* WooCommerce marks the tab panels with `.entry-content`, whose 800px centred
   measure left the description indented ~216px inside the product tabs. */
.single-product .woocommerce-tabs .panel,
.single-product .woocommerce-tabs .entry-content {
  max-width: 760px;   /* readable measure, but left-aligned with the tab bar */
  margin-left: 0;
  margin-right: auto;
}
