@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Libre+Caslon+Display&display=swap');

:root{
  --account-paper:#f8f5ef;
  --account-cream:#f2ece2;
  --account-ink:#171311;
  --account-line:rgba(23,19,17,.16);
  --account-wine:#6b2035;
}
*{box-sizing:border-box}
html{background:var(--account-paper)}
body.account-page{
  margin:0;
  min-height:100vh;
  background:var(--account-paper);
  color:var(--account-ink);
  font-family:"Courier Prime","Courier New",monospace;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.account-top{
  height:94px;
  display:grid;
  grid-template-columns:220px 1fr 220px;
  align-items:center;
  padding:0 42px;
  border-bottom:1px solid var(--account-line);
  background:rgba(248,245,239,.96);
}
.account-logo{display:block;width:188px;line-height:0}
.account-logo img{display:block;width:100%;height:62px;object-fit:contain;object-position:left center}
.account-back{justify-self:end;font-size:12px;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:3px}
.account-nav{justify-self:center;display:flex;gap:28px;font-size:12px;font-weight:700}
.account-nav a{text-decoration:none}
.account-main{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
  padding:64px 0 84px;
}
.auth-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,480px);
  min-height:calc(100vh - 94px);
}
.auth-visual{
  position:relative;
  min-height:690px;
  background:
    linear-gradient(180deg,rgba(20,15,12,.08),rgba(20,15,12,.52)),
    image-set(url("/assets/besni-vineyard.avif") type("image/avif"),url("/assets/besni-vineyard.webp") type("image/webp")) center/cover no-repeat;
}
.auth-visual-copy{
  position:absolute;
  left:46px;
  right:46px;
  bottom:44px;
  color:#fff8ed;
}
.auth-visual-copy small{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px}
.auth-visual-copy h1{
  font-family:"Libre Caslon Display",Georgia,serif;
  font-size:clamp(42px,4vw,68px);
  line-height:.95;
  font-weight:400;
  margin:0;
  max-width:720px;
}
.auth-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:52px 42px;
  background:var(--account-paper);
}
.auth-card{width:min(100%,410px)}
.auth-kicker{font-size:10px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:16px;color:#766e66}
.auth-card h2,.account-heading{
  font-family:"Libre Caslon Display",Georgia,serif;
  font-weight:400;
  letter-spacing:-.025em;
}
.auth-card h2{font-size:44px;line-height:1;margin:0 0 13px}
.auth-card > p{font-size:13px;line-height:1.7;margin:0 0 30px;color:#625b55}
.account-form{display:grid;gap:16px}
.account-field{display:grid;gap:7px}
.account-field label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.account-field input,
.account-field textarea,
.account-field select{
  width:100%;
  border:1px solid rgba(23,19,17,.22);
  background:#fffdf9;
  color:#171311;
  border-radius:0;
  padding:14px 14px;
  min-height:50px;
  font:14px/1.35 "Courier Prime","Courier New",monospace;
  outline:none;
}
.account-field textarea{min-height:108px;resize:vertical}
.account-field input:focus,.account-field textarea:focus,.account-field select:focus{border-color:#171311}
.account-button{
  border:1px solid #171311;
  background:#171311;
  color:#fff8ed;
  min-height:52px;
  padding:13px 20px;
  font:700 12px/1 "Courier Prime","Courier New",monospace;
  letter-spacing:.03em;
  cursor:pointer;
}
.account-button.secondary{background:transparent;color:#171311}
.auth-meta{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:11px;
  line-height:1.5;
}
.auth-meta a{text-underline-offset:4px}
.account-status{
  min-height:20px;
  margin-top:14px;
  font-size:11px;
  line-height:1.5;
}
.account-status.is-error{color:#9d2634}
.account-status.is-success{color:#315b3d}

.account-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:42px;
  padding-bottom:28px;
  border-bottom:1px solid var(--account-line);
}
.account-head small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:10px}
.account-heading{font-size:clamp(44px,5vw,72px);line-height:.95;margin:0}
.account-head-actions{display:flex;gap:10px;align-items:center}
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.account-section{
  border-top:1px solid #171311;
  padding-top:18px;
  min-width:0;
}
.account-section.is-wide{grid-column:1/-1}
.account-section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}
.account-section-title h2{
  margin:0;
  font-family:"Libre Caslon Display",Georgia,serif;
  font-size:30px;
  font-weight:400;
}
.account-section-title span{font-size:10px;color:#746d65;text-transform:uppercase;letter-spacing:.08em}
.account-form.two-col{grid-template-columns:1fr 1fr}
.account-field.full{grid-column:1/-1}
.orders-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:9px;
  background:#f1ede5;
  padding:28px;
}
.orders-empty strong{font-family:"Libre Caslon Display",Georgia,serif;font-size:28px;font-weight:400}
.orders-empty p{margin:0;font-size:12px;line-height:1.7;color:#696159}
.account-loading{padding:70px 0;font-size:12px}

.bb-account-link{
  width:48px;
  height:48px;
  border:1px solid currentColor;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:inherit;
  text-decoration:none;
  background:transparent;
}
.bb-account-person{position:relative;width:20px;height:20px;display:block}
.bb-account-person::before{
  content:"";position:absolute;width:7px;height:7px;border:1.4px solid currentColor;border-radius:50%;
  left:50%;top:1px;transform:translateX(-50%);
}
.bb-account-person::after{
  content:"";position:absolute;width:14px;height:8px;border:1.4px solid currentColor;border-radius:10px 10px 7px 7px;
  left:50%;bottom:0;transform:translateX(-50%);
}
.bb-account-link.is-signed-in::after{
  content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#658452;
  margin:0 0 30px 30px;border:2px solid #f8f5ef;
}
.bb-account-link{position:relative}

@media(max-width:900px){
  .account-top{grid-template-columns:170px 1fr auto;padding:0 20px}
  .account-logo{width:150px}
  .account-nav{display:none}
  .auth-layout{display:block}
  .auth-visual{min-height:380px}
  .auth-panel{padding:46px 22px 64px}
  .account-grid{grid-template-columns:1fr}
  .account-section.is-wide{grid-column:auto}
}
@media(max-width:600px){
  .account-top{height:78px;padding:0 14px}
  .account-logo{width:138px}
  .account-logo img{height:52px}
  .account-back{font-size:10px}
  .auth-visual{min-height:310px}
  .auth-visual-copy{left:22px;right:22px;bottom:24px}
  .auth-card h2{font-size:38px}
  .account-main{width:min(100% - 28px,1180px);padding-top:42px}
  .account-head{align-items:flex-start;flex-direction:column}
  .account-form.two-col{grid-template-columns:1fr}
  .account-field.full{grid-column:auto}
  .bb-account-link{width:42px;height:42px}
}


/* V112 — authentication pages: clean, focused, no decorative image */
.auth-layout--minimal{
  min-height:calc(100vh - 94px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:64px 22px 84px;
  background:var(--account-paper);
}
.auth-layout--minimal .auth-panel{
  width:min(100%,520px);
  padding:0;
  background:transparent;
}
.auth-layout--minimal .auth-card{
  width:100%;
  max-width:460px;
  margin:0 auto;
  padding:42px 40px 38px;
  border:1px solid rgba(23,19,17,.16);
  background:#fbf8f2;
}
.auth-layout--minimal .auth-kicker{
  margin-bottom:14px;
}
.auth-layout--minimal .auth-card h2{
  font-size:48px;
  margin-bottom:14px;
}
.auth-layout--minimal .auth-card > p{
  margin-bottom:28px;
}
@media(max-width:600px){
  .auth-layout--minimal{
    min-height:calc(100vh - 78px);
    padding:34px 14px 54px;
  }
  .auth-layout--minimal .auth-card{
    padding:30px 20px 28px;
    border-left:0;
    border-right:0;
  }
  .auth-layout--minimal .auth-card h2{
    font-size:40px;
  }
}


/* V114 — auth/account header: same calm subpage header, only logo + site return */
.account-top.account-top--simple{
  height:88px;
  min-height:88px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  padding:0 32px;
  background:#f8f5ef;
  border-bottom:1px solid rgba(23,19,17,.16);
}
.account-top--simple .account-logo{
  justify-self:start;
  width:180px;
  max-width:180px;
  max-height:64px;
  overflow:hidden;
}
.account-top--simple .account-logo img{
  width:100%;
  height:58px;
  object-fit:contain;
  object-position:left center;
  filter:brightness(0) saturate(100%);
  opacity:1;
}
.account-top--simple .account-back{
  justify-self:end;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:3px;
}
@media(max-width:600px){
  .account-top.account-top--simple{
    height:76px;
    min-height:76px;
    padding:0 15px;
  }
  .account-top--simple .account-logo{
    width:150px;
    max-width:150px;
  }
  .account-top--simple .account-logo img{height:50px}
  .account-top--simple .account-back{font-size:10.5px}
}

.account-order-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid rgba(23,19,17,.13);
}
.account-order-row:first-child{border-top:1px solid rgba(23,19,17,.13)}
.account-order-row small{
  display:block;
  margin-bottom:6px;
  font-size:9px;
  letter-spacing:.1em;
  color:#766e66;
}
.account-order-row strong{
  font-size:13px;
}
.account-order-meta{
  display:flex;
  align-items:center;
  gap:18px;
  text-align:right;
}
.account-order-meta span{font-size:10px;color:#6e665f}
.account-order-meta b{font-size:13px}


/* V115 — auth pages reuse the same full subpage navigation */
.account-page .subnav{
  font-family:"Courier Prime","Courier New",monospace;
}
.account-page .account-back-nav{
  color:inherit;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:3px;
  white-space:nowrap;
}
.auth-layout--minimal{
  min-height:calc(100vh - 88px);
}
.auth-divider{
  position:relative;
  display:grid;
  place-items:center;
  margin:18px 0 14px;
  color:#817970;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.auth-divider::before{
  content:"";
  position:absolute;
  left:0;right:0;top:50%;
  border-top:1px solid rgba(23,19,17,.14);
}
.auth-divider span{
  position:relative;
  padding:0 10px;
  background:#fbf8f2;
}
.social-auth{
  display:grid;
  gap:9px;
}
.social-auth-btn{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid rgba(23,19,17,.25);
  background:#fffdf9;
  color:#171311;
  font:700 11px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease;
}
.social-auth-btn:hover{
  background:#f1ede5;
  border-color:#171311;
}
.social-auth-mark{
  width:22px;height:22px;
  display:grid;place-items:center;
  border-radius:50%;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
}
.google-mark{
  border:1px solid rgba(23,19,17,.16);
  background:#fff;
}
@media(max-width:820px){
  .account-page .subnav-links.right{
    display:flex!important;
  }
  .account-page .account-back-nav{font-size:10px}
}


/* V117 — compact profile dropdown */
.bb-account-menu{
  position:fixed;
  z-index:5000;
  width:330px;
  max-width:calc(100vw - 24px);
  display:none;
  background:#fffdf9;
  color:#171311;
  border:1px solid rgba(23,19,17,.16);
  box-shadow:0 18px 50px rgba(23,19,17,.14);
  font-family:"Courier Prime","Courier New",monospace;
}
.bb-account-menu.is-open{display:block}
.bb-account-menu-user{
  display:flex;
  gap:12px;
  align-items:center;
  padding:18px;
  border-bottom:1px solid rgba(23,19,17,.12);
}
.bb-account-menu-avatar{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:#171311;color:#fff8ed;
  font:700 12px/1 "Courier Prime","Courier New",monospace;
  flex:0 0 auto;
}
.bb-account-menu-user strong{display:block;font-size:12px;margin-bottom:4px}
.bb-account-menu-user span{display:block;font-size:10px;color:#716960;overflow:hidden;text-overflow:ellipsis}
.bb-account-menu-links{padding:8px}
.bb-account-menu-links a{
  min-height:43px;
  display:flex;align-items:center;gap:12px;
  padding:0 11px;
  text-decoration:none;
  font-size:11px;
}
.bb-account-menu-links a:hover{background:#f2eee6}
.bb-account-menu-links a span{width:20px;text-align:center;font-size:15px}
.bb-account-menu-logout{
  width:100%;min-height:46px;
  border:0;border-top:1px solid rgba(23,19,17,.12);
  background:#fffdf9;color:#171311;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 18px;
  font:700 11px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.bb-account-menu-logout:hover{background:#f2eee6}
.bb-account-menu-guest{padding:20px 18px 15px}
.bb-account-menu-guest small{display:block;font-size:8px;letter-spacing:.12em;color:#766e66;margin-bottom:9px}
.bb-account-menu-guest strong{display:block;font-family:"Libre Caslon Display",Georgia,serif;font-size:24px;font-weight:400;margin-bottom:6px}
.bb-account-menu-guest p{margin:0;font-size:10px;line-height:1.55;color:#6b645d}
.bb-account-menu-guest-actions{display:grid;gap:8px;padding:0 18px 18px}
.bb-account-menu-guest-actions a,
.bb-account-menu-guest-actions button{
  min-height:44px;
  display:flex;align-items:center;justify-content:center;gap:9px;
  border:1px solid #171311;
  background:#fffdf9;color:#171311;
  text-decoration:none;
  font:700 10px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.bb-account-menu-guest-actions .primary{background:#171311;color:#fff8ed}
.bb-account-menu-guest-actions .google-g{
  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  border:1px solid rgba(23,19,17,.16);font-family:Arial,sans-serif;
}

/* V117 — account dashboard */
.account-dashboard{
  width:min(1500px,calc(100% - 44px));
  margin:0 auto;
  padding:42px 0 84px;
}
.account-dashboard-shell{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.account-sidebar{
  position:sticky;
  top:112px;
  border:1px solid rgba(23,19,17,.14);
  background:#fbf8f2;
}
.account-user-card{
  padding:20px;
  border-bottom:1px solid rgba(23,19,17,.12);
  display:flex;gap:12px;align-items:center;
}
.account-avatar{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:#171311;color:#fff8ed;
  font-size:12px;font-weight:700;
  flex:0 0 auto;
}
.account-user-copy{min-width:0}
.account-user-copy strong{display:block;font-size:11px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-user-copy span{display:block;font-size:9.5px;color:#6d655e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-user-copy small{display:block;margin-top:7px;font-size:8px;color:#6f8661}
.account-side-nav{padding:10px}
.account-side-link{
  width:100%;min-height:46px;border:0;background:transparent;color:#171311;
  display:flex;align-items:center;gap:11px;
  padding:0 12px;text-align:left;
  font:700 10.5px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.account-side-link:hover{background:#f0ebe2}
.account-side-link.is-active{background:#efe5d7;color:#6b2035}
.account-side-icon{width:20px;text-align:center;font-size:15px}
.account-side-logout{
  width:100%;min-height:48px;border:0;border-top:1px solid rgba(23,19,17,.12);
  background:transparent;color:#171311;
  padding:0 20px;text-align:left;
  font:700 10.5px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.account-side-logout:hover{background:#f0ebe2}

.account-workspace{min-width:0}
.account-panel{display:none}
.account-panel.is-active{display:block}
.account-panel-head{
  min-height:118px;
  border:1px solid rgba(23,19,17,.14);
  background:#fffdf9;
  padding:24px 26px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin-bottom:18px;
}
.account-panel-head small{display:block;font-size:8px;letter-spacing:.13em;color:#766e66;margin-bottom:9px}
.account-panel-head h1{
  margin:0;
  font-family:"Libre Caslon Display",Georgia,serif;
  font-size:36px;font-weight:400;letter-spacing:-.025em;
}
.account-panel-head p{max-width:680px;margin:8px 0 0;font-size:11px;line-height:1.6;color:#6a625a}
.account-order-search{
  width:min(360px,40vw);
  min-height:52px;
  display:flex;align-items:center;gap:9px;
  padding:0 14px;
  background:#f3f1ed;
}
.account-order-search span{font-size:22px}
.account-order-search input{
  width:100%;border:0;background:transparent;outline:none;
  font:12px/1.3 "Courier Prime","Courier New",monospace;
}
.account-order-toolbar{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:16px;
}
.account-filter-chips{display:flex;gap:8px;flex-wrap:wrap}
.account-filter-chips button{
  min-height:38px;padding:0 15px;
  border:1px solid rgba(23,19,17,.38);
  border-radius:999px;background:#fffdf9;color:#171311;
  font:10px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.account-filter-chips button.is-active{
  border-color:#6b2035;color:#6b2035;background:#faf3f1;
}

.account-orders{display:grid;gap:14px}
.account-order-card{
  border:1px solid rgba(23,19,17,.14);
  background:#fffdf9;
  overflow:hidden;
}
.account-order-summary{
  min-height:72px;
  padding:14px 18px;
  display:grid;
  grid-template-columns:1.05fr 1fr 1fr .8fr auto;
  gap:18px;
  align-items:center;
  background:#f5f3ef;
  border-bottom:1px solid rgba(23,19,17,.1);
}
.account-order-summary > div span{
  display:block;font-size:8px;color:#716960;margin-bottom:5px;
}
.account-order-summary > div strong{
  display:block;font-size:10.5px;font-weight:700;
}
.account-order-detail-button{
  min-width:112px;min-height:40px;
  border:1px solid #6b2035;background:#6b2035;color:#fff8ed;
  font:700 9.5px/1 "Courier Prime","Courier New",monospace;
  cursor:pointer;
}
.account-order-body{
  min-height:105px;padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.account-order-state{display:flex;align-items:center;gap:11px}
.account-order-state i{
  width:10px;height:10px;border-radius:50%;background:#9c8c78;flex:0 0 auto;
}
.account-order-state.is-delivered i{background:#3c8a57}
.account-order-state.is-active i{background:#b48a32}
.account-order-state.is-cancelled i{background:#a63e3e}
.account-order-state strong{display:block;font-size:11px;margin-bottom:5px}
.account-order-state span{display:block;font-size:9.5px;color:#706861}
.account-order-thumbs{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.account-order-thumbs img{
  width:58px;height:58px;object-fit:cover;border:1px solid rgba(23,19,17,.12);background:#f2eee6;
}
.account-order-details{
  display:none;
  padding:0 20px 18px;
  border-top:1px solid rgba(23,19,17,.1);
}
.account-order-details.is-open{display:block}
.account-order-item{
  min-height:86px;display:grid;
  grid-template-columns:70px minmax(0,1fr) auto;
  gap:14px;align-items:center;
  border-bottom:1px solid rgba(23,19,17,.09);
}
.account-order-item img{width:70px;height:70px;object-fit:cover;background:#f3eee6}
.account-order-item strong{display:block;font-size:10.5px;margin-bottom:5px}
.account-order-item span{display:block;font-size:9px;color:#706860}
.account-order-item b{font-size:10.5px}
.account-order-detail-foot{
  display:flex;justify-content:space-between;gap:16px;
  padding-top:16px;font-size:10px;color:#6d655e;
}
.account-order-detail-foot strong{color:#171311}
.account-order-noitems{font-size:10px;color:#6d655e}

.account-address-form,
.account-profile-form{
  max-width:900px;
  padding:28px;
  border:1px solid rgba(23,19,17,.14);
  background:#fffdf9;
}
.account-profile-form{max-width:680px}

@media(max-width:980px){
  .account-dashboard-shell{grid-template-columns:210px minmax(0,1fr);gap:18px}
  .account-order-summary{grid-template-columns:1fr 1fr 1fr auto}
  .account-order-summary > div:nth-child(3){display:none}
}
@media(max-width:760px){
  .bb-account-menu{
    top:auto!important;left:12px!important;right:12px!important;bottom:12px!important;
    width:auto!important;max-width:none;border-radius:16px;overflow:hidden;
  }
  .account-dashboard{width:min(100% - 24px,1500px);padding-top:20px}
  .account-dashboard-shell{grid-template-columns:1fr}
  .account-sidebar{position:relative;top:auto}
  .account-user-card{padding:16px}
  .account-side-nav{display:flex;overflow-x:auto;padding:8px;gap:6px;scrollbar-width:none}
  .account-side-nav::-webkit-scrollbar{display:none}
  .account-side-link{width:auto;min-width:max-content;padding:0 12px}
  .account-side-logout{display:none}
  .account-panel-head{display:block;padding:20px;min-height:0}
  .account-panel-head h1{font-size:30px}
  .account-order-search{width:100%;margin-top:16px}
  .account-order-summary{
    grid-template-columns:1fr 1fr auto;
    gap:10px;padding:12px;
  }
  .account-order-summary > div:nth-child(2),
  .account-order-summary > div:nth-child(3){display:none}
  .account-order-detail-button{min-width:86px}
  .account-order-body{padding:15px 14px;align-items:flex-start;flex-direction:column}
  .account-order-thumbs{justify-content:flex-start}
  .account-address-form,.account-profile-form{padding:18px}
}
