/**
 * HyperMarket M3 — woocommerce.css MASTER
 * یه فایل کامل — هیچ‌وقت بهم نمی‌ریزه
 * ترتیب: reset → shop → cards → profile → orders → cart → checkout → auth → notices
 */

/* ══ 0. WOODMART RESET ══ */
body .wd-products-grid .products,body ul.products{display:block!important;grid-template-columns:unset!important;margin:0!important;padding:0!important}
body .wd-products-grid .product,body ul.products>li.product{float:none!important;width:auto!important;margin:0!important;padding:0!important}
body .woocommerce-result-count{font-size:12px!important;color:#9ca3af!important;margin:0!important}

/* ══ 1. SHOP PAGE ══ */
.hm-shop-page{padding:0 0 110px;background:#f6f6f6;min-height:100dvh}

/* سرچ */
.hm-shop-page__search{padding:10px 12px 0}
.hm-shop-page__search-inner{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:0 14px;height:46px;box-shadow:0 1px 4px rgba(0,0,0,.06);border:1.5px solid #f0f0f0;width:100%;box-sizing:border-box}
.hm-shop-page__search-btn{cursor:pointer;border:none;font-family:inherit;text-align:right}
.hm-shop-page__search-inner .material-symbols-rounded{font-size:20px;color:#aaa;flex-shrink:0}
.hm-shop-page__search-input{flex:1;border:none;background:transparent;font-size:13px;font-family:inherit;color:#222;outline:none;direction:rtl}
.hm-shop-page__search-input::placeholder{color:#bbb}
.hm-shop-page__search-ph{flex:1;font-size:13px;color:#bbb;text-align:right}
.hm-shop-page__search-clear{color:#bbb;text-decoration:none;display:flex;align-items:center}
.hm-shop-page__search-clear .material-symbols-rounded{font-size:18px}

/* chips */
.hm-shop-page__chips{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;padding:10px 12px 0;gap:7px}
.hm-shop-page__chips::-webkit-scrollbar{display:none}
.hm-chip{display:inline-flex;align-items:center;padding:7px 14px;border-radius:99px;border:1.5px solid #e5e7eb;background:#fff;font-size:12px;font-weight:600;color:#555;white-space:nowrap;cursor:pointer;text-decoration:none;flex-shrink:0;transition:all .18s}
.hm-chip--active,.hm-chip.active{background:#FFC107;border-color:#FFC107;color:#33290a}

/* toolbar */
.hm-shop-page__toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 14px 4px}
.hm-shop-page__count,.woocommerce-result-count{font-size:12px;color:#9ca3af;margin:0}
.woocommerce-ordering select{border:1.5px solid #e5e7eb!important;border-radius:10px!important;padding:6px 10px!important;font-size:12px!important;font-family:inherit!important;background:#fff!important;outline:none!important}

/* گرید ۲ ستون */
.hm-products-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:10px!important;padding:6px 12px 12px!important;width:100%!important;box-sizing:border-box!important}
.hm-products-grid>*{display:block!important;width:auto!important;float:none!important;margin:0!important;padding:0!important}

/* pagination */
.hm-shop-page__pager{padding:12px 12px 0}
.hm-shop-page__pager .nav-links{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.hm-shop-page__pager .page-numbers{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;font-size:13px;font-weight:600;text-decoration:none;border:1.5px solid #e5e7eb;color:#555;background:#fff}
.hm-shop-page__pager .page-numbers.current{background:#FFC107;border-color:#FFC107;color:#33290a}
.hm-shop-page__pager .page-numbers.dots{border:none;background:none;width:auto}

/* ══ 2. PRODUCT CARD — دقیقاً هم‌سبک homepage .hc ══ */
.hm-products-grid .hc{width:auto!important;min-width:unset!important;max-width:unset!important}
.hc{background:#fff;border-radius:14px;width:120px;min-width:120px;max-width:120px;flex-shrink:0!important;position:relative;cursor:pointer;border:1px solid #efefef;display:flex;flex-direction:column;overflow:hidden;transition:transform .15s}
.hc:active{transform:scale(.95)}
.hm-products-grid .hc{width:100%;min-width:unset;max-width:unset;flex-shrink:1}
.hc__disc{position:absolute;top:7px;left:7px;background:#e8380d;color:#fff;font-size:9.5px;font-weight:800;padding:2px 7px;border-radius:99px;z-index:3;line-height:1.4}
.hc__pack{position:absolute;top:7px;right:7px;background:#333;color:#fff;font-size:9px;font-weight:700;padding:2px 6px;border-radius:99px;z-index:3;direction:ltr}
.hc__img-wrap{position:relative;width:100%}
.hc__img-a{display:block;width:100%;aspect-ratio:1;background:#fff;border-bottom:1px solid #f0f0f0;overflow:hidden}
.hc__img-a img{width:100%;height:100%;object-fit:contain;object-position:center;padding:10px;box-sizing:border-box}
.hc__unavailable{position:absolute;inset:0;background:rgba(0,0,0,.38);display:flex;align-items:center;justify-content:center}
.hc__unavailable span{background:rgba(0,0,0,.7);color:#fff;font-size:11px;font-weight:700;padding:4px 10px;border-radius:99px}
.hc__add{position:absolute;bottom:6px;right:6px;width:28px;height:28px;border-radius:50%;background:#FFC107;border:none;cursor:pointer;font-size:21px;font-weight:700;color:#333;line-height:1;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.18);transition:transform .13s;font-family:inherit;z-index:4}
.hc__add:active{transform:scale(.82)}
.hc__body{padding:6px 8px 8px;display:flex;flex-direction:column;gap:2px}
.hc__name{font-size:10.5px;color:#333;font-weight:500;line-height:1.35;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:27px}
.hc__price{text-align:right;direction:rtl}
.hc__price ins{text-decoration:none;display:flex;align-items:baseline;gap:3px}
.hc__price ins .hc__price-num{font-size:13px;font-weight:800;color:#e8380d}
.hc__price ins .hc__price-unit{font-size:10px;color:#e8380d}
.hc__price del{display:flex;align-items:baseline;gap:2px;margin-bottom:1px}
.hc__price del .hc__price-num{font-size:10px;font-weight:400;color:#bbb}
.hc__price del .hc__price-unit{font-size:9px;color:#ccc}
.hc__price-simple{display:flex;align-items:baseline;gap:3px}
.hc__price-simple .hc__price-num{font-size:13px;font-weight:800;color:#333}
.hc__price-simple .hc__price-unit{font-size:10px;color:#888}

/* ══ 3. PROFILE — حساب کاربری ══ */
.hm-profile{padding:0 0 110px;background:#f6f6f6;min-height:100dvh}
.hm-profile__hero{position:relative;overflow:hidden;background:#1a1a2e;margin-bottom:0}
.hm-profile__hero-bg{position:absolute;inset:-20px;filter:blur(22px);opacity:.35;overflow:hidden;pointer-events:none}
.hm-profile__hero-bg .hm-profile__hero-blur-img{width:100%;height:100%;object-fit:cover}
.hm-profile__hero-content{position:relative;z-index:1;display:flex;align-items:center;gap:14px;padding:18px 16px}
.hm-profile__avatar-wrap{position:relative;flex-shrink:0}
.hm-profile__avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;border:3px solid #FFC107;display:block}
.hm-profile__avatar-edit{position:absolute;bottom:0;right:0;width:22px;height:22px;border-radius:50%;background:#FFC107;border:2px solid #1a1a2e;display:flex;align-items:center;justify-content:center;text-decoration:none}
.hm-profile__avatar-edit .material-symbols-rounded{font-size:12px;color:#333}
.hm-profile__hero-info{flex:1;min-width:0}
.hm-profile__name{font-size:16px;font-weight:700;color:#fff;display:block;margin-bottom:3px}
.hm-profile__phone{font-size:12px;color:rgba(255,255,255,.6);display:block;direction:ltr;text-align:right}
.hm-profile__edit-link{color:rgba(255,255,255,.5);text-decoration:none;flex-shrink:0}
.hm-profile__edit-link .material-symbols-rounded{font-size:22px}
.hm-profile__quick-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 12px;background:#f6f6f6}
.hm-profile__quick-card{background:#fff;border-radius:16px;padding:16px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;box-shadow:0 1px 4px rgba(0,0,0,.06);transition:transform .15s}
.hm-profile__quick-card:active{transform:scale(.97)}
.hm-profile__quick-icon{position:relative;width:44px;height:44px;border-radius:14px;background:#f5f5f5;display:flex;align-items:center;justify-content:center}
.hm-profile__quick-icon .material-symbols-rounded{font-size:24px;color:#555}
.hm-profile__quick-icon--pay .material-symbols-rounded{color:#e8380d}
.hm-profile__quick-dot{position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#e8380d;border:2px solid #fff}
.hm-profile__quick-label{font-size:13px;font-weight:600;color:#1a1a2e}
.hm-profile__quick-sub{font-size:11px;color:#22c55e;font-weight:600}
.hm-profile__section{background:#fff;margin:0 0 8px;overflow:hidden}
.hm-profile__section--mt{margin-top:4px}
.hm-profile__nav-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #f8f8f8;text-decoration:none;color:#1a1a2e;transition:background .15s}
.hm-profile__nav-item:last-child{border-bottom:none}
.hm-profile__nav-item:hover{background:#fafafa}
.hm-profile__nav-icon{width:40px;height:40px;border-radius:12px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hm-profile__nav-icon .material-symbols-rounded{font-size:20px;color:#555}
.hm-profile__nav-label{flex:1;font-size:14px;font-weight:500}
.hm-profile__nav-badge{background:#e8380d;color:#fff;font-size:10px;font-weight:700;min-width:20px;height:20px;border-radius:99px;display:flex;align-items:center;justify-content:center;padding:0 6px}
.hm-profile__nav-arrow{font-size:18px;color:#ccc}
.hm-profile__nav-item--danger .hm-profile__nav-icon{background:#fff5f5}
.hm-profile__nav-item--danger .hm-profile__nav-icon .material-symbols-rounded{color:#e8380d}
.hm-profile__nav-item--danger .hm-profile__nav-label{color:#e8380d}
.hm-profile__content{padding:10px 12px 20px;background:#f6f6f6}
.hm-profile__content label{display:block;font-size:11px;font-weight:700;color:#6b7280;margin-bottom:5px}
.hm-profile__content input,.hm-profile__content select,.hm-profile__content textarea{width:100%!important;border:1.5px solid #e5e7eb!important;border-radius:12px!important;padding:11px 14px!important;font-size:14px!important;font-family:inherit!important;background:#fafafa!important;box-sizing:border-box!important;outline:none!important;color:#1a1a2e!important;transition:border-color .18s!important;margin-bottom:8px!important}
.hm-profile__content input:focus,.hm-profile__content select:focus{border-color:#FFC107!important;background:#fff!important}
.hm-profile__content button[type=submit],.hm-profile__content .woocommerce-Button{width:100%!important;height:50px!important;background:#FFC107!important;color:#33290a!important;border:none!important;border-radius:14px!important;font-size:15px!important;font-weight:700!important;font-family:inherit!important;cursor:pointer!important;margin-top:8px!important}

/* ══ 4. ORDERS ══ */
.hm-orders-page{padding:10px 12px 110px;background:#f6f6f6}
.hm-orders-page__hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.hm-orders-page__hdr h2{font-size:16px;font-weight:700;color:#1a1a2e;margin:0}
.hm-orders-page__count{font-size:12px;color:#9ca3af}
.hm-orders-page__filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px;flex-wrap:nowrap}
.hm-orders-page__filters::-webkit-scrollbar{display:none}
.hm-orders-filter{padding:6px 14px;border-radius:99px;border:1.5px solid #e5e7eb;background:#fff;font-size:12px;font-weight:600;color:#6b7280;cursor:pointer;white-space:nowrap;font-family:inherit;flex-shrink:0}
.hm-orders-filter.on{background:#FFC107;border-color:#FFC107;color:#33290a}
.hm-orders-empty{padding:48px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.hm-orders-empty .material-symbols-rounded{font-size:52px;color:#e5e7eb}
.hm-orders-empty p{font-size:14px;color:#9ca3af}
.hm-orders-list{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-order-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #f5f5f5;text-decoration:none;transition:background .15s}
.hm-order-row:last-child{border-bottom:none}
.hm-order-row:hover{background:#fafafa}
.hm-order-row__thumb{width:52px;height:52px;border-radius:12px;background:#f5f5f5;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative}
.hm-order-row__thumb img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.hm-order-row__thumb .material-symbols-rounded{font-size:24px;color:#ccc}
.hm-order-row__extra{position:absolute;bottom:2px;right:2px;background:rgba(0,0,0,.5);color:#fff;font-size:9px;font-weight:700;padding:1px 4px;border-radius:4px}
.hm-order-row__info{flex:1;min-width:0}
.hm-order-row__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.hm-order-row__id{font-size:13px;font-weight:700;color:#1a1a2e}
.hm-order-row__status{font-size:10px;font-weight:700;padding:2px 8px;border-radius:99px;display:inline-flex;align-items:center;gap:3px}
.hm-order-row__meta{font-size:11px;color:#9ca3af;margin-bottom:3px}
.hm-order-row__dot{margin:0 4px}
.hm-order-row__total{font-size:13px;font-weight:700;color:#e8380d}
.hm-order-row__total .woocommerce-Price-amount{color:#e8380d;font-size:13px;font-weight:700}
.hm-order-row__arrow{font-size:18px;color:#ccc;flex-shrink:0}

/* ══ 5. CART ══ */
.hm-cart-page{padding:10px 0 110px;background:#f6f6f6;min-height:100dvh}
.hm-cart-empty{display:flex;flex-direction:column;align-items:center;padding:60px 24px;text-align:center;gap:14px}
.hm-cart-empty__icon{font-size:72px;color:#e5e7eb;display:block}
.hm-cart-empty__title{font-size:18px;font-weight:700;color:#1a1a2e;margin:0}
.hm-cart-empty__desc{font-size:13px;color:#9ca3af;line-height:1.6;margin:0}
.hm-cart-page__items{padding:0 12px}
.hm-cart-items{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);margin-bottom:10px}
.hm-cart-item{display:grid;grid-template-columns:70px 1fr;gap:12px;padding:14px;border-bottom:1px solid #f5f5f5;position:relative}
.hm-cart-item:last-child{border-bottom:none}
.hm-cart-item__image{width:70px;height:70px;border-radius:12px;background:#f5f5f5;overflow:hidden;flex-shrink:0}
.hm-cart-item__image img{width:100%;height:100%;object-fit:contain;padding:6px;box-sizing:border-box}
.hm-cart-item__info{display:flex;flex-direction:column;gap:6px;min-width:0}
.hm-cart-item__header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.hm-cart-item__title{font-size:13px;font-weight:600;color:#1a1a2e;line-height:1.4;margin:0}
.hm-cart-item__title a{text-decoration:none;color:inherit}
.hm-cart-item__remove{width:30px;height:30px;border-radius:8px;background:#fff5f5;border:none;cursor:pointer;display:grid;place-items:center;color:#e8380d;flex-shrink:0}
.hm-cart-item__remove .material-symbols-rounded{font-size:17px}
.hm-cart-item__footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hm-qty-control{display:flex;align-items:center;background:#f5f5f5;border-radius:10px;overflow:hidden}
.hm-qty-control__btn{width:36px;height:36px;background:transparent;border:none;cursor:pointer;color:#333;display:grid;place-items:center;transition:background .15s}
.hm-qty-control__btn:active{background:#FFC107}
.hm-qty-control__btn .material-symbols-rounded{font-size:18px}
.hm-qty-control__value{min-width:34px;text-align:center;font-size:14px;font-weight:700;color:#1a1a2e}
.hm-cart-item__subtotal{font-size:14px;font-weight:800;color:#e8380d;white-space:nowrap}
.hm-cart-item__subtotal .woocommerce-Price-amount{color:#e8380d;font-weight:800}
.hm-cart-coupon{background:#fff;border-radius:16px;padding:12px 14px;margin:0 12px 10px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-cart-coupon__input-wrap{display:flex;align-items:center;gap:8px;background:#f5f5f5;border-radius:12px;padding:0 12px;height:46px}
.hm-cart-coupon__input{flex:1;background:transparent;border:none;font-size:13px;font-family:inherit;outline:none;color:#1a1a2e;direction:rtl}
.hm-cart-coupon__apply{background:#FFC107;border:none;border-radius:8px;padding:7px 14px;font-size:12px;font-weight:700;color:#33290a;cursor:pointer;font-family:inherit;white-space:nowrap}
.hm-cart-page__summary{padding:0 12px}
.hm-cart-totals{background:#fff;border-radius:20px;padding:18px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-cart-totals__title{font-size:15px;font-weight:700;color:#1a1a2e;margin-bottom:14px}
.hm-cart-totals__rows{display:flex;flex-direction:column;margin-bottom:16px}
.hm-cart-totals__row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f5f5f5}
.hm-cart-totals__row:last-child{border-bottom:none}
.hm-cart-totals__label{font-size:13px;color:#6b7280;display:flex;align-items:center;gap:5px}
.hm-cart-totals__value{font-size:13px;font-weight:600;color:#1a1a2e}
.hm-cart-totals__value--discount{color:#22c55e}
.hm-cart-totals__value--total{font-size:18px;font-weight:800;color:#e8380d}
.hm-cart-totals__value--total .woocommerce-Price-amount{font-size:18px;font-weight:800;color:#e8380d}
.hm-cart-totals__actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}

/* ══ 6. CHECKOUT ══ */
.hm-checkout-page{padding:10px 12px 110px;background:#f6f6f6;min-height:100dvh}
.hm-checkout-steps{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:14px;padding:12px 16px;background:#fff;border-radius:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-checkout-steps__item{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}
.hm-checkout-steps__num{width:30px;height:30px;border-radius:50%;background:#f0f0f0;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.hm-checkout-steps__item--done .hm-checkout-steps__num{background:#22c55e;color:#fff}
.hm-checkout-steps__item--active .hm-checkout-steps__num{background:#FFC107;color:#33290a}
.hm-checkout-steps__label{font-size:11px;color:#9ca3af;font-weight:500}
.hm-checkout-steps__item--active .hm-checkout-steps__label{color:#1a1a2e;font-weight:700}
.hm-checkout-steps__connector{flex:1;height:2px;background:#f0f0f0;margin-bottom:16px}
.hm-checkout-section{background:#fff;border-radius:18px;padding:16px;margin-bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-checkout-section__title{font-size:14px;font-weight:700;color:#1a1a2e;display:flex;align-items:center;gap:8px;margin-bottom:14px}
.hm-checkout-section__title .material-symbols-rounded{font-size:18px;color:#FFC107}
.hm-checkout-fields p.form-row{margin:0 0 10px;padding:0}
.hm-checkout-fields label{display:block;font-size:11px;font-weight:700;color:#6b7280;margin-bottom:5px}
.hm-checkout-fields input,.hm-checkout-fields select,.hm-checkout-fields textarea{width:100%!important;border:1.5px solid #e5e7eb!important;border-radius:12px!important;padding:11px 14px!important;font-size:14px!important;font-family:inherit!important;background:#fafafa!important;color:#1a1a2e!important;outline:none!important;box-sizing:border-box!important;transition:border-color .18s!important;direction:rtl!important}
.hm-checkout-fields input:focus,.hm-checkout-fields select:focus,.hm-checkout-fields textarea:focus{border-color:#FFC107!important;background:#fff!important;box-shadow:0 0 0 3px rgba(255,193,7,.12)!important}
.hm-payment-methods{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.hm-payment-method{display:block;background:#fafafa;border:1.5px solid #e5e7eb;border-radius:14px;padding:14px;cursor:pointer;transition:all .2s}
.hm-payment-method--selected{border-color:#FFC107;background:#fffde8}
.hm-payment-method__title{font-size:14px;font-weight:600;color:#1a1a2e}
.hm-order-review{background:#fff;border-radius:18px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.06);margin-bottom:10px}
.hm-order-review__title{font-size:14px;font-weight:700;color:#1a1a2e;margin-bottom:12px}
.hm-order-review__item{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #f5f5f5}
.hm-order-review__item:last-child{border-bottom:none}
.hm-order-review__item-image{width:48px;height:48px;border-radius:10px;background:#f5f5f5;overflow:hidden;position:relative}
.hm-order-review__item-image img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.hm-order-review__item-qty{position:absolute;top:-4px;right:-4px;width:18px;height:18px;border-radius:50%;background:#FFC107;color:#33290a;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center}
.hm-order-review__item-name{font-size:12px;font-weight:600;color:#1a1a2e;display:block}
.hm-order-review__item-total{font-size:12px;font-weight:700;color:#e8380d;white-space:nowrap}
.hm-order-review__row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f5f5f5;font-size:13px}
.hm-order-review__row:last-child{border-bottom:none}
.hm-order-review__row--total span:last-child{font-size:16px;font-weight:800;color:#e8380d}
.hm-order-review__row--total .woocommerce-Price-amount{font-size:16px;font-weight:800;color:#e8380d}

/* ══ 7. AUTH ══ */
.hm-auth-page{padding:0 0 110px;background:#f6f6f6;min-height:100dvh}
.hm-auth-page__logo{text-align:center;padding:32px 20px 12px}
.hm-auth-page__logo img{max-height:56px}
.hm-auth-page__logo-text{font-size:24px;font-weight:800;color:#1a1a2e}
.hm-auth-page__logo-sub{font-size:12px;color:#9ca3af;margin-top:5px}
.hm-auth-notice{margin:0 12px 8px;padding:11px 14px;border-radius:12px;font-size:13px}
.hm-auth-notice--err{background:#fff5f5;color:#991b1b;border-right:3px solid #e8380d}
.hm-auth-tabs{display:flex;background:#fff;margin:0 12px 8px;border-radius:16px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-auth-tabs__tab{flex:1;height:48px;border:none;background:transparent;font-size:14px;font-weight:600;color:#9ca3af;cursor:pointer;font-family:inherit;border-bottom:2px solid transparent;transition:all .22s}
.hm-auth-tabs__tab--active{color:#1a1a2e;border-bottom-color:#FFC107;background:#fffde8}
.hm-auth-panel{background:#fff;margin:0 12px 8px;border-radius:20px;padding:20px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:14px}
.hm-auth-panel[hidden]{display:none!important}
.hm-auth-form{display:flex;flex-direction:column;gap:14px}
.hm-auth-field{display:flex;flex-direction:column;gap:6px}
.hm-auth-field__label{font-size:11px;font-weight:700;color:#6b7280}
.hm-auth-field__wrap{position:relative;display:flex;align-items:center}
.hm-auth-field__icon{position:absolute;right:14px;font-size:19px;color:#FFC107;pointer-events:none;font-family:'Material Symbols Rounded'}
.hm-auth-field__input{width:100%;border:1.5px solid #e5e7eb;border-radius:14px;padding:13px 46px 13px 46px;font-size:14px;font-family:inherit;background:#fafafa;color:#1a1a2e;outline:none;direction:rtl;transition:border-color .18s,background .18s;box-sizing:border-box}
.hm-auth-field__input:focus{border-color:#FFC107;background:#fff;box-shadow:0 0 0 3px rgba(255,193,7,.12)}
.hm-auth-field__eye{position:absolute;left:14px;background:none;border:none;cursor:pointer;color:#aaa;padding:0;display:flex;align-items:center}
.hm-auth-field__eye .material-symbols-rounded{font-size:20px}
.hm-auth-form__row{display:flex;align-items:center;justify-content:space-between}
.hm-auth-form__remember{display:flex;align-items:center;gap:7px;font-size:12px;color:#555;cursor:pointer}
.hm-auth-form__cb{accent-color:#FFC107}
.hm-auth-form__forgot{font-size:12px;color:#FFC107;text-decoration:none}
.hm-auth-form__submit{width:100%;height:52px;border-radius:16px;border:none;background:#FFC107;color:#33290a;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;box-shadow:0 4px 14px rgba(255,193,7,.4);transition:transform .15s;display:flex;align-items:center;justify-content:center;gap:8px}
.hm-auth-form__submit:active{transform:scale(.97)}
.hm-auth-form__submit--reg{background:#1a1a2e;color:#fff;box-shadow:0 4px 14px rgba(26,26,46,.25)}

/* ══ 8. WALLET / COUPONS / MESSAGES / TXS ══ */
.hm-wallet-page{padding:10px 12px 20px}
.hm-wallet-card{background:linear-gradient(135deg,#1a1a2e,#2d2d5e);border-radius:20px;padding:20px;color:#fff;margin-bottom:12px}
.hm-wallet-card__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:13px;color:rgba(255,255,255,.7)}
.hm-wallet-card__withdraw-btn{background:#FFC107;color:#333;border:none;border-radius:8px;padding:6px 14px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.hm-wallet-card__balance{font-size:32px;font-weight:800;text-align:center;direction:rtl}
.hm-wallet-card__unit{font-size:12px;color:rgba(255,255,255,.5);text-align:center;margin:4px 0 16px}
.hm-wallet-card__footer{display:flex;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.6);padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}
.hm-wallet-txs{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-wallet-txs__header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #f5f5f5;font-size:14px;font-weight:700}
.hm-wallet-txs__all{font-size:12px;color:#FFC107;text-decoration:none}
.hm-wallet-txs__empty{padding:36px;text-align:center;color:#9ca3af;display:flex;flex-direction:column;align-items:center;gap:8px}
.hm-wallet-txs__empty .material-symbols-rounded{font-size:40px;color:#e5e7eb}
.hm-coupons-page{padding:10px 12px 20px;display:flex;flex-direction:column;gap:12px}
.hm-coupon-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-coupon-card__top{padding:16px}
.hm-coupon-card__amount{font-size:18px;font-weight:800;color:#1a1a2e;margin-bottom:4px}
.hm-coupon-card__exp{font-size:11px;color:#9ca3af}
.hm-coupon-card__divider{position:relative;height:1px;background:#f0f0f0;margin:0 14px;display:flex;align-items:center}
.hm-coupon-card__cut{position:absolute;width:18px;height:18px;border-radius:50%;background:#f6f6f6}
.hm-coupon-card__cut--right{right:-18px}
.hm-coupon-card__cut--left{left:-18px}
.hm-coupon-card__dots{flex:1;border-top:2px dashed #f0f0f0;margin:0 14px}
.hm-coupon-card__bottom{padding:12px 16px;display:flex;align-items:center;justify-content:space-between}
.hm-coupon-card__code{font-size:16px;font-weight:700;color:#1a1a2e;direction:ltr;letter-spacing:2px}
.hm-coupon-card__copy{background:#f5f5f5;border:none;border-radius:8px;padding:7px 14px;font-size:12px;font-weight:700;cursor:pointer;color:#333;font-family:inherit}
.hm-messages-page{padding:10px 12px 20px;display:flex;flex-direction:column;gap:8px}
.hm-message-card{background:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hm-message-card--unread{border-right:3px solid #FFC107}
.hm-message-card__header{display:flex;justify-content:space-between;margin-bottom:8px}
.hm-message-card__title{font-size:14px;font-weight:700;color:#1a1a2e}
.hm-message-card__date{font-size:11px;color:#9ca3af}
.hm-message-card__body{font-size:13px;color:#6b7280;line-height:1.6;margin:0}
.hm-txs-page{padding:10px 12px 20px}
.hm-tx-row{background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:8px;box-shadow:0 1px 4px rgba(0,0,0,.06);display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.hm-tx-row__status{font-size:10px;font-weight:700;padding:3px 10px;border-radius:99px;display:inline-block}
.hm-tx-row__amount{font-size:15px;font-weight:800;color:#1a1a2e;direction:rtl}
.hm-tx-row__method{font-size:13px;font-weight:600;color:#1a1a2e}
.hm-tx-row__date,.hm-tx-row__order{font-size:11px;color:#9ca3af}

/* ══ 9. BUTTONS ══ */
.hm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:14px;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;text-decoration:none;transition:transform .15s;-webkit-tap-highlight-color:transparent;padding:12px 20px}
.hm-btn:active{transform:scale(.97)}
.hm-btn--filled{background:#FFC107;color:#33290a;box-shadow:0 4px 14px rgba(255,193,7,.4)}
.hm-btn--filled:hover{background:#ffb300}
.hm-btn--tonal{background:#f5f5f5;color:#555}
.hm-btn--outline{background:transparent;border:1.5px solid #e5e7eb;color:#555}
.hm-btn--large{height:52px;font-size:15px}
.hm-btn--full{width:100%}
.hm-btn .material-symbols-rounded{font-size:20px}

/* ══ 10. EMPTY STATE ══ */
.hm-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center;gap:10px}
.hm-empty-state .material-symbols-rounded{font-size:56px;color:#e5e7eb}
.hm-empty-state p{font-size:15px;color:#9ca3af;margin:0}

/* ══ 11. WC NOTICES ══ */
.woocommerce-error,.woocommerce-message,.woocommerce-info{border-radius:14px!important;padding:12px 14px!important;font-size:13px!important;margin:0 0 10px!important;border:none!important;list-style:none!important;display:flex!important;align-items:center!important;gap:8px!important}
.woocommerce-message{background:#f0fff4!important;color:#166534!important}
.woocommerce-error{background:#fff5f5!important;color:#991b1b!important}
.woocommerce-info{background:#fffde8!important;color:#854d0e!important}
.woocommerce-error::before,.woocommerce-message::before,.woocommerce-info::before{display:none!important}

/* ══ PWA Install Banner ══ */
.hm-pwa-banner {
  display:flex; align-items:center; gap:10px;
  background:#1a1a2e; color:#fff;
  padding:12px 14px;
  margin:0 12px 10px;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(26,26,46,.35);
  animation:hm-slide-up .4s cubic-bezier(.25,1,.5,1);
}
@keyframes hm-slide-up{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.hm-pwa-banner[hidden]{display:none!important}
.hm-pwa-banner__icon{font-size:28px;flex-shrink:0}
.hm-pwa-banner__text{flex:1;display:flex;flex-direction:column;gap:2px}
.hm-pwa-banner__text strong{font-size:13px;font-weight:700}
.hm-pwa-banner__text span{font-size:11px;color:rgba(255,255,255,.65)}
.hm-pwa-banner__install{background:#FFC107;color:#33290a;border:none;border-radius:10px;padding:8px 14px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap}
.hm-pwa-banner__close{background:rgba(255,255,255,.15);border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* ══ CHECKOUT v2 — هماهنگ با WooCommerce ══ */
.hm-checkout-page { padding:10px 0 120px; background:#f6f6f6; min-height:100dvh; }

.hm-co-section {
  background:#fff; margin:8px 12px 0;
  border-radius:16px; padding:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.hm-co-section__title {
  font-size:13px; font-weight:700; color:#1a1a2e;
  display:flex; align-items:center; gap:7px; margin-bottom:12px;
}
.hm-co-section__title .material-symbols-rounded { font-size:18px; color:#FFC107; }
.hm-co-section__row {
  display:flex; align-items:center; justify-content:space-between;
  padding:11px 0; border-top:1px solid #f5f5f5; font-size:13px;
}
.hm-co-section__row:first-of-type { border-top:none; }
.hm-co-link {
  background:none; border:none; color:#FFC107;
  font-size:13px; font-weight:600; cursor:pointer; font-family:inherit;
}
.hm-co-addr { font-size:13px; color:#555; line-height:1.6; }
.hm-co-addr--empty { color:#FFC107; text-decoration:none; font-weight:600; }

/* toggle */
.hm-co-toggle {
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:#1a1a2e; cursor:pointer;
}
.hm-sw { position:relative; width:46px; height:26px; flex-shrink:0; }
.hm-sw input { opacity:0; width:0; height:0; position:absolute; }
.hm-sw__sl { position:absolute; inset:0; background:#e5e7eb; border-radius:99px; cursor:pointer; transition:.22s; }
.hm-sw__sl::before { content:''; position:absolute; left:3px; top:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.22s; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.hm-sw input:checked+.hm-sw__sl { background:#FFC107; }
.hm-sw input:checked+.hm-sw__sl::before { transform:translateX(20px); }

/* fields override */
.hm-checkout-fields .form-row { margin:0 0 10px; padding:0; }
.hm-checkout-fields label { display:block; font-size:11px; font-weight:700; color:#6b7280; margin-bottom:5px; }
.hm-checkout-fields input[type=text],
.hm-checkout-fields input[type=email],
.hm-checkout-fields input[type=tel],
.hm-checkout-fields input[type=number],
.hm-checkout-fields select,
.hm-checkout-fields textarea {
  width:100%!important; border:1.5px solid #e5e7eb!important;
  border-radius:12px!important; padding:11px 14px!important;
  font-size:14px!important; font-family:inherit!important;
  background:#fafafa!important; color:#1a1a2e!important;
  outline:none!important; box-sizing:border-box!important;
  direction:rtl!important; transition:border-color .18s!important;
}
.hm-checkout-fields input:focus,
.hm-checkout-fields select:focus,
.hm-checkout-fields textarea:focus {
  border-color:#FFC107!important; background:#fff!important;
}

/* payment */
.hm-co-payment {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px; border-radius:16px;
  border:1.5px solid #e5e7eb; background:#fafafa;
  cursor:pointer; transition:all .18s;
}
.hm-co-payment--sel { border-color:#FFC107; background:#fffde8; }
.hm-co-payment input[type=radio] { width:20px; height:20px; accent-color:#FFC107; flex-shrink:0; margin-top:2px; }
.hm-co-payment__info { flex:1; }
.hm-co-payment__title { font-size:14px; font-weight:700; color:#1a1a2e; display:block; }
.hm-co-payment__desc { font-size:12px; color:#9ca3af; margin-top:3px; }
.hm-co-payment__icon img { height:24px; object-fit:contain; }

/* cart items */
.hm-co-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 0; border-bottom:1px solid #f5f5f5;
}
.hm-co-item:last-child { border-bottom:none; }
.hm-co-item__img {
  width:52px; height:52px; border-radius:10px;
  object-fit:contain; background:#f5f5f5; padding:4px; flex-shrink:0;
}
.hm-co-item__info { flex:1; min-width:0; }
.hm-co-item__name { font-size:12px; font-weight:600; color:#1a1a2e; display:block; }
.hm-co-item__qty { font-size:11px; color:#9ca3af; display:block; margin-top:2px; }
.hm-co-item__price { font-size:13px; font-weight:700; color:#e8380d; white-space:nowrap; }
.hm-co-item__price .woocommerce-Price-amount { color:#e8380d; font-size:13px; font-weight:700; }

/* totals */
.hm-co-totals { margin-top:12px; padding-top:12px; border-top:1px solid #f5f5f5; }
.hm-co-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:#6b7280; padding:7px 0; border-bottom:1px solid #f9f9f9;
}
.hm-co-row:last-child { border-bottom:none; }
.hm-co-row span:last-child { color:#1a1a2e; font-weight:600; }
.hm-co-row--discount span:last-child { color:#22c55e; }
.hm-co-row .woocommerce-Price-amount { font-weight:600; }

/* submit bar — شناور، با فاصله از منو ناوبری (نه چسبیده به لبه) */
.hm-co-submit-bar {
  position:fixed;
  bottom: calc(14px + 56px + 12px); /* فاصله از پایین = جای منو ناوبری + ۱۲px gap */
  left:50%; transform:translateX(-50%);
  width:calc(100% - 24px); max-width:406px;
  background:rgba(255,255,255,.92); backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.5);
  border-radius:20px;
  padding:12px 16px;
  display:flex; align-items:center; gap:12px;
  z-index:480; /* زیر منو ناوبری (999) و top-bar (999) تا تداخل نکنه */
  box-shadow:0 6px 24px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
}
.hm-co-submit-total { flex:1; }
.hm-co-submit-total span { font-size:11px; color:#9ca3af; display:block; }
.hm-co-submit-total strong { font-size:17px; font-weight:800; color:#1a1a2e; }
.hm-co-submit-total .woocommerce-Price-amount { font-size:17px; font-weight:800; }
.hm-co-submit-btn {
  height:52px; padding:0 24px;
  background:#FFC107; color:#33290a;
  border:none; border-radius:99px;
  font-size:15px; font-weight:800; font-family:inherit;
  cursor:pointer; display:flex; align-items:center; gap:8px;
  box-shadow:0 4px 14px rgba(255,193,7,.4);
  transition:transform .15s; white-space:nowrap;
}
.hm-co-submit-btn:active { transform:scale(.97); }

/* فضای خالی پایین صفحه تا محتوا زیر باکس شناور گم نشه */
.hm-checkout-page { padding-bottom: calc(14px + 56px + 12px + 90px); }
.hm-co-submit-btn .material-symbols-rounded { font-size:18px; }

/* coupon در checkout */
.woocommerce-checkout .checkout_coupon { display:flex; gap:8px; }
.woocommerce-checkout .checkout_coupon input { flex:1; border:1.5px solid #e5e7eb; border-radius:99px; padding:10px 14px; font-size:13px; font-family:inherit; background:#fafafa; outline:none; }
.woocommerce-checkout .checkout_coupon input:focus { border-color:#FFC107; }
.woocommerce-checkout .checkout_coupon button { background:#FFC107; border:none; border-radius:99px; padding:10px 18px; font-size:13px; font-weight:700; cursor:pointer; color:#33290a; font-family:inherit; white-space:nowrap; }

/* WC order review - مخفی (ما خودمون رندر می‌کنیم) */
.hm-checkout-page #order_review_heading { display:none!important; }
.hm-checkout-page #order_review { display:none!important; }

/* ══ BACK TO TOP — گوشه چپ پایین (فقط اینجا) ══ */
#hm-back-top {
  position:fixed !important;
  bottom:90px !important;
  left:16px !important;
  right:auto !important;
  top:auto !important;
  transform:none !important;
  width:42px; height:42px;
  border-radius:50% !important;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 3px 14px rgba(0,0,0,.14);
  display:grid; place-items:center;
  cursor:pointer; z-index:800;
  color:#333;
  opacity:0; visibility:hidden;
  transition:opacity .28s, visibility .28s;
  pointer-events:none;
}
#hm-back-top.visible {
  opacity:1; visibility:visible; pointer-events:all;
}
#hm-back-top .material-symbols-rounded { font-size:20px; }
#hm-back-top:active { transform:scale(.88) !important; }

/* ══ دکمه‌های گرد M3 — همه جا ══ */
.hm-btn { border-radius:99px !important; }
.hm-btn--tonal, .hm-btn--outline { border-radius:14px !important; }
.woocommerce a.button, .woocommerce button.button,
.woocommerce input[type=submit] { border-radius:99px !important; }
.hm-auth-form__submit { border-radius:99px !important; }
.hm-cart-coupon__apply { border-radius:99px !important; }
.pi-submit-btn, .pi-login__btn { border-radius:99px !important; }

/* ══ PROFILE+WALLET CARD ══ */
.hm-pw-card {
  margin: 12px 12px 10px;
  background: linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);
  border-radius: 20px; padding: 16px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

/* پروفایل */
.hm-pw-card__profile {
  display: flex; align-items: center; gap: 12px;
}
.hm-pw-card__avatar-wrap {
  flex-shrink: 0;
}
.hm-pw-card__avatar {
  width: 52px !important; height: 52px !important;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.2);
  object-fit: cover; display: block;
}
.hm-pw-card__user { flex: 1; min-width: 0; }
.hm-pw-card__name {
  display: block; font-size: 14px; font-weight: 800;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-pw-card__phone { font-size: 11px; color: rgba(255,255,255,.5); }
.hm-pw-card__edit {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); text-decoration: none; flex-shrink: 0;
}
.hm-pw-card__edit .material-symbols-rounded { font-size: 18px; }

/* خط جداکننده */
.hm-pw-card__divider {
  height: 1px; background: rgba(255,255,255,.1); margin: 14px 0;
}

/* کیف پول */
.hm-pw-card__wallet {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.hm-pw-card__wallet-info { display: flex; flex-direction: column; gap: 3px; }
.hm-pw-card__wallet-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,.55);
}
.hm-pw-card__wallet-label .material-symbols-rounded { font-size: 14px; color: #FFC107; }
.hm-pw-card__wallet-amount {
  font-size: 22px; font-weight: 900; color: #FFC107;
}
.hm-pw-card__wallet-amount small {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,.5);
  margin-right: 3px;
}
.hm-pw-card__wallet-more {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1); border-radius: 99px;
  padding: 6px 12px; text-decoration: none;
  white-space: nowrap;
}
.hm-pw-card__wallet-more .material-symbols-rounded { font-size: 14px; }

/* تراکنش‌های اخیر */
.hm-pw-card__txs {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px;
}
.hm-pw-card__tx {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 11px;
}
.hm-pw-card__tx-note { color: rgba(255,255,255,.5); }
.hm-pw-card__tx-amount { font-weight: 700; font-size: 12px; }
.hm-pw-card__tx-all {
  display: block; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.4);
  margin-top: 8px; text-decoration: none;
}
.hm-pw-card__tx-all:hover { color: rgba(255,255,255,.7); }
