/*
Theme Name: The Leigh Witch
Theme URI: https://theleighwitch.com
Author: softwareForge
Template: hello-elementor
Author URI: https://softwareForge.huizies.duckdns.org
Description: The Leigh Witch custom dark child theme. No Elementor dependency.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: the-leigh-witch
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Lato:wght@300;400;700;900&display=swap');

/* Force full-width layout — override hello-elementor parent theme constraints */
.site-content,
.site-main,
.content-area,
.page-content,
#content,
main,
article.page,
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
}

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --lw-black:        #000000;
    --lw-black-soft:   #161616;
    --lw-black-card:   #2C2C2C;
    --lw-gold:         #ffd700;
    --lw-gold-hover:   #ffe44d;
    --lw-gold-dim:     #5a4a00;
    --lw-white:        #ffffff;
    --lw-grey:         #b8b8b8;
    --lw-grey-light:   #d8d8d8;
    --lw-border:       #2d2d2d;
    --lw-border-hover: #5a4a00;
    --lw-font-heading:  'Playfair Display', Georgia, serif;
    --lw-font-body:     'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --lw-radius-sm:    8px;
    --lw-radius-md:    14px;
    --lw-radius-lg:    20px;
    --lw-radius-pill:  999px;
    --lw-max-w:        1200px;
    --lw-font:         var(--lw-font-body);
    --lw-font-size:    16px;
}

/* ==========================================================================
   1. GLOBAL / RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--lw-black) !important;
    color: var(--lw-white);
    font-family: var(--lw-font);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--lw-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--lw-gold-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lw-font-heading);
    color: var(--lw-white);
    line-height: 1.25;
    margin: 0 0 0.75em;
}

p {
    margin: 0 0 1em;
    color: var(--lw-grey-light);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Restore bullet points in content areas (FAQ answers, page content) */
.lw-faq-col-answer ul,
.lw-faq-col-answer ol,
.lw-readings-faq-item ul,
.lw-readings-faq-item ol,
.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5em;
    margin: 12px 0;
}
.lw-faq-col-answer li,
.lw-readings-faq-item li,
.entry-content li {
    margin-bottom: 8px;
    color: var(--lw-grey-light);
    line-height: 1.6;
}

/* Screen-reader only utility */
.screen-reader-text,
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 6px;
    top: 6px;
    width: auto;
    height: auto;
    background: var(--lw-gold);
    color: var(--lw-black);
    padding: 6px 14px;
    border-radius: var(--lw-radius-sm);
    z-index: 100000;
    font-weight: 700;
}

/* Layout container */
.lw-container {
    max-width: var(--lw-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.lw-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: var(--lw-black);
    border-bottom: 1px solid var(--lw-border);
    width: 100%;
}

.lw-header-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
}

/* Logo */
.lw-header-logo a,
.lw-header-logo .custom-logo-link {
    display: block;
    line-height: 1;
}

.lw-header-logo .custom-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.lw-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lw-gold);
    text-decoration: none;
    letter-spacing: 0.03em;
}

/* Nav */
.lw-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.lw-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.lw-nav-menu li {
    position: relative;
}

.lw-nav-menu > li > a {
    display: block;
    padding: 6px 14px;
    color: var(--lw-white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--lw-radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lw-nav-menu > li > a:hover,
.lw-nav-menu > li.current-menu-item > a,
.lw-nav-menu > li.current-menu-ancestor > a {
    color: var(--lw-gold);
    background: rgba(255,215,0,0.07);
}

/* Dropdown sub-menu */
.lw-nav-menu > li {
    position: relative;
}
.lw-nav-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #111;
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-md);
    padding: 16px 0 8px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
/* Invisible bridge to prevent hover gap */
.lw-nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.lw-nav-menu li:hover > .sub-menu,
.lw-nav-menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.lw-nav-menu .sub-menu li a {
    display: block;
    padding: 9px 18px;
    color: var(--lw-grey-light);
    font-size: 0.875rem;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.lw-nav-menu .sub-menu li a:hover {
    color: var(--lw-gold);
    background: rgba(255,215,0,0.06);
}

/* Header Actions */
.lw-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Cart Icon */
.lw-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lw-white);
    width: 42px;
    height: 42px;
    border-radius: var(--lw-radius-pill);
    transition: background 0.2s, color 0.2s;
}

.lw-cart-icon:hover {
    background: rgba(255,255,255,0.08);
    color: var(--lw-gold);
}

.lw-cart-icon svg {
    flex-shrink: 0;
}

.lw-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--lw-gold);
    color: var(--lw-black);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: var(--lw-radius-pill);
    padding: 0 4px;
}

/* Book Now Button */
.lw-btn-booknow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lw-gold);
    color: var(--lw-black) !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0 20px;
    height: 38px;
    border-radius: var(--lw-radius-pill);
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.lw-btn-booknow:hover {
    background: var(--lw-gold-hover);
    transform: translateY(-1px);
}

/* Hamburger */
.lw-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-sm);
    cursor: pointer;
    padding: 6px;
    transition: border-color 0.2s;
}

.lw-hamburger:hover {
    border-color: var(--lw-gold);
}

.lw-hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--lw-white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

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

/* ==========================================================================
   3. FOOTER
   ========================================================================== */

.lw-footer {
    background: var(--lw-black);
    border-top: 1px solid var(--lw-border);
    padding: 40px 0 20px;
    margin-top: auto;
}

.lw-footer-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* Top row: logo left, tiktok right */
.lw-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--lw-border);
    margin-bottom: 16px;
}

.lw-footer-logo .custom-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.lw-footer-logo .custom-logo:hover {
    opacity: 1;
}

.lw-footer-tiktok {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.lw-footer-tiktok-heading {
    color: var(--lw-gold);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.lw-footer-tiktok-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lw-white);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.lw-footer-tiktok-link:hover {
    color: var(--lw-gold);
}

/* Bottom row: copyright left, links right */
.lw-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.lw-footer-copyright {
    font-size: 0.8rem;
    color: var(--lw-grey);
    margin: 0;
}

.lw-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lw-footer-links a {
    color: var(--lw-grey);
    font-size: 0.8rem;
    transition: color 0.2s;
    text-decoration: none;
}

.lw-footer-links a:hover {
    color: var(--lw-gold);
}

.lw-footer-credit {
    font-size: 0.8rem;
    color: var(--lw-grey);
    margin: 0;
}

.lw-footer-credit a {
    color: var(--lw-grey);
    text-decoration: underline;
}

.lw-footer-credit a:hover {
    color: var(--lw-gold);
}

/* ==========================================================================
   4. SITE CONTENT WRAPPER
   ========================================================================== */

.site-content {
    min-height: 60vh;
}

/* ==========================================================================
   5. BUTTONS (global)
   ========================================================================== */

.lw-btn,
.lw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lw-gold);
    color: var(--lw-black) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--lw-radius-pill);
    border: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    white-space: nowrap;
}

.lw-btn:hover,
.lw-btn-primary:hover {
    background: var(--lw-gold-hover);
    transform: translateY(-1px);
}

.lw-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--lw-gold) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: var(--lw-radius-pill);
    border: 1px solid var(--lw-gold);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lw-btn-secondary:hover {
    background: var(--lw-gold);
    color: var(--lw-black) !important;
}

/* ==========================================================================
   6. CARDS (shared across spell category, spellwork, etc.)
   ========================================================================== */

.lw-card {
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 28px 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.lw-card:hover {
    border-color: var(--lw-border-hover);
    box-shadow: 0 4px 24px rgba(90,74,0,0.18);
}

.lw-card-img {
    border-radius: var(--lw-radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16/9;
}

.lw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lw-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lw-white);
    margin: 0 0 8px;
}

.lw-card-desc {
    color: var(--lw-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.lw-card-price {
    color: var(--lw-gold);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.lw-card-actions {
    margin-top: auto;
}

/* Grid */
.lw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.lw-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.lw-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lw-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ==========================================================================
   7. PAGE SECTION UTILITY
   ========================================================================== */

.lw-section {
    padding: 64px 0;
}

.lw-section-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.lw-section-title {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--lw-white);
    text-align: center;
    margin-bottom: 12px;
}

.lw-section-subtitle {
    color: var(--lw-grey);
    text-align: center;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 40px;
}

.lw-gold-text {
    color: var(--lw-gold);
}

.lw-italic {
    font-style: italic;
}

/* Divider */
.lw-divider {
    width: 64px;
    height: 2px;
    background: var(--lw-gold);
    margin: 0 auto 32px;
    border: none;
}

/* ==========================================================================
   8. HOME PAGE
   ========================================================================== */

/* Hero */
.lw-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 80px 20px;
    background: var(--lw-black) url('/wp-content/uploads/2025/10/1.webp') center center / cover no-repeat;
    overflow: hidden;
}

.lw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(90,74,0,0.2) 0%, transparent 65%);
    pointer-events: none;
}

.lw-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: 10%;
}

.lw-hero-eyebrow {
    display: inline-block;
    background: rgba(255,215,0,0.1);
    color: var(--lw-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--lw-radius-pill);
    border: 1px solid rgba(255,215,0,0.25);
    margin-bottom: 24px;
}

.lw-hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--lw-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.lw-hero-subtitle {
    font-size: 1.1rem;
    color: var(--lw-grey-light);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.lw-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.lw-about {
    padding: 72px 0;
}

.lw-about-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
}

.lw-about-image {
    border-radius: var(--lw-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #111;
}

.lw-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lw-about-text .lw-section-title {
    text-align: left;
    margin-bottom: 16px;
}

.lw-about-text p {
    color: var(--lw-grey-light);
    line-height: 1.8;
    font-size: 1rem;
}

.lw-about-text .lw-btn {
    margin-top: 24px;
}

/* Testimonials */
.lw-testimonials {
    background: #040404;
    padding: 72px 0;
}

.lw-testimonials-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}
.lw-testimonials-carousel {
    flex: 1;
    overflow: hidden;
}
.lw-testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}
.lw-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--lw-border);
    border-radius: 50%;
    background: var(--lw-black-soft);
    color: var(--lw-gold);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lw-carousel-btn:hover {
    border-color: var(--lw-gold);
    background: rgba(255,215,0,0.08);
}

.lw-testimonial-card {
    width: 280px;
    min-width: 280px;
    box-sizing: border-box;
    padding: 20px 20px;
    margin: 0 10px;
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    position: relative;
    flex-shrink: 0;
    height: 150px;
    overflow: hidden;
}

.lw-testimonial-card::before {
    display: none;
}
.lw-testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--lw-black-soft));
    pointer-events: none;
}

.lw-testimonial-text {
    color: var(--lw-grey-light);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 8px;
}

.lw-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.lw-testimonial-star {
    color: var(--lw-gold);
    font-size: 0.75rem;
}

/* ==========================================================================
   9. SPELLWORK PAGE
   ========================================================================== */

.lw-spellwork-page {
    padding: 64px 0;
}

.lw-spellwork-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.lw-spellwork-hero {
    text-align: center;
    margin-bottom: 56px;
}

.lw-category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.lw-category-card {
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.lw-category-card:hover {
    border-color: var(--lw-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(90,74,0,0.22);
}

.lw-category-card-img {
    height: 280px;
    overflow: hidden;
    background: #111;
}

.lw-category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lw-category-card:hover .lw-category-card-img img {
    transform: scale(1.06);
}

.lw-category-card-body {
    padding: 22px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lw-category-card-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.lw-category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lw-white);
    margin-bottom: 8px;
}

.lw-category-card-desc {
    color: var(--lw-grey);
    font-size: 0.87rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.lw-category-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lw-gold);
    color: var(--lw-black) !important;
    font-weight: 700;
    font-size: 0.87rem;
    padding: 9px 20px;
    border-radius: var(--lw-radius-pill);
    letter-spacing: 0.03em;
    transition: background 0.2s;
    align-self: center;
}

.lw-category-card-cta:hover {
    background: var(--lw-gold-hover);
}

/* ==========================================================================
   10. SPELL CATEGORY PAGE (product grid)
   ========================================================================== */

.lw-spell-category-page {
    padding: 64px 0;
}

.lw-spell-category-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.lw-spell-category-hero {
    text-align: center;
    margin-bottom: 48px;
}

.lw-spell-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.lw-spell-product-card {
    position: relative;
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.lw-spell-product-card:hover {
    border-color: var(--lw-border-hover);
    box-shadow: 0 6px 28px rgba(90,74,0,0.18);
}

.lw-spell-product-card-img {
    margin: -28px -24px 20px;
    height: 220px;
    overflow: hidden;
}

.lw-spell-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lw-spell-product-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lw-white);
    margin-bottom: 10px;
}

.lw-spell-product-card-desc {
    color: var(--lw-grey);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}

.lw-spell-product-card-price {
    color: var(--lw-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.lw-spell-product-card-actions {
    margin-top: auto;
}

.lw-spell-product-card-actions .leighwitch-open-desc-modal,
.lw-spell-product-card-actions .lw-book-spell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--lw-gold);
    color: var(--lw-black) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: var(--lw-radius-pill);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
    text-align: center;
}

.lw-spell-product-card-actions .leighwitch-open-desc-modal:hover,
.lw-spell-product-card-actions .lw-book-spell-btn:hover {
    background: var(--lw-gold-hover);
    transform: translateY(-1px);
}

.lw-spell-category-empty {
    text-align: center;
    color: var(--lw-grey);
    padding: 48px 0;
    font-size: 1rem;
}

/* ==========================================================================
   11. READINGS PAGE
   ========================================================================== */

.lw-readings-page {
    padding: 64px 0;
}

.lw-readings-inner {
    max-width: var(--lw-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.lw-readings-hero {
    text-align: center;
    margin-bottom: 52px;
}

.lw-readings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.lw-reading-card {
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.lw-reading-card:hover {
    border-color: var(--lw-border-hover);
    box-shadow: 0 6px 28px rgba(90,74,0,0.18);
}

.lw-reading-card-icon {
    font-size: 2.4rem;
}

.lw-reading-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lw-white);
    margin: 0;
}

.lw-reading-card-desc {
    color: var(--lw-grey-light);
    font-size: 0.95rem;
    line-height: 1.75;
    flex: 1;
    margin: 0;
}

.lw-reading-card-price {
    color: var(--lw-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.lw-reading-card .leighwitch-open-desc-modal,
.lw-reading-card .lw-book-reading-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    background: var(--lw-gold);
    color: var(--lw-black) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: var(--lw-radius-pill);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
}

.lw-reading-card .leighwitch-open-desc-modal:hover,
.lw-reading-card .lw-book-reading-btn:hover {
    background: var(--lw-gold-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   12. FAQ PAGE
   ========================================================================== */

.lw-faq-page {
    padding: 64px 0;
}

.lw-faq-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.lw-faq-hero {
    text-align: center;
    margin-bottom: 48px;
}

.lw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lw-faq-item {
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.lw-faq-item[open] {
    border-color: var(--lw-gold-dim);
}

.lw-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--lw-white);
    user-select: none;
    transition: color 0.2s;
}

.lw-faq-item summary::-webkit-details-marker {
    display: none;
}

.lw-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--lw-gold);
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

.lw-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.lw-faq-item summary:hover {
    color: var(--lw-gold);
}

.lw-faq-answer {
    padding: 0 20px 20px;
    color: var(--lw-grey-light);
    font-size: 0.93rem;
    line-height: 1.75;
}

.lw-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   13. CONTACT PAGE
   ========================================================================== */

.lw-contact-page {
    padding: 64px 0;
}

.lw-contact-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.lw-contact-hero {
    text-align: center;
    margin-bottom: 44px;
}

.lw-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--lw-black-soft);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 36px 32px;
}

.lw-contact-form .lw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lw-contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lw-grey-light);
    margin-bottom: 6px;
}

.lw-contact-form input[type="text"],
.lw-contact-form input[type="email"],
.lw-contact-form input[type="tel"],
.lw-contact-form select,
.lw-contact-form textarea {
    width: 100%;
    background: #111;
    color: var(--lw-white);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-sm);
    padding: 12px 14px;
    font-size: 0.93rem;
    font-family: var(--lw-font);
    line-height: 1.5;
    transition: border-color 0.2s;
    outline: none;
}

.lw-contact-form input:focus,
.lw-contact-form select:focus,
.lw-contact-form textarea:focus {
    border-color: var(--lw-gold);
}

.lw-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.lw-contact-form .lw-form-notice {
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--lw-radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--lw-grey-light);
}

.lw-contact-form .lw-contact-submit {
    align-self: flex-start;
}

/* Success / Error messages */
.lw-form-message {
    padding: 14px 18px;
    border-radius: var(--lw-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.lw-form-message.is-success {
    background: rgba(0,200,80,0.1);
    border: 1px solid rgba(0,200,80,0.3);
    color: #5ee88a;
}

.lw-form-message.is-error {
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.3);
    color: #f87171;
}

/* ==========================================================================
   14. WOOCOMMERCE OVERRIDES
   ========================================================================== */

/* Background */
.woocommerce,
.woocommerce-page {
    background: var(--lw-black);
    color: var(--lw-white);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    color: var(--lw-grey);
    font-size: 0.875rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--lw-grey);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--lw-gold);
}

/* Product title */
.woocommerce div.product h1.product_title {
    color: var(--lw-white);
}

.woocommerce div.product .price {
    color: var(--lw-gold);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Add to cart button */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce div.product .cart .single_add_to_cart_button {
    background: var(--lw-gold) !important;
    color: var(--lw-black) !important;
    border: none !important;
    border-radius: var(--lw-radius-pill) !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    transition: background 0.2s !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce div.product .cart .single_add_to_cart_button:hover {
    background: var(--lw-gold-hover) !important;
}

/* ==========================================================================
   CHECKOUT - Comprehensive dark theme
   ========================================================================== */

/* Checkout page background and text */
body.woocommerce-checkout,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout #content,
body.woocommerce-checkout main,
body.woocommerce-checkout article {
    background: #000 !important;
    color: #fff;
}

/* Hide duplicate WooCommerce checkout title (page title already shows) */
.woocommerce-checkout h2:first-of-type {
    display: none;
}

/* Checkout layout — spell info + billing left, order review right */
.woocommerce-checkout .leighwitch-spell-checkout-box,
.woocommerce-checkout .leighwitch-reading-checkout-box {
    margin-bottom: 20px;
}

.woocommerce-checkout #customer_details {
    float: left;
    width: 60%;
    padding-right: 24px;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    float: right;
    width: 38%;
}
.woocommerce-checkout #order_review_heading {
    color: #ffd700 !important;
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: #161616;
    border: 1px solid #5a4a00;
    border-radius: 16px;
    padding: 20px;
}

.woocommerce-checkout #payment {
    clear: both;
}

.woocommerce-checkout form.checkout::after {
    content: '';
    display: table;
    clear: both;
}

/* Checkout heading */
.woocommerce-checkout h3,
.woocommerce-checkout h2 {
    color: #ffd700 !important;
    font-family: var(--lw-font-heading);
}

/* Form labels */
.woocommerce-checkout label,
.woocommerce form .form-row label {
    color: #d8d8d8 !important;
    font-size: 0.9rem;
}

/* All form inputs */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="date"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="search"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .input-text,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #ffd700 !important;
    outline: none !important;
}

/* Select2 dropdown (country/state) */
.select2-container--default .select2-selection--single {
    background: #111 !important;
    border-color: #333 !important;
    height: auto !important;
    padding: 6px 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
}
.select2-dropdown {
    background: #111 !important;
    border-color: #333 !important;
}
.select2-results__option {
    color: #fff !important;
}
.select2-results__option--highlighted {
    background: #ffd700 !important;
    color: #000 !important;
}

/* Order review card */
.woocommerce-checkout #order_review {
    background: #161616;
    border: 1px solid #5a4a00;
    border-radius: 16px;
    padding: 24px;
}
.woocommerce table.shop_table {
    border-color: #2d2d2d;
    color: #fff;
}
.woocommerce table.shop_table th {
    color: #ffd700;
    background: transparent;
    border-color: #2d2d2d;
}
.woocommerce table.shop_table td {
    border-color: #2d2d2d;
    color: #fff;
}
.woocommerce table.shop_table .order-total td {
    color: #ffd700;
    font-weight: 700;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: #161616 !important;
    border: 1px solid #2d2d2d;
    border-radius: 14px;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom-color: #2d2d2d;
}
.woocommerce-checkout #payment ul.payment_methods li {
    background: transparent;
    border-color: #2d2d2d;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    color: #fff !important;
}
.woocommerce-checkout #payment div.payment_box {
    background: #111 !important;
    color: #b8b8b8;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #111;
}

/* Place order button */
.woocommerce-checkout #place_order {
    background: #ffd700 !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    cursor: pointer;
}
.woocommerce-checkout #place_order:hover {
    background: #ffe44d !important;
}

/* WooCommerce notices */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    background: rgba(255, 215, 0, 0.08);
    border-color: #5a4a00;
    color: #f6e8a8;
}
.woocommerce-checkout .woocommerce-error {
    background: rgba(229, 57, 53, 0.1);
    border-color: #e53935;
    color: #ff8a80;
}

/* Privacy text */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: #888;
}
.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #ffd700;
}

/* Remove/quantity buttons in order review */
.woocommerce-checkout .product-remove a,
.woocommerce-checkout .product-quantity input {
    background: #111 !important;
    color: #fff !important;
    border-color: #333 !important;
}

/* Billing details card */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    background: #161616;
    border: 1px solid #5a4a00;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Payment section card */
.woocommerce-checkout #payment {
    border: 1px solid #5a4a00 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-top: 16px;
}

/* Responsive checkout */
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
}

/* WC container wrapper */
.lw-wc-content {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ==========================================================================
   15. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .lw-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .lw-about-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .lw-testimonial-card { width: 240px; min-width: 240px; }
    .lw-hero { text-align: center; justify-content: center; }
    .lw-hero-inner { margin-left: auto; margin-right: auto; }
    .lw-hero::after { width: 100%; opacity: 0.15; }

    /* Header: show hamburger, hide nav by default */
    .lw-hamburger {
        display: flex;
    }

    .lw-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #0a0a0a;
        border-bottom: 1px solid var(--lw-border);
        padding: 16px 20px;
        z-index: 8999;
    }

    .lw-nav.is-open {
        display: block;
    }

    .lw-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .lw-nav-menu > li > a {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .lw-nav-menu .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--lw-border);
        border-radius: 0;
        background: transparent;
        margin-left: 16px;
        padding: 4px 0;
    }

    .lw-nav-menu li:hover > .sub-menu,
    .lw-nav-menu li:focus-within > .sub-menu {
        display: none;
    }

    .lw-nav-menu .sub-menu li a {
        padding: 8px 16px;
    }

    .lw-header-inner {
        position: relative;
    }

    /* Layout */
    .lw-about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lw-about-image {
        aspect-ratio: 4/3;
    }

    .lw-about-text .lw-section-title {
        text-align: center;
    }

    .lw-about-text .lw-btn {
        display: block;
        text-align: center;
    }

    .lw-readings-grid {
        grid-template-columns: 1fr;
    }

    .lw-grid-2,
    .lw-grid-3,
    .lw-grid-4 {
        grid-template-columns: 1fr;
    }

    .lw-contact-form .lw-form-row {
        grid-template-columns: 1fr;
    }

    .lw-contact-form {
        padding: 24px 20px;
    }

    .lw-hero {
        min-height: 60vh;
        padding: 60px 20px;
    }

    .lw-section {
        padding: 44px 0;
    }

    .lw-btn-booknow {
        display: none;
    }
}

@media (max-width: 480px) {
    .lw-testimonial-card { width: 250px; min-width: 250px; }
    .lw-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .lw-category-cards {
        grid-template-columns: 1fr 1fr;
    }

    .lw-spell-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Uniform product thumbnails on cart and shop pages */
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img,
.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Force uniform product grid images */
.wc-block-grid__product-image img.attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
}
.wc-block-grid__product {
    overflow: hidden;
}

/* Hide orphaned OR separator on cart page */
.woocommerce-cart .wc-block-components-express-payment--cart,
.woocommerce-cart .wc-block-components-express-payment-continue-rule,
.woocommerce-cart .wc-block-components-express-payment {
    display: none !important;
}

/* Hide express checkout on product pages - customers must go through cart/checkout */
body.single-product #wc-stripe-express-checkout-element,
body.single-product .wc-stripe-express-checkout-element--separator,
body.single-product .ppc-button-wrapper,
body.single-product #ppc-button-ppcp-gateway,
body.single-product .woocommerce-paypal-payments-button-container {
    display: none !important;
}

/* Hide the default WooCommerce checkout title (we use our own) */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: #5a4a00 !important;
    color: #f6e8a8 !important;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #ffd700 !important;
}

/* Coupon form styling */
.woocommerce-checkout .checkout_coupon {
    background: #161616 !important;
    border: 1px solid #5a4a00 !important;
    border-radius: 16px !important;
    padding: 20px !important;
}
.woocommerce-checkout .checkout_coupon .form-row input {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
}
.woocommerce-checkout .checkout_coupon .form-row .button {
    background: #ffd700 !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

/* Hide OR separator on checkout */
.woocommerce-checkout .wc-stripe-express-checkout-element--separator {
    display: none !important;
}
