/*
Theme Name:        DevLux
Theme URI:         https://www.devlux.studio
Author:            DevLux
Author URI:        https://www.devlux.studio
Description:       Premium developer portfolio theme with WooCommerce, Stripe payments, protected downloads, and license key management. Sell WordPress plugins and themes with a modern, upscale storefront.
Version:           1.0.2
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           Proprietary
License URI:       https://www.devlux.studio/license
Text Domain:       devlux
Tags:              woocommerce, portfolio, ecommerce, dark, modern

WC requires at least: 7.0
WC tested up to:       9.0
*/
/*
 * DevLux Main Stylesheet
/*
 * DevLux Main Stylesheet
 * @package DevLux
 */

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:         #0A0F1E;
    --navy-card:    #111827;
    --navy-border:  #1E2D4A;
    --indigo:       #5C6FFF;
    --indigo-dim:   #3D52CC;
    --indigo-glow:  rgba(92,111,255,0.15);
    --amber:        #F5A623;
    --amber-dim:    rgba(245,166,35,0.12);
    --text:         #F0EEE8;
    --text-muted:   #8A93A8;
    --text-dim:     #4A546A;
    --green:        #22C55E;
    --red:          #EF4444;
    --mono:         'JetBrains Mono', monospace;
    --sans:         'Inter', sans-serif;
    --display:      'Syne', sans-serif;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-xl:    20px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--sans);
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute;
    height: 1px; width: 1px;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── SKIP LINK ─────────────────────────────────── */
.skip-link { position: absolute; top: -9999px; }
.skip-link:focus { top: 1rem; left: 1rem; background: var(--indigo); color: var(--text); padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 9999; }

/* ── NAVIGATION ────────────────────────────────── */
.devlux-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,15,30,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(92,111,255,0.12);
}

.devlux-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.nav-logo span { color: var(--indigo); }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
    background: var(--indigo);
    color: var(--text) !important;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: background .2s !important;
}
.nav-links .nav-cta:hover { background: var(--indigo-dim) !important; }

.nav-account-btn,
.nav-cart-btn {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: .45rem .875rem;
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    transition: border-color .2s, color .2s;
    white-space: nowrap;
    position: relative;
}
.nav-account-btn:hover,
.nav-cart-btn:hover { border-color: var(--indigo); color: var(--text); }

.cart-count {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--indigo);
    color: var(--text);
    font-size: .6rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: .25rem;
    margin-left: auto;
}
.nav-mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: background .2s;
}
.nav-mobile-toggle:hover span { background: var(--text); }

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--indigo);
    color: var(--text);
    padding: .875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    border: none;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--indigo-dim); transform: translateY(-1px); }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--text);
    padding: .875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: .9375rem;
    text-decoration: none;
    border: 1px solid var(--navy-border);
    transition: border-color .2s, transform .15s;
}
.btn-outline:hover { border-color: var(--indigo); transform: translateY(-1px); }

/* ── SECTION HEADERS ───────────────────────────── */
.section-header { margin-bottom: 3rem; }

.section-label {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--indigo);
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
}

/* ── CONTENT SECTIONS ──────────────────────────── */
.content-section {
    padding: 6rem 0;
    border-top: 1px solid var(--navy-border);
}

/* ── HERO ──────────────────────────────────────── */
.hero-section {
    padding: 9rem 0 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--indigo);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--indigo);
}

.hero-headline {
    font-family: var(--display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    max-width: 900px;
}
.hero-headline em  { font-style: normal; color: var(--indigo); }
.hero-headline .amber { color: var(--amber); }

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--navy-border);
}
.stat-num {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    letter-spacing: -.03em;
}
.stat-label {
    font-size: .8125rem;
    color: var(--text-muted);
    letter-spacing: .04em;
}

/* ── SKILLS GRID ───────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color .25s, transform .2s;
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--indigo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover { border-color: rgba(92,111,255,.4); transform: translateY(-3px); }
.skill-card.amber-accent::before { background: var(--amber); }
.skill-card.amber-accent:hover { border-color: rgba(245,166,35,.4); }

.skill-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--indigo-glow);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}
.skill-icon.amber { background: var(--amber-dim); }

.skill-title {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.skill-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag {
    font-family: var(--mono);
    font-size: .6875rem;
    color: var(--indigo);
    background: var(--indigo-glow);
    padding: .25rem .6rem;
    border-radius: 4px;
    letter-spacing: .04em;
}
.tag.amber { color: var(--amber); background: var(--amber-dim); }

/* ── PRODUCTS GRID ─────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .2s;
}
.product-card:hover { border-color: rgba(92,111,255,.35); transform: translateY(-4px); }

.product-preview {
    height: 160px;
    background: var(--navy-card);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--navy-border);
    overflow: hidden;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    padding: .875rem;
}
.product-preview-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: .4;
}

.product-badge {
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .08em;
    padding: .25rem .625rem;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.badge-cat     { background: rgba(92,111,255,.2); color: #8FA4FF; border: 1px solid rgba(92,111,255,.3); }
.badge-new     { background: rgba(34,197,94,.15); color: #4ADE80; border: 1px solid rgba(34,197,94,.25); }
.badge-sale    { background: rgba(245,166,35,.15); color: #F5C55A; border: 1px solid rgba(245,166,35,.25); }
.badge-featured{ background: rgba(168,85,247,.2); color: #C084FC; border: 1px solid rgba(168,85,247,.3); }

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.product-name a { text-decoration: none; color: var(--text); }
.product-name a:hover { color: var(--indigo); }
.product-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-border);
}

.product-price,
.product-price .woocommerce-Price-amount {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.product-price del { font-size: .875rem; color: var(--text-dim); margin-right: .25rem; }

.btn-buy {
    background: var(--indigo);
    color: var(--text);
    padding: .5rem 1.125rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .8125rem;
    text-decoration: none;
    border: none;
    transition: background .2s;
    white-space: nowrap;
}
.btn-buy:hover { background: var(--indigo-dim); }

.products-view-all { text-align: center; margin-top: 2.5rem; }

/* ── SERVICES ──────────────────────────────────── */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--navy-border);
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    align-items: start;
    transition: padding-left .2s;
}
.service-item:first-child { padding-top: 0; }
.service-item:hover { padding-left: .5rem; }

.service-num {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--text-dim);
    padding-top: 3px;
    letter-spacing: .06em;
}
.service-name {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .375rem;
    letter-spacing: -.01em;
}
.service-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

.services-cta-box {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: sticky;
    top: 6rem;
}
.cta-box-label {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--indigo);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.cta-box-title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.cta-box-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }

.cta-features {
    list-style: none;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.cta-features li {
    font-size: .875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-left: 0;
}
.cta-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(92,111,255,.15);
    border: 1px solid rgba(92,111,255,.4);
    color: var(--indigo);
    font-size: .65rem;
    flex-shrink: 0;
}

/* ── PROCESS ───────────────────────────────────── */
.process-box {
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.process-step {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--navy-border);
}
.process-step:last-child { border-right: none; }
.step-num {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--indigo);
    letter-spacing: .1em;
    margin-bottom: 1rem;
    display: block;
}
.step-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.step-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.65; }

/* ── CONTACT ───────────────────────────────────── */
.contact-inner { text-align: center; }
.contact-inner .section-label { display: block; }
.contact-inner .section-title { max-width: none; }
.contact-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 1rem auto 0;
}
.contact-email {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--indigo);
    text-decoration: none;
    display: inline-block;
    margin: 1.5rem 0 2rem;
    transition: opacity .2s;
}
.contact-email:hover { opacity: .7; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────────── */
.devlux-footer { border-top: 1px solid var(--navy-border); }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-copy { font-size: .8125rem; color: var(--text-dim); }
.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-links a {
    font-size: .8125rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text-muted); }
.footer-github {
    font-size: .8125rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}
.footer-github:hover { color: var(--indigo); }

/* ── MY ACCOUNT / LICENSES ─────────────────────── */
.devlux-licenses-table { overflow-x: auto; }

.devlux-license-list {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.devlux-license-list th {
    text-align: left;
    padding: .875rem 1rem;
    background: var(--navy-card);
    color: var(--text-muted);
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--navy-border);
}
.devlux-license-list td {
    padding: 1rem;
    border-bottom: 1px solid var(--navy-border);
    vertical-align: middle;
}
.devlux-license-list tr:last-child td { border-bottom: none; }

.license-key-wrap { display: flex; align-items: center; gap: .5rem; }

.license-key {
    font-family: var(--mono);
    font-size: .75rem;
    color: #8FA4FF;
    background: var(--indigo-glow);
    padding: .25rem .6rem;
    border-radius: 4px;
    word-break: break-all;
}

.copy-key-btn {
    font-size: .7rem;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--navy-border);
    border-radius: 4px;
    padding: .2rem .5rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.copy-key-btn:hover { color: var(--indigo); border-color: var(--indigo); }
.copy-key-btn.copied { color: var(--green); border-color: var(--green); }

.license-status {
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 4px;
}
.status-active   { background: rgba(34,197,94,.12);  color: #4ADE80; border: 1px solid rgba(34,197,94,.25); }
.status-inactive { background: rgba(245,166,35,.12); color: #F5C55A; border: 1px solid rgba(245,166,35,.25); }
.status-expired  { background: rgba(239,68,68,.12);  color: #FCA5A5; border: 1px solid rgba(239,68,68,.25); }

.btn-download {
    font-size: .8rem;
    font-weight: 600;
    color: var(--indigo);
    text-decoration: none;
    border: 1px solid rgba(92,111,255,.4);
    padding: .35rem .875rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.btn-download:hover { background: var(--indigo); color: var(--text); }

.domains-row td { padding-top: 0; }
.activated-domains {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0 .75rem;
}
.domains-label { font-size: .75rem; color: var(--text-muted); }
.domain-tag {
    font-family: var(--mono);
    font-size: .7rem;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    color: var(--text-muted);
    padding: .2rem .5rem;
    border-radius: 4px;
}

.devlux-no-licenses {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ── CHECKOUT NOTE ─────────────────────────────── */
.devlux-checkout-note {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-md);
    padding: .875rem 1.25rem;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── LICENSE TAB ───────────────────────────────── */
.devlux-license-tab { max-width: 640px; }
.devlux-license-tab h3 {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 1.5rem 0 .75rem;
}
.devlux-license-tab h3:first-child { margin-top: 0; }
.devlux-license-terms {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.devlux-license-terms li {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}
.devlux-license-terms li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--indigo);
}

/* ── ADMIN STYLES ──────────────────────────────── */
.license-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step:nth-child(2) { border-right: none; }
    .process-step:nth-child(3) { border-right: 1px solid var(--navy-border); border-top: 1px solid var(--navy-border); }
    .process-step:nth-child(4) { border-right: none; border-top: 1px solid var(--navy-border); }
}

@media (max-width: 900px) {
    .services-layout { grid-template-columns: 1fr; gap: 3rem; }
    .services-cta-box { position: static; }
}

@media (max-width: 768px) {
    .devlux-nav { padding: 1rem 1.25rem; }

    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--navy-border); padding: 1rem 1.25rem; gap: .75rem; }
    .nav-links.open { display: flex; }
    .nav-mobile-toggle { display: flex; }

    .section-inner { padding: 0 1.25rem; }
    .content-section { padding: 4rem 0; }
    .hero-section { padding: 7rem 0 3rem; min-height: auto; }
    .hero-stats { gap: 1.75rem; flex-wrap: wrap; }

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

    .process-steps { grid-template-columns: 1fr; }
    .process-step { border-right: none !important; border-top: 1px solid var(--navy-border); }
    .process-step:first-child { border-top: none; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* === WOOCOMMERCE + SHOP ==================== */
/*
 * DevLux WooCommerce Styles
 * @package DevLux
 */

/* ── WOO WRAP ──────────────────────────────────── */
.devlux-woo-wrap { min-height: 60vh; }
.devlux-main { padding-top: 6rem; }

/* ── SHOP LOOP ─────────────────────────────────── */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .25s, transform .2s;
    margin: 0;
}
.woocommerce ul.products li.product:hover {
    border-color: rgba(92,111,255,.35);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 1rem 1.25rem .25rem;
    letter-spacing: -.01em;
    color: var(--text);
}

.woocommerce ul.products li.product .price {
    padding: 0 1.25rem .5rem;
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
}
.woocommerce ul.products li.product .price del { color: var(--text-dim); font-size: .875rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button {
    display: block;
    margin: .75rem 1.25rem 1.25rem;
    background: var(--indigo);
    color: var(--text);
    padding: .6rem 1rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .875rem;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: background .2s;
}
.woocommerce ul.products li.product .button:hover { background: var(--indigo-dim); }

/* ── SINGLE PRODUCT ────────────────────────────── */
.devlux-single-product .woocommerce-product-gallery {
    float: none;
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--navy-border);
}

.woocommerce div.product .product_title {
    font-family: var(--display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--text);
}

.woocommerce div.product .price {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.woocommerce div.product .single_add_to_cart_button {
    background: var(--indigo) !important;
    color: var(--text) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: .875rem 2rem !important;
    transition: background .2s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--indigo-dim) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 1rem 0;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: .25rem;
    padding: 0;
    border-bottom: 1px solid var(--navy-border);
    margin-bottom: 2rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: .75rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--text);
    border-bottom-color: var(--indigo);
}

/* ── CART ──────────────────────────────────────── */
.woocommerce-cart table.cart,
.woocommerce-checkout #order_review {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
    border-color: var(--navy-border);
    color: var(--text);
    padding: 1rem 1.25rem;
}

/* ── FORMS ─────────────────────────────────────── */
.woocommerce form .form-row label { color: var(--text-muted); font-size: .875rem; margin-bottom: .25rem; display: block; }

.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--navy-card) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    padding: .75rem 1rem !important;
    font-family: var(--sans) !important;
    font-size: .9375rem !important;
    width: 100% !important;
    transition: border-color .2s !important;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none !important;
    border-color: var(--indigo) !important;
}

/* ── NOTICES ───────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
    background: var(--navy-card) !important;
    border-top-color: var(--indigo) !important;
    color: var(--text) !important;
}
.woocommerce-error {
    background: rgba(239,68,68,.1) !important;
    border-top-color: var(--red) !important;
    color: var(--text) !important;
}

/* ── MY ACCOUNT ────────────────────────────────── */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--indigo-glow);
    color: var(--indigo);
}

/* ── PAGINATION ────────────────────────────────── */
.woocommerce-pagination ul {
    list-style: none;
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.woocommerce-pagination ul .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--navy-border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    transition: background .2s, border-color .2s, color .2s;
}
.woocommerce-pagination ul .page-numbers.current,
.woocommerce-pagination ul .page-numbers:hover {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--text);
}

@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   DEVLUX SHOP PAGE
   ═══════════════════════════════════════════════ */

/* ── SHOP HERO ─────────────────────────────────── */
.devlux-shop-page { padding-top: 5rem; }

.shop-hero {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--navy-border);
}

.shop-hero .hero-eyebrow {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--indigo);
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.shop-hero .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--indigo);
}

.shop-hero-title {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: .875rem;
    color: var(--text);
}

.shop-hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* ── FILTER BAR ────────────────────────────────── */
.shop-filter-bar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--navy-border);
    position: sticky;
    top: 72px;
    background: rgba(10,15,30,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.shop-filter-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.shop-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.125rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--navy-border);
    transition: all .2s;
    white-space: nowrap;
}
.shop-filter-tab:hover { border-color: rgba(92,111,255,.4); color: var(--text); }
.shop-filter-tab.active {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--text);
}

.tab-count {
    font-family: var(--mono);
    font-size: .65rem;
    background: rgba(255,255,255,.1);
    padding: .1rem .4rem;
    border-radius: 100px;
}
.shop-filter-tab.active .tab-count { background: rgba(255,255,255,.2); }

/* ── SHOP CONTENT ──────────────────────────────── */
.shop-content { padding: 2.5rem 0 5rem; }

/* ── TOOLBAR ───────────────────────────────────── */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.woocommerce-result-count {
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
}

.woocommerce-ordering select {
    background: var(--navy-card) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    padding: .5rem 2rem .5rem .875rem !important;
    font-size: .875rem !important;
    font-family: var(--sans) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A93A8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    cursor: pointer;
}

/* ── SHOP GRID ─────────────────────────────────── */
.devlux-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── PRODUCT CARD ──────────────────────────────── */
.dlx-product-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .2s;
}
.dlx-product-card:hover { border-color: rgba(92,111,255,.35); transform: translateY(-4px); }

.dlx-preview {
    display: block;
    height: 180px;
    background: var(--navy-mid);
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}
.dlx-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,15,30,0);
    transition: background .25s;
}
.dlx-product-card:hover .dlx-preview::after { background: rgba(92,111,255,.06); }

.dlx-preview-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    opacity: .3;
}

.dlx-badges {
    position: absolute;
    top: .875rem;
    left: .875rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    z-index: 1;
}

.dlx-badge {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 4px;
    font-weight: 600;
}
.dlx-badge.badge-plugin  { background: rgba(92,111,255,.25); color: #8FA4FF; border: 1px solid rgba(92,111,255,.35); }
.dlx-badge.badge-theme   { background: rgba(245,166,35,.2);  color: #F5C55A; border: 1px solid rgba(245,166,35,.3); }
.dlx-badge.badge-app     { background: rgba(168,85,247,.2);  color: #C084FC; border: 1px solid rgba(168,85,247,.3); }
.dlx-badge.badge-new     { background: rgba(34,197,94,.15);  color: #4ADE80; border: 1px solid rgba(34,197,94,.25); }
.dlx-badge.badge-sale    { background: rgba(245,166,35,.15); color: #F5C55A; border: 1px solid rgba(245,166,35,.25); }

.dlx-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dlx-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.dlx-version {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--text-dim);
    letter-spacing: .06em;
}

.dlx-price,
.dlx-price .woocommerce-Price-amount {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}
.dlx-price del { font-size: .875rem; color: var(--text-dim); margin-right: .25rem; }
.dlx-price ins { text-decoration: none; }

.dlx-name {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.dlx-name a { text-decoration: none; color: var(--text); transition: color .2s; }
.dlx-name a:hover { color: var(--indigo); }

.dlx-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.dlx-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.dlx-features li {
    font-size: .8rem;
    color: var(--text-muted);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.5;
}
.dlx-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--indigo);
    font-size: .65rem;
    top: .1rem;
}

.dlx-footer {
    display: flex;
    gap: .625rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-border);
    margin-top: auto;
}

.dlx-btn-cart {
    flex: 1;
    background: var(--indigo);
    color: var(--text) !important;
    padding: .625rem 1rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .875rem;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
}
.dlx-btn-cart:hover { background: var(--indigo-dim) !important; color: var(--text) !important; }

.dlx-btn-details {
    padding: .625rem 1rem;
    border-radius: 7px;
    font-weight: 500;
    font-size: .875rem;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border: 1px solid var(--navy-border);
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.dlx-btn-details:hover { border-color: var(--indigo); color: var(--indigo) !important; }

/* ── EMPTY / PAGINATION ────────────────────────── */
.shop-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.shop-empty-icon { font-size: 2.5rem; color: var(--indigo); margin-bottom: 1rem; }

.shop-pagination { margin-top: 3rem; text-align: center; }

@media (max-width: 768px) {
    .devlux-shop-grid { grid-template-columns: 1fr; }
    .shop-filter-bar  { top: 60px; }
    .shop-toolbar     { flex-direction: column; align-items: flex-start; }
}
