/* VICEGRIP · high-contrast premium finish
   Typography & visual hierarchy, no changes to hero, banners, videos,
   page backgrounds, logo, cart functionality or hosted Stripe Checkout.
   Color intent: rich night violet, luminous ivory, restrained rose accent.
   Inter & Archivo are already licensed/served by this project. */

body.brand-system {
  --vg-type-ink: #fff9fd;
  --vg-type-copy-color: #eee4f0;
  --vg-type-muted: #d2c4d6;
  --vg-type-accent: #ffd0e5;
  --vg-contrast-ink: #fff9fd;
  --vg-contrast-body: #e9dfeb;
  --vg-contrast-muted: #c9bcd0;
  --vg-contrast-pink: #ffcee5;
  --vg-contrast-hairline: rgba(255, 234, 249, .21);
  --vg-contrast-button: #f5c9df;
  --vg-contrast-button-ink: #27182f;
  --brand-soft: #d0c3d5;
  --brand-accent: #ffc9e1;
}

/* Light panels intentionally retain dark ink and dark accessible accents. */
body.brand-system .world-compare {
  --vg-type-ink: #281a32;
  --vg-type-copy-color: #46364e;
  --vg-type-muted: #604d67;
  --vg-type-accent: #71416b;
  --brand-soft: #5a4962;
  --brand-accent: #76466e;
  color: #281a32;
}
body.brand-system .world-compare :is(.world-heading h2, .world-heading > p, th, td) {
  color: #35263d;
}
body.brand-system .world-compare :is(th:first-child, td:first-child, .world-label) {
  color: #624d67;
}
body.brand-system .world-compare :is(th, td) {
  border-bottom-color: rgba(56, 33, 66, .22);
}
body.brand-system .world-compare a { color: #492b55; }
body.brand-system .edition-white :is(.edition-info > p:not(.card-kicker), .price-row span) {
  color: #59475e;
}
body.brand-system .edition-white :is(.edition-info h3, .price-row strong) {
  color: #2d2036;
}

/* Dark areas: readable information without flattening heading hierarchy. */
body.brand-system :is(
  .boutique-product-info > p,
  .world-product-info > p,
  .vg-cat-description,
  .vg-ps-desc,
  .rg-single,
  .rg-variant-links a,
  .shop-piece-description,
  .shop-section-intro,
  .shop-inquiry-note,
  .world-footer-intro p,
  .rg-feature small
) {
  color: var(--vg-contrast-body);
  font-family: var(--vg-type-copy, Inter, Arial, sans-serif);
  line-height: 1.64;
}
body.brand-system :is(
  .vg-cat-description,
  .vg-ps-desc,
  .shop-piece-description,
  .shop-section-intro
) { font-size: clamp(13px, 1.15vw, 15px); }
body.brand-system :is(
  .world-product-info > p,
  .boutique-product-info > p,
  .rg-single,
  .shop-inquiry-note,
  .rg-feature small
) { font-size: 12.5px; }
body.brand-system :is(
  .rg-count,
  .rg-disclosure,
  .vg-ps-resultbar,
  .vg-ps-list-head > p,
  .vg-ps-hero-insight small,
  .rg-section-heading > p,
  .shop-section-intro .shop-inquiry-note,
  .world-product-price small
) {
  color: var(--vg-contrast-muted);
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.65;
}
body.brand-system :is(
  .world-label,
  .shop-kicker,
  .rg-kicker,
  .vg-ps-eyebrow,
  .rg-eyebrow,
  .vg-ps-category small,
  .vg-cat-type,
  .vg-ps-mini,
  .product-price-label
) { color: var(--vg-contrast-pink); }

/* Editorial separation: quiet but perceptible structure on dark cards. */
body.brand-system :is(
  .vg-cat-card,
  .vg-ps-card,
  .rg-card,
  .shop-piece,
  .rg-feature
) {
  border-color: var(--vg-contrast-hairline);
}
body.brand-system :is(
  .vg-cat-card,
  .vg-ps-card,
  .rg-card,
  .shop-piece,
  .rg-feature
):hover {
  border-color: rgba(255, 205, 230, .50);
}
body.brand-system :is(
  .rg-card-bottom,
  .vg-cat-actions,
  .vg-ps-card-bottom,
  .world-product-price,
  .world-shop-tools
) {
  border-color: var(--vg-contrast-hairline);
}

/* Product names and purchase data should read immediately. */
body.brand-system :is(
  .boutique-product-info h3,
  .vg-cat-copy h3,
  .vg-ps-card-copy h3,
  .rg-card h3,
  .shop-piece-copy h3,
  .world-product-info h2
) { color: var(--vg-contrast-ink); }
body.brand-system :is(
  .world-product-price strong,
  .vg-cat-price strong,
  .vg-ps-card-price strong,
  .rg-card-bottom strong,
  .product-price,
  [data-cart-total]
) { color: var(--vg-contrast-ink); }
body.brand-system :is(
  .rg-card-bottom a,
  .vg-cat-actions a,
  .vg-ps-card-bottom a,
  .shop-piece-inquiry,
  .world-link,
  .shop-text-link,
  .boutique-product-actions > a
) {
  color: #ffe0ef;
  text-decoration-color: rgba(255, 218, 237, .55);
  text-underline-offset: 4px;
}

/* Catalog pills and filter controls: distinguish active state, retain layout. */
body.brand-system :is(
  .rg-filters button,
  .vg-ps-filters button,
  .vg-filter-tabs button,
  .rg-variant-links a,
  .vg-ps-category
) { border-color: rgba(255, 234, 247, .32); }
body.brand-system :is(
  .rg-filters button,
  .vg-ps-filters button,
  .vg-filter-tabs button,
  .rg-variant-links a
) {
  color: #f5eaf5;
  font-size: max(12px, 0.75rem);
}
body.brand-system :is(
  .rg-filters button[aria-pressed="true"],
  .vg-ps-filters button[aria-pressed="true"],
  .vg-filter-tabs button[aria-pressed="true"]
) {
  border-color: #f6d0e5;
  background: #f2c4dc;
  color: #27182f;
}
body.brand-system :is(
  .rg-search input,
  .vg-ps-search input,
  .vg-catalog-tools input,
  .world-search-body input
) {
  color: #fff9fd;
  border-color: rgba(255, 232, 248, .39);
  font-size: 16px; /* avoids Safari auto-zoom on input focus */
}
body.brand-system :is(
  .rg-search input,
  .vg-ps-search input,
  .vg-catalog-tools input,
  .world-search-body input
)::placeholder { color: #d5c5d7; opacity: 1; }

/* Buying actions: one polished pale-rose CTA on darker content sections. */
body.brand-system :is(
  .cart-foot .button.button-primary,
  .boutique-product-actions button,
  .shop-dialog-copy .button,
  .rg-button,
  .vg-detail-cta,
  .vg-ps-detail-cta
) {
  background: var(--vg-contrast-button);
  border-color: #ffe6f2;
  color: var(--vg-contrast-button-ink);
  box-shadow: none;
}
body.brand-system :is(
  .cart-foot .button.button-primary,
  .boutique-product-actions button,
  .shop-dialog-copy .button,
  .rg-button,
  .vg-detail-cta,
  .vg-ps-detail-cta
):hover {
  background: #ffe0ed;
  border-color: #fff5fa;
  color: #211526;
}
body.brand-system.product-page .product-purchase .buy-row > .button-primary {
  background: #fff6fb;
  color: #1a181d;
  border-color: #fff6fb;
}
body.brand-system.product-page .product-purchase .buy-row > .button-primary:hover {
  background: #fff;
  color: #1a181d;
  border-color: #fff;
}

/* Hierarchy and contrast in cart, menus and footer. */
body.brand-system .cart-head h2,
body.brand-system .cart-item h3,
body.brand-system .world-menu-layout nav > a { color: var(--vg-contrast-ink); }
body.brand-system :is(
  .cart-item p,
  .cart-empty,
  .cart-request-note,
  .cart-checkout-status,
  .cart-limit-note,
  .world-menu-bottom a,
  .world-menu-feature span,
  .world-shop-tools,
  .site-footer .footer-bottom p,
  .world-footer-bottom,
  .world-footer-intro p
) { color: var(--vg-contrast-muted); }
body.brand-system .cart-foot {
  border-top-color: var(--vg-contrast-hairline);
}
body.brand-system .cart-foot [data-cart-total] {
  font-family: var(--vg-type-display, Archivo, Arial, sans-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
}
body.brand-system .cart-foot .button[disabled] {
  cursor: not-allowed;
  opacity: .65;
}
body.brand-system .site-footer a:hover,
body.brand-system :is(.world-menu-bottom a,.desktop-nav a):hover {
  color: #fff;
}

/* Accessible focus in both keyboard and assistive navigation. */
body.brand-system :is(
  a, button, input, select, textarea, summary,
  [role="button"], [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid #ffd5e9;
  outline-offset: 3px;
}
body.brand-system .world-compare :is(a,button,input):focus-visible,
body.brand-system .edition-white :is(a,button,input):focus-visible {
  outline-color: #593163;
}

/* Mobile: keep filters, captions and purchasing information actually legible. */
@media (max-width: 767px) {
  body.brand-system :is(
    .rg-disclosure,
    .rg-count,
    .vg-ps-resultbar,
    .vg-ps-card-bottom span,
    .rg-card-bottom span,
    .vg-cat-actions span,
    .shop-section-intro .shop-inquiry-note
  ) {
    font-size: 12px;
    line-height: 1.6;
  }
  body.brand-system :is(
    .rg-card-bottom a,
    .vg-ps-card-bottom a,
    .vg-cat-actions a,
    .shop-piece-inquiry
  ) { font-size: 13px; }
  body.brand-system .cart-item h3 { font-size: 16px; }
  body.brand-system .cart-foot [data-cart-total] { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body.brand-system :is(
    .vg-cat-card,.vg-ps-card,.rg-card,.shop-piece,.rg-feature
  ) { transition-duration: 0.01ms; }
}

/* Dedicated /panier.html: mirror the contrast system, not the layout. */
body.brand-system.vg-cart-page {
  --vg-cart-ink: #fff9fd;
  --vg-cart-muted: #dbcee0;
  --vg-cart-stroke: rgba(255, 229, 245, .23);
  --vg-cart-rose: #ffcee5;
}
body.brand-system.vg-cart-page :is(
  .vg-cart-title,
  .vg-cart-section-head h2,
  .vg-cart-line h3,
  .vg-cart-line-price,
  .vg-cart-summary h2,
  .vg-cart-total-row strong,
  .vg-cart-suggestions-head h2
) { color: #fff9fd; }
body.brand-system.vg-cart-page :is(
  .vg-cart-subtitle,
  .vg-cart-line-sub,
  .vg-cart-total-row,
  .vg-cart-delivery,
  .vg-cart-secure,
  .vg-cart-line-price small,
  .vg-cart-empty p,
  .vg-cart-suggestions-head p,
  .vg-cart-suggest span,
  .vg-cart-footer small,
  .vg-cart-footer a
) { color: #dbcee0; }
body.brand-system.vg-cart-page :is(
  .vg-cart-kicker,
  .vg-cart-line-kicker,
  .vg-cart-summary-label,
  .vg-cart-suggest small
) { color: #ffd0e6; }
body.brand-system.vg-cart-page .vg-cart-checkout {
  background: #f5c9df;
  border-color: #ffe6f2;
  color: #27182f;
}
body.brand-system.vg-cart-page .vg-cart-checkout:hover:not(:disabled) {
  background: #ffe2ee;
  border-color: #fff5fa;
}
body.brand-system.vg-cart-page .vg-cart-suggest {
  border-color: var(--vg-cart-stroke);
}
body.brand-system.vg-cart-page :is(.vg-cart-summary, .vg-cart-photo) {
  border-color: rgba(255,229,245,.24);
}
@media (max-width: 700px) {
  body.brand-system.vg-cart-page .vg-cart-subtitle {
    font-size: 14px;
    line-height: 1.65;
  }
  body.brand-system.vg-cart-page :is(.vg-cart-delivery,.vg-cart-secure) {
    font-size: 12px;
    line-height: 1.6;
  }
}
