/* =========================================================================
   Cinema Art Theme — Main Stylesheet
   Netflix-inspired dark UI for WooCommerce
   ========================================================================= */

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --elevated: #1f1f22;
    --accent: #E50914;
    --accent-hover: #F40612;
    --text: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { background: #0a0a0a; }
html, body, body.cinema-dark { background: var(--bg) !important; color: var(--text); font-family: 'Inter', -apple-system, sans-serif; margin: 0; padding: 0; }
body.cinema-dark { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.text-red { color: var(--accent); }
.cinema-dark h1, .cinema-dark h2, .cinema-dark h3, .cinema-dark h4 { color: #fff; }

/* WordPress core resets — avoid grey backgrounds and bordered containers */
.cinema-dark .site-content, .cinema-dark .site-main, .cinema-dark .content-area, .cinema-dark #content { background: var(--bg); padding: 0; margin: 0; max-width: none; }
.cinema-dark .entry-header, .cinema-dark .page-header, .cinema-dark .entry-meta, .cinema-dark .breadcrumbs { display: none; }
.cinema-dark .entry-content { max-width: none; margin: 0; padding: 0; }

.ca-container { max-width: 1600px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ca-container { padding: 0 32px; } }
@media (min-width: 1024px) { .ca-container { padding: 0 48px; } }

/* --------------------------------------------------------------- Header */
.ca-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); transition: background 0.3s; }
.ca-header.is-scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
/* WordPress admin bar compensation */
body.admin-bar .ca-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .ca-header { top: 46px; } }
body.admin-bar .ca-main { padding-top: 0; }
.ca-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
@media (min-width: 768px) { .ca-header-inner { height: 80px; } }
.ca-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
@media (min-width: 768px) { .ca-header-left { gap: 32px; } }
.ca-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (min-width: 768px) { .ca-header-right { gap: 18px; } }

.ca-logo { display: flex; align-items: center; gap: 4px; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.ca-logo-mark { color: var(--accent); }
.ca-logo-mark-2 { color: #fff; font-weight: 300; }
@media (min-width: 768px) { .ca-logo { font-size: 28px; } }
.ca-logo img { max-height: 40px; width: auto; }

.ca-nav { display: none; }
@media (min-width: 1024px) { .ca-nav { display: block; flex: 1; } }
.ca-nav-list, .ca-nav-list ul, .ca-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; flex-wrap: nowrap; }
.ca-nav-list li { margin: 0; padding: 0; }
.ca-nav-list a, .ca-nav a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; transition: color 0.2s; text-decoration: none; padding: 4px 0; display: inline-block; }
.ca-nav-list a:hover, .ca-nav a:hover { color: #fff; }

/* Mobile menu */
.ca-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .ca-mobile-toggle { display: none; } }
.ca-mobile-menu[hidden] { display: none !important; }
.ca-mobile-menu { position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 49; max-height: calc(100vh - 64px); overflow-y: auto; }
body.admin-bar .ca-mobile-menu { top: 96px; }
@media screen and (max-width: 782px) { body.admin-bar .ca-mobile-menu { top: 110px; } }
@media (min-width: 768px) { .ca-mobile-menu { top: 80px; } body.admin-bar .ca-mobile-menu { top: 112px; } }
.ca-mobile-nav-list { list-style: none; margin: 0; padding: 12px 0; }
.ca-mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.ca-mobile-nav-list a { display: block; padding: 14px 24px; color: #fff; font-size: 16px; font-weight: 500; }
.ca-mobile-nav-list a:hover { background: rgba(255,255,255,0.04); color: var(--accent); }
.ca-mobile-nav-list .sub-menu { list-style: none; margin: 0; padding: 0 0 4px 16px; background: rgba(255,255,255,0.02); }
.ca-mobile-nav-list .sub-menu a { padding: 10px 24px; font-size: 14px; color: rgba(255,255,255,0.75); }

.ca-icon-btn { position: relative; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; justify-content: center; padding: 4px; }
.ca-icon-btn:hover { color: #fff; }
.ca-cart-count, .ca-wish-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.ca-wish-count:empty, .ca-cart-count[data-count="0"] { display: none; }

/* Search overlay */
.ca-search-overlay { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); }
.ca-search-overlay.is-open { display: flex; align-items: flex-start; padding-top: 80px; }
.ca-search-inner { width: 100%; max-width: 800px; margin: 0 auto; }
.ca-search-inner input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 16px 0; font-size: 32px; color: #fff; outline: none; font-family: 'Outfit', sans-serif; }
.ca-search-inner input:focus { border-color: var(--accent); }
.ca-search-close { position: absolute; top: 24px; right: 32px; font-size: 24px; color: rgba(255,255,255,0.7); }

/* Reset main element for WP page templates */
.ca-main { min-height: 60vh; padding-top: 0; margin: 0; }
.ca-main > .ca-hero:first-child { margin-top: 0; }
body.admin-bar.is-front .ca-hero { padding-top: 32px; }

/* Override WP/WC global page styles that may break layout */
.cinema-dark .entry-content > p,
.cinema-dark .ca-main > p:empty { display: none; }
.cinema-dark .page .entry-header,
.cinema-dark .page .page-header { display: none; }
.cinema-dark .ca-main .entry-content { margin: 0; padding: 0; max-width: none; }

/* --------------------------------------------------------------- Hero */
.ca-hero { position: relative; height: 88vh; min-height: 600px; max-height: 920px; width: 100%; overflow: hidden; margin-top: 0; background: #050505; }
@media (min-width: 768px) { .ca-hero { height: 92vh; } }
body.admin-bar .ca-hero { max-height: 880px; }
.ca-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; pointer-events: none; }
.ca-hero-slide.is-active { opacity: 1; pointer-events: auto; }
.ca-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.ca-hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.6) 50%, transparent 100%); }
.ca-hero-side-fade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.85), rgba(10,10,10,0.4) 40%, transparent); display: none; }
@media (min-width: 768px) { .ca-hero-side-fade { display: block; } }
.ca-hero-content { position: relative; height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px 80px; display: flex; align-items: flex-end; z-index: 2; }
@media (min-width: 768px) { .ca-hero-content { padding: 0 32px 128px; } }
@media (min-width: 1024px) { .ca-hero-content { padding: 0 48px 128px; } }
.ca-hero-text { position: absolute; bottom: 80px; left: 16px; right: 16px; max-width: 700px; opacity: 0; pointer-events: none; transition: opacity 0.6s; }
@media (min-width: 768px) { .ca-hero-text { bottom: 128px; left: 32px; } }
@media (min-width: 1024px) { .ca-hero-text { left: 48px; } }
.ca-hero-text.is-active { opacity: 1; pointer-events: auto; }
.ca-hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.ca-hero-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 40px; line-height: 1.05; color: #fff; margin: 0; letter-spacing: -0.02em; }
@media (min-width: 640px) { .ca-hero-title { font-size: 56px; } }
@media (min-width: 1024px) { .ca-hero-title { font-size: 64px; } }
.ca-hero-desc { color: rgba(255,255,255,0.75); margin: 20px 0; max-width: 560px; line-height: 1.6; }
.ca-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ca-hero-price { color: rgba(255,255,255,0.85); font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; margin-left: 8px; display: none; }
@media (min-width: 768px) { .ca-hero-price { display: inline-block; } }

.ca-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 4px; font-weight: 700; transition: background 0.2s, color 0.2s; }
.ca-btn-light { background: #fff; color: #000; }
.ca-btn-light:hover { background: rgba(255,255,255,0.9); }
.ca-btn-ghost { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(8px); }
.ca-btn-ghost:hover { background: rgba(255,255,255,0.25); }
.ca-btn-primary { background: var(--accent); color: #fff; }
.ca-btn-primary:hover { background: var(--accent-hover); }

/* Hero controls */
.ca-hero-controls { position: absolute; bottom: 96px; right: 16px; display: flex; align-items: center; gap: 8px; z-index: 8; }
@media (min-width: 768px) { .ca-hero-controls { bottom: 140px; right: 32px; } }
@media (min-width: 1024px) { .ca-hero-controls { right: 48px; } }
.ca-hero-ctrl { width: 36px; height: 36px; border-radius: 999px; background: rgba(0,0,0,0.65); backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; border: 1px solid rgba(255,255,255,0.15); }
.ca-hero-ctrl:hover { background: rgba(0,0,0,0.85); color: #fff; }
.ca-hero-dots { display: flex; gap: 4px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); }
.ca-hero-dot { padding: 8px 4px; touch-action: manipulation; }
.ca-hero-dot span { display: block; width: 10px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.5); transition: all 0.2s; }
.ca-hero-dot.is-active span { width: 32px; background: var(--accent); }
.ca-hero-dot:hover span { background: rgba(255,255,255,0.85); }
.ca-hero-arrows { display: none; gap: 6px; margin-left: 4px; }
@media (min-width: 640px) { .ca-hero-arrows { display: flex; } }

/* Fade visibility — slightly less opaque so hero image is visible */
.ca-hero-fade { background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.45) 45%, transparent 80%); }

/* --------------------------------------------------------------- Rows */
.ca-rows-wrap { position: relative; margin-top: -60px; z-index: 5; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; background: var(--bg); }
@media (min-width: 768px) { .ca-rows-wrap { gap: 40px; margin-top: -80px; } }
.ca-row { position: relative; }
.ca-row-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; }
@media (min-width: 768px) { .ca-row-head { padding: 0 32px; } }
@media (min-width: 1024px) { .ca-row-head { padding: 0 48px; } }
.ca-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.ca-row-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; color: #fff; margin: 0; letter-spacing: -0.01em; }
@media (min-width: 768px) { .ca-row-title { font-size: 28px; } }

.ca-row-scroller-wrap { position: relative; }
.ca-row-scroller { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 16px 16px 24px; scrollbar-width: none; -ms-overflow-style: none; }
.ca-row-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .ca-row-scroller { gap: 16px; padding: 16px 32px 24px; } }
@media (min-width: 1024px) { .ca-row-scroller { padding: 16px 48px 24px; } }
.ca-row-arrow { display: none; position: absolute; top: 0; bottom: 24px; width: 48px; z-index: 5; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity 0.2s; }
@media (min-width: 768px) { .ca-row-arrow { display: flex; width: 64px; } }
.ca-row-prev { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); }
.ca-row-next { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.8), transparent); }
.ca-row-scroller-wrap:hover .ca-row-arrow { opacity: 1; }

/* Cards */
.ca-card { position: relative; flex: 0 0 auto; width: 160px; aspect-ratio: 2 / 3; background: var(--surface); border-radius: 4px; overflow: hidden; transition: transform 0.3s; }
@media (min-width: 640px) { .ca-card { width: 200px; } }
@media (min-width: 768px) { .ca-card { width: 240px; } }
@media (min-width: 1024px) { .ca-card { width: 280px; } }
.ca-card:hover { transform: scale(1.05); z-index: 5; }
.ca-card-link { display: block; width: 100%; height: 100%; position: relative; }
.ca-card img { width: 100%; height: 100%; object-fit: cover; }
.ca-tile-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 50%, transparent); opacity: 0; transition: opacity 0.3s; }
.ca-card:hover .ca-tile-overlay { opacity: 1; }
.ca-tile-title { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-tile-price { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; margin-top: 4px; }

.ca-badge { position: absolute; top: 8px; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2; }
.ca-badge-new { left: 8px; background: var(--accent); color: #fff; }
.ca-badge-stock { left: 8px; bottom: 8px; top: auto; background: rgba(234, 179, 8, 0.95); color: #000; animation: caPulse 2s infinite; }
.ca-badge-sale { right: 8px; background: #fff; color: #000; }
@keyframes caPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.ca-wish-btn, .ca-quick-add { position: absolute; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s, background 0.2s; z-index: 3; }
.ca-wish-btn { top: 8px; right: 8px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: #fff; }
.ca-wish-btn.is-liked { opacity: 1; color: var(--accent); }
.ca-wish-btn.is-liked svg { fill: currentColor; }
.ca-quick-add { bottom: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; line-height: 1; }
.ca-quick-add:hover { background: var(--accent-hover); }
.ca-card:hover .ca-wish-btn, .ca-card:hover .ca-quick-add { opacity: 1; }

/* Top 10 row */
.ca-top10-scroller { padding-left: 16px; padding-right: 32px; align-items: flex-end; gap: 32px; }
@media (min-width: 768px) { .ca-top10-scroller { padding-left: 48px; gap: 48px; } }
.ca-top10-card { position: relative; display: flex; align-items: flex-end; gap: 0; flex: 0 0 auto; }
.ca-top10-number { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: clamp(160px, 22vw, 300px); color: #050505; -webkit-text-stroke: 2px rgba(255,255,255,0.92); line-height: 0.82; letter-spacing: -0.09em; display: inline-block; min-width: 0.5em; text-align: center; margin-right: -24px; user-select: none; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)); transition: -webkit-text-stroke-color 0.3s; }
@media (min-width: 768px) { .ca-top10-number { margin-right: -40px; } }
.ca-top10-card:hover .ca-top10-number { -webkit-text-stroke-color: var(--accent); }
.ca-top10-tile { position: relative; width: 130px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--surface); flex-shrink: 0; z-index: 2; box-shadow: 0 0 0 1px rgba(255,255,255,0.05); }
@media (min-width: 640px) { .ca-top10-tile { width: 160px; } }
@media (min-width: 768px) { .ca-top10-tile { width: 200px; } }
@media (min-width: 1024px) { .ca-top10-tile { width: 230px; } }
.ca-top10-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ca-top10-card:hover .ca-top10-tile img { transform: scale(1.05); }

/* --------------------------------------------------------------- Shop archive */
.ca-shop-wrap { padding-top: 96px; padding-bottom: 80px; }
.ca-archive-head { margin-bottom: 32px; }
.ca-page-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 36px; color: #fff; margin: 0; letter-spacing: -0.02em; }
@media (min-width: 768px) { .ca-page-title { font-size: 56px; } }
ul.products { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
ul.products li.product { background: var(--surface); border-radius: 4px; overflow: hidden; position: relative; }
ul.products li.product a { color: inherit; }
ul.products .woocommerce-loop-product__title { padding: 16px 16px 4px; font-family: 'Outfit', sans-serif; font-weight: 600; color: #fff; font-size: 16px; margin: 0; }
ul.products .price { padding: 0 16px 16px; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; }
ul.products .price del { color: rgba(255,255,255,0.4); margin-right: 8px; font-weight: 400; }
ul.products .button { margin: 0 16px 16px; background: var(--accent); color: #fff; border-radius: 4px; padding: 8px 16px; font-weight: 700; display: inline-block; transition: background 0.2s; border: 0; cursor: pointer; }
ul.products .button:hover { background: var(--accent-hover); }
.woocommerce-ordering { margin-bottom: 24px; }
.woocommerce-ordering select { background: var(--surface); color: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: 4px; }

/* --------------------------------------------------------------- PDP (Single product) */
.single-product .ca-shop-wrap { padding-top: 96px; }
.single-product div.product { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .single-product div.product { grid-template-columns: 1fr 1fr; gap: 64px; } }
.single-product .product_title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 36px; color: #fff; margin: 0 0 12px; letter-spacing: -0.02em; }
@media (min-width: 768px) { .single-product .product_title { font-size: 48px; } }
.single-product .price { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 32px; color: #fff; margin: 16px 0; }
.single-product .price del { color: rgba(255,255,255,0.4); font-weight: 400; margin-right: 12px; }
.single-product .woocommerce-product-details__short-description, .single-product .woocommerce-Tabs-panel { color: var(--text-muted); line-height: 1.6; }
.single-product .cart .quantity input { background: var(--bg); border: 1px solid var(--border); color: #fff; padding: 10px; border-radius: 4px; width: 80px; text-align: center; }
.single-product .single_add_to_cart_button { background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 4px; font-weight: 700; border: 0; font-size: 16px; cursor: pointer; transition: background 0.2s; }
.single-product .single_add_to_cart_button:hover { background: var(--accent-hover); }
.single-product .variations select { background: var(--bg); border: 1px solid var(--border); color: #fff; padding: 10px; border-radius: 4px; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.woocommerce-tabs ul.tabs a { color: var(--text-muted); padding-bottom: 8px; display: inline-block; }
.related.products h2, .upsells.products h2 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 24px; margin: 48px 0 24px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface); color: #fff; border-left: 3px solid var(--accent); padding: 12px 16px; margin-bottom: 16px; list-style: none; }
.woocommerce-message a.button { background: var(--accent); padding: 6px 12px; border-radius: 4px; color: #fff; }

/* --------------------------------------------------------------- Cart & Checkout */
.ca-wc-page { padding-top: 96px; padding-bottom: 80px; }
.woocommerce-page h1, .woocommerce-cart h1 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 36px; }
.woocommerce table.shop_table { width: 100%; background: var(--surface); border-radius: 4px; border-collapse: collapse; color: var(--text); border: 1px solid var(--border); }
.woocommerce table.shop_table th { padding: 14px; text-align: left; font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; border-bottom: 1px solid var(--border); }
.woocommerce table.shop_table td { padding: 14px; border-bottom: 1px solid var(--border); }
.woocommerce table.shop_table .button { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 4px; border: 0; }
.cart_totals h2, .order_details h2, .woocommerce h2 { color: #fff; font-family: 'Outfit', sans-serif; }
.checkout input, .checkout textarea, .checkout select, .form-row input.input-text { background: var(--bg) !important; border: 1px solid var(--border) !important; color: #fff !important; padding: 10px !important; border-radius: 4px !important; }
.checkout .form-row label, form .form-row label { color: var(--text-muted); font-size: 13px; }
#payment ul.payment_methods { background: var(--surface); padding: 16px; border-radius: 4px; list-style: none; }
#payment ul.payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.woocommerce-checkout #payment div.payment_box { background: var(--bg); color: var(--text-muted); margin-top: 8px; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 4px; border: 0; font-weight: 700; transition: background 0.2s; }
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent-hover); color: #fff; }

/* --------------------------------------------------------------- Newsletter Popup */
.ca-newsletter-popup[hidden] { display: none !important; }
.ca-newsletter-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ca-newsletter-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.ca-newsletter-modal { position: relative; background: #0f0f10; border: 1px solid var(--border); border-radius: 8px; max-width: 460px; width: 100%; padding: 32px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.ca-newsletter-modal::before { content:''; position: absolute; top: -80px; right: -80px; width: 200px; height: 200px; background: rgba(229,9,20,0.2); filter: blur(80px); pointer-events: none; }
.ca-newsletter-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; }
.ca-newsletter-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ca-newsletter-eyebrow { display: inline-block; padding: 4px 12px; background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.3); border-radius: 999px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.ca-newsletter-modal h2 { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 28px; color: #fff; margin: 0 0 16px; line-height: 1.1; letter-spacing: -0.02em; }
.ca-newsletter-modal p { color: rgba(255,255,255,0.65); margin: 0 0 16px; line-height: 1.5; font-size: 14px; }
.ca-newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.ca-newsletter-form input { background: var(--bg); border: 1px solid var(--border); color: #fff; padding: 12px 16px; border-radius: 4px; outline: none; transition: border-color 0.2s; }
.ca-newsletter-form input:focus { border-color: var(--accent); }
.ca-newsletter-form button { padding: 12px; width: 100%; }
.ca-newsletter-fineprint { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 12px; }
.ca-newsletter-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; font-size: 28px; margin-bottom: 16px; }
.ca-newsletter-code { width: 100%; background: var(--bg); border: 2px dashed rgba(229,9,20,0.6); padding: 16px; border-radius: 4px; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 24px; color: var(--accent); letter-spacing: 0.15em; display: flex; justify-content: space-between; align-items: center; transition: border-color 0.2s; }
.ca-newsletter-code:hover { border-color: var(--accent); }
.ca-copy-hint { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); letter-spacing: normal; }

/* --------------------------------------------------------------- Toast */
.ca-toast { position: fixed; top: 96px; right: 16px; z-index: 100; background: var(--surface); color: #fff; padding: 12px 16px; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.5); animation: caSlideIn 0.3s ease-out; }
@keyframes caSlideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --------------------------------------------------------------- Legal */
.ca-legal-wrap { padding-top: 96px; padding-bottom: 80px; max-width: 800px; }
.ca-legal { color: var(--text-muted); }
.ca-legal h2, .ca-legal h3 { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; margin-top: 32px; }
.ca-legal-body { line-height: 1.7; }
.ca-back-link { color: var(--text-muted); font-size: 12px; }
.ca-back-link:hover { color: #fff; }

/* --------------------------------------------------------------- Footer */
.ca-footer { background: var(--bg); border-top: 1px solid var(--border); margin-top: 80px; padding: 48px 0 24px; }
.ca-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 48px; }
@media (min-width: 768px) { .ca-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.ca-footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .ca-footer-brand { grid-column: auto; } }
.ca-footer-brand p { color: var(--text-muted); font-size: 13px; max-width: 280px; margin-top: 12px; line-height: 1.6; }
.footer-widget-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.5); margin: 0 0 16px; }
.ca-footer-list { list-style: none; padding: 0; margin: 0; }
.ca-footer-list li { margin-bottom: 8px; }
.ca-footer-list a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.ca-footer-list a:hover { color: #fff; }
.ca-footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,0.4); font-size: 12px; }
@media (min-width: 768px) { .ca-footer-bottom { flex-direction: row; justify-content: space-between; } }

/* --------------------------------------------------------------- My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { color: var(--text-muted); padding: 8px 0; display: block; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--accent); }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------- Germanized compatibility */
.ca-card-legal { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,0.55); margin-top: 4px; }
.ca-card-legal a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.ca-card-unit-price { display: block; font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.wc-gzd-legal-info { font-size: 12px; color: var(--text-muted); }
.wc-gzd-legal-info a { color: var(--accent); }
.ca-de-legal-notice { padding: 12px 14px; margin: 16px 0; border-left: 3px solid var(--accent); background: rgba(229,9,20,0.07); border-radius: 4px; font-size: 13px; color: var(--text); }
.ca-de-legal-notice strong { color: #fff; }
.ca-trusted-shops-placeholder { min-height: 0; }
/* Germanized form/checkbox styling on dark theme */
.woocommerce-checkout .wc-gzd-legal-checkbox-text,
.woocommerce-checkout .legal { color: var(--text-muted); font-size: 13px; }
.woocommerce-checkout .wc-gzd-legal-checkbox-text a,
.woocommerce-checkout .legal a { color: var(--accent); text-decoration: underline; }

