/* Contul (design/cont/index.html): bara cu linia, autentificarea pe două coloane, meniul contului, comenzile, adresele, detaliile. */
:root { --error: #9B2C1F; }
.bar { padding: 8px var(--gutter) 0; }
.bar .seam { position: relative; height: 1px; background: var(--ink); margin: 0 calc(var(--gutter) * -1); }
.bar .seam .icon { position: absolute; left: var(--gutter); top: -6.5px; }
.bar .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.linkbtn { border: 0; background: none; cursor: pointer; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.linkbtn:hover { color: var(--camel); }

/* Câmpurile (aceleași ca la checkout) */
.f { display: grid; gap: 6px; }
.f > span:first-child { font-size: 14px; }
.f em { font-style: normal; color: var(--ink-60); }
.f .err { display: none; }
.woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="password"], .woocommerce input[type="tel"], .woocommerce select {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .35); font: inherit; color: inherit; transition: border-color .2s, background .2s;
}
.woocommerce select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.woocommerce input:focus, .woocommerce select:focus { outline: none; border-color: var(--ink); background: rgba(255, 255, 255, .6); }
.pw { position: relative; display: block; }
.pw input { padding-right: 86px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 13px; padding: 8px; color: var(--ink-60); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); justify-content: center; }
.btn.ghost:hover { background: var(--ink); color: var(--greige); }
.stack { display: grid; gap: 14px; }
.note, .small { font-size: 13px; }
.small a { border-bottom: 1px solid currentColor; }

/* Mesajele WooCommerce */
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 var(--gutter) 18px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; display: grid; gap: 4px; }
.woocommerce-error { border-color: var(--error); color: var(--error); }
.woocommerce-message { border-color: var(--olive); color: var(--olive); }
.acct .woocommerce-error, .acct .woocommerce-message, .acct .woocommerce-info { margin: 0 0 18px; }
.woocommerce-message .button, .woocommerce-info .button { display: none; }

/* Neautentificat: două coloane */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 var(--gutter); }
.auth section { padding: 24px clamp(24px, 5vw, 80px) 24px 0; display: grid; gap: 16px; align-content: start; max-width: 560px; }
.auth section + section { border-left: 1px solid var(--line); padding-left: clamp(24px, 5vw, 80px); padding-right: 0; }
.auth h2 { font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.auth .row2 { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.auth .row2 a { font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.auth .guest { font-size: 14px; }
.auth .guest a { border-bottom: 1px solid currentColor; }
.auth .btn { justify-content: center; }

/* Autentificat: meniul în stânga, conținutul în dreapta */
.acct { display: grid; grid-template-columns: 1fr 3fr; gap: 0 clamp(28px, 4vw, 72px); padding: 0 var(--gutter); align-items: start; }
.side { position: sticky; top: calc(var(--hh) + 24px); display: grid; gap: 4px; padding-top: 16px; }
.side a { padding: 8px 0; font-size: 22px; font-weight: 500; letter-spacing: -.015em; color: var(--ink-60); transition: color .2s; }
.side a:hover, .side a[aria-current] { color: var(--ink); }
.side a[aria-current]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--camel); margin: 0 12px 3px 0; vertical-align: middle; }
.panel { padding-top: 16px; min-width: 0; }
.lead-in { margin-bottom: 16px; font-size: 15px; }

/* Comenzi */
.heads { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr 12px; gap: 16px; padding-bottom: 10px; }
.orders { list-style: none; border-top: 1px solid var(--line); }
.order { border-bottom: 1px solid var(--line); }
.order summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr 12px; gap: 16px; align-items: center; padding: 18px 0; font-size: 15px; }
.order summary::-webkit-details-marker { display: none; }
.order summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
.order[open] summary::after { transform: rotate(45deg); }
.order .no { font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--camel); }
.status.done::before { background: var(--olive); }
.order .body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 0 0 24px; }
.order .items { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.order .items li { display: flex; justify-content: space-between; gap: 16px; }
.order .meta { display: grid; gap: 8px; font-size: 14px; align-content: start; }
.order .meta a { border-bottom: 1px solid currentColor; justify-self: start; }
.order .meta a:hover { color: var(--camel); }
.pager { display: flex; justify-content: space-between; padding-top: 20px; font-size: 14px; }
.empty { padding: 40px 0; display: grid; gap: 14px; justify-items: start; }

/* Detaliile unei comenzi (pagina standard WooCommerce, în stilul temei) */
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 24px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-weight: 500; font-size: 18px; margin-bottom: 12px; }
.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shop_table th, .shop_table td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shop_table th { font-weight: 400; color: var(--ink-60); }
.shop_table .wc-item-meta { list-style: none; font-size: 13px; color: var(--ink-60); }
.shop_table .wc-item-meta p { display: inline; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; }
.panel > p mark { background: none; font-weight: 500; }

/* Adrese */
.addrs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.card .top { display: flex; justify-content: space-between; align-items: baseline; }
.card address { font-style: normal; line-height: 1.7; }
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }
.woocommerce-address-fields__field-wrapper .full { grid-column: 1 / -1; }
.woocommerce-address-fields .button { margin-top: 20px; display: inline-flex; padding: 16px 26px; border-radius: 999px; border: 0; background: var(--ink); color: var(--greige); font: 500 16px Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.woocommerce-address-fields .button:hover { background: var(--camel); }
.panel > h2, .panel form > h2 { font-weight: 500; font-size: 22px; letter-spacing: -.015em; margin-bottom: 20px; }

/* Detaliile contului */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }
.details .full { grid-column: 1 / -1; }
.details .full:empty { display: none; }
.details h3 { grid-column: 1 / -1; font-weight: 500; font-size: 16px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.details .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.tt-client-code { font-size: 14px; color: var(--ink-60); }
.tt-client-code strong { color: var(--ink); font-weight: 500; }

/* Parola pierdută / resetare (formularele standard WooCommerce, în stilul temei) */
.woocommerce-ResetPassword, .lost_reset_password { max-width: 560px; padding: 24px var(--gutter); display: grid; gap: 14px; }
.lost_reset_password .button { padding: 16px 26px; border-radius: 999px; border: 0; background: var(--ink); color: var(--greige); font: 500 16px Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; justify-self: start; }
.lost_reset_password label { font-size: 14px; display: block; margin-bottom: 6px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth section, .auth section + section { padding: 24px 0; border-left: 0; max-width: none; }
  .auth section + section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 32px; }
  .acct { grid-template-columns: 1fr; }
  .side { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 8px; }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex: none; font-size: 15px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
  .side a[aria-current] { background: var(--ink); color: var(--greige); border-color: var(--ink); }
  .side a[aria-current]::before { display: none; }
  .heads { display: none; }
  .order summary { grid-template-columns: 1fr auto auto; grid-template-areas: "no total plus" "date status plus"; gap: 2px 12px; }
  .order .no { grid-area: no; } .order .date { grid-area: date; } .order .status { grid-area: status; justify-self: end; } .order .total { grid-area: total; justify-self: end; }
  .order summary::after { grid-area: plus; }
  .order .body { grid-template-columns: 1fr; }
  .addrs, .details, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}
