/* =============================================================
   CNE Graphics Studio — Luxury Account Dashboard
   File: woocommerce/assets/css/luxury-account.css
   Loaded on: is_account_page() only (see functions.php)
   ============================================================= */

/* ─── Reset scoped to our wrapper ───────────────────────────── */
.woocommerce-MyAccount-content *,
.lux-header *,
.lux-hnav * {
    box-sizing: border-box;
}

/* ─── Dark background — override every theme wrapper ─────────────
 *
 *  The theme owns body, #page, #content, #primary etc. and sets
 *  them white. We need !important on all of them so our dark
 *  navy wins on the account page specifically.
 * ─────────────────────────────────────────────────────────────── */
body.woocommerce-account,
body.woocommerce-account #page,
body.woocommerce-account #content,
body.woocommerce-account #primary,
body.woocommerce-account #main,
body.woocommerce-account main,
body.woocommerce-account .site-main,
body.woocommerce-account .site-content,
body.woocommerce-account .content-area,
body.woocommerce-account article,
body.woocommerce-account .entry-content,
body.woocommerce-account .hentry,
body.woocommerce-account .page-content,
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce-page {
    background: #080d1a !important;
    background-color: #080d1a !important;
    color: #e8e2d6 !important;
}

/* Kill box shadows / borders the theme puts on content wrappers */
body.woocommerce-account #content,
body.woocommerce-account #primary,
body.woocommerce-account article,
body.woocommerce-account .hentry {
    box-shadow: none !important;
    border: none !important;
}

/* Hide the "My account" page title the theme renders */
body.woocommerce-account .entry-title,
body.woocommerce-account h1.page-title,
body.woocommerce-account h1.entry-title {
    display: none !important;
}

/* Hide the default WooCommerce sidebar nav (we replace it) */
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    background: transparent !important;
}

/* Full-width content area */
.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Remove default WooCommerce account wrapper padding/margin */
body.woocommerce-account .woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ─── Header ─────────────────────────────────────────────────── */
.lux-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 24px;
    background: #0b1122;
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    gap: 0;
}

/* Brand */
.lux-header__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    margin-right: 28px;
}

.lux-header__logo-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 168, 76, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.07);
    flex-shrink: 0;
    overflow: hidden;
}

.lux-header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lux-header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.lux-header__brand-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e8e2d6;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.lux-header__brand-tagline {
    font-size: 9px;
    font-weight: 400;
    color: rgba(201, 168, 76, 0.6);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Category anchor links */
.lux-header__cats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lux-header__cats-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 226, 214, 0.28);
    flex-shrink: 0;
}

.lux-header__cats-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.lux-header__cats-list::-webkit-scrollbar {
    display: none;
}

.lux-cat-anchor {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 6px;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(201, 168, 76, 0.05);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.lux-cat-anchor:hover {
    background: rgba(201, 168, 76, 0.13);
    border-color: rgba(201, 168, 76, 0.42);
    text-decoration: none;
}

.lux-cat-anchor:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

.lux-cat-anchor__ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-cat-anchor__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lux-cat-anchor__initial {
    font-size: 11px;
    font-weight: 700;
    color: #c9a84c;
}

.lux-cat-anchor__name {
    font-size: 11.5px;
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 0.04em;
}

/* Right actions */
.lux-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.lux-header__cart {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.07);
    color: #c9a84c;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.lux-header__cart:hover {
    background: rgba(201, 168, 76, 0.14);
    text-decoration: none;
    color: #c9a84c;
}

.lux-header__cart-label {
    color: rgba(232, 226, 214, 0.65);
}

.lux-header__sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.lux-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2e55, #2a4080);
    border: 1.5px solid rgba(201, 168, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #c9a84c;
    text-decoration: none;
    transition: border-color 0.15s;
    flex-shrink: 0;
}

.lux-header__avatar:hover {
    border-color: rgba(201, 168, 76, 0.75);
    text-decoration: none;
    color: #c9a84c;
}

/* ─── Horizontal Nav ─────────────────────────────────────────── */
.lux-hnav {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: #0d1529;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lux-hnav__inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.lux-hnav__inner::-webkit-scrollbar {
    display: none;
}

.lux-hnav__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 42px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(232, 226, 214, 0.48);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.lux-hnav__item:hover {
    color: rgba(232, 226, 214, 0.85);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.lux-hnav__item:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.5);
    outline-offset: -2px;
}

.lux-hnav__item--active,
.lux-hnav__item[aria-current="page"] {
    color: #c9a84c !important;
    font-weight: 600;
    border-bottom-color: #c9a84c;
}

.lux-hnav__item--logout {
    margin-left: auto;
    color: rgba(210, 90, 90, 0.55);
}

.lux-hnav__item--logout:hover {
    color: rgba(210, 90, 90, 0.9) !important;
    background: rgba(210, 90, 90, 0.06);
}

/* ─── Main content wrapper ───────────────────────────────────── */
.woocommerce-MyAccount-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 32px 64px !important;
}

/* ─── Intro row ──────────────────────────────────────────────── */
.lux-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 10px;
}

.lux-intro__left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lux-intro__hello {
    font-size: 14px;
    color: rgba(232, 226, 214, 0.7);
    margin: 0 0 3px;
}

.lux-intro__hello strong {
    color: #e8e2d6;
    font-weight: 600;
}

.lux-intro__sub {
    font-size: 11.5px;
    color: rgba(201, 168, 76, 0.6);
    margin: 0;
    letter-spacing: 0.03em;
}

.lux-intro__zone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.05);
    font-size: 11px;
    color: rgba(201, 168, 76, 0.65);
}

/* ─── Category Section ───────────────────────────────────────── */
.cat-section {
    margin-bottom: 52px;
    scroll-margin-top: 112px;
    /* sticky header (60px) + hnav (42px) + 10px gap */
}

.cat-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-section__logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 168, 76, 0.3);
    flex-shrink: 0;
}

.cat-section__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-section__name {
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    color: #e8e2d6 !important;
    margin: 0 0 2px !important;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0 !important;
    border: none !important;
}

.cat-section__name a {
    color: inherit;
    text-decoration: none;
}

.cat-section__desc {
    font-size: 11px;
    color: rgba(232, 226, 214, 0.35);
    margin: 0;
    letter-spacing: 0.03em;
}

.cat-section__count {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(201, 168, 76, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cat-section__empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.07);
    color: rgba(232, 226, 214, 0.25);
    font-size: 12.5px;
}

/* ─── Empty state (no categories at all) ────────────────────── */
.lux-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 320px;
    color: rgba(232, 226, 214, 0.2);
    text-align: center;
}

.lux-empty-state svg {
    color: rgba(201, 168, 76, 0.18);
    margin-bottom: 6px;
}

.lux-empty-state__title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 24px;
    color: rgba(232, 226, 214, 0.28);
    margin: 0;
}

.lux-empty-state__sub {
    font-size: 12px;
    color: rgba(232, 226, 214, 0.18);
    margin: 0;
}

/* ─── Product Grid ───────────────────────────────────────────── */
.cat-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ─── Product Card ───────────────────────────────────────────── */
.pc {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0e1828;
    border: 1px solid rgba(255, 255, 255, 0.065);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
}

.pc:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.32);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.09);
}

.pc__badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 10;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
    background: #c9a84c;
    color: #080d1a;
}

.pc__img-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #131f38;
    display: block;
}

.pc__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.pc:hover .pc__img {
    transform: scale(1.05);
}

.pc__img-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to top, #0e1828, transparent);
    pointer-events: none;
}

.pc__body {
    padding: 13px 15px 15px;
}

.pc__name {
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #e8e2d6 !important;
    margin: 0 0 5px !important;
    line-height: 1.25;
    letter-spacing: 0.01em;
    border: none !important;
    padding: 0 !important;
}

.pc__name a {
    color: inherit;
    text-decoration: none;
}

.pc__name a:hover {
    color: #c9a84c;
}

.pc__desc {
    font-size: 10.5px;
    color: rgba(232, 226, 214, 0.38);
    margin: 0 0 13px;
    line-height: 1.55;
}

.pc__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pc__pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* WooCommerce price override */
.pc__pricing .woocommerce-Price-amount,
.pc__pricing .amount {
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #c9a84c !important;
}

.pc__pricing del .woocommerce-Price-amount,
.pc__pricing del .amount {
    font-size: 10.5px !important;
    color: rgba(232, 226, 214, 0.28) !important;
    font-weight: 400 !important;
}

.pc__pricing ins {
    text-decoration: none;
    background: none;
}

/* WooCommerce Add to Cart button override */
.pc__cta,
.pc .add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 11px !important;
    border-radius: 100px !important;
    background: rgba(201, 168, 76, 0.1) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #c9a84c !important;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none !important;
}

.pc__cta:hover,
.pc .add_to_cart_button:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    border-color: rgba(201, 168, 76, 0.5) !important;
    color: #c9a84c !important;
    text-decoration: none;
}

/* Loading state for AJAX add to cart */
.pc .add_to_cart_button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pc .add_to_cart_button.added {
    background: rgba(201, 168, 76, 0.25) !important;
    border-color: rgba(201, 168, 76, 0.65) !important;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lux-header {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }

    .lux-header__brand {
        margin-right: 0;
    }

    .lux-header__cats {
        order: 3;
        width: 100%;
        padding-bottom: 4px;
    }

    .lux-header__actions {
        margin-left: auto;
    }

    .lux-header__cart-label {
        display: none;
    }

    .lux-hnav {
        top: 0;
    }

    /* on mobile the header won't be sticky-stacked */

    .woocommerce-MyAccount-content {
        padding: 16px 16px 48px !important;
    }

    .cat-section__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .cat-section__name {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .lux-header__brand-tagline {
        display: none;
    }

    .cat-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pc__img-wrap {
        height: 130px;
    }
}