/*
Theme Name: Larysse
Theme URI: https://example.com/larysse
Author: Larysse Team
Author URI: https://example.com
Description: A fully customizable, premium eCommerce theme for nails, jewellery, handbags & accessories. Built for WooCommerce with complete Appearance > Customize control over every text, size, image and layout.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurelia
Tags: e-commerce, woocommerce, nails, jewelry, fashion, custom-header, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Base styles - minimal, CSS variables populated from Customizer

   Palette: black / dark red / gold
   Ratio: ~70% black (structure, text, buttons), ~20% dark red (links, sale,
   hover, section accents), ~10% gold (hairlines, small caps, icons).
   Contrast on the cream canvas (--bg):
     ink    #0f0f0f -> 18.4:1
     brand  #7a1220 ->  9.6:1
     gold-ink #8a6420 -> 4.9:1   (safe for small text)
   Gold on black: #c39a3e -> 7.4:1  (rules, icons, small caps) */
:root {
  --primary: #7a1220;
  --primary-contrast: #faf7f2;
  --bg: #faf7f2;
  --text: #0f0f0f;
  --ink: #0f0f0f;
  --brand: #7a1220;
  --brand-dark: #5a0d18;
  --gold: #c39a3e;
  --gold-ink: #8a6420;
  --line: #e2dbcd;
  --muted: #5c5750;
  --border: #e2dbcd;
  --radius: 0.5rem;
  --container: 1280px;
  --font-base: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  --font-heading: var(--font-base);
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --lh: 1.6;
  --lh-heading: 1.1;
  --header-h: 80px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-base); font-size: var(--fs-base); line-height: var(--lh); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* Visible to assistive tech, removed from the visual layout.
   The theme cannot rely on WP core shipping this class for classic themes. */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }

/* Accessibility */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); height: var(--header-h); display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-md); }
.site-branding { display: flex; align-items: center; gap: var(--space-sm); }
.site-title { font-family: var(--font-heading); font-size: var(--fs-lg); line-height: var(--lh-heading); }
.site-nav ul { display: flex; list-style: none; gap: var(--space-md); align-items: center; }
.site-nav a { font-size: var(--fs-sm); text-transform: var(--nav-transform, none); letter-spacing: var(--nav-spacing, 0); font-weight: var(--nav-weight, 500); }
.header-actions { display: flex; gap: var(--space-sm); align-items: center; }

/* Announcement */
.announcement-bar { background: var(--primary); color: var(--primary-contrast); text-align: center; padding: var(--space-xs) var(--space-md); font-size: var(--fs-sm); display: none; }
.announcement-bar.show { display: block; }

/* Buttons */
.btn, .button, .wc-block-components-button, .woocommerce-button { background: var(--primary); color: var(--primary-contrast); border: 0; border-radius: var(--radius); padding: 0.75rem 1.25rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* Accent rules and small caps */
.rule-gold { border: 0; border-top: 1px solid var(--gold); }
.section-accent { color: var(--brand); }
.eyebrow { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

/* Sections */
.section { padding: var(--space-xl) 0; }
.section-title { font-family: var(--font-heading); font-size: var(--fs-xl); line-height: var(--lh-heading); margin-bottom: var(--space-md); text-align: var(--section-title-align, left); }
.section-desc { color: var(--muted); margin-bottom: var(--space-lg); text-align: var(--section-desc-align, left); max-width: 72ch; }

/* Grid
   `minmax(0, 1fr)` prevents grid blowout: a bare `1fr` resolves to
   `minmax(auto, 1fr)`, so a wide child (long unbroken word, an oversized image,
   a WooCommerce zoom lens) can push a track past the container and create
   horizontal page scroll on phones. */
.grid { display: grid; gap: var(--space-md); }
.cols-1 { grid-template-columns: repeat(1,minmax(0,1fr)); }
.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cols-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
.cols-6 { grid-template-columns: repeat(6,minmax(0,1fr)); }
@media (max-width: 1024px){ .cols-4,.cols-5,.cols-6{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width: 768px){ .cols-2,.cols-3,.cols-4,.cols-5,.cols-6{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 480px){ .cols-2,.cols-3,.cols-4,.cols-5,.cols-6{grid-template-columns:minmax(0,1fr)} }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: var(--card-ar, 4/5); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 0.5rem; }
.card-title { font-size: var(--fs-base); font-weight: 600; line-height: 1.25; }
.card-price { color: var(--muted); font-size: var(--fs-sm); }

/* Footer */
.site-footer { background: #111; color: #f5f5f5; padding: var(--space-xl) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-widgets { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--space-lg); padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 768px){ .footer-widgets{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 480px){ .footer-widgets{grid-template-columns:1fr} }

/* Utils */
.text-center { text-align: center; }
.mb-0{margin-bottom:0!important}
.mb-sm{margin-bottom:var(--space-sm)!important}
.mb-md{margin-bottom:var(--space-md)!important}
.mb-lg{margin-bottom:var(--space-lg)!important}
.hide{display:none!important}
.alignfull{width:100vw;margin-left:calc(50% - 50vw);max-width:none}
.alignwide{max-width:calc(var(--container) + 6rem);margin:0 auto;padding:0 var(--space-md)}

/* Woo */
.woocommerce span.onsale { background: var(--primary); color: var(--primary-contrast); }
.woocommerce ul.products li.product .price { color: var(--text); }
.woocommerce .quantity input.qty { padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius); }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--primary); color: var(--primary-contrast); border-radius: var(--radius); }
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { opacity:.95; }
.woocommerce-cart table.cart td.actions .coupon .input-text, .woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea { border:1px solid var(--border); padding:.65rem .75rem; border-radius:var(--radius); }

/* WhatsApp float */
.wa-float { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 9999; background: #25D366; color: #fff; border-radius: 999px; padding: .75rem 1rem; display: none; align-items: center; gap: .5rem; box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.wa-float.show { display: inline-flex; }
.wa-float:hover { filter: brightness(1.05); }
