/* ==========================================================================
   Account Pages — AtrAroma
   Login, Register, My Account, Orders, Edit Account, Lost Password
   ========================================================================== */

/* ---------- Variables (account scope) ---------- */

.at-ac {
    --cream: var(--color-bg, #FDFCF8);
    --charcoal: var(--color-primary, #1A1A1A);
    --gold: var(--color-accent, #C5A059);
    --gold-light: var(--color-accent-light, #D4B76A);
    --gold-dark: var(--color-accent-dark, #A88B4A);
    --warm-gray: var(--color-warm-gray, #8A8680);
    --light-border: var(--color-light-border, #EDE8DE);
    --light-bg: var(--color-light-bg, #F5F3EE);
    --white: #ffffff;
    --red: #e53e3e;
    --green: #38a169;
    --orange: #dd6b20;
    --font-serif: var(--font-heading, 'Playfair Display', 'Georgia', serif);
    --font-sans: var(--font-body, 'Inter', 'Tahoma', sans-serif);
}

/* ==========================================================================
   Login & Register Page
   ========================================================================== */

.at-ac-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-bg) 50%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative gold circles */
.at-ac-page::before,
.at-ac-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.at-ac-page::before {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
}

.at-ac-page::after {
    width: 300px;
    height: 300px;
    background: var(--gold);
    bottom: -80px;
    left: -80px;
}

.at-ac-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Gold top accent line */
.at-ac-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

.at-ac-card__header {
    text-align: center;
    padding: 32px 32px 0;
}

.at-ac-card__logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.at-ac-card__logo .at-gold {
    color: var(--color-accent);
    font-weight: 700;
}

.at-ac-card__subtitle {
    font-size: 13px;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

/* ── Tabs ── */

.at-ac-tabs {
    display: flex;
    margin: 24px 32px 0;
    border-bottom: 1px solid var(--light-border);
    position: relative;
}

.at-ac-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.at-ac-tab.is-active {
    color: var(--charcoal);
}

.at-ac-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.at-ac-tab:hover {
    color: var(--charcoal);
}

/* ── Form Area ── */

.at-ac-form-wrap {
    padding: 28px 32px 32px;
}

.at-ac-form-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 24px;
    text-align: center;
}

/* ── Floating Label Inputs ── */

.at-ac-field {
    position: relative;
    margin-bottom: 20px;
}

.at-ac-field__input {
    width: 100%;
    padding: 18px 16px 8px;
    border: 1.5px solid var(--light-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
}

.at-ac-field__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.at-ac-field__label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--warm-gray);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--white);
    padding: 0 4px;
}

/* Float label on focus or when input has value */
.at-ac-field__input:focus + .at-ac-field__label,
.at-ac-field__input:not(:placeholder-shown) + .at-ac-field__label,
.at-ac-field__input.has-value + .at-ac-field__label {
    top: 0;
    font-size: 11px;
    color: var(--gold);
}

/* ── Checkbox / Remember Me ── */

.at-ac-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    direction: rtl;
}

.at-ac-checkbox__input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.at-ac-checkbox__label {
    font-size: 13px;
    color: var(--warm-gray);
    cursor: pointer;
}

/* ── Submit Button ── */

.at-ac-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.at-ac-btn:hover {
    background: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

.at-ac-btn:active {
    transform: translateY(0);
}

/* Gold variant */
.at-ac-btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
}

.at-ac-btn--gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
}

/* Outlined variant */
.at-ac-btn--outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--light-border);
}

.at-ac-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 160, 89, 0.04);
    box-shadow: none;
    transform: none;
}

/* Small variant */
.at-ac-btn--sm {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 10px;
}

/* ── Links ── */

.at-ac-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
    transition: color 0.2s;
}

.at-ac-link:hover {
    color: var(--gold-dark);
}

.at-ac-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

/* ── Divider ── */

.at-ac-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--warm-gray);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.at-ac-divider::before,
.at-ac-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-border);
}

/* ── Trust Badges ── */

.at-ac-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 32px 28px;
    border-top: 1px solid var(--light-border);
}

.at-ac-trust__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

.at-ac-trust__icon {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

/* ==========================================================================
   My Account — Layout
   ========================================================================== */

.at-account {
    padding: 40px 0 80px;
}

.at-account__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Sidebar Navigation ── */

.at-account__sidebar {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height, 70px) + 20px);
}

.at-account__user {
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
    color: var(--white);
}

.at-account__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3);
}

.at-account__name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.at-account__email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    direction: ltr;
}

/* Nav Items */
.at-account__nav {
    padding: 12px 0;
}

.at-account__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--charcoal);
    transition: all 0.2s;
    border-right: 3px solid transparent;
    text-decoration: none;
}

.at-account__nav-item:hover {
    background: var(--light-bg);
    color: var(--gold);
}

.at-account__nav-item.is-active {
    background: rgba(197, 160, 89, 0.06);
    color: var(--gold);
    border-right-color: var(--gold);
    font-weight: 600;
}

.at-account__nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.at-account__nav-item.is-active .at-account__nav-icon {
    opacity: 1;
}

/* Logout */
.at-account__nav-item--logout {
    color: var(--red);
    border-top: 1px solid var(--light-border);
    margin-top: 8px;
}

.at-account__nav-item--logout:hover {
    background: rgba(229, 62, 62, 0.04);
    color: var(--red);
}

/* ── Content Area ── */

.at-account__content {
    min-height: 400px;
}

.at-account__content-header {
    margin-bottom: 28px;
}

.at-account__content-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.at-account__content-subtitle {
    font-size: 13px;
    color: var(--warm-gray);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.at-dash-welcome {
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.at-dash-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.08;
}

.at-dash-welcome__greeting {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.at-dash-welcome__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 500px;
}

/* Quick Access Cards */
.at-dash-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.at-dash-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--charcoal);
}

.at-dash-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.12);
    transform: translateY(-2px);
}

.at-dash-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.08);
    border-radius: 12px;
    color: var(--gold);
    flex-shrink: 0;
}

.at-dash-card__icon svg {
    width: 22px;
    height: 22px;
}

.at-dash-card__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.at-dash-card__desc {
    font-size: 12px;
    color: var(--warm-gray);
}

/* ==========================================================================
   Forms — Edit Account, Address, Lost Password
   ========================================================================== */

.at-ac-form-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--light-border);
    padding: 28px;
    margin-bottom: 24px;
}

.at-ac-form-section__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.at-ac-form-section__title-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

/* Two-column row */
.at-ac-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.at-ac-form-row--single {
    grid-template-columns: 1fr;
}

/* Non-floating label fields */
.at-ac-field--static {
    margin-bottom: 18px;
}

.at-ac-field--static .at-ac-field__label {
    position: static;
    transform: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    padding: 0;
    background: transparent;
}

.at-ac-field--static .at-ac-field__input {
    padding: 12px 16px;
}

.at-ac-field--static .at-ac-field__input:focus + .at-ac-field__label {
    top: auto;
    font-size: 12px;
    color: var(--charcoal);
}

/* Password strength indicator */
.at-ac-password-strength {
    height: 3px;
    border-radius: 2px;
    background: var(--light-border);
    margin-top: 8px;
    overflow: hidden;
}

.at-ac-password-strength__bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.at-ac-password-strength__bar--weak { width: 33%; background: var(--red); }
.at-ac-password-strength__bar--medium { width: 66%; background: var(--orange); }
.at-ac-password-strength__bar--strong { width: 100%; background: var(--green); }

/* ==========================================================================
   Orders
   ========================================================================== */

.at-orders-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--light-border);
}

.at-orders-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--light-border);
}

.at-orders-empty__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.at-orders-empty__text {
    font-size: 13px;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

/* Orders Table */
.at-orders-table {
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--light-border);
    overflow: hidden;
    border-spacing: 0;
}

.at-orders-table thead {
    background: var(--light-bg);
}

.at-orders-table th {
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    text-align: right;
    border-bottom: 1px solid var(--light-border);
}

.at-orders-table td {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--charcoal);
    text-align: right;
    border-bottom: 1px solid var(--light-border);
    vertical-align: middle;
}

.at-orders-table tr:last-child td {
    border-bottom: none;
}

.at-orders-table tr:hover {
    background: rgba(197, 160, 89, 0.02);
}

.at-orders-table a {
    color: var(--gold);
    font-weight: 500;
}

.at-orders-table a:hover {
    color: var(--gold-dark);
}

/* Status Badges */
.at-order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.at-order-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.at-order-status--pending { background: #fef3c7; color: #92400e; }
.at-order-status--pending::before { background: #f59e0b; }

.at-order-status--processing { background: rgba(197, 160, 89, 0.12); color: var(--gold-dark); }
.at-order-status--processing::before { background: var(--gold); }

.at-order-status--completed { background: #d1fae5; color: #065f46; }
.at-order-status--completed::before { background: #10b981; }

.at-order-status--cancelled { background: #fee2e2; color: #991b1b; }
.at-order-status--cancelled::before { background: #ef4444; }

.at-order-status--refunded { background: #e0e7ff; color: #3730a3; }
.at-order-status--refunded::before { background: #6366f1; }

.at-order-status--on-hold { background: #fef9c3; color: #854d0e; }
.at-order-status--on-hold::before { background: #eab308; }

.at-order-status--failed { background: #fee2e2; color: #991b1b; }
.at-order-status--failed::before { background: #ef4444; }

/* Order Actions */
.at-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.at-order-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--charcoal);
    border: 1px solid var(--light-border);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.at-order-action:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 160, 89, 0.04);
}

/* Pagination */
.at-orders-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.at-orders-pagination a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
    border: 1px solid var(--light-border);
    border-radius: 10px;
    transition: all 0.2s;
}

.at-orders-pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ==========================================================================
   Notices / Messages
   ========================================================================== */

.at-ac-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    direction: rtl;
}

.at-ac-notice--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.at-ac-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.at-ac-notice--info {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.at-ac-notice__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 1023px) {
    .at-account__inner {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 767px) {
    /* Login card */
    .at-ac-page {
        padding: 20px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .at-ac-card {
        border-radius: 16px;
    }

    .at-ac-card__header {
        padding: 24px 24px 0;
    }

    .at-ac-tabs {
        margin: 20px 24px 0;
    }

    .at-ac-form-wrap {
        padding: 24px;
    }

    .at-ac-trust {
        padding: 16px 24px 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Account layout — stack */
    .at-account {
        padding: 20px 0 60px;
    }

    .at-account__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .at-account__sidebar {
        position: static;
    }

    .at-account__user {
        padding: 24px 20px 20px;
    }

    .at-account__avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .at-account__nav-item {
        padding: 12px 20px;
    }

    /* Dashboard cards */
    .at-dash-cards {
        grid-template-columns: 1fr;
    }

    .at-dash-welcome {
        padding: 24px;
    }

    .at-dash-welcome__greeting {
        font-size: 18px;
    }

    /* Forms */
    .at-ac-form-row {
        grid-template-columns: 1fr;
    }

    .at-ac-form-section {
        padding: 20px;
    }

    /* Orders table → cards */
    .at-orders-table thead {
        display: none;
    }

    .at-orders-table,
    .at-orders-table tbody,
    .at-orders-table tr,
    .at-orders-table td {
        display: block;
    }

    .at-orders-table tr {
        padding: 16px;
        border-bottom: 1px solid var(--light-border);
    }

    .at-orders-table td {
        padding: 4px 0;
        text-align: right;
        border: none;
    }

    .at-orders-table td::before {
        content: attr(data-title);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--warm-gray);
        display: block;
        margin-bottom: 2px;
    }

    .at-orders-table td:last-child {
        padding-top: 12px;
    }

    /* Content title */
    .at-account__content-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   Override WooCommerce Default Styles
   ========================================================================== */

/* Hide default WC notices — we use custom ones */
.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper > .woocommerce-info {
    display: none;
}

/* Remove default WC form styling overrides */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-ResetPassword {
    padding: 0;
    border: none;
    background: none;
}

.woocommerce-account .woocommerce-form-row {
    margin: 0;
    padding: 0;
}

/* Remove default button styling */
.woocommerce-account .button,
.woocommerce-account .woocommerce-button {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
}

/* ==========================================================================
   Cart Page — AtrAroma Luxury
   ========================================================================== */

.at-cart {
    padding: 40px 0 80px;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.at-cart__header {
    margin-bottom: 32px;
}

.at-cart__title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--charcoal, #1A1A1A);
}

/* Empty Cart */
.at-cart__empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--light-border, #EDE8DE);
}

.at-cart__empty-icon {
    color: var(--light-border, #EDE8DE);
    margin-bottom: 20px;
}

.at-cart__empty-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal, #1A1A1A);
    margin-bottom: 8px;
}

.at-cart__empty-text {
    font-size: 14px;
    color: var(--warm-gray, #8A8680);
    margin-bottom: 24px;
}

/* Layout */
.at-cart__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Table Header */
.at-cart__table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 14px 20px;
    background: var(--light-bg, #F5F3EE);
    border-radius: 12px 12px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--warm-gray, #8A8680);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Cart Item */
.at-cart__item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--light-border, #EDE8DE);
}

.at-cart__item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

/* Product Info */
.at-cart__item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.at-cart__item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-bg, #F5F3EE);
}

.at-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-cart__item-info {
    min-width: 0;
}

.at-cart__item-brand {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold, #C5A059);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.at-cart__item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal, #1A1A1A);
    text-decoration: none;
    transition: color 0.2s;
}

.at-cart__item-name:hover {
    color: var(--gold, #C5A059);
}

/* Price */
.at-cart__item-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal, #1A1A1A);
}

/* Quantity */
.at-cart__item-qty .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #EDE8DE;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    background: #FFFFFF;
}

.at-cart__item-qty .qty {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px;
    color: #222D3D;
    background: transparent;
}

.at-cart__item-qty .qty:focus {
    outline: none;
}

/* Subtotal */
.at-cart__item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal, #1A1A1A);
}

/* Remove Button */
.at-cart__remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--warm-gray, #8A8680);
    transition: all 0.2s;
}

.at-cart__remove-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.06);
}

.at-cart__remove-btn svg {
    width: 18px;
    height: 18px;
}

/* Actions */
.at-cart__actions {
    padding: 20px;
    display: flex;
    gap: 12px;
}

/* Sidebar */
.at-cart__sidebar {
    position: sticky;
    top: 100px;
}

.at-cart__totals {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--light-border, #EDE8DE);
    padding: 24px;
}

.at-cart__totals-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal, #1A1A1A);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-border, #EDE8DE);
}

.at-cart__totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--charcoal, #1A1A1A);
}

.at-cart__totals-row--total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
}

.at-cart__totals-divider {
    height: 1px;
    background: var(--light-border, #EDE8DE);
    margin: 8px 0;
}

.at-cart__checkout {
    margin-top: 20px;
}

.at-cart__checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold, #C5A059), var(--gold-dark, #A88B4A));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    letter-spacing: 0.08em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.at-cart__checkout .checkout-button:hover {
    background: linear-gradient(135deg, var(--gold-light, #D4B76A), var(--gold, #C5A059));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

/* Coupon */
.at-cart__coupon {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--light-border, #EDE8DE);
    padding: 20px;
}

.at-cart__coupon-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal, #1A1A1A);
    margin-bottom: 12px;
}

.at-cart__coupon-form {
    display: flex;
    gap: 8px;
}

.at-cart__coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--light-border, #EDE8DE);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    direction: rtl;
}

.at-cart__coupon-input:focus {
    outline: none;
    border-color: var(--gold, #C5A059);
}

/* Buttons */
.at-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    letter-spacing: 0.05em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.at-cart__btn--primary {
    background: var(--charcoal, #1A1A1A);
    color: #fff;
}

.at-cart__btn--primary:hover {
    background: var(--gold, #C5A059);
}

.at-cart__btn--outline {
    background: transparent;
    color: var(--charcoal, #1A1A1A);
    border: 1.5px solid var(--light-border, #EDE8DE);
}

.at-cart__btn--outline:hover {
    border-color: var(--gold, #C5A059);
    color: var(--gold, #C5A059);
}

.at-cart__btn--sm {
    padding: 10px 18px;
    font-size: 12px;
    background: var(--charcoal, #1A1A1A);
    color: #fff;
}

.at-cart__btn--sm:hover {
    background: var(--gold, #C5A059);
}

.at-cart__btn--gold {
    background: linear-gradient(135deg, var(--gold, #C5A059), var(--gold-dark, #A88B4A));
    color: #fff;
    width: 100%;
}

.at-cart__btn--gold:hover {
    background: linear-gradient(135deg, var(--gold-light, #D4B76A), var(--gold, #C5A059));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

/* Responsive */
@media (max-width: 1023px) {
    .at-cart__layout {
        grid-template-columns: 1fr;
    }

    .at-cart__sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .at-cart__table-header {
        display: none;
    }

    .at-cart__item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .at-cart__item-price::before,
    .at-cart__item-subtotal::before {
        font-size: 10px;
        font-weight: 700;
        color: var(--warm-gray, #8A8680);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .at-cart__item-price::before {
        content: 'قیمت: ';
    }

    .at-cart__item-subtotal::before {
        content: 'جمع: ';
    }
}

/* ==========================================================================
   WooCommerce Block Cart Override
   ========================================================================== */

/* Hide block cart header */
.wc-block-cart__header {
    display: none;
}

/* Style block cart to match theme */
.wc-block-cart {
    font-family: var(--font-sans, 'Inter', sans-serif) !important;
}

.wc-block-cart .wc-block-components-title {
    font-family: var(--font-serif, 'Playfair Display', serif) !important;
    color: var(--charcoal, #1A1A1A) !important;
}

/* Cart items */
.wc-block-cart-items__row {
    border-color: var(--light-border, #EDE8DE) !important;
}

.wc-block-cart-items__product-name {
    font-weight: 600 !important;
    color: var(--charcoal, #1A1A1A) !important;
}

/* Checkout button */
.wc-block-cart__submit-button {
    background: linear-gradient(135deg, var(--gold, #C5A059), var(--gold-dark, #A88B4A)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font-sans, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

.wc-block-cart__submit-button:hover {
    background: linear-gradient(135deg, var(--gold-light, #D4B76A), var(--gold, #C5A059)) !important;
}

/* Empty cart */
.wc-block-cart__empty-cart {
    text-align: center !important;
    padding: 60px 20px !important;
}

.wc-block-cart__empty-cart__title {
    font-family: var(--font-serif, 'Playfair Display', serif) !important;
}

/* Continue shopping button */
.wc-block-cart__submit-button--continue {
    background: var(--charcoal, #1A1A1A) !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   Wishlist (علاقه‌مندی‌ها)
   ========================================================================== */

.at-wishlist {
    padding: 0;
}

.at-wishlist__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.at-wishlist__title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 24px;
    font-weight: 700;
    color: #1D2A44;
    margin: 0 0 4px;
}

.at-wishlist__sub {
    font-size: 13px;
    color: var(--warm-gray, #8A8680);
    margin: 0;
}

.at-wishlist__clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1.5px solid var(--light-border, #EDE8DE);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--warm-gray, #8A8680);
    cursor: pointer;
    transition: all 0.25s ease;
}

.at-wishlist__clear-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.06);
}

/* Grid */
.at-wishlist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Card */
.at-wishlist__card {
    background: #fff;
    border: 1px solid var(--light-border, #EDE8DE);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.at-wishlist__card:hover {
    border-color: rgba(29, 42, 68, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

.at-wishlist__card-img-link {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light-bg, #F5F3EE);
}

.at-wishlist__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.at-wishlist__card:hover .at-wishlist__card-img {
    transform: scale(1.06);
}

.at-wishlist__remove {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--warm-gray, #8A8680);
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.at-wishlist__card:hover .at-wishlist__remove {
    opacity: 1;
}

.at-wishlist__remove:hover {
    color: #e53e3e;
    background: #fff;
}

/* Card body */
.at-wishlist__card-body {
    padding: 16px;
}

.at-wishlist__card-brand {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #E65A28;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.at-wishlist__card-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1D2A44;
    line-height: 1.5;
    margin-bottom: 12px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.at-wishlist__card-name:hover {
    color: #E65A28;
}

.at-wishlist__card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.at-wishlist__card-price {
    font-size: 14px;
    font-weight: 800;
    color: #1D2A44;
    font-variant-numeric: tabular-nums;
}

.at-wishlist__card-currency {
    font-size: 10px;
    font-weight: 400;
    color: var(--warm-gray, #8A8680);
    margin-right: 3px;
}

.at-wishlist__card-form {
    margin: 0;
}

.at-wishlist__card-add {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1D2A44;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.at-wishlist__card-add:hover {
    background: #E65A28;
    transform: scale(1.05);
}

/* Empty state */
.at-wishlist__empty {
    text-align: center;
    padding: 60px 20px;
}

.at-wishlist__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(29, 42, 68, 0.06);
    color: rgba(29, 42, 68, 0.3);
    margin-bottom: 20px;
}

.at-wishlist__empty-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 700;
    color: #1D2A44;
    margin: 0 0 8px;
}

.at-wishlist__empty-sub {
    font-size: 14px;
    color: var(--warm-gray, #8A8680);
    margin: 0 0 28px;
}

.at-wishlist__empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1D2A44;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans, 'Inter', sans-serif);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.at-wishlist__empty-btn:hover {
    background: #263656;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(29, 42, 68, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .at-wishlist__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .at-wishlist__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .at-wishlist__title {
        font-size: 20px;
    }
}

/* ==========================================================================
   Compare (مقایسه محصولات)
   ========================================================================== */

.at-compare__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.at-compare__title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 24px;
    font-weight: 700;
    color: #1D2A44;
    margin: 0 0 4px;
}

.at-compare__sub {
    font-size: 13px;
    color: var(--warm-gray, #8A8680);
    margin: 0;
}

.at-compare__clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1.5px solid var(--light-border, #EDE8DE);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--warm-gray, #8A8680);
    cursor: pointer;
    transition: all 0.25s ease;
}

.at-compare__clear-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.06);
}

/* Loading */
.at-compare__loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 0;
}

.at-compare__loading-bar {
    height: 16px;
    background: #F5F3EE;
    border-radius: 8px;
    width: 100%;
}

/* Table wrapper */
.at-compare__wrap {
    overflow-x: auto;
    border: 1px solid var(--light-border, #EDE8DE);
    border-radius: 16px;
    background: #fff;
}

.at-compare__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans, 'Inter', sans-serif);
    min-width: 500px;
}

.at-compare__label-col {
    width: 120px;
    min-width: 120px;
    background: #FDFCF8;
}

.at-compare__product-col {
    min-width: 180px;
    text-align: center;
    vertical-align: top;
    padding: 20px 16px;
    border-right: 1px solid var(--light-border, #EDE8DE);
}

.at-compare__product-col:last-child {
    border-right: none;
}

/* Product header */
.at-compare__product-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.at-compare__remove {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F3EE;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--warm-gray, #8A8680);
    transition: all 0.2s;
    opacity: 0;
}

.at-compare__product-col:hover .at-compare__remove {
    opacity: 1;
}

.at-compare__remove:hover {
    background: #fee2e2;
    color: #e53e3e;
}

.at-compare__img-link {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #F5F3EE;
}

.at-compare__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-compare__brand {
    font-size: 10px;
    font-weight: 700;
    color: #E65A28;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.at-compare__name {
    font-size: 13px;
    font-weight: 600;
    color: #1D2A44;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.at-compare__name:hover {
    color: #E65A28;
}

/* Rows */
.at-compare__row {
    border-top: 1px solid var(--light-border, #EDE8DE);
}

.at-compare__row:hover {
    background: rgba(29, 42, 68, 0.02);
}

.at-compare__label {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--warm-gray, #8A8680);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #FDFCF8;
    white-space: nowrap;
    vertical-align: middle;
}

.at-compare__cell {
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1D2A44;
    vertical-align: middle;
    border-right: 1px solid var(--light-border, #EDE8DE);
}

.at-compare__cell:last-child {
    border-right: none;
}

.at-compare__price {
    font-size: 15px;
    font-weight: 800;
    color: #1D2A44;
    font-variant-numeric: tabular-nums;
}

.at-compare__currency {
    font-size: 10px;
    font-weight: 400;
    color: var(--warm-gray, #8A8680);
    margin-right: 3px;
}

.at-compare__na {
    color: #ccc;
    font-size: 14px;
}

/* Gender tag */
.at-compare__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.at-compare__tag--male {
    background: rgba(59, 130, 246, 0.10);
    color: #3b82f6;
}

.at-compare__tag--female {
    background: rgba(236, 72, 153, 0.10);
    color: #ec4899;
}

.at-compare__tag--unisex {
    background: rgba(230, 90, 40, 0.10);
    color: #E65A28;
}

/* Notes */
.at-compare__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.at-compare__note {
    display: inline-block;
    padding: 3px 8px;
    background: #F5F3EE;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    color: #1D2A44;
}

/* Action row */
.at-compare__row--action {
    border-top: 2px solid var(--light-border, #EDE8DE);
}

.at-compare__cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1D2A44;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.at-compare__cart-btn:hover {
    background: #E65A28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 90, 40, 0.3);
}

/* Empty state */
.at-compare__empty {
    text-align: center;
    padding: 60px 20px;
}

.at-compare__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(29, 42, 68, 0.06);
    color: rgba(29, 42, 68, 0.3);
    margin-bottom: 20px;
}

.at-compare__empty-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 700;
    color: #1D2A44;
    margin: 0 0 8px;
}

.at-compare__empty-sub {
    font-size: 14px;
    color: var(--warm-gray, #8A8680);
    margin: 0 0 28px;
}

.at-compare__empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1D2A44;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans, 'Inter', sans-serif);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.at-compare__empty-btn:hover {
    background: #263656;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(29, 42, 68, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .at-compare__title {
        font-size: 20px;
    }

    .at-compare__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .at-compare__label-col {
        width: 90px;
        min-width: 90px;
    }

    .at-compare__product-col {
        min-width: 140px;
    }

    .at-compare__img-link {
        width: 72px;
        height: 72px;
    }
}
