/*
Theme Name: Modelism Theme
Theme URI: https://modelism.kaizenmarket.io/
Author: Codex
Description: Theme custom ecommerce pour Modelism.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: modelism-theme
*/

:root {
  --bg: #090d14;
  --bg-soft: #101827;
  --panel: #121b2c;
  --panel-2: #172338;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #9fb0c8;
  --accent: #ff6236;
  --accent-2: #5ed3ff;
  --accent-3: #ffd166;
  --surface: #f5f7fb;
  --surface-text: #0f1724;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.18);
  --site-width: min(1280px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(94, 211, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 98, 54, 0.14), transparent 28%),
    linear-gradient(180deg, #0a0f18 0%, #101827 48%, #0b111b 100%);
  color: var(--text);
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(9, 13, 20, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  max-height: 42px;
  width: auto;
}

.brand__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #dfe8f7;
  font-size: 0.93rem;
  font-weight: 600;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.header-badge {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn,
button,
input[type="submit"],
.button,
.wp-element-button,
.wc-forward {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8d49 100%) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 36px rgba(255, 98, 54, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.wc-forward:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(255, 98, 54, 0.34);
}

.btn--ghost {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

.hero {
  padding: 40px 0 32px;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 72px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.84) 34%, rgba(8, 12, 18, 0.42) 62%, rgba(8, 12, 18, 0.18) 100%),
    var(--hero-image, linear-gradient(135deg, #121b2c, #172338)) center right / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: #f4f7fb;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e4f8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  color: #ffffff !important;
  font-size: clamp(2.35rem, 5.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #e2ebf8 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero .eyebrow,
.hero .eyebrow * {
  color: #edf4ff !important;
}

.hero .brand-pill,
.hero .metric strong,
.hero .metric span {
  color: #f2f6ff !important;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.brand-pill {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(14, 20, 31, 0.72);
  color: #eef5ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.metric span {
  color: #c4d2ea;
  font-size: 0.92rem;
}

.section {
  padding: 22px 0 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.brand-grid,
.category-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.brand-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brand-card,
.category-card,
.trust-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.94), rgba(15, 22, 35, 0.9));
  box-shadow: var(--shadow-md);
}

.brand-card strong,
.category-card strong,
.trust-card strong {
  display: block;
  color: #f4f7fb;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.brand-card span,
.category-card span,
.trust-card span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 252, 0.94));
  color: var(--surface-text);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f7f9fd 0%, #edf2fa 100%);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.product-card__brand {
  color: #516177;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0;
  color: #516177;
  line-height: 1.65;
  font-size: 0.95rem;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d1827;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.woocommerce-page .site-main > article,
.page .site-main > article {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.94));
  color: var(--surface-text);
  box-shadow: var(--shadow-md);
}

.content-card h1,
.content-card h2,
.content-card h3,
.woocommerce-page h1,
.page h1 {
  color: #0d1827;
}

.content-card p,
.content-card li,
.woocommerce-page p,
.woocommerce-page li,
.page p,
.page li {
  color: #4d5f76;
  line-height: 1.75;
}

.woocommerce-page .entry-header,
.page .entry-header,
.site-footer .site-title {
  display: none;
}

.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.product_meta,
.sku_wrapper,
.posted_in,
.tagged_as,
.site-search,
.widget-area,
.comments-area {
  display: none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.94));
  box-shadow: var(--shadow-md);
  color: var(--surface-text);
}

.woocommerce ul.products li.product img {
  border-radius: 18px;
  background: #fff;
}

.woocommerce ul.products li.product .price {
  color: #0d1827;
  font-weight: 800;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 18px;
}

.site-footer {
  padding: 36px 0 48px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header__inner,
  .site-footer__inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .hero__panel {
    padding: 34px;
    min-height: 520px;
  }

  .hero-metrics,
  .category-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header__inner {
    min-height: 68px;
  }

  .brand img {
    max-height: 34px;
  }

  .site-nav ul {
    gap: 6px;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero__panel {
    padding: 24px;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .brand-grid,
  .category-grid,
  .hero-metrics,
  .products-grid,
  .trust-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }
}
