:root {
    --tj-radius-lg: 2rem;
    --tj-radius-md: 1.25rem;
    --tj-border: rgba(251, 191, 36, 0.18);
    --tj-muted: rgba(255, 247, 237, 0.72);
}

* { box-sizing: border-box; }
body.tj-page {
    margin: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.15), transparent 28rem),
        radial-gradient(circle at 88% 0%, rgba(124, 45, 18, 0.22), transparent 30rem),
        var(--tj-dark);
    color: var(--tj-light);
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.tj-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.tj-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--tj-border);
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(16px);
}
.tj-header-inner {
    min-height: 88px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.tj-brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.tj-brand-logo-wrap {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 45%, rgba(251, 191, 36, .14), rgba(0, 0, 0, 0));
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, .34));
}
.tj-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transform: scale(1.05);
}
.tj-brand strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.tj-brand small { display: block; margin-top: 0.25rem; color: var(--tj-muted); max-width: 22rem; }
.tj-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.tj-nav a {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    color: rgba(255, 247, 237, 0.9);
    transition: 0.2s ease;
    font-weight: 750;
}
.tj-nav a:hover { border-color: var(--tj-border); background: rgba(255, 255, 255, 0.05); }
.tj-cart-link { display: inline-flex; gap: 0.55rem; align-items: center; background: rgba(245, 158, 11, 0.14); }
.tj-cart-link span { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.35rem; border-radius: 999px; background: var(--tj-accent); color: #1c1917; font-weight: 950; }
.tj-kicker { margin: 0; color: var(--tj-accent); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.78rem; font-weight: 950; }
.tj-hero { padding: 4.5rem 0 3rem; }
.tj-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 2rem; align-items: center; }
.tj-hero h1, .tj-section h2, .tj-product-detail h1, .tj-page-heading h1 { margin: 0.85rem 0 0; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: 0.95; font-weight: 950; letter-spacing: -0.05em; }
.tj-hero p, .tj-page-heading p, .tj-product-detail .lead { color: var(--tj-muted); font-size: 1.15rem; line-height: 1.85; }
.tj-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.tj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.95rem 1.35rem;
    border-radius: 1.1rem;
    border: 1px solid var(--tj-border);
    font-weight: 950;
    transition: 0.2s ease;
}
.tj-btn-primary { background: var(--tj-accent); border-color: transparent; color: #1c1917; }
.tj-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.tj-btn-secondary:hover, .tj-btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
.tj-hero-card, .tj-panel, .tj-product-card, .tj-category-card, .tj-filter-card, .tj-cart-summary, .tj-cart-item, .tj-detail-card {
    border: 1px solid var(--tj-border);
    background: rgba(24, 24, 27, 0.88);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}
.tj-hero-card { border-radius: var(--tj-radius-lg); padding: 1.25rem; }
.tj-hero-image {
    min-height: 430px;
    border-radius: calc(var(--tj-radius-lg) - 0.5rem);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(124, 45, 18, 0.62)),
        radial-gradient(circle at 30% 35%, rgba(255,255,255,0.22), transparent 13rem),
        linear-gradient(145deg, #292524, #0c0a09);
    display: grid;
    align-content: end;
    padding: 2rem;
}
.tj-hero-image strong { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; font-weight: 950; }
.tj-hero-image span { display: block; margin-top: 0.8rem; color: rgba(255,247,237,0.82); font-weight: 700; }
.tj-stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.tj-stat-strip div { border: 1px solid var(--tj-border); border-radius: 1.2rem; padding: 1rem; background: rgba(255, 255, 255, 0.04); }
.tj-stat-strip strong { display: block; font-size: 1.45rem; }
.tj-stat-strip span { color: var(--tj-muted); font-size: 0.92rem; }
.tj-section { padding: 3rem 0; }
.tj-section-header { display: flex; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.tj-section h2, .tj-page-heading h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.tj-section-copy { color: var(--tj-muted); max-width: 45rem; line-height: 1.8; }
.tj-grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tj-product-card { overflow: hidden; border-radius: 1.75rem; min-height: 100%; display: flex; flex-direction: column; }
.tj-product-image-wrap { aspect-ratio: 1 / 0.86; display: block; background: rgba(255,255,255,0.04); }
.tj-product-image { width: 100%; height: 100%; object-fit: cover; }
.tj-product-placeholder { width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; font-weight: 950; font-size: 1.3rem; background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(124,45,18,.32)); }
.tj-product-content { display: flex; flex: 1; flex-direction: column; gap: 0.85rem; padding: 1.15rem; }
.tj-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tj-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.42rem 0.68rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 950; border: 1px solid var(--tj-border); }
.tj-badge-warm { background: rgba(194,65,12,0.18); color: #fdba74; }
.tj-badge-accent { background: rgba(245,158,11,0.18); color: #fde68a; }
.tj-badge-default { background: rgba(255,255,255,0.05); color: rgba(255,247,237,.86); }
.tj-product-content h3 { margin: 0; font-size: 1.22rem; line-height: 1.2; font-weight: 900; }
.tj-product-content p { margin: 0; color: var(--tj-muted); line-height: 1.65; font-size: 0.95rem; }
.tj-product-bottom { margin-top: auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 0.35rem; }
.tj-product-bottom strong { font-size: 1.05rem; color: #fde68a; }
.tj-product-bottom span { color: rgba(255,247,237,.66); font-size: 0.9rem; }
.tj-grid-categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.tj-category-card { border-radius: 1.5rem; padding: 1.2rem; min-height: 190px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(145deg, rgba(245,158,11,.12), rgba(124,45,18,.18)); }
.tj-category-card h3 { margin: 0; font-size: 1.2rem; font-weight: 950; }
.tj-category-card p { color: var(--tj-muted); line-height: 1.6; font-size: 0.92rem; }
.tj-page-heading { padding: 3.5rem 0 1.5rem; }
.tj-shop-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 1.5rem; padding-bottom: 4rem; }
.tj-filter-card { position: sticky; top: 110px; align-self: start; border-radius: 1.75rem; padding: 1.2rem; }
.tj-form-grid { display: grid; gap: 1rem; }
.tj-field label, .tj-field-label { display: block; margin-bottom: 0.45rem; color: rgba(255,247,237,.88); font-weight: 800; font-size: .92rem; }
.tj-input, .tj-select, .tj-textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255,247,237,.16);
    background: rgba(9,9,11,.78);
    color: var(--tj-light);
    padding: 0.9rem 1rem;
    outline: none;
}
.tj-input:focus, .tj-select:focus, .tj-textarea:focus { border-color: var(--tj-accent); }
.tj-toolbar { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tj-results-meta { color: var(--tj-muted); }
.tj-product-detail { padding: 3rem 0 4rem; }
.tj-detail-grid { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
.tj-gallery-main { overflow: hidden; border: 1px solid var(--tj-border); border-radius: 2rem; background: rgba(255,255,255,.04); }
.tj-gallery-main img { width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; }
.tj-gallery-placeholder { aspect-ratio: 1 / 0.92; display: grid; place-items: center; font-size: 2rem; font-weight: 950; background: linear-gradient(145deg, rgba(245,158,11,.22), rgba(124,45,18,.36)); }
.tj-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: .85rem; }
.tj-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1rem; border: 1px solid var(--tj-border); }
.tj-detail-card { border-radius: 2rem; padding: 1.5rem; }
.tj-price-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1.1rem 0; }
.tj-price-line strong { color: #fde68a; font-size: 2rem; }
.tj-variant-list { display: grid; gap: .8rem; margin-top: 1rem; }
.tj-variant-option { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--tj-border); border-radius: 1.15rem; background: rgba(255,255,255,.04); }
.tj-variant-option input { accent-color: var(--tj-accent); }
.tj-variant-option strong { display: block; }
.tj-variant-option span { color: var(--tj-muted); font-size: .92rem; }
.tj-quantity-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: end; margin-top: 1.2rem; }
.tj-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.tj-copy-panel { border: 1px solid var(--tj-border); border-radius: 1.5rem; padding: 1.2rem; background: rgba(255,255,255,.04); }
.tj-copy-panel h3 { margin: 0 0 .7rem; font-size: 1.1rem; font-weight: 950; }
.tj-copy-panel p, .tj-copy-panel li { color: var(--tj-muted); line-height: 1.75; }
.tj-nutrition { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.tj-nutrition th, .tj-nutrition td { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.09); text-align: left; }
.tj-cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 1.5rem; padding-bottom: 4rem; }
.tj-cart-list { display: grid; gap: 1rem; }
.tj-cart-item { border-radius: 1.6rem; padding: 1rem; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 1rem; }
.tj-cart-item img, .tj-cart-placeholder { width: 110px; height: 110px; border-radius: 1rem; object-fit: cover; background: rgba(255,255,255,.06); display: grid; place-items: center; font-weight: 950; }
.tj-cart-item h3 { margin: 0; font-size: 1.18rem; font-weight: 950; }
.tj-cart-controls { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-top: .8rem; }
.tj-cart-summary { border-radius: 1.75rem; padding: 1.25rem; align-self: start; }
.tj-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.tj-summary-total { font-size: 1.25rem; font-weight: 950; }
.tj-empty { border: 1px solid var(--tj-border); border-radius: 2rem; padding: 2rem; background: rgba(255,255,255,.04); text-align: center; }
.tj-alert { border-radius: 1rem; border: 1px solid; padding: 1rem; margin-bottom: 1rem; }
.tj-alert-success { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.12); color: #d1fae5; }
.tj-alert-error { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.12); color: #fee2e2; }
.tj-footer { border-top: 1px solid var(--tj-border); padding: 3rem 0; background: rgba(0,0,0,.22); }
.tj-footer-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: start; }
.tj-footer h2 { margin: .8rem 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; font-weight: 950; max-width: 42rem; }
.tj-footer p { color: var(--tj-muted); line-height: 1.75; }
.tj-footer-links { display: grid; gap: .8rem; }
.tj-footer-links a { color: rgba(255,247,237,.88); font-weight: 800; }
@media (max-width: 1080px) {
    .tj-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tj-grid-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tj-shop-layout, .tj-cart-layout, .tj-detail-grid, .tj-hero-grid { grid-template-columns: 1fr; }
    .tj-filter-card { position: static; }
}
@media (max-width: 760px) {
    .tj-header-inner, .tj-footer-grid, .tj-section-header { align-items: flex-start; flex-direction: column; }
    .tj-nav { justify-content: flex-start; }
    .tj-grid-products, .tj-grid-categories, .tj-info-grid, .tj-thumbs, .tj-stat-strip { grid-template-columns: 1fr; }
    .tj-cart-item { grid-template-columns: 1fr; }
    .tj-cart-item img, .tj-cart-placeholder { width: 100%; height: 220px; }
    .tj-quantity-row { grid-template-columns: 1fr; }
    .tj-shell { width: min(100% - 1.25rem, 1180px); }
}

/* ============================================================
   Phase 6: Checkout + Order Success
   ============================================================ */
.tj-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 4rem;
}
.tj-checkout-form { display: grid; gap: 1rem; }
.tj-checkout-card {
    border: 1px solid var(--tj-border);
    background: rgba(24, 24, 27, 0.88);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    border-radius: 1.75rem;
    padding: 1.35rem;
}
.tj-checkout-card h2 { margin: .8rem 0 1rem; font-size: 1.65rem; font-weight: 950; }
.tj-checkout-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.tj-checkout-grid.one { grid-template-columns: 1fr; }
.tj-checkout-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tj-checkout-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tj-checkbox-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid var(--tj-border);
    border-radius: 1rem;
    padding: .95rem 1rem;
    background: rgba(255,255,255,.04);
    font-weight: 850;
}
.tj-checkbox-row input { accent-color: var(--tj-accent); width: 1.1rem; height: 1.1rem; }
.tj-billing-fields { margin-top: 1rem; }
.tj-billing-fields.is-hidden { display: none; }
.tj-coupon-row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.tj-coupon-row .grow { flex: 1; min-width: 220px; }
.tj-checkout-submit-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tj-checkout-summary { position: sticky; top: 110px; }
.tj-checkout-items { display: grid; gap: .85rem; margin-top: 1.1rem; }
.tj-checkout-item-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tj-checkout-item-row strong { display: block; }
.tj-checkout-item-row span { display: block; margin-top: .25rem; color: var(--tj-muted); font-size: .92rem; }
.tj-success-layout { padding-bottom: 4rem; }
.tj-success-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.tj-success-grid .tj-cart-summary { grid-column: 1 / -1; }
.tj-success-meta { display: grid; gap: .55rem; color: var(--tj-muted); line-height: 1.7; }
.tj-success-meta p { margin: 0; }

@media (max-width: 1080px) {
    .tj-checkout-layout { grid-template-columns: 1fr; }
    .tj-checkout-summary { position: static; }
}
@media (max-width: 760px) {
    .tj-checkout-grid.two,
    .tj-checkout-grid.three,
    .tj-success-grid { grid-template-columns: 1fr; }
    .tj-success-grid .tj-cart-summary { grid-column: auto; }
    .tj-checkout-submit-row { flex-direction: column; }
}


/* ============================================================
   Phase 7: Customer Account Center
   ============================================================ */
.tj-auth-wrap { padding-bottom: 4rem; display: flex; justify-content: center; }
.tj-auth-card { width: min(760px, 100%); }
.tj-account-shell { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
.tj-account-nav {
    display: flex;
    gap: .9rem;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(251,191,36,.26);
    background: linear-gradient(135deg, rgba(24,24,27,.97), rgba(69,26,3,.78));
    border-radius: 1.75rem;
    padding: 1rem;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.tj-account-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 1rem;
    padding: .95rem 1.25rem;
    border: 1px solid rgba(251,191,36,.28);
    background: linear-gradient(135deg, rgba(120,53,15,.82), rgba(69,26,3,.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.18);
    font-weight: 950;
    letter-spacing: .01em;
    color: #fff7ed;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tj-account-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(251,191,36,.72);
    background: linear-gradient(135deg, rgba(180,83,9,.98), rgba(124,45,18,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 34px rgba(0,0,0,.28);
}
.tj-account-nav a.is-active {
    border-color: rgba(253,230,138,.95);
    color: #1c1917;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 18px 36px rgba(245,158,11,.28);
}
.tj-account-nav .tj-account-signout {
    margin-left: auto;
    border-color: rgba(248,113,113,.36);
    background: linear-gradient(135deg, rgba(127,29,29,.92), rgba(69,10,10,.94));
}
.tj-account-nav .tj-account-signout:hover {
    border-color: rgba(252,165,165,.78);
    background: linear-gradient(135deg, rgba(185,28,28,.98), rgba(127,29,29,.98));
}
.tj-account-card {
    border: 1px solid var(--tj-border);
    background: rgba(24, 24, 27, 0.88);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    border-radius: 1.75rem;
    padding: 1.35rem;
}
.tj-account-card h2, .tj-account-card h3 { margin: .65rem 0 1rem; font-weight: 950; line-height: 1.12; }
.tj-account-card h2 { font-size: 1.65rem; }
.tj-account-card h3 { font-size: 1.25rem; }
.tj-account-card > strong { display: block; font-size: clamp(2rem, 4vw, 3rem); color: #fde68a; margin: .65rem 0 .5rem; }
.tj-account-card > span, .tj-account-card > p { color: var(--tj-muted); line-height: 1.7; }
.tj-account-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.tj-account-email { font-size: 1.12rem !important; word-break: break-word; }
.tj-account-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.tj-account-quick-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.tj-account-link-card { display: block; min-height: 180px; transition: transform .2s ease, border-color .2s ease; }
.tj-account-link-card:hover { transform: translateY(-2px); border-color: rgba(251,191,36,.48); }
.tj-account-card-head { display: flex; gap: 1rem; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.tj-account-form { display: grid; gap: 1rem; }
.tj-account-actions { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.tj-account-order-list { display: grid; gap: .85rem; }
.tj-account-order-row {
    border: 1px solid var(--tj-border);
    border-radius: 1.2rem;
    background: rgba(255,255,255,.04);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.tj-account-order-row strong { display: block; }
.tj-account-order-row span { display: block; color: var(--tj-muted); margin-top: .25rem; }
.tj-account-address-preview { display: grid; gap: .35rem; font-style: normal; color: var(--tj-muted); line-height: 1.65; }
.tj-account-address-preview strong { color: var(--tj-light); }
.tj-account-empty { margin-top: .75rem; }
.tj-order-table-wrap { overflow-x: auto; }
.tj-account-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.tj-account-table th, .tj-account-table td { padding: .95rem .8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.tj-account-table th { color: rgba(255,247,237,.82); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.tj-table-muted { display: block; color: var(--tj-muted); margin-top: .25rem; font-size: .92rem; }
.tj-address-layout { align-items: start; }
.tj-address-list { display: grid; gap: 1rem; }
.tj-address-card { border: 1px solid var(--tj-border); border-radius: 1.35rem; background: rgba(255,255,255,.04); padding: 1rem; }
.tj-address-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.tj-address-card-head strong { font-size: 1.05rem; }
.tj-address-card-head span { color: #fde68a; font-weight: 850; }
.tj-address-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.tj-address-actions form { margin: 0; }
.tj-payment-placeholder { max-width: 900px; }
@media (max-width: 1080px) {
    .tj-account-stat-grid, .tj-account-grid-two, .tj-account-quick-links { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .tj-account-card-head, .tj-account-order-row { flex-direction: column; }
    .tj-account-nav .tj-account-signout { margin-left: 0; }
    .tj-account-nav a { width: 100%; }
}

/* ============================================================
   Phase 7B: Strong Account Navigation + Header Hover Menu
   ============================================================ */
.tj-account-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    border: 1px solid rgba(251, 191, 36, .34);
    background: linear-gradient(135deg, rgba(24,24,27,.98), rgba(69,26,3,.86));
    border-radius: 2rem;
    padding: 1.15rem;
    box-shadow: 0 22px 58px rgba(0,0,0,.30);
}
.tj-account-nav .tj-account-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    width: 100%;
    border-radius: 1.25rem;
    padding: 1rem 1.15rem;
    border: 2px solid rgba(251,191,36,.40);
    background: linear-gradient(135deg, rgba(146,64,14,.98), rgba(69,26,3,.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 36px rgba(0,0,0,.24);
    color: #fff7ed;
    font-size: 1rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tj-account-nav .tj-account-nav-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(253,230,138,.95);
    background: linear-gradient(135deg, rgba(194,65,12,.98), rgba(124,45,18,.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 22px 42px rgba(0,0,0,.34);
}
.tj-account-nav .tj-account-nav-btn.is-active {
    border-color: rgba(255,251,235,.98);
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #1c1917;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 22px 44px rgba(245,158,11,.30);
}
.tj-account-nav .tj-account-signout {
    border-color: rgba(252,165,165,.50);
    background: linear-gradient(135deg, rgba(153,27,27,.98), rgba(69,10,10,.98));
}
.tj-account-nav .tj-account-signout:hover {
    border-color: rgba(254,202,202,.98);
    background: linear-gradient(135deg, rgba(220,38,38,.98), rgba(127,29,29,.98));
}
.tj-account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.tj-account-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(251,191,36,.36) !important;
    background: rgba(245,158,11,.14) !important;
}
.tj-account-trigger:hover,
.tj-account-menu:focus-within .tj-account-trigger,
.tj-account-menu:hover .tj-account-trigger {
    border-color: rgba(253,230,138,.86) !important;
    background: rgba(245,158,11,.24) !important;
}
.tj-account-caret {
    display: inline-block;
    font-size: 1rem;
    transform: translateY(-1px);
}
.tj-account-dropdown {
    position: absolute;
    top: calc(100% + .7rem);
    right: 0;
    z-index: 80;
    display: none;
    min-width: 260px;
    padding: .75rem;
    border: 1px solid rgba(251,191,36,.34);
    border-radius: 1.4rem;
    background: rgba(24,24,27,.98);
    box-shadow: 0 28px 60px rgba(0,0,0,.42);
}
.tj-account-menu:hover .tj-account-dropdown,
.tj-account-menu:focus-within .tj-account-dropdown {
    display: grid;
    gap: .45rem;
}
.tj-account-dropdown a {
    display: flex !important;
    align-items: center;
    min-height: 46px;
    width: 100%;
    padding: .75rem .9rem !important;
    border: 1px solid transparent !important;
    border-radius: .95rem !important;
    background: rgba(255,255,255,.04) !important;
    color: #fff7ed !important;
    font-weight: 900 !important;
    text-decoration: none;
}
.tj-account-dropdown a:hover {
    border-color: rgba(251,191,36,.52) !important;
    background: rgba(245,158,11,.14) !important;
}
.tj-account-dropdown .tj-account-dropdown-signout {
    color: #fecaca !important;
    border-color: rgba(248,113,113,.20) !important;
    background: rgba(127,29,29,.28) !important;
}
.tj-account-dropdown .tj-account-dropdown-signout:hover {
    border-color: rgba(252,165,165,.72) !important;
    background: rgba(185,28,28,.40) !important;
}
@media (max-width: 1080px) {
    .tj-account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .tj-account-nav { grid-template-columns: 1fr; }
    .tj-account-menu { width: 100%; display: block; }
    .tj-account-trigger { width: 100%; justify-content: center; }
    .tj-account-dropdown {
        position: static;
        margin-top: .65rem;
        width: 100%;
        min-width: 0;
    }
}


/* ============================================================
   Phase 7C: Mobile Account Navigation + Mobile Order History
   ============================================================ */
@media (max-width: 760px) {
    .tj-account-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .72rem;
        padding: .85rem;
        border-radius: 1.45rem;
    }

    .tj-account-nav .tj-account-nav-btn {
        min-height: 54px;
        padding: .72rem .55rem;
        border-radius: 1rem;
        font-size: .92rem;
        line-height: 1.15;
        text-wrap: balance;
    }

    .tj-account-nav .tj-account-signout {
        grid-column: 1 / -1;
        min-height: 50px;
    }

    .tj-order-table-wrap {
        overflow: visible;
    }

    .tj-account-table {
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .tj-account-table thead {
        display: none;
    }

    .tj-account-table,
    .tj-account-table tbody,
    .tj-account-table tr,
    .tj-account-table td {
        display: block;
        width: 100%;
    }

    .tj-account-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(251, 191, 36, .22);
        border-radius: 1.25rem;
        background: rgba(255,255,255,.045);
        box-shadow: 0 16px 34px rgba(0,0,0,.18);
        overflow: hidden;
    }

    .tj-account-table td {
        display: grid;
        grid-template-columns: minmax(0, 92px) 1fr;
        gap: .8rem;
        align-items: center;
        padding: .82rem .9rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
        overflow-wrap: anywhere;
    }

    .tj-account-table td::before {
        color: rgba(255,247,237,.72);
        font-size: .76rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .tj-account-table td:nth-child(1)::before { content: "Order"; }
    .tj-account-table td:nth-child(2)::before { content: "Date"; }
    .tj-account-table td:nth-child(3)::before { content: "Status"; }
    .tj-account-table td:nth-child(4)::before { content: "Payment"; }
    .tj-account-table td:nth-child(5)::before { content: "Total"; }

    .tj-account-table td:last-child {
        display: block;
        border-bottom: 0;
        padding-top: .9rem;
        padding-bottom: .95rem;
    }

    .tj-account-table td:last-child::before {
        display: none;
    }

    .tj-account-table td:last-child .tj-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .tj-account-nav {
        gap: .6rem;
        padding: .72rem;
    }

    .tj-account-nav .tj-account-nav-btn {
        font-size: .86rem;
        padding: .68rem .42rem;
        min-height: 50px;
    }

    .tj-account-table td {
        grid-template-columns: 1fr;
        gap: .35rem;
        padding: .78rem .82rem;
    }
}


/* ============================================================
   Phase 7D: TJ monogram website header logo
   ============================================================ */
.tj-brand:hover .tj-brand-logo {
    transform: scale(1.09);
    transition: transform .2s ease;
}
.tj-brand-logo {
    transition: transform .2s ease;
}

@media (max-width: 760px) {
    .tj-brand {
        width: 100%;
        gap: .85rem;
    }
    .tj-brand-logo-wrap {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 18px;
    }
    .tj-brand-logo {
        width: 62px;
        height: 62px;
    }
    .tj-brand strong {
        font-size: 1.12rem;
    }
    .tj-brand small {
        font-size: .84rem;
        line-height: 1.35;
        max-width: 16rem;
    }
}

@media (max-width: 420px) {
    .tj-brand-logo-wrap {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }
    .tj-brand-logo {
        width: 56px;
        height: 56px;
    }
    .tj-brand strong {
        font-size: 1.05rem;
    }
    .tj-brand small {
        font-size: .78rem;
        max-width: 13rem;
    }
}


/* ============================================================
   Phase 7H: Bundle Deals Showcase
   ============================================================ */
.tj-bundle-showcase {
    position: relative;
}
.tj-bundle-banner,
.tj-bundle-collection-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, .22), transparent 18rem),
        radial-gradient(circle at 90% 0%, rgba(124, 45, 18, .32), transparent 20rem),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.tj-bundle-banner h2,
.tj-bundle-collection-panel h1 {
    margin: .9rem 0 0;
    font-size: clamp(2.2rem, 4.7vw, 4.25rem);
    line-height: .96;
    letter-spacing: -.05em;
    font-weight: 950;
}
.tj-bundle-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 1.55rem;
}
.tj-bundle-benefits > div,
.tj-bundle-deal-callout {
    border: 1px solid rgba(251, 191, 36, .22);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.tj-bundle-benefits > div {
    padding: 1.1rem 1.15rem;
}
.tj-bundle-benefits strong,
.tj-bundle-deal-callout strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 950;
}
.tj-bundle-benefits span,
.tj-bundle-deal-callout p {
    display: block;
    margin-top: .45rem;
    color: var(--tj-muted);
    line-height: 1.6;
}
.tj-bundle-deal-callout {
    padding: 1.25rem;
    min-height: 100%;
    display: grid;
    align-content: center;
}
.tj-bundle-deal-callout span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .75rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, .17);
    border: 1px solid rgba(251, 191, 36, .28);
    color: var(--tj-accent);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tj-bundle-grid .tj-product-card {
    position: relative;
    border-color: rgba(251, 191, 36, .25);
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        rgba(24,24,27,.92);
}
.tj-bundle-grid .tj-product-card::before {
    content: 'Bundle Deal';
    position: absolute;
    z-index: 2;
    top: .9rem;
    left: .9rem;
    padding: .45rem .72rem;
    border-radius: 999px;
    background: rgba(17,24,39,.9);
    border: 1px solid rgba(251,191,36,.32);
    color: var(--tj-accent);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tj-bundle-grid .tj-product-placeholder {
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), transparent 9rem),
        linear-gradient(135deg, rgba(245,158,11,.28), rgba(124,45,18,.46));
}
.tj-bundle-empty {
    border-color: rgba(251,191,36,.28);
}
.tj-bundle-collection-hero {
    padding: 3.25rem 0 1rem;
}
.tj-bundle-benefits-collection {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .tj-bundle-banner,
    .tj-bundle-collection-panel {
        grid-template-columns: 1fr;
    }
    .tj-bundle-benefits {
        grid-template-columns: 1fr;
    }
}
