/* Shared parent-facing components: sign in, profile, my orders, banners, toasts.
   Matches the site's existing look (red/orange gradient, rounded cards, Inter). */
[hidden]{display:none!important}
.yy-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);z-index:2000;align-items:center;justify-content:center;padding:16px}
.yy-modal.active{display:flex}
.yy-box{background:#FFFDF9;border:1px solid #E8D6B5;border-radius:28px;max-width:560px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);animation:yyUp .25s ease;color:#4E2E1E}
.yy-box.wide{max-width:680px}
@keyframes yyUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.yy-head{padding:20px 24px;border-bottom:1px solid #E9DCC8;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#FFFDF9;border-radius:28px 28px 0 0;position:sticky;top:0;z-index:2}
.yy-head h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.7rem;font-weight:700;color:#4E2E1E}
.yy-x{width:40px;height:40px;border-radius:50%;border:none;background:#F4EADC;font-size:1.3rem;cursor:pointer;color:#6B4430;flex:none}
.yy-x:hover{background:#C0282D;color:#fff}
.yy-body{padding:22px 24px}
.yy-tabs{display:flex;gap:8px;margin-bottom:20px;background:#F4EADC;padding:4px;border-radius:40px}
.yy-tabs button{flex:1;padding:10px;border:none;background:none;border-radius:40px;cursor:pointer;font-weight:700;color:#9A8270;font-family:inherit}
.yy-tabs button.active{background:#fff;color:#C0282D;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.yy-field{margin-bottom:14px}
.yy-field label{display:block;font-weight:600;font-size:.85rem;margin-bottom:6px;color:#6B4430}
.yy-field input,.yy-field select,.yy-field textarea{width:100%;padding:12px 14px;border:1.5px solid #E9DCC8;border-radius:14px;font:inherit;font-size:.95rem;background:#fff;color:#4E2E1E}
.yy-field input:focus,.yy-field select:focus,.yy-field textarea:focus{outline:none;border-color:#C0282D;box-shadow:0 0 0 3px rgba(201,164,106,.2)}
.yy-hint{font-size:.78rem;color:#9A8270;margin-top:5px}
.yy-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.yy-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border:none;border-radius:60px;font-weight:700;font-size:.95rem;cursor:pointer;font-family:inherit;transition:all .2s;text-decoration:none}
.yy-btn.primary{background:#C0282D;color:#fff;width:100%}
.yy-btn.primary:hover{background:#9E1F23}
.yy-btn.light{background:#F4EADC;color:#4E2E1E}
.yy-btn.light:hover{background:#E9DCC8}
.yy-btn.dark{background:#4E2E1E;color:#fff}
.yy-btn.wa{background:#25D366;color:#fff}
.yy-btn.sm{padding:8px 14px;font-size:.82rem}
.yy-btn:disabled{opacity:.6;cursor:not-allowed}
.yy-link{background:none;border:none;color:#C0282D;font-weight:600;cursor:pointer;font:inherit;font-size:.86rem;padding:0}
.yy-msg{padding:10px 14px;border-radius:14px;font-size:.86rem;margin-bottom:14px}
.yy-msg.err{background:#F8E3DF;color:#9E1F23}.yy-msg.ok{background:#E3EEDC;color:#4F7A4A}.yy-msg.info{background:#FBEFD6;color:#7A4F12}
.yy-kid{background:#FBF6EE;border:1px solid #E9DCC8;border-radius:18px;padding:14px;margin-bottom:12px}
.yy-kid-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:700}
.yy-kid .yy-row{grid-template-columns:1fr 1fr}
.yy-add{width:100%;background:#fff;border:2px dashed #DCC9AE;border-radius:18px;padding:12px;font-weight:700;cursor:pointer;color:#6B4430;font-family:inherit;margin-bottom:16px}
.yy-add:hover{border-color:#C0282D;color:#C0282D}
.yy-section-title{font-weight:800;margin:18px 0 10px;display:flex;justify-content:space-between;align-items:center}
.yy-details summary{cursor:pointer;font-weight:700;color:#6B4430;margin:8px 0 12px}
/* orders */
.yy-order{border:1px solid #E9DCC8;border-radius:20px;padding:16px;margin-bottom:14px}
.yy-order-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.yy-order-head b{font-size:1rem}
.yy-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:700;white-space:nowrap}
.yy-badge.paid{background:#E3EEDC;color:#4F7A4A}.yy-badge.unpaid{background:#F8E3DF;color:#9E1F23}.yy-badge.grey{background:#F4EADC;color:#6B4430}.yy-badge.blue{background:#F1E4D1;color:#6B4430}
.yy-day{font-size:.88rem;padding:8px 0;border-top:1px dashed #E9DCC8}
.yy-day:first-of-type{border-top:none}
.yy-day small{color:#9A8270}
.yy-order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.yy-empty{text-align:center;padding:40px 10px;color:#9A8270}
.yy-empty i{font-size:2.4rem;opacity:.4;display:block;margin-bottom:10px}
/* contact */
.yy-contact{display:flex;flex-direction:column;gap:12px}
.yy-contact a,.yy-contact div.item{display:flex;align-items:center;gap:14px;padding:14px;background:#FBF6EE;border-radius:18px;text-decoration:none;color:#4E2E1E}
.yy-contact i{width:30px;font-size:1.3rem;color:#C0282D;text-align:center}
/* banners */
.yy-banners{display:flex;flex-direction:column;gap:10px;margin:14px 0 4px}
.yy-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:18px;font-size:.9rem;line-height:1.35}
.yy-banner i{font-size:1.15rem;flex:none}
.yy-banner.special{background:linear-gradient(135deg,#FBEFD6,#F8E8D2);color:#6B4430;border:1px solid #E3C58F}
.yy-banner.special i{color:#C0282D}
.yy-banner.notice{background:#FFF;border:1px solid #E9DCC8;color:#6B4430}
.yy-banner.notice i{color:#C0282D}
.yy-banner.closed{background:#FBEDEA;border:1px solid #E9B2AA;color:#9E1F23}
.yy-banner button{margin-left:auto;flex:none}
/* toasts */
.yy-toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#4E2E1E;color:#fff;padding:12px 20px;border-radius:60px;z-index:3000;font-size:.88rem;font-weight:500;box-shadow:0 10px 25px rgba(0,0,0,.2);max-width:calc(100% - 32px);text-align:center;animation:yyUp .2s ease}
.yy-toast.err{background:#9E1F23}
.yy-toast.ok{background:#C0282D}
/* pay overlay */
.yy-pay{text-align:center}
.yy-pay .big{font-size:2rem;font-weight:800;color:#C0282D;margin:6px 0}
.yy-pay .ref{display:inline-block;background:#FBEFD6;border:2px dashed #E0C08A;padding:8px 16px;border-radius:14px;font-weight:800;font-size:1.2rem;letter-spacing:.04em;margin:8px 0 14px}
/* sold out on product cards */
.product-card.sold-out{opacity:.65}
.product-card.sold-out .product-image img{filter:grayscale(1)}
.yy-soldout{position:absolute;top:10px;left:10px;background:#4E2E1E;color:#fff;font-size:.7rem;font-weight:800;padding:4px 10px;border-radius:20px;letter-spacing:.03em;z-index:2}
.yy-left{position:absolute;top:10px;left:10px;background:#B7791F;color:#fff;font-size:.7rem;font-weight:800;padding:4px 10px;border-radius:20px;z-index:2}
.yy-sale-old{text-decoration:line-through;color:#B9A592;font-size:.8rem;font-weight:600;margin-left:6px}
.product-image{position:relative}
.add-to-cart-btn:disabled{background:#B9A592!important;cursor:not-allowed}
.yy-orders-btn{position:relative}
@media (max-width:560px){
  .yy-hide-sm{display:none}
  .yy-row{grid-template-columns:1fr}
  .yy-kid .yy-row{grid-template-columns:1fr 1fr}
  .yy-body{padding:18px}
  .yy-head{padding:16px 18px}
  .yy-box{border-radius:22px}
}

.yy-pay .big,.yy-order-head b{font-family:'Cormorant Garamond',Georgia,serif}
.yy-pay .big{font-size:2.4rem}
.yy-section-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.3rem}
.yy-push{display:flex;gap:12px;align-items:center;background:#FBEFD6;border:1px solid #E3C58F;border-radius:18px;padding:12px 14px;margin-bottom:14px;font-size:.88rem}
.yy-push i{color:#C0282D;font-size:1.2rem}
.yy-push button{margin-left:auto;flex:none}
.yy-tabs3 button{font-size:.85rem}
.yy-sub{border:1px solid #E9DCC8;border-radius:20px;padding:14px 16px;margin-bottom:12px;background:#FFFDF9}

.yy-acc-head{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.yy-acc-head div{flex:1;min-width:150px}
.yy-acc-head b{display:block;font-size:1rem}
.yy-acc-head small{color:#9A8270}
@media (max-width:760px){
  .yy-modal{align-items:flex-end;padding:0}
  .yy-box,.yy-box.wide{max-width:none;border-radius:24px 24px 0 0;max-height:92vh;padding-bottom:env(safe-area-inset-bottom);animation:yySheet .28s ease}
  .yy-head{border-radius:24px 24px 0 0;padding:18px 18px 12px}
  .yy-head:before{content:"";position:absolute;top:7px;left:50%;width:42px;height:4px;border-radius:4px;background:#DCC9AE;transform:translateX(-50%)}
  .yy-head h3{font-size:1.5rem}
  .yy-field input,.yy-field select,.yy-field textarea{font-size:16px}
  .yy-toast{bottom:auto;top:calc(74px + env(safe-area-inset-top));padding:10px 16px;font-size:.84rem;border-radius:16px;width:max-content;max-width:calc(100% - 32px)}
  .yy-order-actions .yy-btn{flex:1 1 auto}
  .yy-tabs button{padding:9px 4px;font-size:.8rem}
}
@keyframes yySheet{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
