/* ═══════════════════════════════════════════════════════════════
   PARINHALL — LOGIN / MY ACCOUNT
═══════════════════════════════════════════════════════════════ */

[x-cloak] { display: none !important; }

@keyframes phFade { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes phPop  { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:scale(1); } }

/* ══════════════════════════════════════════════════════════════
   AUTH WRAP (login/register — centred full-viewport)
══════════════════════════════════════════════════════════════ */
.ph-auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(80% 60% at 14% 86%, rgba(27,122,140,.10), transparent 55%),
        radial-gradient(60% 70% at 86% 14%, rgba(226,115,74,.08), transparent 55%),
        #F4F1EB;
    padding: 32px 16px;
    direction: rtl;
}

/* Logo */
.ph-auth-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
}
.ph-auth-logo__orange { font-family:'Vazirmatn',sans-serif; font-weight:700; font-size:28px; color:#E2734A; line-height:1.1; }
.ph-auth-logo__teal   { font-family:'Vazirmatn',sans-serif; font-weight:700; font-size:28px; color:#1B7A8C; line-height:1.1; }
.ph-auth-logo__sub    { font-family:'Markazi Text',serif; font-size:13px; color:#8A9382; }

/* Card */
.ph-auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 60px -24px rgba(32,38,31,.16), 0 4px 18px -8px rgba(32,38,31,.08);
    overflow: hidden;
}

.ph-auth-card__top  { padding: 32px 40px 0; }
.ph-auth-card__body { padding: 0 40px 36px; }

/* Tabs */
.ph-auth-tabs {
    display: flex;
    background: #F4F1EB;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}
.ph-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #5B6358;
    transition: all .25s;
}
.ph-auth-tab--active {
    background: #fff;
    font-weight: 600;
    color: #20261F;
    box-shadow: 0 1px 4px rgba(32,38,31,.12);
}

/* Progress bar */
.ph-auth-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.ph-auth-progress__bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: #E0DDD8;
    transition: background .3s;
}
.ph-auth-progress__bar--on { background: #1B7A8C; }

/* Title / sub */
.ph-auth-title {
    font-family: 'Markazi Text', serif;
    font-weight: 600;
    font-size: 30px;
    color: #20261F;
    margin-bottom: 5px;
    margin-top: 4px;
}
.ph-auth-sub {
    font-size: 13.5px;
    color: #8A9382;
    margin-bottom: 22px;
    line-height: 1.7;
}

/* Back link */
.ph-auth-back {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 22px;
    color: #8A9382;
    font-size: 13px;
    width: fit-content;
    transition: color .18s;
}
.ph-auth-back:hover { color: #20261F; }

/* Field */
.ph-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.ph-auth-field label {
    font-size: 12.5px;
    color: #5B6358;
}

.ph-auth-input {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #20261F;
    background: #fff;
    border: 1.5px solid rgba(32,38,31,.14);
    border-radius: 12px;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    transition: border-color .2s;
}
.ph-auth-input:focus { border-color: #1B7A8C; }
.ph-auth-input--ltr  { direction: ltr; text-align: left; }
.ph-auth-select { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* Phone input with +98 prefix */
.ph-auth-phone-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(32,38,31,.14);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s;
}
.ph-auth-phone-wrap:focus-within { border-color: #1B7A8C; }
.ph-auth-phone-prefix {
    padding: 13px 14px;
    border-left: 1.5px solid rgba(32,38,31,.1);
    font-size: 13.5px;
    color: #5B6358;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #F7F4EF;
}
.ph-auth-phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 14px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14.5px;
    color: #20261F;
    background: transparent;
    text-align: left;
    letter-spacing: .5px;
    direction: ltr;
}

/* Toggle method */
.ph-auth-toggle-method {
    font-size: 13px;
    color: #1B7A8C;
    cursor: pointer;
    margin-bottom: 16px;
    margin-top: 4px;
}
.ph-auth-toggle-method:hover { text-decoration: underline; }

/* Password wrap */
.ph-auth-pass-wrap { position: relative; }
.ph-auth-pass-wrap .ph-auth-input { padding-left: 44px; }
.ph-auth-pass-eye {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8A9382;
    padding: 0;
    display: flex;
    transition: color .2s;
}
.ph-auth-pass-eye:hover { color: #20261F; }

/* OTP boxes */
.ph-auth-otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.ph-auth-otp-box {
    width: 58px;
    height: 66px;
    border-radius: 14px;
    border: 1.5px solid rgba(32,38,31,.14);
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #20261F;
    outline: none;
    background: #FAFAF7;
    font-family: 'Markazi Text', serif;
    transition: border-color .2s, background .2s;
    cursor: text;
}
.ph-auth-otp-box:focus { border-color: #1B7A8C; background: #fff; }

/* OTP timer */
.ph-auth-otp-timer { text-align: center; margin-bottom: 24px; }
.ph-auth-resend { font-size: 13.5px; color: #1B7A8C; cursor: pointer; }
.ph-auth-resend:hover { text-decoration: underline; }

/* Grid 2-col */
.ph-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

/* Terms checkbox */
.ph-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1.5px solid rgba(32,38,31,.12);
    background: #F9F7F4;
    transition: all .2s;
    margin-bottom: 22px;
    font-size: 13px;
    color: #5B6358;
    line-height: 1.7;
}
.ph-auth-terms--on {
    border-color: #1B7A8C;
    background: #E0F2F5;
}
.ph-auth-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(32,38,31,.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all .2s;
}
.ph-auth-checkbox--on {
    background: #1B7A8C;
    border-color: #1B7A8C;
}
.ph-auth-link {
    color: #1B7A8C;
    border-bottom: 1px solid rgba(27,122,140,.4);
}

/* CTA button */
.ph-auth-cta {
    display: block;
    width: 100%;
    background: #E2734A;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 22px;
    transition: background .25s;
}
.ph-auth-cta:hover { background: #C9541F; }
.ph-auth-cta--disabled { background: #D8D2C8 !important; cursor: default; }

/* Divider */
.ph-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.ph-auth-divider::before,
.ph-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(32,38,31,.1);
}
.ph-auth-divider span { font-size: 12px; color: #A6AC9E; }

/* Social buttons */
.ph-auth-social { display: flex; flex-direction: column; gap: 10px; }
.ph-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border-radius: 12px;
    padding: 13px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: all .2s;
}
.ph-auth-social-btn--google {
    background: #fff;
    border: 1.5px solid rgba(32,38,31,.14);
    color: #20261F;
}
.ph-auth-social-btn--google:hover { border-color: rgba(32,38,31,.3); background: #F7F4EF; }
.ph-auth-social-btn--apple {
    background: #000;
    border: none;
    color: #fff;
}
.ph-auth-social-btn--apple:hover { opacity: .85; }

/* Error */
.ph-auth-err {
    font-size: 13px;
    color: #C0392B;
    background: #FDF2F2;
    border: 1px solid #F5C6CB;
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* Bottom links */
.ph-auth-footer-links {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: #8A9382;
}
.ph-auth-footer-links span { cursor: pointer; }
.ph-auth-footer-links span:hover { color: #20261F; }

/* ══════════════════════════════════════════════════════════════
   ACCOUNT HEADER
══════════════════════════════════════════════════════════════ */
body.woocommerce-account .ph-header,
body.woocommerce-account .ph-header-placeholder,
body.woocommerce-account .ph-announcement { display: none !important; }
body.woocommerce-account { background: #F4F1EB; }

.ph-acc-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251,249,245,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(32,38,31,.07);
    direction: rtl;
}
.ph-acc-header > * { max-width: 1440px; margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 18px; }

/* Reuse ph-co-header__logo styles — logo uses same classes */
.ph-acc-header__logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
}
.ph-acc-header__sub {
    font-family: 'Markazi Text', serif;
    font-size: 12px;
    color: #8A9382;
    margin-right: 7px;
}
.ph-acc-header__cart {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #20261F;
    border-radius: 22px;
    padding: 8px 15px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}
.ph-acc-header__cart-badge {
    background: #E2734A;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════════
   ACCOUNT LAYOUT
══════════════════════════════════════════════════════════════ */
.ph-acc-wrap {
    direction: rtl;
    min-height: 100vh;
    background: #F4F1EB;
}

.ph-acc-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px 80px;
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 26px;
    align-items: start;
    min-height: 60vh;
}

/* Content area: ensure visibility even before Alpine loads */
.ph-acc-content {
    min-height: 400px;
}

/* Show dashboard by default; Alpine x-show overrides */
.ph-acc-content > div[x-show] {
    display: none;
}
.ph-acc-content > div[x-show]:first-child {
    display: block; /* dashboard visible by default */
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.ph-acc-sidebar { position: sticky; top: 90px; }

.ph-acc-profile-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(32,38,31,.07);
    text-align: center;
}
.ph-acc-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B7A8C, #7ABCC8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 11px;
    font-family: 'Markazi Text', serif;
    font-weight: 600;
    font-size: 30px;
    color: #fff;
}
.ph-acc-profile-name  { font-family:'Markazi Text',serif; font-weight:600; font-size:22px; color:#20261F; line-height:1.2; }
.ph-acc-profile-email { font-size:12.5px; color:#8A9382; margin-top:2px; margin-bottom:18px; }

.ph-acc-loyalty {
    background: linear-gradient(135deg, #F4EEE4, #F1E2D6);
    border-radius: 11px;
    padding: 12px 14px;
    text-align: center;
}
.ph-acc-loyalty__tier  { font-size:10.5px; color:#C9541F; margin-bottom:2px; }
.ph-acc-loyalty__pts   { font-family:'Markazi Text',serif; font-weight:600; font-size:20px; color:#20261F; line-height:1.2; }
.ph-acc-loyalty__bar   { height:4px; background:rgba(32,38,31,.1); border-radius:4px; margin:8px 0 5px; overflow:hidden; }
.ph-acc-loyalty__fill  { height:100%; background:linear-gradient(to left,#E2734A,#F0A77E); border-radius:4px; }
.ph-acc-loyalty__next  { font-size:11px; color:#8A9382; }

/* Nav */
.ph-acc-nav {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(32,38,31,.07);
}
.ph-acc-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(32,38,31,.05);
    background: transparent;
    text-decoration: none;
    transition: background .18s;
}
.ph-acc-nav__item:hover { background: #F7F4EF; }
.ph-acc-nav__item--active { background: #F0FAFB; }
.ph-acc-nav__item--active .ph-acc-nav__label { color: #1B7A8C; font-weight: 600; }

.ph-acc-nav__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ph-acc-nav__label { flex: 1; font-size: 14px; color: #20261F; }
.ph-acc-nav__badge {
    background: #E2734A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.ph-acc-nav__item--logout .ph-acc-nav__label,
.ph-acc-nav__item--logout span:not(.ph-acc-nav__icon *) { color: #C9541F; }
.ph-acc-nav__item--logout:hover { background: #FDE8DE; }

/* ── CONTENT ─────────────────────────────────────────────── */
.ph-acc-content { animation: phFade .25s ease; }

.ph-acc-section-title {
    font-family: 'Markazi Text', serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px);
    color: #20261F;
    margin-bottom: 22px;
    line-height: 1.2;
}

/* Stats row */
.ph-acc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
.ph-acc-stat {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(32,38,31,.07);
}
.ph-acc-stat__label { font-size:11px; color:#8A9382; margin-bottom:5px; }
.ph-acc-stat__value { font-family:'Markazi Text',serif; font-weight:600; font-size:28px; line-height:1.1; }
.ph-acc-stat__sub   { font-size:11.5px; color:#A6AC9E; margin-top:3px; }

/* Panel */
.ph-acc-panel {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(32,38,31,.07);
}
.ph-acc-panel__hdr {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(32,38,31,.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ph-acc-panel__title { font-family:'Markazi Text',serif; font-weight:600; font-size:22px; color:#20261F; }
.ph-acc-panel__link  { font-size:13px; color:#1B7A8C; cursor:pointer; border-bottom:1px solid #1B7A8C; }

/* Order row (dashboard) */
.ph-acc-order-row {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(32,38,31,.05);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ph-acc-order-thumbs { display:flex; }
.ph-acc-order-thumb {
    width: 44px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #fff;
    margin-left: -8px;
    flex-shrink: 0;
}
.ph-acc-order-thumb:first-child { margin-left: 0; }
.ph-acc-order-info  { flex:1; min-width:140px; }
.ph-acc-order-id    { font-size:13.5px; font-weight:500; color:#20261F; }
.ph-acc-order-meta  { font-size:12px; color:#8A9382; }
.ph-acc-order-total { font-size:13.5px; font-weight:600; color:#20261F; }
/* Override WC price output */
.ph-acc-order-total .woocommerce-Price-amount { color:#20261F; font-size:13.5px; }

/* Status badge */
.ph-acc-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}
.ph-acc-status-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.ph-acc-status-badge span { font-size:12px; font-weight:500; }

/* Detail / track buttons */
.ph-acc-btn-detail {
    background: #F4F1EB;
    border: none;
    border-radius: 9px;
    padding: 8px 16px;
    font-size: 12.5px;
    color: #20261F;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.ph-acc-btn-detail:hover { background: #E0F2F5; color: #1B7A8C; }

.ph-acc-btn-track {
    background: #E0F2F5;
    border: none;
    border-radius: 9px;
    padding: 8px 16px;
    font-size: 12.5px;
    color: #1B7A8C;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.ph-acc-btn-track:hover { background: #1B7A8C; color: #fff; }

/* Orders list */
.ph-acc-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ph-acc-filter-tab {
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid rgba(32,38,31,.12);
    background: #fff;
    color: #5B6358;
    transition: all .2s;
    white-space: nowrap;
}
.ph-acc-filter-tab--active {
    background: #20261F;
    color: #fff;
    border-color: #20261F;
}

.ph-acc-orders-list { display: flex; flex-direction: column; gap: 14px; }

.ph-acc-order-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(32,38,31,.07);
}
.ph-acc-order-card__hdr {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(32,38,31,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.ph-acc-order-card__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ph-acc-order-card__meta-label { font-size:12px; color:#8A9382; }
.ph-acc-order-card__meta-val   { font-size:14px; font-weight:600; color:#20261F; }
/* WC price in order */
.ph-acc-order-card__meta-val .woocommerce-Price-amount { font-size:14px; }

.ph-acc-order-card__body {
    padding: 14px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.ph-acc-order-card__thumb {
    width: 52px;
    height: 60px;
    border-radius: 9px;
    flex-shrink: 0;
}
.ph-acc-order-card__names {
    flex: 1;
    min-width: 150px;
    font-size: 13px;
    color: #5B6358;
    line-height: 1.7;
}

/* Profile form */
.ph-acc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.ph-acc-btn-save {
    background: #E2734A;
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 12px 28px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.ph-acc-btn-save:hover { background: #C9541F; }

/* Addresses */
.ph-acc-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ph-acc-addr-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    position: relative;
}
.ph-acc-addr-default-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #E0F2F5;
    color: #1B7A8C;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}
.ph-acc-addr-title { font-size:14.5px; font-weight:600; color:#20261F; margin-bottom:5px; }
.ph-acc-addr-text  { font-size:13px; color:#5B6358; line-height:1.8; margin-bottom:14px; }
.ph-acc-addr-actions { display:flex; gap:10px; }
.ph-acc-btn-edit {
    background: #F4F1EB;
    border: none;
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 12.5px;
    color: #20261F;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.ph-acc-btn-edit:hover { background: #E0F2F5; color: #1B7A8C; }
.ph-acc-btn-delete {
    background: #FDE8DE;
    border: none;
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 12.5px;
    color: #C9541F;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: background .2s, color .2s;
}
.ph-acc-btn-delete:hover { background: #C9541F; color: #fff; }

.ph-acc-btn-add-addr {
    background: #E2734A;
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    transition: background .2s;
}
.ph-acc-btn-add-addr:hover { background: #C9541F; }

/* ══════════════════════════════════════════════════════════════
   WISHLIST
══════════════════════════════════════════════════════════════ */

/* Count badge next to section title */
.ph-wl-count-badge {
    display: inline-block;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    font-weight: 500;
    background: #E0F2F5;
    color: #1B7A8C;
    padding: 2px 9px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Dashboard preview — 4-column compact grid */
.ph-wl-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 22px;
}

/* Full wishlist grid — 4 columns */
.ph-wl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Card — shared base */
.ph-wl-card {
    background: var(--ph-white);
    border: 1px solid rgba(32,38,31,0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
}
.ph-wl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -16px rgba(32,38,31,0.25);
}

/* Compact variant (dashboard preview) */
.ph-wl-card--compact {
    text-decoration: none;
    color: inherit;
}

/* Image area */
.ph-wl-card__image {
    position: relative;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    display: block;
    background: #F1EBE0;
}
.ph-wl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ph-wl-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #C4E8F0, #7ABCC8);
    font-family: 'Markazi Text', serif;
    font-size: 26px;
    color: rgba(255,255,255,0.7);
}

/* Heart badge (top-left in dashboard preview) */
.ph-wl-card__heart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(251,249,245,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Remove ✕ button (full grid cards) */
.ph-wl-card__remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(251,249,245,0.9);
    color: #C9541F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background .2s, color .2s;
    z-index: 2;
}
.ph-wl-card__remove:hover { background: #C9541F; color: #fff; }

/* Info */
.ph-wl-card__info { padding: 9px 12px 6px; }
.ph-wl-card__name {
    font-family: 'Markazi Text', serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    color: var(--ph-dark);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
    margin-bottom: 2px;
}
.ph-wl-card__name:hover { color: var(--ph-teal); }
.ph-wl-card__price { font-size: 12.5px; color: var(--ph-teal); font-weight: 600; }
.ph-wl-card__price ins { text-decoration: none; }

/* Add-to-cart button */
.ph-wl-card__add {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 8px;
    border: 1.5px solid rgba(32,38,31,0.12);
    border-radius: 9px;
    background: var(--ph-white);
    color: var(--ph-teal);
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    text-align: center;
}
.ph-wl-card__add:hover { background: var(--ph-teal); color: #fff; border-color: var(--ph-teal); }
.ph-wl-card__add--oos { color: #8A9382; cursor: default; border-color: transparent; background: #F4F1EB; }

/* Empty state */
.ph-wl-empty {
    background: var(--ph-white);
    border-radius: 16px;
    border: 1px solid rgba(32,38,31,0.07);
    padding: 60px 32px;
    text-align: center;
}
.ph-wl-empty__icon { margin-bottom: 18px; }
.ph-wl-empty__title { font-family: 'Markazi Text', serif; font-size: 24px; font-weight: 600; color: var(--ph-dark); margin-bottom: 8px; }
.ph-wl-empty__sub { font-size: 13.5px; color: #8A9382; }

/* Responsive */
@media (max-width: 900px) {
    .ph-wl-grid, .ph-wl-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ph-wl-grid, .ph-wl-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ph-acc-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ph-acc-layout { grid-template-columns: 1fr; padding: 20px 16px 60px; }
    .ph-acc-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .ph-acc-profile-card { margin-bottom: 0; }
    .ph-acc-addr-grid { grid-template-columns: 1fr; }
    .ph-acc-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .ph-auth-card__top, .ph-auth-card__body { padding-left: 22px; padding-right: 22px; }
    .ph-auth-otp-box  { width: 44px; height: 54px; font-size: 22px; }
    .ph-auth-grid-2   { grid-template-columns: 1fr; }
    .ph-acc-stats     { grid-template-columns: 1fr 1fr; }
    .ph-acc-sidebar   { grid-template-columns: 1fr; }
    .ph-acc-order-card__meta { gap: 12px; }
}
