/*
Theme Name: WETRAVEL Sunshade
Theme URI: https://example.com/
Author: WETRAVEL
Author URI: https://example.com/
Description: WordPress + WooCommerce theme for automotive sunshade ecommerce.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: wetravel-sunshade
*/

:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --line: #dbe2ea;
  --ink: #0f1723;
  --muted: #5f6f86;
  --accent: #ff6900;
  --accent-dark: #e85900;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 12px 36px rgba(15, 23, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

.rating-strip {
  background: #0f1723;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}

.rating-strip p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px min(4vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 105, 0, 0.18);
}

.main-nav {
  display: inline-flex;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  text-decoration: none;
  color: #344256;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.header-btn,
.btn,
.wetravel-outline-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.header-btn,
.btn-primary,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--accent) !important;
  color: #fff !important;
}

.header-btn,
.btn {
  padding: 11px 18px;
  font-size: 14px;
}

.btn-light {
  border: 1px solid var(--line);
  background: #fff;
  color: #213041;
}

main {
  width: min(1180px, 93vw);
  margin: 0 auto;
  padding-bottom: 80px;
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-copy,
.hero-media,
.usp-grid article,
.fitment-controls,
.wetravel-product-card,
.video-copy,
.video-frame,
.review-card,
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 5vw, 44px);
}

.eyebrow {
  margin: 0;
  color: #71829a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.hero-copy p {
  color: var(--muted);
  margin-top: 14px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags li {
  font-size: 12px;
  font-weight: 700;
  color: #42546b;
  border: 1px solid #e2e8ef;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fbfcfd;
}

.hero-media {
  padding: 10px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ecf2f8 100%);
}

.usp-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.usp-grid article {
  padding: 16px;
}

.usp-grid p {
  margin: 8px 0 0;
  color: #64768c;
  font-size: 14px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.fitment-section,
.best-sellers,
.video-section,
.reviews-section,
.faq-section {
  margin-top: 62px;
}

.fitment-controls {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fitment-controls label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3c4e64;
}

.fitment-controls select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 700;
  color: #223246;
  background: #fff;
}

.product-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wetravel-product-card {
  overflow: hidden;
}

.wetravel-product-media {
  background: #f5f7fb;
  padding: 8px;
}

.wetravel-product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

.wetravel-product-content {
  padding: 14px;
}

.wetravel-product-content h3 {
  font-size: 1rem;
}

.wetravel-product-content h3 a {
  text-decoration: none;
}

.wetravel-fitment-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #66788f;
}

.wetravel-price {
  margin: 9px 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
}

.wetravel-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2f41;
}

.wetravel-empty {
  margin: 8px 0 0;
  color: #6b7c90;
}

.video-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.video-copy {
  padding: 22px;
}

.video-copy p {
  color: #617287;
}

.video-frame {
  padding: 8px;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.review-carousel {
  position: relative;
  min-height: 180px;
}

.review-card {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.review-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.review-card p {
  margin: 0;
  font-size: 1.05rem;
  color: #1f2f41;
}

.review-card span {
  display: block;
  margin-top: 12px;
  color: #617287;
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px 16px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: #607287;
}

.site-footer {
  width: min(1180px, 93vw);
  margin: 40px auto 80px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: #6b7c90;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #344256;
  text-decoration: none;
  font-weight: 700;
}

.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 0 0 14px;
}

.woocommerce ul.products li.product .button {
  margin: 8px 14px 0;
}

.woocommerce div.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 26px;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  color: #65768b;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .hero,
  .video-section {
    grid-template-columns: 1fr;
  }

  .usp-grid,
  .product-grid,
  .woocommerce .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fitment-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-btn {
    display: none;
  }

  .hero-media img {
    min-height: 280px;
  }

  .usp-grid,
  .product-grid,
  .woocommerce .products,
  .fitment-controls {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-bottom: 42px;
  }
}
