/* ==========================================================================
   AURAANIX — Cart / Checkout / Orders / Account
   Shared dark premium theme. Gold accent (#c9974d). Bootstrap-compatible.
   ========================================================================== */

.ax-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(201, 151, 77, 0.08) 0%, transparent 40%),
        var(--ax-black, #0a0a0a);
    color: #fff;
    min-height: calc(100vh - 88px);
    padding: 40px 20px 80px;
}
.ax-wrap { max-width: 1200px; margin: 0 auto; }
.ax-wrap--narrow { max-width: 880px; }

/* ---- Page header ---- */
.ax-phead { margin-bottom: 28px; }
.ax-phead__crumbs { font-size: 12.5px; color: #7a7a7a; margin-bottom: 10px; letter-spacing: 0.4px; }
.ax-phead__crumbs a { color: #9a9a9a; }
.ax-phead__crumbs a:hover { color: var(--ax-gold, #c9974d); }
.ax-phead__title {
    margin: 0;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.ax-phead__sub { margin: 6px 0 0; color: #8a8a8a; font-size: 14px; }

/* ---- Layout grids ---- */
.ax-grid-cart {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.ax-grid-account {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Cards ---- */
.ax-card {
    background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
}
.ax-card + .ax-card { margin-top: 20px; }
.ax-card__title {
    margin: 0 0 18px;
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: #cfcfcf;
}

/* ---- Cart items ---- */
.ax-citem {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ax-citem:first-child { padding-top: 0; }
.ax-citem:last-child { border-bottom: 0; padding-bottom: 0; }
.ax-citem__media {
    width: 92px; height: 110px;
    border-radius: 12px; overflow: hidden;
    background: #1b1b1b; border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
}
.ax-citem__media img { width: 100%; height: 100%; object-fit: cover; }
.ax-citem__name { font-size: 15.5px; font-weight: 600; margin: 0 0 5px; }
.ax-citem__name a { color: #fff; }
.ax-citem__name a:hover { color: var(--ax-gold, #c9974d); }
.ax-citem__meta { color: #8a8a8a; font-size: 12.5px; margin-bottom: 4px; }
.ax-tag {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px; padding: 3px 9px;
    background: rgba(201, 151, 77, 0.14);
    border: 1px solid rgba(201, 151, 77, 0.4);
    border-radius: 20px;
    color: var(--ax-gold, #c9974d); font-size: 11px; font-weight: 600;
}
.ax-citem__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ax-citem__price { font-size: 16px; font-weight: 700; }
.ax-citem__unit { color: #7a7a7a; font-size: 12px; }
.ax-citem__remove {
    background: none; border: 0; color: #777; font-size: 12.5px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
}
.ax-citem__remove:hover { color: #ff8b85; }

/* ---- Quantity stepper ---- */
.ax-step {
    display: inline-flex; align-items: center;
    border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; overflow: hidden;
}
.ax-step__btn {
    width: 34px; height: 36px; background: #1a1a1a; border: 0; color: #fff;
    font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ax-step__btn:hover { background: #242424; }
.ax-step__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ax-step__val {
    width: 44px; height: 36px; text-align: center; background: #111; color: #fff;
    border: 0; border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1);
    font-size: 14px; font-weight: 600; -moz-appearance: textfield;
}
.ax-step__val::-webkit-outer-spin-button,
.ax-step__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Order summary box ---- */
.ax-summary2 { position: sticky; top: 20px; }
.ax-srow { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; color: #c4c4c4; }
.ax-srow b { color: #fff; font-weight: 600; }
.ax-srow--free b { color: #7fe0b6; }
.ax-srow--discount b { color: #7fe0b6; }
.ax-sdiv { height: 1px; background: rgba(255,255,255,0.09); margin: 10px 0; }
.ax-stotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.ax-stotal span { font-size: 14px; color: #cfcfcf; text-transform: uppercase; letter-spacing: 1px; }
.ax-stotal b { font-size: 26px; font-weight: 800; }

/* ---- Coupon ---- */
.ax-coupon { display: flex; gap: 10px; margin-top: 4px; }
.ax-coupon input {
    flex: 1; height: 46px; padding: 0 14px;
    background: #1a1a1a; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    color: #fff; font-size: 13.5px; outline: none; text-transform: uppercase;
}
.ax-coupon input:focus { border-color: var(--ax-gold, #c9974d); }
.ax-coupon__applied {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 4px; padding: 12px 14px;
    background: rgba(31, 138, 95, 0.1); border: 1px dashed rgba(31, 138, 95, 0.5);
    border-radius: 10px; color: #7fe0b6; font-size: 13px;
}
.ax-coupon__applied button { background: none; border: 0; color: #ff8b85; cursor: pointer; font-size: 12.5px; }

/* ---- Available coupon list ---- */
.ax-coupon-list { margin-top: 14px; }
.ax-coupon-list__head {
    font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
    color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.ax-coupon-chip {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; margin-bottom: 8px;
    background: rgba(201,151,77,0.07); border: 1px dashed rgba(201,151,77,0.45);
    border-radius: 10px; cursor: pointer; text-align: left; transition: background .15s ease;
}
.ax-coupon-chip:hover { background: rgba(201,151,77,0.16); }
.ax-coupon-chip__code {
    font-weight: 700; font-size: 13px; letter-spacing: .5px; color: var(--ax-gold, #c9974d);
    text-transform: uppercase;
}
.ax-coupon-chip__label { flex: 1; font-size: 12px; color: rgba(255,255,255,0.7); }
.ax-coupon-chip__apply { font-size: 12px; font-weight: 600; color: #fff; }

/* ---- Buttons ---- */
.ax-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; padding: 0 24px; border-radius: 12px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; border: 1px solid transparent; transition: all 0.18s ease; width: 100%;
}
.ax-btn--gold {
    background: linear-gradient(180deg, #d8a657 0%, #c9974d 100%);
    color: #1a1206; box-shadow: 0 12px 26px rgba(201, 151, 77, 0.26);
}
.ax-btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); color: #1a1206; }
.ax-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.2); color: #fff; }
.ax-btn--ghost:hover { border-color: var(--ax-gold, #c9974d); color: var(--ax-gold, #c9974d); }
.ax-btn--sm { height: 42px; padding: 0 18px; font-size: 12.5px; width: auto; }
.ax-btn--danger { background: rgba(210, 59, 59, 0.12); border-color: rgba(210,59,59,0.4); color: #ff8b85; }
.ax-btn--danger:hover { background: rgba(210, 59, 59, 0.2); }
.ax-btn:disabled { opacity: 0.6; pointer-events: none; }

/* ---- Empty state ---- */
.ax-empty { text-align: center; padding: 70px 20px; }
.ax-empty__ic {
    width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
    background: #161616; border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: #5a5a5a;
}
.ax-empty h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.ax-empty p { color: #8a8a8a; font-size: 14px; margin: 0 0 24px; }

/* ---- Alerts (flash) ---- */
.ax-flash { margin-bottom: 22px; padding: 13px 16px; border-radius: 11px; font-size: 14px; }
.ax-flash--success { background: rgba(31,138,95,0.12); border: 1px solid rgba(31,138,95,0.4); color: #7fe0b6; }
.ax-flash--error { background: rgba(224,86,79,0.1); border: 1px solid rgba(224,86,79,0.35); color: #ff9a94; }

/* ---- Account sidebar ---- */
.ax-side { background: linear-gradient(180deg,#141414,#0f0f0f); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 12px; position: sticky; top: 20px; }
.ax-side__user { display: flex; align-items: center; gap: 12px; padding: 14px 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 10px; }
.ax-side__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#d8a657,#c9974d); color:#1a1206; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; overflow:hidden; flex:none; }
.ax-side__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Profile photo uploader */
.ax-avatar-edit { display: flex; align-items: center; gap: 18px; }
.ax-avatar-edit__pic {
    width: 84px; height: 84px; border-radius: 50%; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#d8a657,#c9974d); color: #1a1206;
    font-weight: 800; font-size: 34px;
    border: 2px solid rgba(200,164,93,.5);
}
.ax-avatar-edit__pic img { width: 100%; height: 100%; object-fit: cover; }
.ax-avatar-edit__meta { display: flex; flex-direction: column; }
.ax-side__name { font-weight: 700; font-size: 14.5px; }
.ax-side__mob { color: #8a8a8a; font-size: 12.5px; }
.ax-side__link {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
    color: #c4c4c4; font-size: 14px; font-weight: 500;
}
.ax-side__link svg { color: #8a8a8a; }
.ax-side__link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ax-side__link.is-active { background: rgba(201,151,77,0.12); color: var(--ax-gold,#c9974d); }
.ax-side__link.is-active svg { color: var(--ax-gold,#c9974d); }
.ax-side__link--danger { color: #ff8b85; }

/* ---- Forms ---- */
.ax-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ax-form-grid .ax-col-2 { grid-column: 1 / -1; }
.ax-f { margin-bottom: 2px; }
.ax-f__label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: #d7dbe2; }
.ax-f__input, .ax-f textarea, .ax-f select {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: #1a1a1a; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.ax-f__input:focus, .ax-f textarea:focus, .ax-f select:focus { border-color: var(--ax-gold,#c9974d); box-shadow: 0 0 0 3px rgba(201,151,77,0.14); }
.ax-f__err { display: block; margin-top: 6px; color: #ff8b85; font-size: 12px; }

/* ---- Address / radio cards ---- */
.ax-addr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ax-addr__card { position: relative; cursor: pointer; }
.ax-addr__card input { position: absolute; opacity: 0; }
.ax-addr__body {
    height: 100%; padding: 16px; border-radius: 12px;
    background: #161616; border: 1px solid rgba(255,255,255,0.1); transition: all 0.18s ease;
}
.ax-addr__card input:checked + .ax-addr__body { border-color: var(--ax-gold,#c9974d); background: rgba(201,151,77,0.06); }
.ax-addr__name { font-weight: 700; font-size: 14px; margin-bottom: 4px; display:flex; align-items:center; gap:8px; }
.ax-addr__pill { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: rgba(201,151,77,0.18); color: var(--ax-gold,#c9974d); font-weight:600; }
.ax-addr__text { color: #9a9a9a; font-size: 13px; line-height: 1.55; }
.ax-addr__edit {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: rgba(201,151,77,0.12); border: 1px solid rgba(201,151,77,0.4);
    color: var(--ax-gold,#c9974d); font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 8px; cursor: pointer; line-height: 1.4;
    transition: background 0.15s ease;
}
.ax-addr__edit:hover { background: rgba(201,151,77,0.22); }

/* ---- Payment options ---- */
.ax-pay { display: flex; flex-direction: column; gap: 12px; }
.ax-pay__opt { position: relative; cursor: pointer; }
.ax-pay__opt input { position: absolute; opacity: 0; }
.ax-pay__body {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: 12px; background: #161616; border: 1px solid rgba(255,255,255,0.1); transition: all 0.18s ease;
}
.ax-pay__opt input:checked + .ax-pay__body { border-color: var(--ax-gold,#c9974d); background: rgba(201,151,77,0.06); }
.ax-pay__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); flex:0 0 auto; }
.ax-pay__opt input:checked + .ax-pay__body .ax-pay__radio { border-color: var(--ax-gold,#c9974d); box-shadow: inset 0 0 0 4px var(--ax-gold,#c9974d); }
.ax-pay__label { font-weight: 600; font-size: 14px; }
.ax-pay__desc { color: #8a8a8a; font-size: 12.5px; }

/* ---- Status badge ---- */
.ax-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.ax-badge--placed { background: rgba(138,138,138,0.18); color: #cfcfcf; }
.ax-badge--confirmed { background: rgba(43,89,195,0.18); color: #8fb0ff; }
.ax-badge--shipped { background: rgba(23,135,160,0.18); color: #79d6e6; }
.ax-badge--delivered { background: rgba(31,138,95,0.18); color: #7fe0b6; }
.ax-badge--cancelled { background: rgba(210,59,59,0.16); color: #ff9a94; }
.ax-badge--pending { background: rgba(226,129,46,0.18); color: #f3b97e; }
.ax-badge--paid { background: rgba(31,138,95,0.18); color: #7fe0b6; }
.ax-badge--failed { background: rgba(210,59,59,0.16); color: #ff9a94; }

/* ---- Orders list ---- */
.ax-order { display: block; margin-bottom: 16px; }
.ax-order__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ax-order__no { font-weight: 700; font-size: 15px; }
.ax-order__date { color: #8a8a8a; font-size: 12.5px; }
.ax-order__thumbs { display: flex; align-items: center; gap: 10px; }
.ax-order__thumb { width: 52px; height: 62px; border-radius: 9px; overflow: hidden; background: #1b1b1b; border: 1px solid rgba(255,255,255,0.08); }
.ax-order__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ax-order__more { color: #8a8a8a; font-size: 13px; }
.ax-order__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

/* ---- Order timeline ---- */
.ax-steps { display: flex; align-items: flex-start; margin: 8px 0 6px; }
.ax-steps__item { flex: 1; text-align: center; position: relative; }
.ax-steps__dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 10px; background: #1c1c1c; border: 2px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; color:#777; position: relative; z-index: 1; }
.ax-steps__item.is-done .ax-steps__dot { background: var(--ax-gold,#c9974d); border-color: var(--ax-gold,#c9974d); color: #1a1206; }
.ax-steps__item::before { content:""; position:absolute; top:15px; left:-50%; width:100%; height:2px; background: rgba(255,255,255,0.12); z-index:0; }
.ax-steps__item:first-child::before { display:none; }
.ax-steps__item.is-done::before { background: var(--ax-gold,#c9974d); }
.ax-steps__label { font-size: 12px; color: #9a9a9a; }
.ax-steps__item.is-done .ax-steps__label { color: #fff; }

/* ---- Misc ---- */
.ax-link-gold { color: var(--ax-gold,#c9974d); font-weight: 600; font-size: 13.5px; }
.ax-link-gold:hover { text-decoration: underline; }
.ax-mt { margin-top: 18px; }
.ax-muted { color: #8a8a8a; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .ax-grid-cart, .ax-grid-account { grid-template-columns: 1fr; }
    .ax-summary2 { position: static; }
    .ax-side { position: static; }
    .ax-addr { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .ax-form-grid { grid-template-columns: 1fr; }
    .ax-citem { grid-template-columns: 72px 1fr; }
    .ax-citem__media { width: 72px; height: 88px; }
    .ax-citem__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .ax-phead__title { font-size: 26px; }
}
