/*
Theme Name:  Osmonia
Theme URI:   #
Author:      Relax Agency
Description: Thème e-commerce premium pour la purification d'eau. Moderne, tech, compatible WooCommerce. Placeholder — renommer selon le nom final du client.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License:     GNU General Public License v2 or later
Text Domain: osmonia
Tags: e-commerce, woocommerce, modern, water, tech
*/

/* ============================================================
   CUSTOM PROPERTIES — Identité visuelle Osmonia
   ============================================================ */

:root {
  /* Couleurs principales */
  --color-primary:       #0057B8;
  --color-secondary:     #003380;
  --color-accent:        #00C9FF;
  --color-accent-dark:   #0099CC;
  --color-accent-glow:   rgba(0, 201, 255, 0.15);

  /* Arrière-plans */
  --color-bg:            #F4F8FC;
  --color-bg-alt:        #E8F0F8;
  --color-bg-dark:       #060E1E;
  --color-bg-dark-alt:   #0B1A2E;

  /* Texte */
  --color-text:          #1A2340;
  --color-text-light:    #4A6080;
  --color-text-inverse:  #FFFFFF;

  /* Bordures */
  --color-border:        #C8D8E8;
  --color-border-dark:   rgba(255,255,255,0.12);

  /* Blanc / Noir */
  --color-white:         #FFFFFF;
  --color-black:         #000000;

  /* Gradients */
  --gradient-primary:    linear-gradient(135deg, #0057B8 0%, #003380 100%);
  --gradient-accent:     linear-gradient(135deg, #00C9FF 0%, #0057B8 100%);
  --gradient-dark:       linear-gradient(180deg, #060E1E 0%, #0B1A2E 100%);

  /* Typographie */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semi:    600;
  --font-weight-bold:    700;

  /* Tailles de police (mobile-first) */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.25rem;
  --text-xl:    1.5rem;
  --text-2xl:   2rem;
  --text-3xl:   2.5rem;
  --text-4xl:   3.5rem;
  --text-hero:  4.5rem;

  /* Espacement */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-section-mobile:  3rem;
  --space-section-desktop: 5rem;

  /* Layout */
  --container-max:     1200px;
  --container-padding: 1.5rem;

  /* Border-radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 0.3s ease;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* Z-index layers */
  --z-header:  100;
  --z-overlay: 200;
  --z-modal:   300;

  /* Header */
  --header-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.os-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.os-section {
  padding-block: var(--space-section-mobile);
}

@media (min-width: 768px) {
  .os-section { padding-block: var(--space-section-desktop); }
}

.os-section--alt { background-color: var(--color-bg-alt); }
.os-section--dark { background: var(--gradient-dark); }

.os-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.os-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.os-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .os-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .os-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .os-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .os-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .os-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.os-flex         { display: flex; }
.os-flex-center  { display: flex; align-items: center; justify-content: center; }
.os-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   LOGO OSMONIA
   ============================================================ */

.os-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.os-logo__main {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.os-logo__sub {
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

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

.os-btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.os-btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.os-btn--accent {
  background: var(--gradient-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.os-btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.os-btn--ghost {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
.os-btn--ghost:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.os-btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.os-btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.os-btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}
.os-btn--whatsapp::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ============================================================
   HEADER
   ============================================================ */

.os-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.os-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.os-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.os-nav { display: none; }

.os-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.os-nav__item a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.os-nav__item a:hover,
.os-nav__item.current-menu-item a {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

@media (min-width: 1024px) {
  .os-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
}

.os-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.os-header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: color var(--transition);
}

.os-header__icon-btn:hover { color: var(--color-primary); }

.os-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-accent);
  color: var(--color-secondary);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  margin-left: -8px;
  margin-top: -12px;
}

.os-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.os-burger span {
  display: block;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition);
  border-radius: 1px;
}

.os-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.os-burger.is-active span:nth-child(2) { opacity: 0; }
.os-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .os-burger { display: none; } }

.os-mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background-color: var(--color-white);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-8) var(--container-padding);
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.os-mobile-menu.is-open { transform: translateX(0); }

.os-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.os-mobile-menu__item a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.os-mobile-menu__item a:hover { color: var(--color-primary); }

/* ============================================================
   HERO (version dark — page d'accueil eau)
   ============================================================ */

.os-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  overflow: hidden;
}

.os-hero__media {
  position: absolute;
  inset: 0;
}

.os-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.os-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,14,30,0.85) 0%, rgba(0,87,184,0.4) 100%);
}

.os-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.os-hero__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.os-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) { .os-hero__title { font-size: var(--text-4xl); } }
@media (min-width: 1024px) { .os-hero__title { font-size: 5rem; } }

.os-hero__text {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.os-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */

.os-section-heading {
  margin-bottom: var(--space-10);
  text-align: center;
}

.os-section-heading__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

.os-section-heading__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .os-section-heading__title { font-size: var(--text-3xl); }
}

.os-section-heading__sub {
  font-size: var(--text-md);
  color: var(--color-text-light);
  max-width: 560px;
  margin-inline: auto;
}

.os-divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  margin: var(--space-4) auto;
  border-radius: var(--radius-pill);
}

/* ============================================================
   CARTES CATÉGORIES
   ============================================================ */

.os-cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.os-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.os-cat-card:hover .os-cat-card__img { transform: scale(1.04); }

.os-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,51,128,0.85) 0%, transparent 55%);
  transition: opacity var(--transition);
}

.os-cat-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--color-white);
}

.os-cat-card__name {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-1);
}

.os-cat-card__count {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   CARTES PRODUIT
   ============================================================ */

.os-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.os-product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  background-color: var(--color-bg-alt);
  margin-bottom: var(--space-4);
}

.os-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.os-product-card:hover .os-product-card__media img { transform: scale(1.05); }

.os-product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.os-product-card__badge--sale { background-color: #e53935; }

.os-product-card__actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  transform: translateY(100%);
  transition: transform var(--transition);
  display: flex;
  gap: var(--space-2);
}

.os-product-card:hover .os-product-card__actions { transform: translateY(0); }

.os-product-card__stage {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-1);
}

.os-product-card__name {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semi);
  font-size: var(--text-lg);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.os-product-card__name a:hover { color: var(--color-primary); }

.os-product-card__price {
  font-size: var(--text-md);
  color: var(--color-text);
}

.os-product-card__price del {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-right: var(--space-2);
}

.os-product-card__price ins {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: var(--font-weight-semi);
}

/* ============================================================
   FEATURE CARD (Pourquoi nous choisir)
   ============================================================ */

.os-feature-card {
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.os-feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow), var(--shadow-md);
  transform: translateY(-3px);
}

.os-feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.os-feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.os-feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.os-feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================================
   STATS BANDEAU
   ============================================================ */

.os-stats {
  background: var(--gradient-primary);
  padding: var(--space-12) var(--space-4);
}

.os-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 640px) {
  .os-stats__grid { grid-template-columns: repeat(3, 1fr); }
}

.os-stats__item {}

.os-stats__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.os-stats__label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   CTA WHATSAPP (section dark)
   ============================================================ */

.os-whatsapp-cta {
  background: var(--gradient-dark);
  padding: var(--space-16) var(--space-4);
  text-align: center;
}

.os-whatsapp-cta__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}

.os-whatsapp-cta__text {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-inline: auto;
}

/* ============================================================
   COMPOSANTS EAU — SPÉCIFIQUES
   ============================================================ */

/* Barre étapes filtration */
.os-filtration-stages { display: flex; gap: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.os-filtration-stage { flex: 1; text-align: center; padding: 0.75rem; background: var(--color-bg-alt); border-right: 1px solid var(--color-border); font-size: var(--text-xs); }
.os-filtration-stage:last-child { border-right: none; }
.os-filtration-stage__num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.os-filtration-stage__label { color: var(--color-text-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Tableau specs produit */
.os-specs-table { width: 100%; border-collapse: collapse; }
.os-specs-table tr { border-bottom: 1px solid var(--color-border); }
.os-specs-table tr:last-child { border-bottom: none; }
.os-specs-table td { padding: 0.625rem 0.75rem; font-size: var(--text-sm); }
.os-specs-table td:first-child { color: var(--color-text-light); font-weight: var(--font-weight-medium); width: 45%; }
.os-specs-table td:last-child { color: var(--color-text); font-weight: var(--font-weight-semi); }

/* Badge certification */
.os-cert-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--color-primary); border-radius: var(--radius-pill); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; color: var(--color-primary); text-transform: uppercase; }

/* Encadré technique produit (remplace litho-box) */
.os-tech-box {
  padding: var(--space-6);
  background-color: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: var(--space-6);
}

.os-tech-box__title {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.os-tech-box__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   CARTES BLOG
   ============================================================ */

.os-post-card { display: flex; flex-direction: column; }

.os-post-card__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-4);
}

.os-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.os-post-card:hover .os-post-card__media img { transform: scale(1.04); }

.os-post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.os-post-card__cat {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: var(--font-weight-semi);
}

.os-post-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.os-post-card__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semi);
  font-size: var(--text-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}

.os-post-card__title a:hover { color: var(--color-primary); }

.os-post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.os-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.os-read-more:hover { gap: var(--space-3); color: var(--color-secondary); }
.os-read-more::after { content: '→'; }

/* ============================================================
   NEWSLETTER
   ============================================================ */

.os-newsletter {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.os-newsletter__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.os-newsletter__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.os-newsletter__form {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.os-newsletter__input {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.os-newsletter__input:focus { border-color: var(--color-primary); }
.os-newsletter__input::placeholder { color: var(--color-text-light); }

/* ============================================================
   FOOTER
   ============================================================ */

.os-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
}

.os-footer__top {
  padding: var(--space-16) 0 var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 640px) { .os-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .os-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.os-footer__logo .os-logo__main { color: var(--color-white); }
.os-footer__logo .os-logo__sub { color: var(--color-accent); }

.os-footer__about {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.os-footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.os-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.os-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.os-footer__links a:hover { color: var(--color-accent); }

.os-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  transition: background var(--transition);
}

.os-footer__whatsapp:hover { background: #1da851; color: #fff; }

.os-footer__bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   WOOCOMMERCE — SHOP (ARCHIVE)
   ============================================================ */

.os-shop-header {
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.os-shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.os-filter-pill {
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.os-filter-pill:hover,
.os-filter-pill.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.os-woo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}

@media (min-width: 1024px) {
  .os-woo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8) var(--space-6);
  }
}

.os-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.os-pagination a,
.os-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition);
}

.os-pagination a:hover,
.os-pagination .current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */

.os-single-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .os-single-product {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.os-product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--color-bg-alt);
}

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

.os-product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.os-product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.os-product-gallery__thumb.is-active,
.os-product-gallery__thumb:hover { border-color: var(--color-accent); }

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

.os-product-info__stage {
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

.os-product-info__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-3xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.os-product-info__price {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.os-product-info__price del {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin-right: var(--space-3);
}

.os-product-info__price ins {
  text-decoration: none;
  color: var(--color-primary);
}

.os-product-info__divider {
  height: 1px;
  background-color: var(--color-border);
  margin-block: var(--space-6);
}

.os-add-to-cart {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.os-qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.os-qty-input button {
  width: 40px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-text);
  transition: background-color var(--transition);
}

.os-qty-input button:hover { background-color: var(--color-bg-alt); }

.os-qty-input input {
  width: 48px;
  height: 50px;
  text-align: center;
  border: none;
  border-inline: 1px solid var(--color-border);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
}

.os-related {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   PAGE BLOG — SINGLE
   ============================================================ */

.os-post {
  max-width: 720px;
  margin-inline: auto;
}

.os-post__header {
  text-align: center;
  padding-block: var(--space-10) var(--space-8);
}

.os-post__cat {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-4);
}

.os-post__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-3xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
}

.os-post__meta {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.os-post__featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
  aspect-ratio: 16 / 9;
}

.os-post__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-post__content {
  font-size: var(--text-md);
  line-height: 1.85;
  color: var(--color-text);
}

.os-post__content h2,
.os-post__content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.os-post__content p { margin-bottom: var(--space-5); }

.os-post__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.os-post__content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin-block: var(--space-6);
  background-color: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-text-light);
}

.os-post__content ul,
.os-post__content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.os-post__content ul { list-style: disc; }
.os-post__content ol { list-style: decimal; }
.os-post__content li { margin-bottom: var(--space-2); }

.os-post__content img {
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

.os-form-group { margin-bottom: var(--space-5); }

.os-form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.os-form-input,
.os-form-textarea,
.os-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.os-form-input:focus,
.os-form-textarea:focus,
.os-form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.08);
}

.os-form-input::placeholder,
.os-form-textarea::placeholder { color: var(--color-text-light); }

.os-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.os-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  padding-block: var(--space-4);
}

.os-breadcrumb a { color: var(--color-text-light); transition: color var(--transition); }
.os-breadcrumb a:hover { color: var(--color-primary); }
.os-breadcrumb__sep { color: var(--color-border); }

/* ============================================================
   SIDEBAR
   ============================================================ */

.os-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.os-widget {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.os-widget__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */

.os-text-center { text-align: center; }
.os-text-left   { text-align: left; }
.os-text-right  { text-align: right; }

.os-mt-auto { margin-top: auto; }
.os-mb-4    { margin-bottom: var(--space-4); }
.os-mb-8    { margin-bottom: var(--space-8); }

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

.os-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.os-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   NOTIFICATIONS WOOCOMMERCE
   ============================================================ */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.woocommerce-message { background-color: #edf7ee; border-left: 3px solid #4caf50; color: #2e7d32; }
.woocommerce-error   { background-color: #fdecea; border-left: 3px solid #f44336; color: #c62828; }
.woocommerce-info    { background-color: #e3f2fd; border-left: 3px solid var(--color-primary); color: var(--color-secondary); }

/* ============================================================
   RESPONSIVE UTILITAIRE
   ============================================================ */

@media (max-width: 767px) { .os-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .os-hide-desktop { display: none !important; } }

/* ============================================================
   PAGE TITLE
   ============================================================ */

.os-page-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) { .os-page-title { font-size: var(--text-3xl); } }

.os-page-title__count {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-light);
  margin-left: var(--space-2);
}

/* ============================================================
   ÉTAPES CHECKOUT
   ============================================================ */

.os-checkout-steps { margin-bottom: var(--space-8); }

.os-checkout-steps__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.os-checkout-steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.os-checkout-steps__item.is-done  { color: var(--color-text-light); }
.os-checkout-steps__item.is-active { color: var(--color-secondary); font-weight: var(--font-weight-medium); }

.os-checkout-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.os-checkout-steps__item.is-done .os-checkout-steps__num {
  background-color: #e8f5e9;
  border-color: #81c784;
  color: #388e3c;
}

.os-checkout-steps__item.is-active .os-checkout-steps__num {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.os-checkout-steps__sep {
  color: var(--color-border);
  font-size: var(--text-sm);
  user-select: none;
}

/* ============================================================
   PANIER — LAYOUT
   ============================================================ */

.os-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 1024px) {
  .os-cart-layout { grid-template-columns: 1fr 360px; }
}

.os-cart-empty {
  text-align: center;
  padding: var(--space-16) 0;
}

.os-cart-empty__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-border);
}

.os-cart-empty__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.os-cart-empty__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-inline: auto;
}

.os-cart-table-head {
  display: none;
}

@media (min-width: 768px) {
  .os-cart-table-head {
    display: grid;
    grid-template-columns: 80px 1fr 90px 110px 90px 36px;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
  }
}

.os-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas: "img name" "img price" "img qty" "img total" "img remove";
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

@media (min-width: 768px) {
  .os-cart-item {
    grid-template-columns: 80px 1fr 90px 110px 90px 36px;
    grid-template-areas: "img name price qty total remove";
    align-items: center;
    gap: var(--space-4);
  }
}

.os-cart-item__image { grid-area: img; }
.os-cart-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.os-cart-item__name  { grid-area: name; }
.os-cart-item__stage {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 2px;
}
.os-cart-item__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semi);
  font-size: var(--text-md);
  color: var(--color-secondary);
  transition: color var(--transition);
}
.os-cart-item__title:hover { color: var(--color-primary); }
.os-cart-item__price { grid-area: price; font-size: var(--text-base); color: var(--color-text); }
.os-cart-item__qty   { grid-area: qty; }
.os-cart-item__qty .quantity input {
  width: 60px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition);
}
.os-cart-item__qty .quantity input:focus { border-color: var(--color-primary); }
.os-cart-item__total  { grid-area: total; font-size: var(--text-base); font-weight: var(--font-weight-medium); color: var(--color-text); }
.os-cart-item__remove { grid-area: remove; }
.os-cart-item__remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--color-text-light);
  transition: all var(--transition);
}
.os-cart-item__remove-btn:hover { color: #c62828; background-color: #fdecea; }

@media (max-width: 767px) {
  .os-cart-item__price::before { content: attr(data-label) " : "; font-size: var(--text-xs); color: var(--color-text-light); }
  .os-cart-item__total::before { content: attr(data-label) " : "; font-size: var(--text-xs); color: var(--color-text-light); }
}

.os-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.os-coupon { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.os-coupon__input { width: 200px !important; }

.os-cart-summary {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.os-cart-summary__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.os-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.os-cart-summary__row--coupon { color: #388e3c; font-size: var(--text-xs); }
.os-cart-summary__discount    { color: #388e3c; }
.os-cart-summary__coupon-code { font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: 0.05em; }

.os-cart-summary__row--total {
  font-weight: var(--font-weight-semi);
  font-size: var(--text-md);
  color: var(--color-secondary);
}

.os-cart-summary__divider { height: 1px; background-color: var(--color-border); margin-block: var(--space-2); }

.os-cart-summary__cta {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-6);
  gap: var(--space-3);
  padding: 1rem;
}

.os-cart-summary__payment-icons { margin-top: var(--space-5); text-align: center; }
.os-cart-summary__payment-label { display: block; font-size: var(--text-xs); color: var(--color-text-light); margin-bottom: var(--space-2); letter-spacing: 0.08em; }

.os-payment-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.os-payment-badge {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.os-cart-summary__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.os-cart-summary__back:hover { color: var(--color-primary); }

.os-cart-summary__shipping select,
.os-cart-summary__shipping input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-white);
  margin-bottom: var(--space-2);
  outline: none;
}

.os-cart-summary__shipping button {
  padding: 8px 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--transition);
}
.os-cart-summary__shipping button:hover { background-color: var(--color-secondary); }

/* ============================================================
   CHECKOUT — LAYOUT
   ============================================================ */

.os-checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 1024px) {
  .os-checkout-layout { grid-template-columns: 1fr 380px; }
}

.os-checkout-block {
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.os-checkout-block__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0;
}

.os-checkout-block__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  flex-shrink: 0;
}

.os-checkout-block__optional {
  font-weight: var(--font-weight-regular);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}

.os-checkout-block__body { padding: var(--space-6); }

.os-checkout-fields-grid .form-row { margin-bottom: var(--space-4); }
.os-checkout-fields-grid .form-row label { display: block; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-text); margin-bottom: var(--space-2); }
.os-checkout-fields-grid .form-row label .required { color: #e53935; margin-left: 2px; }

.os-checkout-fields-grid .form-row input.input-text,
.os-checkout-fields-grid .form-row select,
.os-checkout-fields-grid .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.os-checkout-fields-grid .form-row input.input-text:focus,
.os-checkout-fields-grid .form-row select:focus,
.os-checkout-fields-grid .form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.08);
}

.os-checkout-fields-grid .form-row.woocommerce-invalid input,
.os-checkout-fields-grid .form-row.woocommerce-invalid select { border-color: #f44336; }

.os-checkout-fields-grid .form-row.woocommerce-validated input,
.os-checkout-fields-grid .form-row.woocommerce-validated select { border-color: #4caf50; }

.os-checkout-fields-grid .form-row-first,
.os-checkout-fields-grid .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  clear: none;
}

.os-checkout-fields-grid .form-row-first { margin-right: 12px; }

@media (max-width: 640px) {
  .os-checkout-fields-grid .form-row-first,
  .os-checkout-fields-grid .form-row-last { width: 100%; margin-right: 0; }
}

.os-checkout-block__body .shipping_method li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: border-color var(--transition);
  margin-bottom: var(--space-2);
}

.os-checkout-block__body .shipping_method li:has(input:checked) {
  border-color: var(--color-primary);
  background-color: rgba(0, 87, 184, 0.03);
}

.os-checkout-block__body .shipping_method input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.os-payment-methods { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.os-payment-method { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition); }
.os-payment-method:has(input:checked) { border-color: var(--color-primary); }
.os-payment-method__label { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); cursor: pointer; background-color: var(--color-bg-alt); }
.os-payment-method__radio { accent-color: var(--color-primary); width: 16px; height: 16px; flex-shrink: 0; }
.os-payment-method__name { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-text); }
.os-payment-method__icon { margin-left: auto; display: flex; align-items: center; }
.os-payment-method__icon img { height: 24px; width: auto; }
.os-payment-method__fields { padding: var(--space-5); border-top: 1px solid var(--color-border); background-color: var(--color-white); font-size: var(--text-sm); color: var(--color-text-light); display: none; }
.os-payment-method:has(input:checked) .os-payment-method__fields { display: block; }
.os-payment-method--no-gateway { padding: var(--space-5); font-size: var(--text-sm); color: var(--color-text-light); background-color: var(--color-bg-alt); }

.os-checkout-block__body .woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--color-text-light); }
.os-checkout-block__body .woocommerce-terms-and-conditions-wrapper a { color: var(--color-primary); text-decoration: underline; }

.os-checkout-submit { width: 100%; justify-content: center; padding: 1rem; font-size: var(--text-sm); gap: var(--space-3); }

.os-checkout-login-notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.os-checkout-login-toggle {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  cursor: pointer;
}

.os-checkout-login-wrap {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

/* Checkout summary (right column) */
.os-checkout-summary {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.os-checkout-summary__title {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  margin: 0;
  background-color: var(--color-white);
}

.os-checkout-items-head {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.os-checkout-items-list { padding: var(--space-3) 0; }

.os-checkout-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-6); }
.os-checkout-item__img { position: relative; flex-shrink: 0; }
.os-checkout-item__img img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-md); display: block; }

.os-checkout-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: var(--font-weight-semi);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-checkout-item__info { flex: 1; min-width: 0; }
.os-checkout-item__stage { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: 2px; }
.os-checkout-item__name { display: block; font-size: var(--text-sm); color: var(--color-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-checkout-item__total { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-text); flex-shrink: 0; }

.os-checkout-totals { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border); background-color: var(--color-white); }
.os-checkout-totals__row { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-2); font-size: var(--text-sm); color: var(--color-text); }
.os-checkout-totals__row--discount { color: #388e3c; font-size: var(--text-xs); }
.os-checkout-totals__discount { color: #388e3c; }
.os-checkout-totals__divider { height: 1px; background-color: var(--color-border); margin-block: var(--space-2); }
.os-checkout-totals__row--total { font-size: var(--text-md); font-weight: var(--font-weight-semi); color: var(--color-secondary); padding-top: var(--space-3); }

.os-checkout-guarantees { padding: var(--space-5) var(--space-6); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-3); }
.os-checkout-guarantee { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-light); }
.os-checkout-guarantee__icon { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   THANK YOU
   ============================================================ */

.os-thankyou-banner {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
}

.os-thankyou-banner--success {
  background: linear-gradient(135deg, rgba(0,87,184,0.06) 0%, rgba(0,201,255,0.10) 100%);
  border: 1px solid rgba(0,87,184,0.15);
}

.os-thankyou-banner--failed { background-color: #fdecea; border: 1px solid #ef9a9a; }
.os-thankyou-banner__icon { display: flex; justify-content: center; margin-bottom: var(--space-5); }
.os-thankyou-banner--success .os-thankyou-banner__icon { color: var(--color-primary); }
.os-thankyou-banner--failed  .os-thankyou-banner__icon { color: #c62828; }
.os-thankyou-banner__eyebrow { font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: var(--space-3); }
.os-thankyou-banner__title { font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-2xl); color: var(--color-secondary); margin-bottom: var(--space-4); }
@media (min-width: 768px) { .os-thankyou-banner__title { font-size: var(--text-3xl); } }
.os-thankyou-banner--failed .os-thankyou-banner__title { color: #c62828; }
.os-thankyou-banner__sub { font-size: var(--text-md); color: var(--color-text-light); max-width: 520px; margin-inline: auto; line-height: 1.7; margin-bottom: var(--space-6); }

.os-thankyou-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }
@media (min-width: 1024px) { .os-thankyou-layout { grid-template-columns: 1fr 340px; } }

.os-thankyou-block { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.os-thankyou-block__title { padding: var(--space-4) var(--space-6); background-color: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-secondary); margin: 0; }

.os-order-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background-color: var(--color-border); }
@media (min-width: 640px) { .os-order-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.os-order-meta-item { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-6); background-color: var(--color-white); }
.os-order-meta-item__label { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-light); }
.os-order-meta-item__value { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-secondary); }

.os-order-status { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); }
.os-order-status--processing { background: #e3f2fd; color: #1565c0; }
.os-order-status--completed  { background: #e8f5e9; color: #2e7d32; }
.os-order-status--pending    { background: #fff8e1; color: #f57f17; }
.os-order-status--on-hold    { background: #fff3e0; color: #e65100; }
.os-order-status--failed     { background: #fdecea; color: #c62828; }
.os-order-status--cancelled  { background: #fafafa; color: var(--color-text-light); }

.os-thankyou-items { padding: var(--space-3) 0; }
.os-thankyou-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
.os-thankyou-item:last-child { border-bottom: none; }
.os-thankyou-item__image { position: relative; flex-shrink: 0; }
.os-thankyou-item__image img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.os-thankyou-item__qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background-color: var(--color-primary); color: var(--color-white); font-size: 10px; font-weight: var(--font-weight-semi); border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; }
.os-thankyou-item__info { flex: 1; min-width: 0; }
.os-thankyou-item__stage { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: 2px; }
.os-thankyou-item__name { display: block; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-secondary); }
.os-thankyou-item__total { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-text); flex-shrink: 0; }

.os-thankyou-totals { padding: var(--space-4) var(--space-6); background-color: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.os-thankyou-totals__row { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-2); font-size: var(--text-sm); color: var(--color-text); }
.os-thankyou-totals__row--total { font-size: var(--text-md); font-weight: var(--font-weight-semi); color: var(--color-secondary); border-top: 1px solid var(--color-border); margin-top: var(--space-2); padding-top: var(--space-4); }

.os-address-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background-color: var(--color-border); }
@media (min-width: 640px) { .os-address-grid { grid-template-columns: 1fr 1fr; } }
.os-address-card { padding: var(--space-6); background-color: var(--color-white); }
.os-address-card__title { font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: var(--space-3); }
.os-address-card__body { font-size: var(--text-sm); font-style: normal; color: var(--color-text); line-height: 1.7; }

.os-thankyou-next { background-color: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-5); }
.os-thankyou-next__title { font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.os-thankyou-steps { display: flex; flex-direction: column; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.os-thankyou-step { display: flex; align-items: flex-start; gap: var(--space-4); }
.os-thankyou-step__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: var(--text-xs); font-weight: var(--font-weight-semi); flex-shrink: 0; background-color: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text-light); }
.os-thankyou-step--done .os-thankyou-step__icon { background-color: #e8f5e9; border-color: #81c784; color: #388e3c; }
.os-thankyou-step strong { display: block; font-size: var(--text-sm); color: var(--color-secondary); margin-bottom: 2px; }
.os-thankyou-step p { font-size: var(--text-xs); color: var(--color-text-light); margin: 0; line-height: 1.5; }
.os-thankyou-actions { display: flex; flex-direction: column; gap: var(--space-3); }

/* ============================================================
   COMPTE CLIENT
   ============================================================ */

.os-account-header { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-border); }
.os-account-header__img { width: 56px !important; height: 56px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-border); }
.os-account-header__eyebrow { display: block; font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: 2px; }
.os-account-header__name { font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-2xl); color: var(--color-secondary); margin: 0; }

.os-account-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }
@media (min-width: 1024px) { .os-account-layout { grid-template-columns: 220px 1fr; } }

.os-account-nav { position: sticky; top: calc(var(--header-height) + 1rem); }
.os-account-nav__list { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-1); }
@media (min-width: 1024px) { .os-account-nav__list { flex-direction: column; gap: 2px; } }

.os-account-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: all var(--transition);
  white-space: nowrap;
}

.os-account-nav__link:hover { background-color: var(--color-bg-alt); color: var(--color-secondary); }
.os-account-nav__item.is-active .os-account-nav__link { background-color: var(--color-primary); color: var(--color-white); }
.os-account-nav__item--logout { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.os-account-nav__item--logout .os-account-nav__link { color: #c62828; }
.os-account-nav__item--logout .os-account-nav__link:hover { background-color: #fdecea; color: #b71c1c; }
.os-account-nav__icon { flex-shrink: 0; }

.os-account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.os-account-section-title__count { font-weight: var(--font-weight-regular); color: var(--color-text-light); letter-spacing: 0; text-transform: none; }
.os-account-section-title__link { font-size: var(--text-xs); color: var(--color-primary); letter-spacing: 0.05em; font-weight: var(--font-weight-medium); text-transform: none; transition: color var(--transition); }
.os-account-section-title__link:hover { color: var(--color-secondary); }

.os-account-back-link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: var(--space-6); transition: color var(--transition); }
.os-account-back-link:hover { color: var(--color-primary); }

/* Dashboard stats */
.os-dashboard-stats { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 640px) { .os-dashboard-stats { grid-template-columns: repeat(3, 1fr); } }

.os-dashboard-stat {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  transition: all var(--transition);
  display: block;
  text-decoration: none;
}

.os-dashboard-stat:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.os-dashboard-stat__value { display: block; font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-2xl); color: var(--color-secondary); margin-bottom: var(--space-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-dashboard-stat__label { display: block; font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-light); }
.os-dashboard-stat__icon { position: absolute; bottom: 12px; right: 16px; color: var(--color-border); }

/* Dashboard quick links */
.os-dashboard-quick-links { display: grid; grid-template-columns: 1fr; gap: var(--space-2); margin-bottom: var(--space-8); }
@media (min-width: 640px) { .os-dashboard-quick-links { grid-template-columns: repeat(2, 1fr); } }

.os-dashboard-quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  transition: all var(--transition);
  text-decoration: none;
}

.os-dashboard-quick-link:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.os-dashboard-quick-link__icon { color: var(--color-primary); flex-shrink: 0; }
.os-dashboard-quick-link__label { display: block; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--color-secondary); margin-bottom: 1px; }
.os-dashboard-quick-link__sub { display: block; font-size: var(--text-xs); color: var(--color-text-light); }
.os-dashboard-quick-link__arrow { margin-left: auto; color: var(--color-border); transition: color var(--transition), transform var(--transition); }
.os-dashboard-quick-link:hover .os-dashboard-quick-link__arrow { color: var(--color-primary); transform: translateX(3px); }

/* Orders table */
.os-orders-empty { text-align: center; padding: var(--space-12) 0; color: var(--color-text-light); }
.os-orders-empty svg { display: block; margin: 0 auto var(--space-5); color: var(--color-border); }
.os-orders-empty p { margin-bottom: var(--space-6); font-size: var(--text-md); }

.os-orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.os-orders-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.os-orders-table thead tr { background-color: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.os-orders-table thead th { padding: var(--space-4) var(--space-5); text-align: left; font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-light); white-space: nowrap; }
.os-orders-row { border-bottom: 1px solid var(--color-border); transition: background-color var(--transition); }
.os-orders-row:last-child { border-bottom: none; }
.os-orders-row:hover { background-color: rgba(0, 87, 184, 0.02); }
.os-orders-row--needs-payment { background-color: #fff8e1; }
.os-orders-table td { padding: var(--space-4) var(--space-5); vertical-align: middle; color: var(--color-text); }
.os-orders-row__num { display: block; font-weight: var(--font-weight-semi); color: var(--color-secondary); margin-bottom: var(--space-2); text-decoration: none; transition: color var(--transition); }
.os-orders-row__num:hover { color: var(--color-primary); }
.os-orders-row__thumbs { display: flex; gap: var(--space-1); align-items: center; }
.os-orders-row__thumbs img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); display: block; }
.os-orders-row__more { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background-color: var(--color-bg-alt); border: 1px solid var(--color-border); font-size: var(--text-xs); color: var(--color-text-light); }
.os-orders-row__items-summary { display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text-light); font-size: var(--text-xs); }
.os-orders-row__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; white-space: nowrap; }

@media (max-width: 767px) {
  .os-orders-table-wrap { border: none; }
  .os-orders-table thead { display: none; }
  .os-orders-table, .os-orders-table tbody, .os-orders-row, .os-orders-table td { display: block; width: 100%; }
  .os-orders-row { border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: var(--space-4); padding: var(--space-4); }
  .os-orders-table td { padding: var(--space-2) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
  .os-orders-table td::before { content: attr(data-label); font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-light); flex-shrink: 0; }
}

/* View order */
.os-view-order-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.os-view-order-header__date { display: block; font-size: var(--text-xs); color: var(--color-text-light); margin-top: var(--space-1); }

.os-order-progress { display: flex; align-items: flex-start; gap: 0; margin-bottom: var(--space-8); overflow-x: auto; padding-bottom: var(--space-2); }
.os-order-progress__step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 80px; position: relative; }
.os-order-progress__dot { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--color-bg-alt); border: 2px solid var(--color-border); font-size: var(--text-xs); font-weight: var(--font-weight-semi); color: var(--color-text-light); z-index: 1; transition: all var(--transition); }
.os-order-progress__step.is-done   .os-order-progress__dot { background-color: #e8f5e9; border-color: #81c784; color: #388e3c; }
.os-order-progress__step.is-active .os-order-progress__dot { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.12); }
.os-order-progress__line { position: absolute; top: 16px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background-color: var(--color-border); z-index: 0; }
.os-order-progress__line.is-done { background-color: #81c784; }
.os-order-progress__label { margin-top: var(--space-2); font-size: var(--text-xs); text-align: center; color: var(--color-text-light); letter-spacing: 0.05em; }
.os-order-progress__step.is-active .os-order-progress__label { color: var(--color-secondary); font-weight: var(--font-weight-medium); }

.os-view-order-notes { padding: var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.os-order-note { padding: var(--space-4); background-color: var(--color-bg-alt); border-radius: var(--radius-md); border-left: 3px solid var(--color-accent); }
.os-order-note__time { display: block; font-size: var(--text-xs); color: var(--color-text-light); margin-bottom: var(--space-2); }
.os-order-note__text { font-size: var(--text-sm); color: var(--color-text); line-height: 1.6; }
.os-order-note__text p { margin-bottom: var(--space-2); }
.os-order-note__text p:last-child { margin-bottom: 0; }
.os-view-order-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Account forms */
.os-account-form-block { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.os-account-form-block__title { padding: var(--space-4) var(--space-6); background-color: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--font-weight-semi); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-secondary); margin: 0; }
.os-account-form-block__hint { font-size: var(--text-xs); color: var(--color-text-light); padding: var(--space-3) var(--space-6) 0; margin: 0; }
.os-account-form-block .os-checkout-fields-grid { padding: var(--space-6); }

.os-form-row-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-4) var(--space-5); padding: var(--space-6); }
@media (min-width: 640px) { .os-form-row-2 { grid-template-columns: repeat(2, 1fr); } }
.os-form-row-2 + .os-form-group, .os-form-group + .os-form-group { padding: 0 var(--space-6) var(--space-4); }

.os-form-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.os-form-label-row .os-form-label { margin-bottom: 0; }
.os-form-forgot { font-size: var(--text-xs); color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; transition: color var(--transition); }
.os-form-forgot:hover { color: var(--color-secondary); }
.os-form-required { color: #e53935; margin-left: 3px; }
.os-form-hint { display: block; font-size: var(--text-xs); color: var(--color-text-light); margin-top: var(--space-1); }

.os-password-wrap { position: relative; }
.os-password-wrap .os-form-input { padding-right: 44px; }
.os-password-toggle { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--color-text-light); transition: color var(--transition); }
.os-password-toggle:hover { color: var(--color-primary); }

.os-password-strength { height: 4px; border-radius: var(--radius-pill); margin-top: var(--space-2); background-color: var(--color-border); overflow: hidden; transition: all var(--transition); }
.os-password-strength::after { content: ''; display: block; height: 100%; border-radius: var(--radius-pill); transition: width var(--transition), background-color var(--transition); }
.os-password-strength[data-strength="1"]::after { width: 25%; background-color: #f44336; }
.os-password-strength[data-strength="2"]::after { width: 50%; background-color: #ff9800; }
.os-password-strength[data-strength="3"]::after { width: 75%; background-color: #8bc34a; }
.os-password-strength[data-strength="4"]::after { width: 100%; background-color: #4caf50; }

.os-checkbox-label { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-sm); color: var(--color-text); user-select: none; }
.os-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.os-checkbox-custom { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--color-border); border-radius: 3px; background-color: var(--color-white); flex-shrink: 0; transition: all var(--transition); }
.os-checkbox:checked + .os-checkbox-custom { background-color: var(--color-primary); border-color: var(--color-primary); }
.os-checkbox:checked + .os-checkbox-custom::after { content: ''; display: block; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

.os-account-form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Login page */
.os-login-page { display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: start; }
@media (min-width: 1024px) { .os-login-page { grid-template-columns: 1fr 380px; } }
.os-login-page__forms { display: flex; flex-direction: column; gap: var(--space-8); }

.os-auth-block { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.os-auth-block__header { padding: var(--space-6) var(--space-8); background-color: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.os-auth-block__title { font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-2xl); color: var(--color-secondary); margin: 0 0 var(--space-1); }
.os-auth-block__sub { font-size: var(--text-sm); color: var(--color-text-light); margin: 0; }
.os-auth-form { padding: var(--space-8); display: flex; flex-direction: column; gap: 0; }
.os-auth-form .os-form-group { margin-bottom: var(--space-5); }
.os-auth-form__submit { width: 100%; justify-content: center; margin-top: var(--space-2); }
.os-auth-form__privacy { font-size: var(--text-xs); color: var(--color-text-light); line-height: 1.6; margin-bottom: var(--space-5); }
.os-auth-form__privacy a { color: var(--color-primary); text-decoration: underline; }

.os-login-page__brand { position: sticky; top: calc(var(--header-height) + 2rem); }

.os-login-brand {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  color: rgba(255,255,255,0.85);
}

.os-login-brand__logo { display: flex; flex-direction: column; margin-bottom: var(--space-8); }
.os-login-brand__logo .os-logo__main { color: var(--color-white); font-size: 1.75rem; }
.os-login-brand__logo .os-logo__sub { margin-top: 2px; color: var(--color-accent); }
.os-login-brand__title { font-family: var(--font-heading); font-weight: var(--font-weight-bold); font-size: var(--text-2xl); color: var(--color-white); margin-bottom: var(--space-8); line-height: 1.3; }

.os-login-brand__perks { display: flex; flex-direction: column; gap: var(--space-4); padding: 0; margin: 0; list-style: none; }
.os-login-brand__perk { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.5; }
.os-login-brand__perk-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
