/*
Theme Name: Crissona
Theme URI: https://www.crissona-entertainment-llc.com/
Author: Crissona Entertainment
Description: Dark streetwear block theme for Crissona Entertainment, built for WooCommerce.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: crissona
*/

/* Most styling lives in theme.json. These rules cover what theme.json can't. */

body { -webkit-font-smoothing: antialiased; }

/* Sticky dark header with a thin accent line */
.cr-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(10,10,12,.88) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.cr-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--accent), var(--wp--preset--color--green), transparent); opacity: .6; }
.cr-logo { letter-spacing: .08em; }
.cr-logo a { text-decoration: none; }
.cr-logo .cr-logo-sub { color: var(--wp--preset--color--accent); }

/* Navigation links */
.cr-header .wp-block-navigation a { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; text-decoration: none; }
.cr-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Hero */
.cr-hero { position: relative; overflow: hidden; }
.cr-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 15% 20%, rgba(227,23,95,.35), transparent 60%),
  radial-gradient(50% 70% at 90% 80%, rgba(62,224,122,.18), transparent 60%);
  pointer-events: none; z-index: 0; }
.cr-hero > * { position: relative; z-index: 1; }
.cr-hero h1 { line-height: .9; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.cr-eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 700; color: var(--wp--preset--color--accent); }

/* Buttons */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(227,23,95,.35); }
.is-style-outline .wp-block-button__link:hover { box-shadow: 0 10px 30px rgba(255,255,255,.12); }

/* Brand cards */
.cr-brand { position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.cr-brand:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--accent); }
.cr-brand img { aspect-ratio: 1/1; object-fit: cover; width: 100%; display: block; background: #fff; }
.cr-brand h3 a { text-decoration: none; }
@media (max-width: 781px) {
  .wp-block-columns:has(> .cr-brand) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cr-brand h3 { font-size: 1.2rem !important; }
}

/* Product grids (WooCommerce shortcode + blocks): white tiles on the dark page */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 12px 12px 18px !important; transition: transform .2s ease, border-color .2s ease; }
.woocommerce ul.products li.product:hover,
.wc-block-product:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--accent); }
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img,
.wc-block-product img { background: #fff; border-radius: 10px; margin-bottom: 12px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--body); font-size: 1rem !important; font-weight: 600; color: var(--wp--preset--color--text); }
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--wp--preset--color--accent) !important; font-weight: 700; }
.woocommerce ul.products li.product .button { border-radius: 999px; }

.wc-block-grid__product a, .wc-block-product a, .woocommerce ul.products li.product a { text-decoration: none; }
.wc-block-grid__product-title { font-weight: 600; font-size: .98rem; color: var(--wp--preset--color--text); }
.wc-block-grid__product-price { color: var(--wp--preset--color--accent); font-weight: 700; }

/* WooCommerce buttons pick up the accent */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
  background: var(--wp--preset--color--accent) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-weight: 700; letter-spacing: .04em; }
.woocommerce a.button:hover, .woocommerce button.button:hover { filter: brightness(1.1); }

/* Forms on the dark background */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], textarea, select,
.wc-block-components-text-input input { background: #121216 !important; color: var(--wp--preset--color--text) !important; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 8px; }

/* Promo banner */
.cr-promo { border: 1px solid var(--wp--preset--color--line); border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #1a0b10, #0b0b0d 60%); }
.cr-promo img { border-radius: 12px; }

/* Marquee strip */
.cr-strip { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.cr-strip p { display: inline-block; animation: cr-marquee 28s linear infinite; }
@keyframes cr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cr-strip p { animation: none; } }

/* Footer */
.cr-footer a { text-decoration: none; }
.cr-footer a:hover { color: var(--wp--preset--color--accent); }
