/* Garwanj — My Account (revised design, October 2026).
   Presentation only. Markup: native WooCommerce account + Garwanj Core
   (user card, Elementor dashboard 142). Colours come from refined.css tokens. */

body.grw-account .site-content > .ast-container{max-width:1280px;padding-left:32px;padding-right:32px}
body.grw-account #primary{margin:24px 0 64px;padding:0}
body.grw-account .ast-article-single,body.grw-account .ast-article-post{background:transparent;padding:0}
body.grw-account .entry-header{margin-bottom:24px}
body.grw-account .entry-title{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:30px;line-height:1.12;color:var(--grw-green-deep,#183428)}
body.grw-account-dashboard .entry-header{display:none}

/* Layout: sidebar (user card + nav) and main column */
body.grw-account-in .woocommerce{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-areas:"user main" "nav main";grid-template-rows:auto 1fr;column-gap:36px;row-gap:16px;align-items:start}
body.grw-account-in .woocommerce::before,body.grw-account-in .woocommerce::after{display:none}
body.grw-account-in .grw-account-user{grid-area:user}
body.grw-account-in .woocommerce-MyAccount-navigation{grid-area:nav;float:none;width:auto;margin:0}
body.grw-account-in .woocommerce-MyAccount-content{grid-area:main;float:none;width:auto;min-width:0;margin:0;padding:0}

/* User card */
.grw-account-user{display:flex;align-items:center;gap:13px;padding:18px;background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;min-width:0}
.grw-account-avatar{width:50px;height:50px;flex:0 0 50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--grw-gold,#aa792b),var(--grw-brown,#8b4513));color:#fff;font:600 20px 'Fraunces',Georgia,serif}
.grw-account-user strong{display:block;font-size:15px;font-weight:600;color:var(--grw-ink,#242d25);overflow-wrap:anywhere;line-height:1.3}
.grw-account-user span:not(.grw-account-avatar){display:block;font-size:12.5px;color:var(--grw-ink-soft,#565c53);overflow-wrap:anywhere;line-height:1.4}
.grw-account-user>div{min-width:0}

/* Navigation */
body.grw-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;overflow:hidden}
body.grw-account .woocommerce-MyAccount-navigation li{margin:0;padding:0;border:0}
body.grw-account .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;gap:12px;padding:14px 18px;font-size:14.5px;font-weight:500;color:var(--grw-ink-soft,#565c53);border-bottom:1px solid var(--grw-line,#dedfd3);border-left:3px solid transparent;text-decoration:none;transition:background .2s,color .2s}
body.grw-account .woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}
body.grw-account .woocommerce-MyAccount-navigation li a:hover,body.grw-account .woocommerce-MyAccount-navigation li a:focus-visible{background:var(--grw-cream-deep,#eeeadd);color:var(--grw-green,#294a35)}
body.grw-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--grw-cream-deep,#eeeadd);color:var(--grw-green,#294a35);font-weight:600;border-left-color:var(--grw-green,#294a35)}
body.grw-account .woocommerce-MyAccount-navigation-link--customer-logout a{color:#a8442f}
body.grw-account .woocommerce-MyAccount-navigation li a::before{content:"";width:18px;height:18px;flex:0 0 18px;background:currentColor;opacity:.75;-webkit-mask:var(--grw-nav-icon) center/contain no-repeat;mask:var(--grw-nav-icon) center/contain no-repeat}
.woocommerce-MyAccount-navigation-link{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--dashboard{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--orders{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--wishlist{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.5-9.5-9A5 5 0 0 1 12 6a5 5 0 0 1 9.5 6c-2.5 4.5-9.5 9-9.5 9z'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--edit-address{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--edit-account{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--downloads{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 21h16'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--customer-logout{--grw-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E")}

/* Dashboard (Elementor 142) */
body.grw-account .elementor .e-con.grw-account-dash{--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0;--gap:0;padding:0}
.grw-account-welcome{margin:0 0 28px}
.grw-account-welcome h1{margin:0;font:600 30px/1.12 'Fraunces',Georgia,serif;letter-spacing:-.01em;color:var(--grw-green-deep,#183428);overflow-wrap:anywhere}
.grw-account-welcome p{margin:4px 0 0;color:var(--grw-ink-soft,#565c53);font-size:15px}
.grw-account-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 32px}
.grw-account-card{display:flex;align-items:center;gap:16px;padding:22px;background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;color:inherit;text-decoration:none;transition:border-color .2s}
a.grw-account-card:hover,a.grw-account-card:focus-visible{border-color:var(--grw-green,#294a35)}
.grw-account-card-icon{width:48px;height:48px;flex:0 0 48px;border-radius:12px;background:var(--grw-cream-deep,#eeeadd);color:var(--grw-green,#294a35);display:flex;align-items:center;justify-content:center}
.grw-account-card-icon svg{width:24px;height:24px}
.grw-account-card b{display:block;font:600 26px/1.1 'Fraunces',Georgia,serif;color:var(--grw-green-deep,#183428)}
.grw-account-card small{display:block;font-size:13px;color:var(--grw-ink-soft,#565c53)}

.grw-account-orders h3{margin:0 0 18px;font:600 20px/1.2 'Fraunces',Georgia,serif;color:var(--grw-green-deep,#183428)}
.grw-account-order{background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;padding:20px 22px;margin:0 0 16px}
.grw-account-order-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--grw-line,#dedfd3)}
.grw-account-order-id{font:700 15px 'Fraunces',Georgia,serif;color:var(--grw-ink,#242d25)}
.grw-account-order-date{font-size:12.5px;color:var(--grw-ink-soft,#565c53)}
.grw-account-status{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:5px 13px;border-radius:20px;background:#e8edf4;color:#3a5a8a}
.grw-account-status.is-processing,.grw-account-status.is-on-hold,.grw-account-status.is-pending{background:#fbf0d5;color:#7d5f0d}
.grw-account-status.is-completed{background:#e3f0dc;color:var(--grw-green,#294a35)}
.grw-account-status.is-cancelled,.grw-account-status.is-failed,.grw-account-status.is-refunded{background:#f5e4df;color:#9a3b28}
.grw-account-order-body{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.grw-account-order-items{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.grw-account-thumb{width:54px;height:54px;flex:0 0 54px;border-radius:10px;overflow:hidden;background:var(--grw-cream-deep,#eeeadd);color:var(--grw-brown,#8b4513);display:flex;align-items:center;justify-content:center}
.grw-account-thumb svg{width:26px;height:26px;opacity:.6}
.grw-account-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.grw-account-order-items p{margin:0;font-size:13.5px;line-height:1.55;color:var(--grw-ink-soft,#565c53);min-width:0}
.grw-account-order-items p b{font:600 16px 'Fraunces',Georgia,serif;color:var(--grw-ink,#242d25)}
.grw-account-order-actions{display:flex;flex-wrap:wrap;gap:9px}
.grw-account-button,body.grw-account .woocommerce .button,body.grw-account .woocommerce button.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;border-radius:var(--grw-radius-btn,8px);border:1.5px solid var(--grw-green,#294a35);background:var(--grw-green,#294a35);color:var(--grw-paper,#fffdf7);font:600 13px/1.2 'Hanken Grotesk',sans-serif;text-decoration:none;box-shadow:none;transition:background .2s,color .2s}
.grw-account-button:hover,body.grw-account .woocommerce .button:hover{background:var(--grw-green-deep,#183428);border-color:var(--grw-green-deep,#183428);color:var(--grw-paper,#fffdf7)}
.grw-account-button.is-ghost{background:transparent;color:var(--grw-green,#294a35)}
.grw-account-button.is-ghost:hover{background:var(--grw-green,#294a35);color:var(--grw-paper,#fffdf7)}
.grw-account-button.is-gold{background:var(--grw-gold,#aa792b);border-color:var(--grw-gold,#aa792b);color:#fff}
.grw-account-empty{padding:30px;background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px}
.grw-account-empty p{margin:0 0 14px;color:var(--grw-ink-soft,#565c53)}
.grw-account-all{display:inline-block;margin-top:4px;font-weight:600;font-size:14px;color:var(--grw-green,#294a35)}

/* Native endpoints: orders table, addresses, forms, notices */
body.grw-account .woocommerce-MyAccount-content table.shop_table{background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;border-collapse:separate;border-spacing:0;overflow:hidden}
body.grw-account .woocommerce-MyAccount-content table.shop_table th{background:var(--grw-cream-deep,#eeeadd);color:var(--grw-green-deep,#183428);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
body.grw-account .woocommerce-MyAccount-content table.shop_table td,body.grw-account .woocommerce-MyAccount-content table.shop_table th{padding:14px 16px;border-color:var(--grw-line,#dedfd3)}
body.grw-account .woocommerce-Address,body.grw-account .woocommerce-EditAccountForm,body.grw-account form.woocommerce-address-fields,body.grw-account .woocommerce-MyAccount-content>form{background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px;padding:24px}
body.grw-account .woocommerce-Address-title h2,body.grw-account .woocommerce-Address-title h3,body.grw-account .woocommerce-MyAccount-content h2,body.grw-account .woocommerce-MyAccount-content legend{font-family:'Fraunces',Georgia,serif;font-weight:600;color:var(--grw-green-deep,#183428)}
body.grw-account .woocommerce form .form-row label{font-size:13.5px;font-weight:600;color:var(--grw-ink,#242d25)}
body.grw-account .woocommerce form .form-row input.input-text,body.grw-account .woocommerce form .form-row textarea,body.grw-account .woocommerce form .form-row select,body.grw-account .woocommerce .select2-container .select2-selection--single{padding:12px 15px;min-height:46px;border:1.5px solid var(--grw-line,#dedfd3);border-radius:9px;background:var(--grw-paper,#fffdf7);color:var(--grw-ink,#242d25);font-size:15px;box-shadow:none}
body.grw-account .woocommerce form .form-row input.input-text:focus,body.grw-account .woocommerce form .form-row textarea:focus{border-color:var(--grw-green,#294a35);outline:none}
body.grw-account .woocommerce-message,body.grw-account .woocommerce-info,body.grw-account .woocommerce-error{border-radius:12px;border:1px solid var(--grw-line,#dedfd3);border-left:4px solid var(--grw-green,#294a35);background:var(--grw-paper,#fffdf7);color:var(--grw-ink,#242d25)}

/* Logged out: login / register */
body.grw-account-out .woocommerce{max-width:980px;margin:0 auto}
.grw-account-intro{text-align:center;margin:0 0 30px}
.grw-account-intro h1{margin:0;font:600 clamp(30px,4vw,44px)/1.12 'Fraunces',Georgia,serif;color:var(--grw-green-deep,#183428)}
.grw-account-intro p{margin:8px 0 0;color:var(--grw-ink-soft,#565c53);font-size:16px}
body.grw-account-out .entry-header{display:none}
body.grw-account-out #customer_login{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.grw-account-out #customer_login::before,body.grw-account-out #customer_login::after{display:none}
body.grw-account-out #customer_login>.u-column1,body.grw-account-out #customer_login>.u-column2{float:none;width:auto;max-width:none;padding:28px;background:var(--grw-paper,#fffdf7);border:1px solid var(--grw-line,#dedfd3);border-radius:14px}
body.grw-account-out #customer_login h2{margin:0 0 18px;font:600 22px 'Fraunces',Georgia,serif;color:var(--grw-green-deep,#183428)}
body.grw-account-out .woocommerce form.login,body.grw-account-out .woocommerce form.register{border:0;padding:0;margin:0;border-radius:0}
body.grw-account-out .woocommerce-form-login__submit,body.grw-account-out .woocommerce-form-register__submit{width:100%;margin-top:6px}

@media (max-width:900px){
 body.grw-account .site-content > .ast-container{padding-left:20px;padding-right:20px}
 body.grw-account-in .woocommerce{grid-template-columns:minmax(0,1fr);grid-template-areas:"user" "nav" "main";row-gap:14px}
 body.grw-account-in .woocommerce-MyAccount-content{margin-top:10px}
 .grw-account-cards{grid-template-columns:minmax(0,1fr);gap:12px}
 body.grw-account-out #customer_login{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
 body.grw-account .site-content > .ast-container{padding-left:16px;padding-right:16px}
 .grw-account-welcome h1{font-size:26px}
 .grw-account-order{padding:16px}
 .grw-account-order-actions{width:100%}
 .grw-account-order-actions .grw-account-button{flex:1 1 auto}
 body.grw-account .woocommerce form .form-row input.input-text,body.grw-account .woocommerce form .form-row select{font-size:16px}
 body.grw-account-out #customer_login>.u-column1,body.grw-account-out #customer_login>.u-column2{padding:20px}
}
