/*
Theme Name: iamspides – DirtySexyDark
Theme URI: https://iamspides.com/
Author: Spides
Author URI: https://iamspides.com/
Description: A dark, sexy WordPress theme for iamspides. Minimal, on-brand, Gutenberg friendly.
Version: 1.0
Text Domain: iamspides-dirtysexydark
*/

/* =============================================================
01. IMPORTS + DESIGN TOKENS
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');

:root {
    /* Backgrounds */
    --iam-bg-main: #050309;
    --iam-bg-elevated: #0b0713;
    --iam-bg-panel: #120a1d;
    --iam-bg-hero: #050309;
    --iam-bg-woo: #05020a;
    --iam-bg-control: rgba(5, 3, 9, 0.86);
    --iam-bg-option: #29292d;

    /* Accents */
    --iam-accent: #ff2f92;
    --iam-accent-soft: #ff73c4;
    --iam-accent-electric: #5ce1ff;
    --iam-danger: #ff2f4f;
    --iam-purple: #8b2cff;

    /* Text */
    --iam-text-main: #f6f2ff;
    --iam-text-bright: #f5f0ff;
    --iam-text-muted: #a49bb8;
    --iam-text-soft: #ccc3e3;
    --iam-text-price: #c7b6ff;

    /* Borders */
    --iam-border-soft: rgba(255, 255, 255, 0.06);
    --iam-border-control: rgba(255, 255, 255, 0.18);
    --iam-border-medium: rgba(255, 255, 255, 0.45);

    /* Focus / Glow */
    --iam-focus-ring: rgba(255, 47, 146, 0.22);
    --iam-glow-accent: rgba(255, 47, 146, 0.35);

    /* Shape */
    --iam-radius-soft: 10px;
    --iam-radius-strong: 18px;

    /* Shadows */
    --iam-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);

    /* Layout */
    --iam-max-width: 1200px;
    --iam-max-width-wide: 1400px;

    /* Typography */
    --iam-font-ui:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --iam-font-display:
        "Cormorant Garamond",
        "Times New Roman",
        serif;

    --iam-font-hero:
        "Aboreto",
        "Cormorant Garamond",
        "Times New Roman",
        serif;
}

/* =============================================================
02. RESET + GLOBAL
============================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            circle at top,
            #14081f 0,
            var(--iam-bg-main) 55%,
            #020106 100%
        );

    color: var(--iam-text-main);
    font-family: var(--iam-font-ui);
}

#iam-main-content {
    scroll-margin-top: 90px;
    margin-top: -1rem;
}

.little { 
    font-size: .85em;
}

.italic {
    font-style: italic;
}

/* =============================================================
03. GLOBAL LINKS + INTERACTIVE ELEMENTS
============================================================= */

a {
    color: var(--iam-accent-soft);
    text-decoration: none;
    text-underline-offset: 0.22em;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease,
        border-color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--iam-accent-electric);
    text-shadow: 0 0 8px rgba(92, 225, 255, 0.35);
}

a:focus-visible {
    outline: 1px solid var(--iam-accent-electric);
    outline-offset: 3px;
    border-radius: 3px;
}

/*
 * Interactive controls provide their own hover/focus treatment,
 * so prevent the global link glow from leaking into them.
 */
.primary-nav a,
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    text-shadow: none;
}

.little { 
    font-size: .85em;
}

.italic {
    font-style: italic;
}

/* =============================================================
04. HEADER + BRANDING
============================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    border-bottom: 1px solid var(--iam-border-soft);

    background: rgba(5, 3, 9, 0.92);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    max-width: var(--iam-max-width-wide);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo-lockup {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

.site-mark a {
    display: block;
    width: 100%;
    height: 100%;
}

.site-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}

.site-mark a:hover .site-mark-image,
.site-mark a:focus-visible .site-mark-image {
    transform: scale(1.10);
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title a {
    color: var(--iam-text-main);

    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    text-decoration: none;
}

.site-tagline,
.site-tagline a {
    margin-top: 0.1rem;

    color: var(--iam-text-muted);

    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

/* =============================================================
05. DESKTOP NAVIGATION
============================================================= */

.primary-nav {
    display: flex;
    gap: 1.5rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav > li > a {
    position: relative;

    padding-bottom: 0.2rem;

    color: var(--iam-text-soft);

    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;

    transition: color 0.2s ease;
}

/* Animated underline */
.primary-nav > li > a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--iam-accent),
            var(--iam-accent-electric)
        );

    transition: width 0.22s ease-out;
}

.primary-nav > li:hover > a,
.primary-nav > li.current-menu-item > a {
    color: var(--iam-accent);
    text-shadow: 0 0 6px rgba(255, 47, 146, 0.45);
}

.primary-nav > li:hover > a::after,
.primary-nav > li.current-menu-item > a::after {
    width: 100%;
}

/*
 * Prevent browser/theme defaults from adding static underlines
 * or borders to navigation links.
 */
.primary-nav a,
.primary-nav a:visited,
.primary-nav a:active,
.primary-nav > li > a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* =============================================================
06. DESKTOP SUBMENUS
============================================================= */

.primary-nav ul.sub-menu {
    display: none;

    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;

    min-width: 180px;
    margin: 0;
    padding: 0.5rem 0;

    list-style: none;

    background: var(--iam-bg-panel);
    border-radius: 6px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.primary-nav li:hover > ul.sub-menu {
    display: block;
}

.primary-nav ul.sub-menu a {
    display: block;

    padding: 0.55rem 1rem;

    color: var(--iam-text-soft);

    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.primary-nav ul.sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--iam-accent);
}

/* Invisible hover bridge */
.primary-nav li::after {
    content: "";

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    height: 14px;

    background: transparent;
    pointer-events: auto;
}

/* =============================================================
07. MOBILE NAVIGATION / HAMBURGER
============================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 38px;
    padding: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    background: rgba(5, 3, 9, 0.55);
    color: var(--iam-text-main);

    cursor: pointer;

    box-shadow: 0 0 12px rgba(255, 47, 146, 0.22);
}

.menu-toggle-line {
    display: block;

    width: 18px;
    height: 2px;

    border-radius: 999px;
    background: var(--iam-text-main);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.menu-toggle:hover .menu-toggle-line {
    background: var(--iam-accent-soft);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {

    .site-header-inner {
        position: relative;
        align-items: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;

        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1.5rem;

        width: min(280px, calc(100vw - 3rem));
        padding: 0.9rem;

        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;

        background: rgba(12, 7, 20, 0.98);

        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(14px);
    }

    .site-nav.is-open {
        display: block;
    }

    .primary-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        margin: 0;
        padding: 0;
    }

    .primary-nav > li {
        width: 100%;
    }

    .primary-nav > li::after {
        display: none;
    }

    .primary-nav > li > a {
        display: block;

        padding: 0.8rem 0.9rem;

        border-radius: 8px;

        font-size: 0.74rem;
        letter-spacing: 0.16em;
    }

    .primary-nav > li > a::after {
        display: none;
    }

    .primary-nav > li:hover > a,
    .primary-nav > li.current-menu-item > a,
    .primary-nav > li.current_page_item > a,
    .primary-nav > li.current_page_parent > a {
        background: rgba(255, 47, 146, 0.12);
        color: var(--iam-accent);
    }

    .primary-nav ul.sub-menu {
        position: static;

        display: block;

        min-width: 0;
        margin: 0.2rem 0 0.4rem;
        padding: 0.25rem 0 0.25rem 0.8rem;

        border-radius: 8px;

        background: transparent;
        box-shadow: none;
    }

    .primary-nav ul.sub-menu a {
        padding: 0.55rem 0.9rem;
        font-size: 0.68rem;
    }
}

/* =============================================================
08. HERO
============================================================= */

.hero {
    position: relative;

    min-height: 40vh;
    padding: 0 1.5rem 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--iam-bg-hero);
}

.hero-inner {
    width: 100%;
    max-width: var(--iam-max-width);
}

.hero-split {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
}

.hero-left {
    z-index: 2;
}

/* Hero Kicker
------------------------------------------------------------- */

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 1.4rem;
    padding: 0.35rem 0.9rem;

    border: 1px solid var(--iam-border-medium);
    border-radius: 999px;

    background: rgba(5, 3, 9, 0.6);

    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle,
            var(--iam-accent) 0,
            #000 90%
        );

    box-shadow: 0 0 10px rgba(255, 47, 146, 0.8);
}

/* Hero Typography
------------------------------------------------------------- */

.hero-title {
    margin: 0 0 0.9rem;

    font-family: var(--iam-font-hero);
    font-size: clamp(2.4rem, 2vw, 3.6rem);
    font-weight: 400;

    line-height: 1.12;
    letter-spacing: 0.035em;
}

.hero-title-em {
    color: var(--iam-accent-soft);
}

.hero-subtitle {
    max-width: 36rem;
    margin-bottom: 2rem;

    color: var(--iam-text-soft);
    font-size: 0.98rem;
}

/* Hero Buttons
------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 1.9rem;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    position: relative;

    background:
        linear-gradient(
            100deg,
            var(--iam-accent) 0%,
            var(--iam-purple) 48%,
            var(--iam-accent-electric) 100%
        );

    color: #fff;
    border: none;

    box-shadow:
        0 0 18px rgba(255, 47, 146, 0.32),
        0 0 28px rgba(92, 225, 255, 0.12);

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;

    filter: brightness(1.1);

    transform: translateY(-1px);

    box-shadow:
        0 0 22px rgba(255, 47, 146, 0.48),
        0 0 34px rgba(92, 225, 255, 0.22);

    text-shadow: none;
}

.btn-primary:active {
    transform: translateY(0);

    filter: brightness(1.02);

    box-shadow:
        0 0 14px rgba(255, 47, 146, 0.32),
        0 0 22px rgba(92, 225, 255, 0.14);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(5, 3, 9, 0.4);
    color: #fff;
}

.btn-ghost:hover {
    border-color: var(--iam-accent-soft);
}

/* Hero Glyph
------------------------------------------------------------- */

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
}

.hero-static-field {
    position: relative;

    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: none !important;
    border-radius: var(--iam-radius-strong);

    background: transparent !important;

    box-shadow: none !important;
}

.hero-glyph {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 56%;

    transform: translate(-50%, -50%);

    opacity: 0.14;

    filter:
        brightness(0.75)
        contrast(1.2)
        drop-shadow(0 0 14px rgba(255, 47, 146, 0.25));

    pointer-events: none;
}

/*
 * Static layer intentionally disabled for now.
 */
.hero-static-noise {
    position: absolute;
    inset: 0;

    background: none !important;
    opacity: 0 !important;

    mix-blend-mode: screen;

    animation: iam-noise 22s linear infinite;
}

@keyframes iam-noise {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-12px, -18px) scale(1.02);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Hero — Tablet
------------------------------------------------------------- */

@media (max-width: 820px) {

    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-right {
        margin-top: -4rem;
        justify-content: flex-start;
    }
}

/* Hero — Mobile
------------------------------------------------------------- */

@media (max-width: 640px) {

    .hero {
        min-height: auto;
        padding: 1.5rem;
        align-items: flex-start;
    }

    .hero-inner {
        width: 100%;
    }

    .hero-split {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        /* Reduced from 2.25rem */
        gap: 1.25rem;
    }

    .hero-left {
        width: 100%;
    }

    .hero-kicker {
        margin-bottom: 1.1rem;
    }

    .hero-title {
        margin-bottom: 1rem;

        font-size: 1.5rem;
        line-height: 1.16;
    }

    .hero-subtitle {
        margin-bottom: 1.75rem;
    }

    .hero-actions,
    .hero-buttons,
    .button-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .hero-actions .btn,
    .hero-buttons .btn,
    .button-row .btn {
        width: auto;
        min-width: 260px;
    }

    .hero-right {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    /*
     * Mobile hero sigil:
     * Keep the artwork as a small visual separator instead
     * of allowing the desktop square container to eat the page.
     */
    .hero-static-field {
        width: 115px;
        max-width: 115px;
        height: 115px;

        aspect-ratio: auto;

        margin: 0 auto;
        padding: 0;

        overflow: visible;
    }

    .hero-glyph {
        position: absolute;
        top: 50%;
        left: 50%;

        width: 115px;
        height: 115px;
        margin: 0;

        object-fit: contain;

        transform: translate(-50%, -50%);
    }

    #iam-main-content.page-shell {
        padding-top: 1rem;
    }
}

/* =============================================================
09. GENERAL PAGE LAYOUT
============================================================= */

.page-shell {
    max-width: var(--iam-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.iam-panel > :first-child {
    margin-top: 0;
}

.iam-panel {
    padding: 1.6rem 1.8rem 2rem; 

    border: 1px solid var(--iam-border-soft);
    border-radius: var(--iam-radius-strong);

    background: var(--iam-bg-panel);

    box-shadow: var(--iam-shadow-soft);
}

.iam-intro {
    font-size: 1.1em;
    font-weight: 600;
    color: #f4edf8;
}

.page-content {
    color: var(--iam-text-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.page-header-bar {
    margin: 0 0 1.6rem;
}

.page-lede {
    color: var(--iam-text-soft);
}

.page-title {
    margin: 0;
}

.post-card-title {
    margin: 0 0 1rem;
}

.post-card-meta {
    margin-bottom: 1rem;
}

.post-card-excerpt {
    margin-bottom: 1rem;
}

.post-card-excerpt p {
    margin-top: 0;
    margin-bottom: 0;
}

.post-card-link {
    display: inline-block;
}

.page-title,
.woocommerce-products-header__title.page-title {
    font-family: var(--iam-font-hero);
    font-weight: 400;

    line-height: 1.12;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {

    .page-title,
    .woocommerce-products-header__title.page-title {
        font-size: 1.5rem;
        line-height: 1.16;
    }
}

/* =============================================================
10. SOCIAL LINKS
============================================================= */

.iam-social-links {
    text-align: center;
}

.iam-social-footer {
    justify-content: center;
}

.iam-social-left-aligned {
    text-align: left;
    justify-content: flex-start;
}

.iam-social-footer a {
    color: #b8a8d9;
    font-size: 0.85rem;
}

.iam-social-footer a:hover {
    color: #fff;
}

.iam-social-separator {
    color: var(--iam-text-bright);
    opacity: 0.45;
}

.iam-social-footer .iam-social-separator {
    color: #6f5c8f;
    opacity: 0.7;
}

.footer-navigation {
    margin-bottom: 1rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu a {
    text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
    text-decoration: underline;
}

/* =============================================================
11. SINGLE POSTS
============================================================= */

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

.single-post-shell {
    max-width: var(--iam-max-width);
}

.single-post-content {
    margin-top: 1.5rem;
}

.single-post-header {
    margin-bottom: 1.75rem;
}

.single-post-title {
    margin-bottom: 0.75rem;
}

.single-post-meta {
    color: var(--iam-text-muted);

    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.single-post-thumb {
    margin: 0 0 2rem;
}

.single-post-thumb img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: var(--iam-radius-soft);
}

.single-post-body p {
    margin: 0 0 1.4rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin: 2rem 0 0;

    color: var(--iam-text-soft);
}

.post-navigation a {
    color: var(--iam-accent-soft);
}

.post-navigation a:hover,
.post-navigation a:focus {
    color: var(--iam-accent-electric);
}

.post-sigil-watermark {
    position: relative;
    top: -120px;
    margin-bottom: -120px;
    text-align: right;
    opacity: 0.30;
    pointer-events: none;
}

.post-sigil-watermark img {
    width: 100px;
    height: auto;
    display: inline-block;
}

@media (max-width: 640px) {
    .post-sigil-watermark {
        top: -90px;
        margin-bottom: -100px;
    }

    .post-sigil-watermark img {
        width: 72px;
    }
}

/* =============================================================
12. WOOCOMMERCE — PAGE SHELL
============================================================= */

.iamspides-woocommerce {
    min-height: 70vh;
    padding: 0;

    background: var(--iam-bg-woo);
    color: var(--iam-text-bright);
}

.iamspides-woo-wrap {
    max-width: var(--iam-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* =============================================================
13. WOOCOMMERCE — NOTICES
============================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;

    margin: 0 0 1.5rem !important;
    padding: 1.25rem 1.5rem !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--iam-radius-soft);

    background: var(--iam-bg-elevated) !important;
    color: var(--iam-text-soft) !important;

    box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
    color: var(--iam-accent-soft);
}

.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover {
    color: var(--iam-accent-electric);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    margin-left: 1rem;
}

/* =============================================================
14. WOOCOMMERCE — ACCOUNT FORMS
============================================================= */

.woocommerce-MyAccount-content .form-row label {
    display: block;
    margin-bottom: 0.45rem;

    color: var(--iam-text-soft);
    font-weight: 600;
}

.woocommerce-MyAccount-content .required {
    color: var(--iam-accent-soft);
}

.woocommerce-MyAccount-content input.input-text,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"] {
    width: 100%;

    min-height: 44px;
    padding: 0.75rem 0.9rem;

    background: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    border: 1px solid var(--iam-border-control) !important;
    border-radius: 8px;

    box-shadow: none !important;

    font-family: var(--iam-font-ui);
    font-size: 0.95rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.woocommerce-MyAccount-content input.input-text:focus,
.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus {
    outline: none !important;

    border-color: var(--iam-accent-soft) !important;
    box-shadow: 0 0 0 2px var(--iam-focus-ring) !important;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-MyAccount-content .form-row-first,
.woocommerce-MyAccount-content .form-row-last {
    width: calc(50% - 0.75rem);
}

.woocommerce-MyAccount-content #account_display_name_description {
    display: block;
    margin-top: 0.4rem;

    color: var(--iam-text-muted);

    font-size: 0.86rem;
    line-height: 1.4;
}

/* Password section
------------------------------------------------------------- */

.woocommerce-MyAccount-content fieldset {
    margin: 1.75rem 0;
    padding: 1.5rem;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--iam-radius-soft);

    background: rgba(5, 3, 9, 0.28);
}

.woocommerce-MyAccount-content fieldset legend {
    padding: 0 0.6rem;

    color: var(--iam-accent-soft);

    font-family: var(--iam-font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.woocommerce-MyAccount-content fieldset .form-row:last-child {
    margin-bottom: 0;
}

/* Password visibility icon
------------------------------------------------------------- */

.woocommerce .show-password-input::before,
.woocommerce-page .show-password-input::before {
    opacity: 0.75 !important;
    filter: invert(1) !important;
}

.woocommerce .show-password-input:hover::before,
.woocommerce .show-password-input:focus::before,
.woocommerce-page .show-password-input:hover::before,
.woocommerce-page .show-password-input:focus::before {
    opacity: 1 !important;

    filter:
        invert(67%)
        sepia(57%)
        saturate(1947%)
        hue-rotate(286deg)
        brightness(103%)
        contrast(101%)
        drop-shadow(0 0 4px rgba(255, 115, 196, 0.45)) !important;
}

/* Account form buttons
------------------------------------------------------------- */

.woocommerce-MyAccount-content button.button {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {

    .woocommerce-MyAccount-content .form-row-first,
    .woocommerce-MyAccount-content .form-row-last {
        width: 100%;
        float: none;
    }

    .woocommerce-MyAccount-content fieldset {
        padding: 1.2rem;
    }
}

/* =============================================================
15. WOOCOMMERCE — ACCOUNT NAVIGATION
============================================================= */

.woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.woocommerce-MyAccount-navigation li::before,
.woocommerce-MyAccount-navigation li::marker {
    content: none !important;
    display: none !important;
}

.woocommerce-MyAccount-navigation li a {
    position: relative;
    display: block;

    padding: 0.7rem 1rem 0.7rem 1.2rem;

    color: var(--iam-text-soft) !important;
    background: transparent;

    border-left: 2px solid transparent;
    border-radius: 0 7px 7px 0;

    font-size: 0.92rem;

    text-decoration: none !important;
    text-shadow: none !important;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:focus {
    color: var(--iam-accent-soft) !important;

    background: rgba(255, 47, 146, 0.07);
    border-left-color: rgba(255, 115, 196, 0.45);

    text-shadow: none !important;
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--iam-accent-soft) !important;

    background:
        linear-gradient(
            90deg,
            rgba(255, 115, 196, 0.12) 0%,
            rgba(255, 115, 196, 0.055) 45%,
            transparent 100%
        );

    border-left-color: var(--iam-accent-soft);
    border-radius: 0;

    box-shadow: none;

    font-weight: 600;
}

/* =============================================================
16. WOOCOMMERCE — SHOP / PRODUCT ARCHIVE
============================================================= */

.woocommerce ul.products {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 360px));

    justify-content: start;
    gap: 3rem;

    margin: 2rem 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;

    float: none !important;

    text-align: left;
}

.woocommerce ul.products li.product img {
    display: block;

    width: 100%;
    max-width: 360px;
    height: auto;

    margin: 0 0 1rem;

    border-radius: 6px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--iam-text-bright);
    font-size: 1.2em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--iam-accent);
}

/* =============================================================
17. WOOCOMMERCE — SINGLE PRODUCT
============================================================= */

.woocommerce div.product {
    max-width: 1180px;
    margin: 0 auto;
}

.woocommerce div.product div.images {
    max-width: 520px;
}

.woocommerce div.product div.summary {
    max-width: 560px;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;

    object-fit: contain;

    border-radius: 6px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin-bottom: 1.5rem !important;
}

/* =============================================================
18. WOOCOMMERCE — PRODUCT GALLERY
============================================================= */

.single-product .woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 1.5rem !important;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs,
.woocommerce-product-gallery ol.flex-control-nav,
.woocommerce-product-gallery ul.flex-control-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.9rem !important;

    margin: 1.5rem 0 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li,
.woocommerce-product-gallery ol.flex-control-nav li,
.woocommerce-product-gallery ul.flex-control-nav li {
    width: 90px !important;
    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li img,
.woocommerce-product-gallery ol.flex-control-nav li img,
.woocommerce-product-gallery ul.flex-control-nav li img {
    display: block !important;

    width: 90px !important;
    height: 90px !important;

    object-fit: cover !important;

    border-radius: 4px;

    opacity: 0.75;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li img:hover,
.woocommerce-product-gallery ol.flex-control-nav li img:hover,
.woocommerce-product-gallery ul.flex-control-nav li img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.single-product ol.flex-control-nav.flex-control-thumbs {
    position: relative !important;
    top: 1.5rem !important;

    display: flex !important;
    gap: 0.9rem !important;

    margin-bottom: 1.5rem !important;

    clear: both !important;
}

.single-product ol.flex-control-nav.flex-control-thumbs li {
    margin-right: 0 !important;
}

/* =============================================================
19. WOOCOMMERCE — PRODUCT FORM + VARIATIONS
============================================================= */

.woocommerce div.product form.cart {
    margin-top: 1.5rem;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    max-width: 520px;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    max-width: 420px;
    min-height: 46px;

    padding: 0.65rem 0.9rem;

    border: 1px solid var(--iam-border-control);
    border-radius: 8px;

    background: var(--iam-bg-control);
    color: var(--iam-text-main) !important;

    appearance: auto;
    -webkit-appearance: auto;
}

.woocommerce div.product form.cart .variations select option {
    background: var(--iam-bg-panel);
    color: var(--iam-text-main);
}

.woocommerce div.product form.cart .variations select:focus {
    outline: none;

    border-color: var(--iam-accent-soft);

    color: var(--iam-text-main) !important;

    box-shadow: 0 0 0 2px var(--iam-focus-ring);
}

.woocommerce div.product form.cart .variations select:active {
    color: var(--iam-text-main) !important;
}

/* =============================================================
20. WOOCOMMERCE — CLASSIC BUTTONS
============================================================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    padding: 0.8rem 1.2rem;

    border: 0;
    border-radius: 4px;

    background: var(--iam-purple);
    color: #fff;

    text-transform: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover {
    background: var(--iam-accent);
    color: #fff;
}

/* =============================================================
21. WOOCOMMERCE — PRICE + TABS
============================================================= */

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: var(--iam-text-price);
}

.woocommerce div.product .woocommerce-tabs {
    clear: both;

    max-width: 1180px;
    margin: 3rem auto 0;
}

/* =============================================================
22. WOOCOMMERCE BLOCKS — TEXT CONTROLS
============================================================= */

/*
 * Shared by Cart and Checkout block components.
 */

.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-textarea {
    background: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    border: 1px solid var(--iam-border-control) !important;
    border-radius: 8px !important;

    box-shadow: none !important;
}

.wc-block-components-textarea {
    padding: 0.85rem 0.95rem !important;
}

.wc-block-components-text-input input::placeholder,
.wc-block-components-textarea::placeholder {
    color: rgba(204, 195, 227, 0.58) !important;
}

.wc-block-components-text-input label {
    color: var(--iam-text-muted) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus {
    background: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    border-color: var(--iam-accent-soft) !important;

    outline: none !important;

    box-shadow: 0 0 0 2px var(--iam-focus-ring) !important;
}

/* =============================================================
23. WOOCOMMERCE BLOCKS — SELECT CONTROLS
============================================================= */

/*
 * WooCommerce currently uses the plural "wc-blocks-components"
 * namespace for the address selects. Keep these selectors exact.
 */

.wc-blocks-components-select
.wc-blocks-components-select__select {
    background: var(--iam-bg-control) !important;
    background-color: var(--iam-bg-control) !important;

    color: var(--iam-text-main) !important;
    -webkit-text-fill-color: var(--iam-text-main) !important;

    border: 1px solid var(--iam-border-control) !important;
    border-radius: 8px !important;

    box-shadow: none !important;

    appearance: none !important;
    -webkit-appearance: none !important;
}

.wc-blocks-components-select__container {
    background: var(--iam-bg-control) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.wc-blocks-components-select
.wc-blocks-components-select__label {
    color: var(--iam-text-muted) !important;
}

.wc-blocks-components-select
.wc-blocks-components-select__expand {
    color: var(--iam-text-soft) !important;
    fill: var(--iam-text-soft) !important;
}

.wc-blocks-components-select
.wc-blocks-components-select__select:focus {
    background: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    border-color: var(--iam-accent-soft) !important;

    outline: none !important;

    box-shadow: 0 0 0 2px var(--iam-focus-ring) !important;
}

/* =============================================================
24. WOOCOMMERCE BLOCKS — BUTTONS
============================================================= */

/*
 * Coupon Apply
 * Proceed to Checkout
 * Place Order
 */

.wc-block-components-totals-coupon__button,
.wp-block-woocommerce-proceed-to-checkout-block
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background: var(--iam-purple) !important;
    color: #fff !important;

    border: 0 !important;
    border-radius: 4px !important;

    box-shadow: none !important;

    font-family: var(--iam-font-ui) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

/* Place Order — force shared button typography onto inner label */
.wc-block-components-checkout-place-order-button
.wc-block-components-button__text {
    font-family: var(--iam-font-ui) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.wc-block-components-totals-coupon__button:hover,
.wc-block-components-totals-coupon__button:focus,
.wp-block-woocommerce-proceed-to-checkout-block
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block
.wc-block-cart__submit-button:focus,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:focus {
    background: var(--iam-accent) !important;
    color: #fff !important;

    box-shadow: 0 0 16px var(--iam-glow-accent) !important;

    transform: translateY(-1px);
}

/* =============================================================
25. WPFORMS — DARK THEME
============================================================= */

.wpforms-container {
    color: var(--iam-text-main);
}

.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel,
.wpforms-container .wpforms-field-description,
.wpforms-container legend {
    color: var(--iam-text-soft) !important;
}

.wpforms-container .wpforms-required-label {
    color: var(--iam-accent-soft) !important;
}

/* WPForms Inputs
------------------------------------------------------------- */

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="password"],
.wpforms-container textarea {
    padding: 0.85rem 0.95rem !important;

    border: 1px solid var(--iam-border-control) !important;
    border-radius: 8px !important;

    background: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    box-shadow: none !important;
}

.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
    color: rgba(204, 195, 227, 0.58) !important;
}

/* WPForms Selects
------------------------------------------------------------- */

.wpforms-container select,
.wpforms-container select.wpforms-field-medium,
.wpforms-container select.wpforms-field-large {
    min-height: 46px !important;
    height: auto !important;

    padding:
        0.65rem
        2.75rem
        0.65rem
        0.95rem !important;

    border: 1px solid var(--iam-border-control) !important;
    border-radius: 8px !important;

    background-color: var(--iam-bg-control) !important;
    color: var(--iam-text-main) !important;

    line-height: 1.35 !important;

    box-shadow: none !important;

    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.wpforms-container select option {
    background: var(--iam-bg-option) !important;
    color: var(--iam-text-main) !important;
}

/* WPForms Focus States
------------------------------------------------------------- */

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none !important;

    border-color: var(--iam-accent-soft) !important;

    box-shadow: 0 0 0 2px var(--iam-focus-ring) !important;
}

/* WPForms Submit
------------------------------------------------------------- */

.wpforms-container .wpforms-submit {
    padding: 0.8rem 1.2rem !important;

    border: 0 !important;
    border-radius: 4px !important;

    background: var(--iam-purple) !important;
    color: #fff !important;

    font-family: var(--iam-font-ui) !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.wpforms-container .wpforms-submit:hover,
.wpforms-container .wpforms-submit:focus {
    background: var(--iam-accent) !important;

    box-shadow:
        0 0 16px rgba(255, 47, 146, 0.45) !important;

    transform: translateY(-1px);
}

/* WPForms checkbox text */
.wpforms-container .wpforms-field-checkbox label,
.wpforms-container .wpforms-field-checkbox .wpforms-field-label-inline {
    color: var(--iam-text-main);
}

/* WPForms Errors and Messages
------------------------------------------------------------- */

.wpforms-container .wpforms-error,
.wpforms-container label.wpforms-error {
    color: #ff8ab8 !important;
}

.iamspides-optin-message {
    margin-top: 1rem 0 0.5rem;

    color: #ff8ab8;

    font-size: 0.9rem;
    line-height: 1.4;
}

/* WPForms Confirmation
------------------------------------------------------------- */

.wpforms-confirmation-container-full {
    border: 1px solid rgba(255, 47, 146, 0.32) !important;
    border-radius: 12px !important;

    background: rgba(18, 10, 29, 0.95) !important;
    color: var(--iam-text-main) !important;
}

.wpforms-confirmation-container-full p {
    color: var(--iam-text-main) !important;
}

/* =============================================================
26. CONTENT SEPARATORS
============================================================= */

.page-content hr,
.wp-block-separator {
    width: 100%;
    height: 1px;

    margin: 2rem 0;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 47, 146, 0.55) 20%,
            rgba(139, 44, 255, 0.7) 50%,
            rgba(92, 225, 255, 0.55) 80%,
            transparent 100%
        );

    box-shadow:
        0 0 8px rgba(255, 47, 146, 0.12),
        0 0 10px rgba(92, 225, 255, 0.08);

    opacity: 0.85;
}

/* =============================================================
27. FOOTER
============================================================= */

.site-footer {
    padding: 2.5rem 1.5rem 2rem;

    border-top: 1px solid var(--iam-border-soft);

    background:
        radial-gradient(
            circle at bottom,
            rgba(255, 47, 146, 0.16),
            var(--iam-bg-main)
        );
}

.site-footer-inner {
    max-width: var(--iam-max-width);
    margin: 0 auto;

    color: var(--iam-text-muted);

    font-size: 0.8rem;
    text-align: center;
}