
*{box-sizing:border-box}
:root{--green:#12a889;--green2:#0d8f77;--ink:#172126;--muted:#718087;--bg:#f5f7f7;--card:#fff;--line:#e8eeee;--red:#e85b63;--shadow:0 7px 24px rgba(23,33,38,.07)}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:"Vazir",Tahoma,Arial,sans-serif;line-height:1.75;overscroll-behavior-y:none}
body{direction:rtl;padding-bottom:86px;overflow-x:hidden;overflow-y:auto;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
.teb-app{min-height:100vh}
.teb-main{max-width:1180px;margin:auto;padding:0 14px 28px}
.teb-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:10px 14px 12px;transform:translateZ(0);will-change:transform;contain:layout style}
.teb-header-row{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.teb-logo{display:flex;align-items:center;gap:8px;font-size:15px}
.teb-logo span{width:38px;height:38px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px}
.teb-logo b{font-size:16px}
.teb-icon-btn,.teb-cart-mini{border:0;background:#f3f6f6;border-radius:13px;width:42px;height:42px;display:grid;place-items:center;font-size:19px;position:relative}
.teb-cart-mini i,.teb-bottom-nav i{position:absolute;top:1px;right:1px;background:#e84e57;color:#fff;border-radius:99px;font-style:normal;font-size:9px;min-width:17px;height:17px;display:grid;place-items:center}
.teb-search{max-width:1180px;margin:10px auto 0;background:#f4f6f6;border:1px solid var(--line);height:48px;border-radius:15px;display:flex;align-items:center;padding:0 13px;gap:8px}
.teb-search span{font-size:26px;color:var(--muted)}
.teb-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px}
.teb-welcome{margin:18px 0;padding:20px;border-radius:22px;background:linear-gradient(135deg,#0fa98a,#72d2bc);color:#fff;display:flex;justify-content:space-between;align-items:center;overflow:hidden}
.teb-welcome h1{margin:4px 0;font-size:22px}
.teb-welcome small,.teb-welcome p{opacity:.9}
.teb-welcome p{margin:0;font-size:12px}
.teb-welcome-icon{font-size:75px;opacity:.18}
.teb-section{margin:24px 0;content-visibility:auto;contain-intrinsic-size:1px 320px}
.teb-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.teb-section-head h2{font-size:17px;margin:0}
.teb-section-head a{font-size:12px;color:var(--green2);font-weight:700}
.teb-cat-row{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:3px 2px 10px;scrollbar-width:none}
.teb-cat-row::-webkit-scrollbar{display:none}
.teb-cat{min-width:86px;text-align:center;font-size:11px;color:#3c4a4f;scroll-snap-align:start}
.teb-cat-img{height:76px;width:76px;margin:auto auto 6px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.teb-cat-img img{width:100%;height:100%;object-fit:contain}
.teb-promo{display:flex;justify-content:space-between;align-items:center;padding:18px;border-radius:20px;background:#e5f7f2;margin:20px 0}
.teb-promo strong,.teb-promo span{display:block}
.teb-promo strong{font-size:16px;margin:3px 0}
.teb-promo small,.teb-promo span{font-size:11px;color:#47716a}
.teb-promo-mark{width:60px;height:60px;border-radius:18px;background:#fff;color:var(--green);display:grid;place-items:center;font-size:36px;font-weight:300}
.teb-product-scroller{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 1px 10px;scrollbar-width:none}
.teb-product-scroller::-webkit-scrollbar{display:none}
.teb-product-scroller .teb-product-card{min-width:178px;width:178px;scroll-snap-align:start}
.teb-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.teb-product-card{display:block;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 4px 15px rgba(20,40,40,.04);transition:transform .15s}
.teb-product-card:active{transform:scale(.97)}
.teb-product-image{height:165px;display:grid;place-items:center;background:#fff;padding:10px}
.teb-product-image img{width:100%;height:100%;object-fit:contain}
.teb-product-body{padding:11px}
.teb-product-title{font-size:12px;line-height:1.7;display:block;height:42px;overflow:hidden}
.teb-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px}
.teb-price{color:#111;font-size:12px;font-weight:800;white-space:nowrap}
.teb-price .woocommerce-Price-currencySymbol{font-size:9px;margin-right:2px}
.teb-add{width:36px;height:36px;border-radius:12px;border:1px solid #cfe9e3;background:#eaf8f5;color:var(--green2);font-size:24px;display:grid;place-items:center}
.teb-more{line-height:1}
.teb-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:28px 0 8px}
.teb-trust div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;text-align:center;font-size:10px;color:#506067}
.teb-page-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px}
.teb-page-head h1{font-size:21px;margin:2px 0}
.teb-page-head small{color:var(--muted);font-size:11px}
.teb-filter-btn,.teb-secondary{border:0;background:#e7f6f2;color:var(--green2);border-radius:12px;padding:10px 14px;font-size:12px;font-weight:700}
.teb-chips{display:flex;gap:8px;overflow:auto;padding-bottom:10px}
.teb-chips a{background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:99px;white-space:nowrap;font-size:11px}
.teb-sort-row{display:flex;justify-content:space-between;align-items:center;margin:8px 0 12px;color:var(--muted);font-size:11px}
.teb-sort-row select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px;font-size:11px}
.teb-back{display:inline-block;margin:18px 0;color:var(--green2);font-size:12px}
.teb-gallery-main{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:22px;background:#fff;border:1px solid var(--line);scrollbar-width:none}
.teb-gallery-main::-webkit-scrollbar{display:none}
.teb-gallery-slide{flex:0 0 100%;scroll-snap-align:start;display:grid;place-items:center;min-height:300px;padding:18px}
.teb-gallery-slide img{max-height:330px;width:100%;object-fit:contain;display:block}
.teb-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:9px;scrollbar-width:none;padding-bottom:2px}
.teb-gallery-thumbs::-webkit-scrollbar{display:none}
.teb-gallery-thumbs button{border:2px solid var(--line);border-radius:12px;width:56px;height:56px;flex:0 0 56px;padding:0;overflow:hidden;background:#fafcfc;transition:border-color .15s}
.teb-gallery-thumbs button.active{border-color:var(--green)}
.teb-gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.teb-product-info{padding:16px 3px}
.teb-stock{display:inline-block;background:#e8f8f3;color:#0b8d73;padding:5px 9px;border-radius:8px;font-size:10px}
.teb-product-info h1{font-size:21px;line-height:1.7;margin:10px 0}
.teb-sku{font-size:10px;color:var(--muted)}
.teb-rating{font-size:12px;color:#e89a21;margin-top:7px}
.teb-rating span{color:var(--muted)}
.teb-buy-card,.teb-info-card,.teb-cart-summary{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0}
.teb-tier-table{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:14px}
.teb-tier-row{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;font-size:12px;border-top:1px solid var(--line);transition:background .15s}
.teb-tier-row:first-child{border-top:0}
.teb-tier-row span{color:var(--muted)}
.teb-tier-row b{color:var(--ink);font-weight:800}
.teb-tier-row.active{background:#eafaf5}
.teb-tier-row.active b{color:var(--green2)}
.teb-live-price{font-size:12px;font-weight:700;color:var(--green2);background:#eafaf5;border-radius:10px;padding:7px 10px;margin:-4px 0 12px}
.teb-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.teb-variant-pills{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.teb-variant-pill{border:1px solid var(--line);background:#fafcfc;border-radius:11px;padding:9px 15px;font-size:12px;color:var(--ink);transition:.15s}
.teb-variant-pill.active{background:var(--green);color:#fff;border-color:var(--green)}
.teb-variant-label{display:block;font-size:11px;color:var(--muted);margin:0 0 2px}
.teb-price-big{font-size:21px;font-weight:900;margin-bottom:14px}
.teb-qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:13px;width:max-content;overflow:hidden;margin-bottom:12px}
.teb-qty button{border:0;background:#f4f7f7;width:42px;height:42px;color:var(--green2);font-size:20px}
.teb-qty input{width:45px;border:0;text-align:center;outline:0}
.teb-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:0;border-radius:14px;background:var(--green);color:#fff;font-weight:800;font-size:13px;padding:10px 16px}
.teb-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:14px}
.teb-tabs button{border:0;background:none;padding:8px 0;color:var(--muted);font-size:13px}
.teb-tabs button.active{color:var(--green2);font-weight:800;border-bottom:2px solid var(--green)}
.teb-info-card{font-size:12px;color:#46535a}
.teb-cart-item{display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;margin-bottom:10px}
.teb-cart-img{width:90px;height:90px;flex:0 0 90px;border-radius:13px;background:#fafcfc;display:grid;place-items:center;overflow:hidden}
.teb-cart-img img{width:100%;height:100%;object-fit:contain}
.teb-cart-main{flex:1}
.teb-cart-title{font-size:12px;font-weight:700;display:block;line-height:1.6}
.teb-cart-price{font-size:12px;font-weight:900;margin:5px 0}
.teb-cart-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.teb-qty.teb-cart-qty,.teb-qty.teb-mini-qty{margin-bottom:0}
.teb-qty button[disabled]{opacity:.5}
.teb-min-note{font-size:10px;color:var(--green2);background:#eafaf5;display:inline-block;padding:3px 8px;border-radius:8px;margin:4px 0 8px}
.teb-min-badge{font-size:10px;color:var(--green2);margin-top:2px}
.teb-remove{color:#d5525a;font-size:10px;border:0;background:none;padding:6px}
.teb-cart-summary div{display:flex;justify-content:space-between;padding:7px 0;font-size:12px}
.teb-cart-summary .total{border-top:1px solid var(--line);margin-top:5px;padding-top:12px;font-size:14px}
.teb-cart-summary .teb-primary{margin-top:12px}
.teb-empty{text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:45px 18px;margin:25px 0}
.teb-empty h2,.teb-empty h1{font-size:18px}
.teb-empty p{font-size:12px;color:var(--muted)}
.teb-empty .teb-primary{max-width:260px;margin:15px auto 0}
.teb-empty-mini{padding:40px 14px;margin:0}
.teb-empty-mini div{font-size:34px}
.teb-empty-mini p{margin:8px 0 14px}

body.teb-lock{overflow:hidden}
.teb-cart-drawer{position:fixed;z-index:1100;inset:0}
.teb-cart-drawer[hidden]{display:none}
.teb-cart-drawer .teb-drawer-backdrop{position:absolute;inset:0;background:rgba(12,20,24,.55);opacity:1}
.teb-cart-drawer-panel{position:absolute;left:0;right:0;bottom:0;max-height:82vh;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 34px rgba(10,20,25,.28);display:flex;flex-direction:column;animation:teb-drawer-up .22s ease}
@keyframes teb-drawer-up{from{transform:translateY(16px);opacity:.6}to{transform:translateY(0);opacity:1}}
.teb-cart-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px;border-bottom:1px solid var(--line)}
.teb-cart-drawer-head h3{font-size:15px;margin:0}
.teb-cart-drawer-head .teb-close{border:0;background:#f4f7f7;width:32px;height:32px;border-radius:10px;font-size:16px}
.teb-cart-drawer-body{overflow-y:auto;padding:10px 16px;flex:1}
.teb-cart-drawer-foot{padding:12px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.teb-cart-drawer-foot[hidden]{display:none}
.teb-drawer-subtotal{display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px}
.teb-mini-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.teb-mini-item:last-child{border-bottom:0}
.teb-mini-img{width:56px;height:56px;flex:0 0 56px;border-radius:12px;background:#fafcfc;display:grid;place-items:center;overflow:hidden}
.teb-mini-img img{width:100%;height:100%;object-fit:contain}
.teb-mini-main{flex:1;min-width:0}
.teb-mini-title{display:block;font-size:11.5px;font-weight:700;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teb-mini-price{font-size:11px;font-weight:800;color:var(--green2);margin:3px 0 6px}
.teb-mini-qty button{width:32px;height:32px;font-size:16px}
.teb-mini-qty input{width:34px}
.teb-mini-remove{border:0;background:none;color:var(--muted);font-size:13px;padding:6px}
.teb-row-syncing{transition:opacity .15s}
.teb-row-syncing .teb-mini-price,.teb-row-syncing .teb-cart-price{opacity:.55}
.teb-content-page{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;margin:20px 0}
.teb-content-page h1{font-size:20px}
.teb-blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.teb-blog-grid-home{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:60%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:none}
.teb-blog-grid-home::-webkit-scrollbar{display:none}
.teb-blog-grid-home .teb-blog-card{scroll-snap-align:start}
.teb-blog-card{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 4px 15px rgba(20,40,40,.04);transition:transform .15s}
.teb-blog-card:active{transform:scale(.97)}
.teb-blog-img{display:block;height:120px;background:#f3f6f6;overflow:hidden}
.teb-blog-img img{width:100%;height:100%;object-fit:cover;display:block}
.teb-blog-noimg{width:100%;height:100%;display:grid;place-items:center;font-size:28px;color:var(--muted)}
.teb-blog-body{padding:11px}
.teb-blog-date{font-size:10px;color:var(--muted)}
.teb-blog-title{display:block;font-size:12px;font-weight:800;line-height:1.7;margin-top:4px;height:40px;overflow:hidden}
.teb-blog-excerpt{font-size:11px;color:var(--muted);margin:6px 0 0;line-height:1.7}
.teb-blog-post-img{border-radius:20px;overflow:hidden;margin:14px 0}
.teb-blog-post-img img{width:100%;display:block;object-fit:cover;max-height:280px}
.teb-blog-post .teb-blog-date{display:block;margin-bottom:6px}
.teb-blog-post-content{font-size:13px;line-height:2;color:#3c4a4f;margin-top:10px}
.teb-desc-content{max-height:112px;overflow:hidden;position:relative;transition:max-height .28s ease;font-size:12.5px;line-height:2;color:#3c4a4f}
.teb-desc-content:not(.expanded)::after{content:'';position:absolute;left:0;right:0;bottom:0;height:44px;background:linear-gradient(to top,#fff,rgba(255,255,255,0))}
.teb-desc-content.expanded{max-height:4000px}
.teb-desc-more{display:block;margin:8px auto 0;background:none;border:0;color:var(--green);font-size:12px;font-weight:700}

.teb-related-scroller{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 1px 8px;scrollbar-width:none}
.teb-related-scroller::-webkit-scrollbar{display:none}
.teb-related-card{min-width:96px;width:96px;text-align:center;scroll-snap-align:start;transition:transform .15s}
.teb-related-card:active{transform:scale(.95)}
.teb-related-img{width:96px;height:96px;border-radius:16px;background:var(--card);border:1px solid var(--line);overflow:hidden;display:grid;place-items:center}
.teb-related-img img{width:100%;height:100%;object-fit:cover;display:block}
.teb-related-card span{display:block;margin-top:6px;font-size:10.5px;line-height:1.6;color:var(--ink);height:32px;overflow:hidden}

.teb-native-cart form.cart{display:flex;flex-direction:column;gap:10px;max-width:100%}
.teb-native-cart table.variations{width:100%;max-width:100%;border-collapse:collapse;table-layout:fixed}
.teb-native-cart table.variations tr{display:block;margin-bottom:8px}
.teb-native-cart table.variations label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.teb-native-cart select{width:100%;height:44px;border-radius:12px;border:1px solid var(--line);padding:0 10px;font-size:12px;background:#fafcfc}
.teb-native-cart .quantity{display:inline-flex}
.teb-native-cart input.qty{width:64px;height:44px;border-radius:12px;border:1px solid var(--line);text-align:center;font-size:13px}
.teb-native-cart button.single_add_to_cart_button,.teb-native-cart a.button{background:var(--green);color:#fff;border:0;border-radius:14px;height:48px;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;text-decoration:none}
.teb-native-cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.teb-native-cart .woocommerce-variation-add-to-cart .quantity{flex:0 0 auto}
.teb-native-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button{flex:1 1 100%;min-width:0}
.teb-native-cart .woocommerce-variation-price{font-size:13px;font-weight:800}
.teb-native-cart .reset_variations{font-size:11px;color:var(--muted)}
@media(max-width:520px){.teb-blog-grid{grid-template-columns:1fr}}

/* Live search dropdown */
.teb-search{position:relative}
.teb-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 34px rgba(20,40,40,.14);max-height:340px;overflow-y:auto;z-index:90;display:none}
.teb-search-results.show{display:block}
.teb-search-result{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line)}
.teb-search-result:last-child{border-bottom:0}
.teb-search-result-img{width:40px;height:40px;flex:0 0 40px;border-radius:10px;overflow:hidden;background:#fafcfc;display:grid;place-items:center}
.teb-search-result-img img{width:100%;height:100%;object-fit:cover}
.teb-search-result-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.teb-search-result-body span{font-size:11.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teb-search-result-body b{font-size:11px;color:var(--green2)}
.teb-search-empty{padding:14px;text-align:center;font-size:11.5px;color:var(--muted)}

/* Filter drawer — same bottom-sheet pattern as the cart drawer */
.teb-filter-drawer{position:fixed;z-index:1100;inset:0}
.teb-filter-drawer[hidden]{display:none}
.teb-filter-drawer .teb-drawer-backdrop{position:absolute;inset:0;background:rgba(12,20,24,.55)}
.teb-filter-panel{position:absolute;left:0;right:0;bottom:0;max-height:86vh;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 34px rgba(10,20,25,.28);display:flex;flex-direction:column;animation:teb-drawer-up .22s ease}
.teb-filter-body{overflow-y:auto;padding:14px 16px calc(16px + env(safe-area-inset-bottom))}
.teb-filter-group{margin-bottom:18px}
.teb-filter-label{display:block;font-size:12px;font-weight:800;margin-bottom:8px}
.teb-price-range{display:flex;align-items:center;gap:8px}
.teb-price-range input{flex:1;height:44px;border:1px solid var(--line);border-radius:12px;padding:0 10px;font-size:12px;background:#fafcfc}
.teb-price-range span{font-size:11px;color:var(--muted)}
.teb-filter-check{display:flex;align-items:center;gap:8px;font-size:12px}
.teb-filter-check input{width:18px;height:18px}
.teb-filter-chips{display:flex;flex-wrap:wrap;gap:8px}
.teb-filter-chip{position:relative}
.teb-filter-chip input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.teb-filter-chip span{display:block;border:1px solid var(--line);background:#fafcfc;border-radius:11px;padding:8px 13px;font-size:11.5px}
.teb-filter-chip input:checked + span{background:var(--green);border-color:var(--green);color:#fff}
.teb-filter-actions{display:flex;gap:10px;margin-top:6px}
.teb-filter-actions .teb-secondary{flex:1;text-align:center;display:flex;align-items:center;justify-content:center}
.teb-filter-actions .teb-primary{flex:2}
.teb-bottom-nav{position:fixed;z-index:500;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));height:67px;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid #e4eaea;border-radius:20px;box-shadow:0 10px 35px rgba(20,40,40,.14);display:flex;align-items:center;justify-content:space-around;padding:4px 3px;transform:translateZ(0);will-change:transform;contain:layout style}
.teb-bottom-nav a{position:relative;flex:1;text-align:center;color:#7b878b;font-size:9px;font-weight:700;padding:5px 2px;border-radius:14px}
.teb-bottom-nav a span{display:block;font-size:20px;line-height:25px}
.teb-bottom-nav a.active{background:#e7f8f4;color:var(--green2)}
.teb-drawer{position:fixed;z-index:1000;inset:0;visibility:hidden}
.teb-drawer.open{visibility:visible}
.teb-drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35);opacity:0;transition:.2s}
.teb-drawer-panel{position:absolute;right:0;top:0;bottom:0;width:min(86vw,340px);background:#fff;padding:70px 20px;transform:translateX(100%);transition:.25s}
.teb-drawer.open .teb-drawer-backdrop{opacity:1}
.teb-drawer.open .teb-drawer-panel{transform:none}
.teb-close{position:absolute;top:18px;left:18px;border:0;background:#f2f5f5;border-radius:12px;width:40px;height:40px;font-size:25px}
.teb-drawer-title{font-size:20px;font-weight:900;margin-bottom:20px;color:var(--green2)}
.teb-drawer-panel a{display:block;padding:14px 4px;border-bottom:1px solid var(--line);font-size:13px}
.teb-toast{position:fixed;z-index:2000;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;background:#172126;color:#fff;padding:10px 15px;border-radius:13px;font-size:12px;transition:.2s;pointer-events:none;white-space:nowrap}
.teb-toast.show{opacity:1;transform:translate(-50%,0)}

/* ---- Checkout ---- */
.teb-steps-indicator{display:flex;align-items:center;gap:8px;margin:4px 0 20px}
.teb-step-dot{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}
.teb-step-dot span{width:26px;height:26px;border-radius:50%;background:#eef2f2;color:var(--muted);display:grid;place-items:center;font-size:12px;transition:.2s}
.teb-step-dot.active{color:var(--ink)}
.teb-step-dot.active span{background:var(--green);color:#fff}
.teb-step-dot.done span{background:var(--green2);color:#fff}
.teb-step-line{flex:1;height:2px;background:var(--line);border-radius:2px}
.teb-checkout-step[hidden]{display:none}
.teb-step-back{margin-bottom:14px;width:auto;display:inline-flex}

.woocommerce-billing-fields h3,.woocommerce-shipping-fields h3,#order_review_heading{font-size:15px;margin:0 0 10px}
.woocommerce-shipping-fields{margin-top:18px}
.woocommerce-shipping-fields .shipping_address{margin-top:10px}
.teb-address-fields .form-row{margin:0 0 12px}
.teb-address-fields label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:5px}
.teb-address-fields label .required{color:var(--red);text-decoration:none}
.teb-address-fields label .optional{font-size:10px}
.teb-address-fields input.input-text,
.teb-address-fields select,
.teb-address-fields textarea{width:100%;height:48px;border:1px solid var(--line);border-radius:13px;padding:0 13px;font-size:13px;background:#fafcfc;color:var(--ink);font-family:inherit}
.teb-address-fields textarea{height:auto;padding:12px 13px;min-height:80px;resize:vertical}
.teb-address-fields .select2-container .select2-selection--single{height:48px!important;border:1px solid var(--line)!important;border-radius:13px!important;display:flex;align-items:center;padding:0 13px}
.teb-address-fields .select2-selection__arrow{height:46px!important}
.teb-address-fields .form-row-first,.teb-address-fields .form-row-last{width:100%;float:none}
.teb-address-fields .woocommerce-additional-fields{margin-top:6px}
.teb-address-fields #ship-to-different-address{list-style:none;margin:16px 0 6px}
.teb-address-fields #ship-to-different-address label{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink)}
.teb-address-fields #ship-to-different-address input[type=checkbox]{width:18px;height:18px}

#order_review table.shop_table{width:100%;border-collapse:collapse;font-size:12.5px}
#order_review table.shop_table thead{display:none}
#order_review table.shop_table tbody tr{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
#order_review table.shop_table tbody tr td{display:block;padding:0}
#order_review table.shop_table .product-name{flex:1}
#order_review table.shop_table .product-name .wc-item-meta{font-size:10.5px;color:var(--muted);list-style:none;margin:3px 0 0;padding:0}
#order_review table.shop_table .product-total{font-weight:800;white-space:nowrap}
#order_review table.shop_table tfoot tr{display:flex;justify-content:space-between;padding:8px 0;font-size:12.5px}
#order_review table.shop_table tfoot tr th{font-weight:400;color:var(--muted)}
#order_review table.shop_table tfoot tr td{font-weight:800}
#order_review table.shop_table tfoot .order-total{border-top:1px solid var(--line);margin-top:4px;padding-top:12px}
#order_review table.shop_table tfoot .order-total th,#order_review table.shop_table tfoot .order-total td{font-size:14px;font-weight:900;color:var(--green2)}
#order_review ul#shipping_method{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
#order_review ul#shipping_method li{border:1px solid var(--line);border-radius:13px;padding:11px 13px;font-size:12px}
#order_review ul#shipping_method li label{margin-right:6px}

.woocommerce-form-coupon-toggle{margin:0 0 14px}
.woocommerce-form-coupon-toggle .woocommerce-info{background:#eafaf5;color:var(--green2);border-radius:13px;padding:11px 13px;font-size:12px;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
.woocommerce-form-coupon-toggle .woocommerce-info a{color:var(--green2);font-weight:800;text-decoration:underline}
.woocommerce-form-coupon{display:flex;gap:8px;margin:0 0 16px}
.woocommerce-form-coupon .form-row{flex:1;margin:0}
.woocommerce-form-coupon input#coupon_code{width:100%;height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:12.5px}
.woocommerce-form-coupon button{height:44px;padding:0 16px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:12px;font-weight:700;white-space:nowrap}

#payment{margin-top:16px}
ul.wc_payment_methods{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
ul.wc_payment_methods li.wc_payment_method{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--card)}
ul.wc_payment_methods li.wc_payment_method label{font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:9px}
ul.wc_payment_methods input.input-radio{width:18px;height:18px;accent-color:var(--green)}
ul.wc_payment_methods img{height:20px;vertical-align:middle;margin-inline-start:6px}
.payment_box{background:#fafcfc;border-radius:11px;padding:12px;margin-top:10px;font-size:11.5px;color:var(--muted)}
.payment_box p{margin:0 0 8px}
.woocommerce-terms-and-conditions-wrapper{margin:14px 0}
.woocommerce-terms-and-conditions-wrapper label{display:flex;align-items:center;gap:8px;font-size:12px}
.woocommerce-terms-and-conditions-wrapper input[type=checkbox]{width:18px;height:18px}
#place_order{margin-top:16px}

.woocommerce-NoticeGroup .woocommerce-error,.woocommerce-NoticeGroup .woocommerce-message{list-style:none;background:#fdeceb;color:#b3261e;border-radius:13px;padding:12px 14px;font-size:12px;margin:0 0 14px}
.woocommerce-NoticeGroup .woocommerce-message{background:#eafaf5;color:var(--green2)}
.woocommerce-invalid input.input-text{border-color:var(--red)}

/* ---- Thank-you page ---- */
.teb-thankyou-hero{text-align:center;padding:28px 10px 8px}
.teb-thankyou-check{width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;font-size:28px;display:grid;place-items:center;margin:0 auto 14px}
.teb-thankyou-hero h1{font-size:19px;margin:0 0 6px}
.teb-thankyou-hero p{font-size:12.5px;color:var(--muted);margin:0}
.teb-thankyou-fail{margin-top:20px}
.teb-thankyou-fail div{font-size:34px;color:var(--red)}
.teb-thankyou-meta{display:flex;flex-direction:column;gap:9px;font-size:12.5px}
.teb-thankyou-meta div{display:flex;justify-content:space-between}
.teb-thankyou-meta span{color:var(--muted)}
.teb-thankyou-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.teb-thankyou-item:last-of-type{border-bottom:0}
.teb-thankyou-item-img{width:46px;height:46px;border-radius:11px;background:#fafcfc;overflow:hidden;flex:0 0 46px}
.teb-thankyou-item-img img{width:100%;height:100%;object-fit:cover}
.teb-thankyou-item-body{flex:1;display:flex;flex-direction:column;font-size:12px}
.teb-thankyou-item-body small{color:var(--muted);font-size:10.5px;margin-top:2px}
.teb-thankyou-totals{margin-top:10px;border-top:1px dashed var(--line);padding-top:10px}
.teb-thankyou-address{font-size:12.5px;color:var(--ink);line-height:2;margin:0}
.teb-thankyou-actions{display:flex;flex-direction:column;gap:10px;margin:18px 0 10px}

@media(min-width:800px){
 body{padding-bottom:104px}.teb-bottom-nav{display:flex;left:50%;right:auto;bottom:18px;width:min(650px,calc(100vw - 48px));height:67px;transform:translateX(-50%);border-radius:22px}.teb-main{padding-left:24px;padding-right:24px}
 .teb-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .teb-archive-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .teb-blog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .teb-product-hero{display:grid;grid-template-columns:1fr 1fr;gap:30px}
 .teb-gallery-slide{min-height:420px}.teb-gallery-slide img{max-height:420px}
 .teb-welcome{padding:28px 32px}.teb-cat-row{gap:20px}
 .teb-checkout{max-width:560px;margin:0 auto}
 .teb-thankyou{max-width:560px;margin:0 auto}
 .teb-thankyou-actions{flex-direction:row}
}

/* ---- Product page v2 (card-based, matches the reference layout) ---- */
.teb-p2-crumb{font-size:10.5px;color:var(--muted);margin:14px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teb-p2-crumb a{color:var(--muted)}
.teb-p2-card{border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:11px;background:var(--card)}
.teb-p2-gallery-card{padding:14px 14px 10px}
.teb-p2-image{position:relative;background:#fff;border-radius:14px}
.teb-p2-image .teb-gallery-main{border:0;border-radius:14px;background:#fafcfc}
.teb-p2-image .teb-gallery-slide{min-height:260px;padding:16px}
.teb-p2-image .teb-gallery-slide img{max-height:300px}
.teb-p2-discount{position:absolute;top:8px;inset-inline-end:8px;background:var(--green);color:#fff;border-radius:8px;padding:5px 7px;font-size:9.5px;font-weight:800;z-index:2}
.teb-p2-info h1{font-size:16.5px;line-height:1.65;margin:2px 0 6px}
.teb-p2-meta{font-size:10.5px;color:var(--muted);line-height:2}
.teb-p2-stock{font-size:10.5px;color:var(--green2);margin-top:2px}
.teb-p2-stock.out{color:var(--red)}
.teb-p2-price{font-size:18px;color:var(--green2);font-weight:900;margin-top:10px}
.teb-p2-price .unit{font-size:9.5px;color:var(--muted);font-weight:400;margin-inline-start:3px}

.teb-p2-buy .teb-p2-label{font-size:12px;font-weight:800;margin:0 0 8px}
.teb-p2-note{font-size:10px;color:var(--muted);font-weight:400}
.teb-p2-qty{display:flex;align-items:center;gap:8px;background:#f6f9f8;padding:7px;border-radius:13px;margin-bottom:6px}
.teb-p2-qty button{width:40px;height:38px;border:0;border-radius:10px;background:#dff4ee;color:var(--green2);font-size:20px;flex:0 0 auto}
.teb-p2-qty-num{flex:1;text-align:center}
.teb-p2-qty-num span{display:block;font-size:17px;font-weight:900}
.teb-p2-qty-num small{display:block;font-size:9px;color:var(--muted);font-weight:400}
.teb-p2-rules{text-align:center;font-size:10px;color:var(--muted);margin-bottom:4px}

.teb-price-slider{position:relative;padding:2px 2px 0;margin-top:6px}
.teb-price-slider input[type=range]{position:absolute;inset-inline:0;top:5px;width:100%;height:24px;margin:0;opacity:0;cursor:pointer;z-index:4}
.teb-slider-line{position:absolute;inset-inline:9%;top:15px;height:4px;border-radius:10px;background:#dfe8e5}
.teb-slider-fill{position:absolute;inset-inline-start:0;top:0;height:100%;width:0;border-radius:10px;background:var(--green);transition:width .2s}
.teb-slider-dots{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;position:relative}
.teb-slider-dots button{position:relative;border:0;background:transparent;padding:25px 1px 5px;color:var(--muted);font-family:inherit;font-size:9px}
.teb-slider-dots button::before{content:"";position:absolute;top:9px;inset-inline-end:50%;transform:translateX(50%);width:11px;height:11px;border-radius:50%;background:#fff;border:2px solid #cbd9d5;z-index:2}
.teb-slider-dots button.active{color:var(--green2);font-weight:800}
.teb-slider-dots button.active::before{background:var(--green);border-color:var(--green);box-shadow:0 0 0 3px #e5f5f1}
.teb-slider-dots b{display:block;font-size:11px;margin-top:3px;font-weight:800}

.teb-p2-totalrow{display:flex;justify-content:space-between;align-items:center;margin-top:11px}
.teb-p2-sub{font-size:9.5px;color:var(--muted)}
.teb-p2-total{font-size:17px;color:var(--green2);font-weight:900}

.teb-p2-accordion .teb-accord{display:flex;justify-content:space-between;align-items:center;padding:13px 2px;font-size:12.5px;font-weight:700;border-bottom:1px solid var(--line);cursor:pointer}
.teb-p2-accordion .teb-accord:last-of-type{border-bottom:0}
.teb-p2-accordion .teb-accord[data-accord]:not(.active) + .teb-accord-panel{display:none}
.teb-p2-accordion .teb-accord span[data-accord-icon]{color:var(--muted);transition:transform .2s}
.teb-p2-accordion .teb-accord.active span[data-accord-icon]{transform:rotate(180deg);color:var(--green)}
.teb-accord-panel{padding:2px 2px 16px;font-size:12.5px;line-height:2;color:#3c4a4f}
.teb-accord-panel table.woocommerce-product-attributes{width:100%;border-collapse:collapse;font-size:11.5px}
.teb-accord-panel table.woocommerce-product-attributes th,.teb-accord-panel table.woocommerce-product-attributes td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:start}
.teb-accord-panel table.woocommerce-product-attributes th{color:var(--muted);font-weight:400;width:35%}
.teb-review{padding:11px 0;border-bottom:1px solid var(--line)}
.teb-review:last-of-type{border-bottom:0}
.teb-review-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.teb-review-stars{color:#e89a21;font-size:11px;letter-spacing:1px}
.teb-review p{font-size:12px;color:var(--muted);margin:5px 0 0}
.teb-accord-panel #commentform{margin-top:10px}
.teb-accord-panel #commentform textarea{width:100%;min-height:80px;border:1px solid var(--line);border-radius:12px;padding:11px;font-size:12.5px;font-family:inherit}
.teb-accord-panel #commentform p.comment-form-rating select{height:40px;border-radius:10px;border:1px solid var(--line);padding:0 10px}
.teb-accord-panel #commentform input[type=text],.teb-accord-panel #commentform input[type=email]{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;padding:0 12px;font-size:12.5px;margin-top:6px}
.teb-accord-panel #commentform .form-submit input{margin-top:10px;height:44px;padding:0 20px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:800}


/* v2.3 purchase UI: product-level qty rules + variation-aware balloon tier slider */
.teb-purchase-panel{position:relative}
.teb-price-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.teb-price-head .teb-p2-label{margin:0}
.teb-price-head strong{font-size:19px;font-weight:800;color:var(--ink);text-align:left}
.teb-price-head strong small,.teb-price-head [data-variable-unit-price] small{font-size:10px;color:var(--muted);font-weight:500}
.teb-balloon-slider{position:relative;padding-top:48px;margin:2px 4px 0;direction:ltr}
.teb-slider-track{position:relative;height:34px;margin:0 8px;touch-action:none}
.teb-slider-track:before{content:"";position:absolute;left:0;right:0;top:15px;height:3px;background:#dfe7e6;border-radius:99px}
.teb-slider-progress{position:absolute;left:0;top:15px;height:3px;background:var(--green);border-radius:99px;width:0;pointer-events:none}
.teb-slider-track input[type=range]{position:absolute;inset:0;width:100%;height:34px;margin:0;opacity:0;cursor:pointer;z-index:4}
.teb-balloon{position:absolute;top:0;left:0;z-index:5;min-width:88px;transform:none;display:flex;flex-direction:column;align-items:center;pointer-events:none;transition:left .16s ease}
.teb-balloon span{background:#0f4c3f;color:#fff;font-size:12px;font-weight:700;line-height:1.3;padding:7px 11px;border-radius:10px;white-space:nowrap;box-shadow:0 4px 10px rgba(15,76,63,.14)}
.teb-balloon i{display:block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #0f4c3f;margin-top:-1px}
.teb-tier-dots{display:grid;gap:0;margin:0 0 0;direction:ltr}
.teb-tier-dots button{position:relative;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:10px;min-width:0}
.teb-tier-dots button i{width:14px;height:14px;border-radius:50%;border:2px solid #c9d5d3;background:#fff;display:block;transition:.16s}
.teb-tier-dots button.active i{background:var(--green);border-color:var(--green);box-shadow:0 0 0 3px rgba(18,168,137,.10)}
.teb-tier-dots button span{direction:rtl;white-space:nowrap}
.teb-tier-dots button b{display:none}
.teb-tier-hint{margin-top:13px;background:#e7f7f2;color:#176457;font-size:11.5px;padding:8px 10px;border-radius:10px;text-align:center;line-height:1.8}
.teb-tier-hint[hidden]{display:none}
.teb-purchase-row{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.teb-purchase-row>span{font-size:13px;color:var(--muted)}
.teb-purchase-row .teb-p2-qty{margin:0}
.teb-p2-totalrow{display:flex;justify-content:space-between;align-items:baseline;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.teb-p2-totalrow .teb-p2-total{font-size:18px;font-weight:800;color:var(--ink)}
.teb-p2-totalrow .teb-p2-sub{font-size:12px;color:var(--muted)}
.teb-purchase-panel>.teb-primary{margin-top:15px;width:100%}
.teb-variable-panel .teb-native-variation-form{margin:0}
.teb-variable-panel .teb-native-variation-form form.cart{gap:0}
.teb-variable-panel .teb-native-variation-form .single_variation_wrap .woocommerce-variation-price,
.teb-variable-panel .teb-native-variation-form .single_variation_wrap .woocommerce-variation-availability,
.teb-variable-panel .teb-native-variation-form .single_variation_wrap .quantity,
.teb-variable-panel .teb-native-variation-form .single_add_to_cart_button,
.teb-variable-panel .teb-native-variation-form .reset_variations{display:none!important}
.teb-variable-panel .teb-native-variation-form .woocommerce-variation-description{display:none!important}
.teb-variable-buy-ui[hidden]{display:none!important}
.teb-variable-buy-ui{margin-top:10px}
.teb-variable-add:disabled{opacity:.45;cursor:not-allowed}
.teb-variable-panel .teb-variant-pills{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px}
.teb-variable-panel .teb-variant-pill{height:40px;min-width:72px;padding:0 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}
.teb-variable-panel .teb-variant-pill.active{background:var(--green);border-color:var(--green);color:#fff}
.teb-variable-panel .variations td.value{padding:0}
.teb-variable-panel .variations td.label{padding:0 0 5px}
.teb-variable-panel .variations label{font-size:12px;color:var(--muted);font-weight:500}
.teb-variable-panel .teb-native-cart table.variations tr{margin-bottom:10px}
.teb-variable-panel .teb-native-cart select{display:none!important}
.teb-variable-panel .teb-native-cart .woocommerce-variation-add-to-cart{display:none!important}
@media (min-width:700px){
 .teb-balloon-slider{max-width:620px;margin-left:auto;margin-right:auto}
}

/* v2.4.2 product purchase redesign: RTL draggable balloon + desktop product layout */
.teb-p2{max-width:1180px;margin:0 auto}
.teb-balloon-slider{direction:rtl;user-select:none;-webkit-user-select:none}
.teb-slider-track{direction:rtl;cursor:pointer}
.teb-slider-track:before{left:0;right:0}
.teb-slider-progress{left:auto;right:0}
.teb-slider-track input[type=range]{direction:rtl}
.teb-balloon{pointer-events:auto;cursor:grab;touch-action:none;transition:left .12s ease;will-change:left}
.teb-balloon.dragging{cursor:grabbing;transition:none}
.teb-balloon span{cursor:grab}
.teb-balloon.dragging span{cursor:grabbing}
.teb-tier-dots{direction:rtl}
.teb-tier-dots button{cursor:pointer}
.teb-variable-buy-ui{display:block}
.teb-variable-buy-ui[data-awaiting="1"] .teb-purchase-row,
.teb-variable-buy-ui[data-awaiting="1"] .teb-p2-totalrow{opacity:.55}
.teb-variable-buy-ui[data-awaiting="1"] .teb-variable-add{opacity:.45}
.teb-variable-panel .teb-native-variation-form{padding-bottom:4px}

@media (min-width:800px){
  .teb-p2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr);gap:18px;align-items:start;padding:0 18px}
  .teb-p2-crumb{grid-column:1/-1}
  .teb-p2-gallery-card{grid-column:1;grid-row:2 / span 2;position:relative}
  .teb-p2-info{grid-column:2;grid-row:2}
  .teb-p2-buy{grid-column:2;grid-row:3}
  .teb-p2-accordion,.teb-p2-card:has(.teb-related-scroller){grid-column:1/-1}
  .teb-p2-card{padding:20px;border-radius:20px}
  .teb-p2-info h1{font-size:21px}
  .teb-p2-price{font-size:21px}
  .teb-variable-panel .teb-variant-pills{gap:10px}
  .teb-variable-panel .teb-variant-pill{height:44px;min-width:86px;font-size:13px}
  .teb-variable-buy-ui{padding-top:6px}
  .teb-balloon-slider{max-width:none;margin:4px 10px 0;padding-top:54px}
  .teb-slider-track{height:38px;margin:0 12px}
  .teb-slider-track:before,.teb-slider-progress{top:17px;height:4px}
  .teb-balloon span{font-size:13px;padding:8px 14px}
  .teb-tier-dots button span{font-size:11px}
  .teb-p2-qty button{width:44px;height:42px}
  .teb-p2-total{font-size:20px!important}
}


/* v2.4.3: custom variable controls + responsive cart quantity */
.teb-custom-variation-group{margin:0 0 12px}
.teb-custom-variation-label{display:block;font-size:12px;color:var(--muted);font-weight:600;margin:0 0 6px}
.teb-custom-variation-group .teb-variant-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.teb-custom-variation-group .teb-variant-pill{height:40px;min-width:70px;padding:0 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;transition:background .15s,border-color .15s,color .15s,transform .08s}
.teb-custom-variation-group .teb-variant-pill:active{transform:scale(.97)}
.teb-custom-variation-group .teb-variant-pill.active{background:var(--green);border-color:var(--green);color:#fff}
.teb-variable-panel .teb-native-variation-form{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
.teb-variable-panel .teb-custom-variation-group{position:relative;z-index:3}
.teb-mini-qty input,.teb-cart-qty input{width:5ch;min-width:42px;max-width:88px;height:32px;padding:0 4px;box-sizing:content-box;text-align:center}
.teb-mini-qty,.teb-cart-qty{white-space:nowrap}
@media(min-width:800px){
 .teb-p2{align-items:start}
 .teb-p2-gallery-card{align-self:start}
 .teb-p2-gallery-card .teb-gallery-main{min-height:520px}
 .teb-p2-gallery-card .teb-gallery-slide{min-height:500px}
 .teb-p2-gallery-card .teb-gallery-slide img{max-height:470px}
 .teb-custom-variation-group .teb-variant-pill{height:42px;min-width:84px;font-size:13px}
}

/* v2.4.5 refinements: compact balloon, rectangular gallery, product tabs, dark mode */
.teb-head-actions{display:flex;align-items:center;gap:7px}
.teb-theme-toggle{font-size:18px}

/* Compact price balloon: close to the line, no hanging arrow. The small marker sits on the line and points upward. */
.teb-balloon-slider{padding-top:31px}
.teb-balloon{top:0}
.teb-balloon i{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:7px solid #0f4c3f;border-top:0;margin:0}
.teb-slider-track{height:25px}
.teb-slider-track:before,.teb-slider-progress{top:12px;height:3px}
@media (min-width:800px){
 .teb-balloon-slider{padding-top:35px}
 .teb-slider-track{height:28px}
 .teb-slider-track:before,.teb-slider-progress{top:13px;height:4px}
}

/* Product gallery: shorter rectangular frame instead of a tall square-ish card. */
.teb-p2-image .teb-gallery-main{aspect-ratio:16/9;min-height:0;overflow:hidden}
.teb-p2-image .teb-gallery-slide{min-height:0;height:100%;padding:10px}
.teb-p2-image .teb-gallery-slide img{max-height:100%;height:100%;width:100%;object-fit:contain}
@media (min-width:800px){
 .teb-p2-gallery-card{align-self:start}
 .teb-p2-gallery-card .teb-gallery-main{min-height:0;height:auto;aspect-ratio:16/9}
 .teb-p2-gallery-card .teb-gallery-slide{min-height:0;height:100%;padding:12px}
 .teb-p2-gallery-card .teb-gallery-slide img{max-height:100%;height:100%;width:100%;object-fit:contain}
}

/* Compact tabbed product information */
.teb-product-tabs{display:flex;align-items:stretch;gap:4px;border-bottom:1px solid var(--line);margin:-4px -4px 14px;padding:0 4px;overflow-x:auto;scrollbar-width:none}
.teb-product-tabs::-webkit-scrollbar{display:none}
.teb-p2-accordion .teb-product-tabs .teb-accord{flex:0 0 auto;border:0!important;border-bottom:2px solid transparent!important;background:transparent;padding:9px 12px 10px;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.teb-p2-accordion .teb-product-tabs .teb-accord.active{color:var(--green2);border-bottom-color:var(--green)!important}
.teb-p2-accordion .teb-product-tabs .teb-accord span{display:inline}
.teb-p2-accordion .teb-accord-panel{padding:0 2px 8px}
.teb-p2-accordion .teb-accord-panel[hidden]{display:none!important}

/* Dark theme */
body[data-theme="dark"]{--green:#20b997;--green2:#22a88e;--ink:#edf5f3;--muted:#9aaba9;--bg:#111817;--card:#1a2322;--line:#2d3937;--red:#ef6870;--shadow:0 8px 28px rgba(0,0,0,.28);background:var(--bg);color:var(--ink)}
body[data-theme="dark"] .teb-header{background:rgba(17,24,23,.94);border-color:var(--line)}
body[data-theme="dark"] .teb-icon-btn,body[data-theme="dark"] .teb-cart-mini{background:#202b2a;color:var(--ink)}
body[data-theme="dark"] .teb-search{background:#1b2524;border-color:var(--line)}
body[data-theme="dark"] .teb-search input{color:var(--ink)}
body[data-theme="dark"] .teb-search input::placeholder{color:#7f918e}
body[data-theme="dark"] .teb-p2-card,body[data-theme="dark"] .teb-card,body[data-theme="dark"] .teb-buy-card,body[data-theme="dark"] .teb-info-card,body[data-theme="dark"] .teb-cart-summary,body[data-theme="dark"] .teb-cart-item,body[data-theme="dark"] .teb-empty,body[data-theme="dark"] .teb-trust div{background:var(--card);border-color:var(--line);color:var(--ink)}
body[data-theme="dark"] .teb-p2-image .teb-gallery-main,body[data-theme="dark"] .teb-gallery-main{background:#151e1d;border-color:var(--line)}
body[data-theme="dark"] .teb-gallery-thumbs button{background:#18211f;border-color:var(--line)}
body[data-theme="dark"] .teb-product-card,body[data-theme="dark"] .teb-cat-img{background:var(--card);border-color:var(--line)}
body[data-theme="dark"] .teb-product-image{background:#151e1d}
body[data-theme="dark"] .teb-price,body[data-theme="dark"] .teb-price-big,body[data-theme="dark"] .teb-price-head strong,body[data-theme="dark"] .teb-p2-totalrow .teb-p2-total,body[data-theme="dark"] .teb-product-title{color:var(--ink)}
body[data-theme="dark"] .teb-variant-pill{background:#202a28;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] .teb-variant-pill.active{background:var(--green);border-color:var(--green);color:#fff}
body[data-theme="dark"] .teb-tier-dots button i{background:#202a28;border-color:#566966}
body[data-theme="dark"] .teb-slider-track:before{background:#3a4947}
body[data-theme="dark"] .teb-tabs button,body[data-theme="dark"] .teb-p2-accordion .teb-product-tabs .teb-accord{color:var(--muted)}
body[data-theme="dark"] .teb-accord-panel{color:#c9d4d2}
body[data-theme="dark"] .teb-accord-panel table.woocommerce-product-attributes th,body[data-theme="dark"] .teb-accord-panel table.woocommerce-product-attributes td{border-color:var(--line)}
body[data-theme="dark"] .teb-accord-panel #commentform textarea,body[data-theme="dark"] .teb-accord-panel #commentform input[type=text],body[data-theme="dark"] .teb-accord-panel #commentform input[type=email],body[data-theme="dark"] .teb-accord-panel #commentform p.comment-form-rating select{background:#151e1d;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] .teb-bottom-nav{background:rgba(20,28,27,.97);border-color:var(--line)}
body[data-theme="dark"] .teb-drawer-panel,body[data-theme="dark"] .teb-cart-drawer-panel{background:#18211f;color:var(--ink)}
body[data-theme="dark"] .teb-drawer-panel a{border-color:var(--line)}
body[data-theme="dark"] .teb-cart-drawer-body{background:#18211f}
body[data-theme="dark"] .teb-cart-drawer-foot{border-color:var(--line);background:#18211f}
body[data-theme="dark"] .teb-toast{background:#263330;color:#fff}
body[data-theme="dark"] .teb-tier-hint{background:#183d36;color:#9ce3d2}
body[data-theme="dark"] .teb-min-note{background:#183d36;color:#9ce3d2}
body[data-theme="dark"] .teb-native-cart select,body[data-theme="dark"] select{background:#202a28;color:var(--ink);border-color:var(--line)}

/* v2.4.6 homepage + footer refinements */
.teb-site-footer{margin:34px auto 18px;max-width:1180px;padding:0 4px;text-align:center;color:var(--muted)}
.teb-footer-line{height:1px;background:var(--line);width:100%;margin-bottom:18px}
.teb-footer-content{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;line-height:1.8}
.teb-footer-content p{margin:0}
.teb-footer-copy{color:var(--ink);font-weight:700}
.teb-footer-contact a{color:var(--green2);font-weight:800;direction:ltr;unicode-bidi:plaintext}
.teb-footer-enamad{margin-top:5px;min-height:72px;display:flex;align-items:center;justify-content:center}
.teb-footer-enamad img{width:80px;height:auto;display:block}

/* Lighter dark theme: charcoal instead of near-black. */
body[data-theme="dark"]{--green:#27b99a;--green2:#39b89f;--ink:#edf4f2;--muted:#a9b7b5;--bg:#202725;--card:#2a3231;--line:#3b4745;--red:#ef7278;--shadow:0 8px 28px rgba(0,0,0,.18)}
body[data-theme="dark"] .teb-header{background:rgba(32,39,37,.94);border-color:var(--line)}
body[data-theme="dark"] .teb-icon-btn,body[data-theme="dark"] .teb-cart-mini{background:#2d3735;color:var(--ink)}
body[data-theme="dark"] .teb-search{background:#2a3331;border-color:var(--line)}
body[data-theme="dark"] .teb-search input{color:var(--ink)}
body[data-theme="dark"] .teb-search input::placeholder{color:#91a19e}
body[data-theme="dark"] .teb-p2-image .teb-gallery-main,body[data-theme="dark"] .teb-gallery-main{background:#252e2c;border-color:var(--line)}
body[data-theme="dark"] .teb-product-image{background:#252e2c}
body[data-theme="dark"] .teb-gallery-thumbs button{background:#2a3331;border-color:var(--line)}
body[data-theme="dark"] .teb-cart-drawer-panel,body[data-theme="dark"] .teb-drawer-panel{background:#2a3331;color:var(--ink)}
body[data-theme="dark"] .teb-cart-drawer-body,body[data-theme="dark"] .teb-cart-drawer-foot{background:#2a3331;border-color:var(--line)}
body[data-theme="dark"] .teb-bottom-nav{background:rgba(39,47,45,.97);border-color:var(--line)}
body[data-theme="dark"] .teb-site-footer{color:#a9b7b5}
body[data-theme="dark"] .teb-footer-line{background:#465350}
body[data-theme="dark"] .teb-footer-copy{color:#edf4f2}

@media (min-width:800px){
 .teb-site-footer{padding-left:24px;padding-right:24px}
 .teb-footer-content{font-size:12px}
}


/* v2.4.7: faster, freer horizontal rails + product-brand section */
.teb-cat-row,
.teb-product-scroller,
.teb-blog-grid-home,
.teb-related-scroller,
.teb-chips {
  scroll-snap-type: none;
  scroll-behavior: auto;
  touch-action: pan-x;
  overscroll-behavior-x: auto;
}
.teb-cat,
.teb-product-card,
.teb-blog-card,
.teb-related-card { scroll-snap-align: none; }

.teb-brand-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:3px 2px 10px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:none;
  touch-action:pan-x;
  overscroll-behavior-x:auto;
}
.teb-brand-row::-webkit-scrollbar{display:none}
.teb-brand-card{
  flex:0 0 92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  text-decoration:none;
  color:var(--ink);
}
.teb-brand-img{
  width:68px;
  height:68px;
  border-radius:16px;
  background:var(--card);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(20,40,40,.04);
}
.teb-brand-img img{width:100%;height:100%;object-fit:contain;display:block}
.teb-brand-img span{
  font-size:22px;
  font-weight:800;
  color:var(--green2);
}
.teb-brand-card>span:last-child{
  display:block;
  width:100%;
  text-align:center;
  font-size:11px;
  line-height:1.6;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-theme="dark"] .teb-brand-img{background:#303937;border-color:var(--line)}
@media (min-width:800px){
  .teb-brand-card{flex-basis:108px}
  .teb-brand-img{width:76px;height:76px}
}


/* v2.4.9: variation availability + drag affordance */
.teb-custom-variation-group .teb-variant-pill:disabled,
.teb-custom-variation-group .teb-variant-pill[aria-disabled="true"]{
  opacity:.42;
  cursor:not-allowed;
  background:var(--surface-2,#f3f5f4)!important;
  color:var(--muted,#7b8582)!important;
  border-color:var(--line,#dfe5e2)!important;
  text-decoration:line-through;
  transform:none!important;
}
.teb-balloon{overflow:visible!important}
.teb-balloon i{display:block!important;position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #0f4c3f;border-bottom:0;margin:0}
.teb-balloon:before{
  content:'↔';
  position:absolute;
  left:-27px;
  top:50%;
  transform:translateY(-50%);
  width:22px;height:22px;
  border-radius:7px;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface-2,#f3f5f4);
  color:var(--muted,#64706c);
  border:1px solid var(--line,#dfe5e2);
  font-size:13px;font-weight:800;
  pointer-events:none;
}
.teb-balloon span{position:relative}
body[data-theme="dark"] .teb-custom-variation-group .teb-variant-pill:disabled,
body[data-theme="dark"] .teb-custom-variation-group .teb-variant-pill[aria-disabled="true"]{
  background:#26302e!important;color:#7f8a86!important;border-color:#3a4542!important;
}
body[data-theme="dark"] .teb-balloon:before{background:#26302e;color:#aab4b0;border-color:#3a4542}

/* v2.5.0: homepage vertical scrolling + contact modal + blog rail fix */
.teb-cat-row,
.teb-product-scroller,
.teb-related-scroller,
.teb-chips,
.teb-brand-row{
  touch-action:auto;
}
.teb-blog-grid-home{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-flow:row;
  overflow:visible;
  touch-action:auto;
  gap:12px;
  padding-bottom:0;
}
.teb-blog-grid-home .teb-blog-card{scroll-snap-align:none}
.teb-bottom-contact{
  position:relative;
  flex:1;
  text-align:center;
  color:#7b878b;
  font-size:9px;
  font-weight:700;
  padding:5px 2px;
  border:0;
  background:transparent;
  border-radius:14px;
}
.teb-bottom-contact span{display:block;font-size:20px;line-height:25px}
.teb-bottom-contact:active{background:#e7f8f4;color:var(--green2)}
.teb-contact-modal{position:fixed;inset:0;z-index:1600}
.teb-contact-modal[hidden]{display:none}
.teb-contact-backdrop{position:absolute;inset:0;background:rgba(10,18,20,.48);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.teb-contact-panel{
  position:absolute;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(94vw,520px);max-height:88vh;overflow:auto;
  background:var(--card);color:var(--ink);border:1px solid var(--line);
  border-radius:24px;padding:22px 18px 18px;
  box-shadow:0 20px 60px rgba(10,20,25,.28);
  animation:teb-contact-up .2s ease;
}
@keyframes teb-contact-up{from{opacity:0;transform:translate(-50%,18px)}to{opacity:1;transform:translate(-50%,0)}}
.teb-contact-close{top:12px;left:12px;z-index:2}
.teb-contact-head{display:flex;align-items:center;gap:12px;padding:4px 44px 14px 4px;border-bottom:1px solid var(--line)}
.teb-contact-icon{width:46px;height:46px;border-radius:15px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:22px;flex:0 0 46px}
.teb-contact-head h3{margin:0;font-size:16px}.teb-contact-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.teb-contact-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.teb-contact-item{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);background:var(--bg);border-radius:15px}
.teb-contact-item-icon{width:34px;height:34px;border-radius:11px;background:var(--card);display:grid;place-items:center;font-size:17px;flex:0 0 34px}
.teb-contact-item small,.teb-contact-item b{display:block}.teb-contact-item small{font-size:10px;color:var(--muted)}.teb-contact-item b{font-size:12px;direction:ltr;text-align:right;margin-top:2px}
.teb-social-title{font-size:12px;font-weight:800;margin:18px 2px 9px}
.teb-social-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.teb-social-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:84px;border:1px solid var(--line);background:var(--bg);border-radius:15px;text-align:center;padding:8px 4px}
.teb-social-item>span{width:32px;height:32px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:5px}
.teb-social-item b{font-size:11px}.teb-social-item small{font-size:9px;color:var(--muted);margin-top:2px;direction:ltr}
body.teb-lock .teb-contact-modal{display:block}
body[data-theme="dark"] .teb-contact-backdrop{background:rgba(0,0,0,.62)}
body[data-theme="dark"] .teb-contact-item,body[data-theme="dark"] .teb-social-item{background:#303937}
body[data-theme="dark"] .teb-contact-item-icon{background:#26302e}
@media(max-width:520px){
  .teb-blog-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))}
  .teb-contact-list{grid-template-columns:1fr}
  .teb-social-grid{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:800px){
  .teb-blog-grid-home{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* v2.5.1 functional fixes retained */
.teb-qty-unit{font-size:9px!important;color:var(--muted);display:block;line-height:1.2;margin-top:1px}
.teb-p2-qty-num{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:34px}
.teb-contact-modal[hidden]{display:none!important}
body.teb-lock .teb-contact-modal:not([hidden]){display:block}

/* v2.5.3: compact tier table + WooCommerce account styling */
.teb-tier-table{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card);margin:4px 0 12px}
.teb-tier-table[hidden]{display:none!important}
.teb-tier-table-head{display:none}
.teb-tier-table [data-tier-rows]{display:flex;direction:rtl;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.teb-tier-table [data-tier-rows]::-webkit-scrollbar{display:none}
.teb-tier-row{flex:1 1 0;min-width:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 8px;border:0;border-left:1px solid var(--line);font-size:11px;cursor:pointer;background:transparent;transition:background .15s,transform .12s,font-weight .15s;white-space:nowrap}
.teb-tier-row:last-child{border-left:0}
.teb-tier-row span{color:var(--muted);font-weight:600;line-height:1.4}
.teb-tier-row b{color:var(--ink);font-weight:750;text-align:center;direction:ltr;font-size:12px;line-height:1.4}
.teb-tier-row.active{background:#e7f7f2;box-shadow:inset 0 -3px 0 var(--green)}
.teb-tier-row.active span,.teb-tier-row.active b{color:var(--green2);font-weight:900}
.teb-tier-row:active{transform:scale(.98)}
body[data-theme="dark"] .teb-tier-row.active{background:#1d413a}
.teb-price-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.teb-price-head .teb-p2-label{font-size:11px;color:var(--muted)}
.teb-price-head strong{font-size:20px;font-weight:900;color:var(--ink);direction:ltr}
.teb-tier-hint{margin-top:10px}

/* Account / My Account */
.woocommerce-account .teb-main{max-width:1100px}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start;margin:18px 0 30px}
.woocommerce-account .woocommerce-MyAccount-navigation{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:var(--shadow);position:sticky;top:92px}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:2px 0}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:flex;align-items:center;padding:10px 12px;border-radius:12px;color:var(--muted);font-size:12px;transition:.15s}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:#e8f7f3;color:var(--green2);font-weight:800}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);font-size:12px}
.woocommerce-account .woocommerce-MyAccount-content h2,.woocommerce-account .woocommerce-MyAccount-content h3{font-size:16px;margin:0 0 14px}
.woocommerce-account .woocommerce-MyAccount-content p{color:var(--muted);line-height:2}
.woocommerce-account .woocommerce-MyAccount-content a{color:var(--green2);font-weight:700}
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content input[type=submit]{border:0;border-radius:12px;background:var(--green);color:#fff;padding:10px 16px;font-weight:800;font-size:12px;min-height:42px}
.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:11px;padding:10px 11px;outline:0}
.woocommerce-account .woocommerce-MyAccount-content label{display:block;font-size:11px;font-weight:700;margin:0 0 5px;color:var(--ink)}
.woocommerce-account .woocommerce-MyAccount-content fieldset{border:1px solid var(--line);border-radius:14px;padding:14px;margin:16px 0}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:11px}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th{background:var(--bg);color:var(--muted);font-weight:800;padding:10px;border-bottom:1px solid var(--line);text-align:right}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{padding:10px;border-bottom:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{border:1px solid var(--line);background:var(--bg);border-radius:13px;padding:11px 13px;margin:0 0 14px;font-size:11px}
.woocommerce-account .woocommerce-form-login,.woocommerce-account .woocommerce-form-register{border:1px solid var(--line)!important;border-radius:18px!important;background:var(--card);padding:18px!important;box-shadow:var(--shadow)}
.woocommerce-account .woocommerce-form-login .form-row,.woocommerce-account .woocommerce-form-register .form-row{margin-bottom:12px}
.woocommerce-account .woocommerce-LostPassword{font-size:11px;margin-top:12px}
body[data-theme="dark"] .teb-tier-table-head{background:#303937}
body[data-theme="dark"] .teb-tier-row.active{background:#1d413a}
body[data-theme="dark"] .teb-tier-row span{color:#aab6b2}
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:#29443f;color:#9ce3d2}
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content input.input-text,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content select,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content textarea,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{background:#303937}
@media(max-width:799px){
 .woocommerce-account .woocommerce{display:block;margin-top:12px}
 .woocommerce-account .woocommerce-MyAccount-navigation{position:static;margin-bottom:12px;overflow-x:auto}
 .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;gap:5px;min-width:max-content}
 .woocommerce-account .woocommerce-MyAccount-navigation li{margin:0}
 .woocommerce-account .woocommerce-MyAccount-navigation a{white-space:nowrap;padding:9px 11px}
 .woocommerce-account .woocommerce-MyAccount-content{padding:14px;border-radius:16px}
 .teb-tier-row{padding:10px 11px}
}


/* v2.5.4: desktop bottom navigation + compact desktop cart drawer */
@media(min-width:800px){
  .teb-bottom-nav{left:50%;right:auto;bottom:18px;width:min(650px,calc(100vw - 48px));height:67px;transform:translateX(-50%);display:flex;}
  .teb-cart-drawer-panel{left:auto;right:max(24px,calc((100vw - 1200px)/2));bottom:24px;width:min(430px,calc(100vw - 48px));max-height:min(78vh,720px);border-radius:22px;box-shadow:0 18px 55px rgba(10,20,25,.28);}
  .teb-cart-drawer .teb-drawer-backdrop{background:rgba(12,20,24,.42)}
}
@media(max-width:799px){
  body{padding-bottom:88px}
}


/* v2.5.6: unified Persian typography + archive/shop cleanup */
html,body,button,input,select,textarea{font-family:"Vazir",Tahoma,Arial,sans-serif}
.teb-archive-grid{align-items:start}
.teb-archive-grid .teb-product-card{position:relative;display:flex;flex-direction:column;min-width:0;height:100%;isolation:isolate}
.teb-archive-grid .teb-product-image{position:relative;z-index:1;flex:0 0 190px;height:190px;min-height:190px;width:100%;overflow:hidden;background:var(--card);display:grid;place-items:center;padding:12px}
.teb-archive-grid .teb-product-image img{position:static!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;display:block}
.teb-archive-grid .teb-product-body{position:relative!important;inset:auto!important;z-index:2;display:flex;flex-direction:column;flex:1;min-width:0;background:var(--card);padding:12px!important}
.teb-archive-grid .teb-product-title{position:static!important;color:var(--ink);background:transparent;display:block;white-space:normal;overflow:hidden;text-overflow:clip;height:44px;min-height:44px;line-height:1.8}
.teb-archive-grid .teb-product-bottom{position:static!important;margin-top:auto;padding-top:8px}
.teb-archive-grid .teb-price{position:static!important}
.teb-archive-categories{margin:6px 0 14px}
.teb-archive-categories-title{font-size:13px;font-weight:800;margin-bottom:8px}
.teb-archive-cat-row{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 1px 8px}
.teb-archive-cat-row::-webkit-scrollbar{display:none}
.teb-archive-cat-chip{flex:0 0 auto;white-space:nowrap;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:8px 13px;font-size:11px;color:var(--ink);transition:.15s}
.teb-archive-cat-chip.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:800}
.woocommerce-pagination{margin:22px 0 90px;text-align:center}
.woocommerce-pagination ul.page-numbers{display:flex!important;justify-content:center;align-items:center;gap:6px;border:0!important;margin:0!important;padding:0!important;list-style:none}
.woocommerce-pagination ul.page-numbers li{border:0!important;margin:0!important;padding:0!important}
.woocommerce-pagination .page-numbers{display:grid;place-items:center;min-width:38px;height:38px;border:1px solid var(--line)!important;background:var(--card);border-radius:11px;color:var(--ink);font-size:11px}
.woocommerce-pagination .page-numbers.current{background:var(--green);border-color:var(--green)!important;color:#fff;font-weight:800}
.woocommerce-pagination .page-numbers.next,.woocommerce-pagination .page-numbers.prev{padding:0 12px;width:auto}
body[data-theme="dark"] .teb-archive-cat-chip{background:var(--card);color:var(--ink)}
body[data-theme="dark"] .teb-archive-cat-chip.active{background:var(--green);color:#fff}
@media(min-width:800px){
  .teb-archive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .teb-archive-grid .teb-product-image{height:220px;min-height:220px;flex-basis:220px}
}
@media(max-width:799px){
  .teb-archive-grid .teb-product-image{height:170px;min-height:170px;flex-basis:170px}
}


/* v2.5.7: unified typography, WordPress custom logo, and filter UX */
html,body,body button,body input,body select,body textarea,body h1,body h2,body h3,body h4,body h5,body h6,body p,body a,body li,body label,body span,body strong,body b,body small,body table,body th,body td,
.woocommerce, .woocommerce-page, .woocommerce button, .woocommerce input, .woocommerce select, .woocommerce textarea,
.woocommerce-account, .woocommerce-account button, .woocommerce-account input, .woocommerce-account select, .woocommerce-account textarea{
  font-family:"Vazir",Tahoma,Arial,sans-serif !important;
}
.teb-logo{min-width:0;text-decoration:none}
.teb-logo .custom-logo-link{display:flex;align-items:center;max-width:150px}
.teb-logo .custom-logo{display:block;width:auto;height:38px;max-width:150px;object-fit:contain}
.teb-filter-category-select{width:100%;height:46px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:13px;padding:0 13px;font-size:12px;font-weight:700;outline:none;font-family:inherit}
.teb-filter-category-select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(24,168,137,.10)}
.teb-filter-category-group{margin-bottom:20px}

/* v2.5.8: unified Persian typography and reliable WordPress Custom Logo */
html, body, body.tebct-app-body, .teb-app, .teb-app * {
  font-family: "Vazir", Tahoma, Arial, sans-serif !important;
}
.teb-logo .teb-site-logo {
  display:block; width:auto; height:42px; max-width:180px; object-fit:contain;
}
.teb-logo:has(.teb-site-logo) { min-width:0; }
@media (max-width: 640px) {
  .teb-logo .teb-site-logo { height:38px; max-width:145px; }
}
\n\n/* v2.5.9: account login/register layout + final Vazir family */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce *{font-family:"Vazir",Tahoma,Arial,sans-serif!important}
.woocommerce-account:not(.logged-in) .woocommerce{display:block;max-width:860px;margin:22px auto 90px}
.woocommerce-account:not(.logged-in) .woocommerce .u-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}
.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2{width:auto!important;float:none!important;margin:0!important;padding:0!important}
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register{width:auto!important;max-width:none!important;margin:0!important;box-sizing:border-box}
.woocommerce-account:not(.logged-in) .woocommerce h2{font-size:18px;margin:0 0 14px}
.woocommerce-account:not(.logged-in) .woocommerce .form-row{width:100%!important;float:none!important;margin-left:0!important;margin-right:0!important}
.woocommerce-account:not(.logged-in) .woocommerce .password-input{display:block;width:100%}
.woocommerce-account:not(.logged-in) .woocommerce input.input-text{box-sizing:border-box;min-height:44px}
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text{font-size:10px;line-height:1.8}
.woocommerce-account.logged-in .teb-account-page{max-width:1100px;margin:0 auto}
.teb-account-page{width:100%;box-sizing:border-box}
@media(max-width:799px){
 .woocommerce-account:not(.logged-in) .woocommerce{max-width:620px;margin:12px auto 90px}
 .woocommerce-account:not(.logged-in) .woocommerce .u-columns{grid-template-columns:1fr;gap:12px}
 .woocommerce-account:not(.logged-in) .woocommerce-form-login,
 .woocommerce-account:not(.logged-in) .woocommerce-form-register{padding:16px!important;border-radius:16px!important}
}

/* v2.5.10: bundled Vazir + robust WooCommerce account layout */
html,body,
body,body *,
button,input,select,textarea,
.woocommerce,.woocommerce *,
.woocommerce-page,.woocommerce-page *,
.woocommerce-account,.woocommerce-account *{
  font-family:"Vazir",Tahoma,Arial,sans-serif !important;
}

.woocommerce-account .teb-main{overflow:visible}
.woocommerce-account:not(.logged-in) .woocommerce{
  width:min(980px,calc(100% - 32px)) !important;
  max-width:980px !important;
  margin:28px auto 120px !important;
}
.woocommerce-account:not(.logged-in) .woocommerce .u-columns{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:24px !important;
  width:100% !important;
  margin:0 !important;
  align-items:start !important;
}
.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2{
  width:auto !important;
  max-width:none !important;
  float:none !important;
  margin:0 !important;
  padding:0 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce .u-column1 > h2,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 > h2{
  margin:0 0 12px !important;
  font-size:18px !important;
  line-height:1.7 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register{
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:22px !important;
  border:1px solid var(--line) !important;
  border-radius:20px !important;
  background:var(--card) !important;
  box-shadow:0 8px 28px rgba(10,20,25,.06) !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row,
.woocommerce-account:not(.logged-in) .woocommerce-form-register .form-row{
  width:100% !important;
  float:none !important;
  margin:0 0 14px !important;
  padding:0 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login input.input-text,
.woocommerce-account:not(.logged-in) .woocommerce-form-register input.input-text{
  width:100% !important;
  min-height:46px !important;
  box-sizing:border-box !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  background:var(--bg) !important;
  color:var(--ink) !important;
  padding:0 13px !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login label,
.woocommerce-account:not(.logged-in) .woocommerce-form-register label{
  display:block !important;
  margin-bottom:6px !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-account:not(.logged-in) .woocommerce-form-register button[type="submit"]{
  width:100% !important;
  min-height:46px !important;
  border:0 !important;
  border-radius:12px !important;
  background:var(--green) !important;
  color:#fff !important;
  font-weight:800 !important;
  cursor:pointer !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__rememberme{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  margin:4px 0 12px !important;
  font-size:11px !important;
}
@media(max-width:900px){
  .woocommerce-account:not(.logged-in) .woocommerce{
    width:min(620px,calc(100% - 24px)) !important;
    margin:18px auto 105px !important;
  }
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .woocommerce-account:not(.logged-in) .woocommerce-form-login,
  .woocommerce-account:not(.logged-in) .woocommerce-form-register{
    padding:18px !important;
  }
}

/* v2.5.11: final product/account/archive refinements */
/* Blog homepage is a real horizontal rail again, especially on phones. */
.teb-blog-grid-home{
  display:grid !important;
  grid-auto-flow:column !important;
  grid-template-columns:none !important;
  grid-auto-columns:minmax(72%,72%) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  touch-action:pan-x;
  gap:12px;
  padding-bottom:8px;
  scrollbar-width:none;
}
.teb-blog-grid-home::-webkit-scrollbar{display:none}
.teb-blog-grid-home .teb-blog-card{scroll-snap-align:start;min-width:0}
@media(min-width:800px){
  .teb-blog-grid-home{grid-auto-columns:minmax(280px,32%);}
}

/* WooCommerce login/register: keep two columns until a genuinely narrow phone width. */
@media(min-width:650px){
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:24px !important;
    align-items:start !important;
  }
  .woocommerce-account:not(.logged-in) .woocommerce .u-column1,
  .woocommerce-account:not(.logged-in) .woocommerce .u-column2{
    width:auto !important;float:none !important;display:block !important;
  }
}
@media(max-width:649px){
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns{display:grid !important;grid-template-columns:1fr !important;gap:12px !important}
}

/* Tier range wording. */
.teb-tier-row span{white-space:nowrap}

/* Gallery interaction: keep the track swipeable and thumb navigation reliable in RTL pages. */
.teb-gallery-main{direction:ltr;touch-action:pan-x;cursor:grab}
.teb-gallery-main:active{cursor:grabbing}
.teb-gallery-slide{direction:rtl}

/* v2.5.12: compact centered desktop filter + staged AJAX filter UI */
@media(min-width:800px){
  .teb-filter-panel{
    left:50%;right:auto;bottom:auto;top:50%;
    width:min(560px,calc(100vw - 48px));
    max-height:min(82vh,760px);
    transform:translate(-50%,-50%);
    border-radius:22px;
    animation:teb-filter-pop .18s ease;
  }
  @keyframes teb-filter-pop{from{transform:translate(-50%,-48%);opacity:.7}to{transform:translate(-50%,-50%);opacity:1}}
}
.teb-filter-loading{opacity:.72;pointer-events:none}
.teb-filter-detail-fields{display:block}

/* PWA install action */
.teb-install-app{display:block;width:100%;border:1px solid var(--line,#dfe7e5);background:var(--card,#fff);color:var(--text,#1e2b29);border-radius:12px;padding:11px 13px;margin:8px 0;font:inherit;font-weight:700;cursor:pointer;text-align:right}
.teb-install-app:hover{transform:translateY(-1px)}


/* v2.5.16: automatic PWA install prompt */
.teb-pwa-install{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center;padding:20px;box-sizing:border-box}
.teb-pwa-install[hidden]{display:none!important}
.teb-pwa-backdrop{position:absolute;inset:0;background:rgba(10,18,20,.48);backdrop-filter:blur(3px)}
.teb-pwa-panel{position:relative;width:min(440px,100%);box-sizing:border-box;background:var(--card,#fff);color:var(--ink,#17221f);border:1px solid var(--line,#dfe7e5);border-radius:24px;padding:24px 22px 20px;text-align:center;box-shadow:0 20px 70px rgba(0,0,0,.25);animation:tebPwaIn .22s ease-out}
.teb-pwa-close{position:absolute;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:50%;background:var(--soft,#f1f5f4);color:var(--ink,#17221f);font-size:22px;line-height:1;cursor:pointer}
.teb-pwa-icon{display:block;width:72px;height:72px;object-fit:contain;margin:0 auto 12px;border-radius:18px}
.teb-pwa-panel h3{margin:0 0 8px;font-size:20px;font-weight:900}
.teb-pwa-panel p{margin:0 auto 18px;max-width:360px;line-height:1.9;font-size:13px;color:var(--muted,#6f7d79)}
.teb-pwa-actions{display:flex;gap:10px;align-items:center}
.teb-pwa-install-btn,.teb-pwa-later{flex:1;min-height:46px;border-radius:13px;font:inherit;font-weight:800;cursor:pointer}
.teb-pwa-install-btn{border:1px solid var(--green,#12a889);background:var(--green,#12a889);color:#fff}
.teb-pwa-later{border:1px solid var(--line,#dfe7e5);background:transparent;color:var(--ink,#17221f)}
body[data-theme="dark"] .teb-pwa-panel{background:#26302e;color:#f2f7f5;border-color:#3a4643}
body[data-theme="dark"] .teb-pwa-later{color:#f2f7f5;border-color:#46534f}
@keyframes tebPwaIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media (min-width:768px){.teb-pwa-install{align-items:center}.teb-pwa-panel{padding:28px 26px 22px}}


/* v2.5.18: homepage scrolling, blog vertical gesture, live cart state and clearer dark theme */
html, body{
  overscroll-behavior-y:auto;
  touch-action:pan-y pinch-zoom;
}
body{overflow-x:hidden;overflow-y:auto;}
.teb-app,.teb-main{touch-action:pan-y pinch-zoom;}

/* A horizontal rail must still allow the browser to decide between horizontal and vertical
   movement when the user's finger starts on it. This prevents the blog rail from trapping
   vertical page scrolling. */
.teb-cat-row,
.teb-product-scroller,
.teb-related-scroller,
.teb-chips,
.teb-brand-row,
.teb-archive-cat-row,
.teb-gallery-main,
.teb-gallery-thumbs,
.teb-tier-table [data-tier-rows],
.teb-blog-grid-home{
  touch-action:pan-x pan-y;
}
.teb-blog-grid-home{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

/* Make the dark theme easier to read: stronger separation between page, cards and controls. */
body[data-theme="dark"]{
  --green:#29c2a0;
  --green2:#42c5aa;
  --ink:#f4f8f7;
  --muted:#b7c3c0;
  --bg:#1b2321;
  --card:#333e3b;
  --line:#4b5855;
  --red:#ef747a;
  --shadow:0 8px 28px rgba(0,0,0,.24);
  background:var(--bg);
  color:var(--ink);
}
body[data-theme="dark"] .teb-header{background:rgba(30,39,37,.96);border-color:#46534f}
body[data-theme="dark"] .teb-search{background:#303a37;border-color:#4b5855}
body[data-theme="dark"] .teb-icon-btn,
body[data-theme="dark"] .teb-cart-mini{background:#3a4643;color:#f4f8f7;border-color:#4b5855}
body[data-theme="dark"] .teb-promo{background:#2e4a43;border-color:#45635c}
body[data-theme="dark"] .teb-trust div{background:#333e3b;border-color:#4b5855;color:#d7e1de}
body[data-theme="dark"] .teb-product-card,
body[data-theme="dark"] .teb-card,
body[data-theme="dark"] .teb-p2-card,
body[data-theme="dark"] .teb-buy-card,
body[data-theme="dark"] .teb-info-card,
body[data-theme="dark"] .teb-cart-summary,
body[data-theme="dark"] .teb-cart-item,
body[data-theme="dark"] .teb-empty{background:#333e3b;border-color:#4b5855}
body[data-theme="dark"] .teb-product-image,
body[data-theme="dark"] .teb-product-card .teb-product-image,
body[data-theme="dark"] .teb-product-image{background:#2b3532}
body[data-theme="dark"] .teb-product-title,
body[data-theme="dark"] .teb-price,
body[data-theme="dark"] .teb-blog-title,
body[data-theme="dark"] .teb-section-head h2{color:#f4f8f7}
body[data-theme="dark"] .teb-blog-card{background:#333e3b;border-color:#4b5855}
body[data-theme="dark"] .teb-blog-img{background:#2b3532}
body[data-theme="dark"] .teb-cat{color:#dce6e3}
body[data-theme="dark"] .teb-cat-img{background:#f8fbfa;border-color:#5a6864}
body[data-theme="dark"] .teb-bottom-nav{background:rgba(48,58,55,.98);border-color:#53615d;box-shadow:0 10px 35px rgba(0,0,0,.3)}
body[data-theme="dark"] .teb-bottom-nav a,
body[data-theme="dark"] .teb-bottom-contact{color:#c4cfcc}
body[data-theme="dark"] .teb-bottom-nav a.active,
body[data-theme="dark"] .teb-bottom-contact:active{background:#d9f4ed;color:#087b66}
body[data-theme="dark"] .teb-cart-drawer-panel,
body[data-theme="dark"] .teb-drawer-panel,
body[data-theme="dark"] .teb-contact-panel{background:#333e3b;color:#f4f8f7;border-color:#4b5855}
body[data-theme="dark"] .teb-cart-drawer-body,
body[data-theme="dark"] .teb-cart-drawer-foot{background:#333e3b;border-color:#4b5855}
body[data-theme="dark"] .teb-mini-item{border-color:#4b5855}
body[data-theme="dark"] .teb-mini-img{background:#2b3532}
body[data-theme="dark"] .teb-brand-img{background:#3a4643;border-color:#52605c}
body[data-theme="dark"] .teb-archive-cat-chip{background:#333e3b;border-color:#4b5855;color:#f4f8f7}
body[data-theme="dark"] .teb-tier-table{background:#333e3b;border-color:#4b5855}
body[data-theme="dark"] .teb-tier-row{border-color:#4b5855}
body[data-theme="dark"] .teb-tier-row.active{background:#245148}
body[data-theme="dark"] .teb-native-cart select,
body[data-theme="dark"] select,
body[data-theme="dark"] input.input-text,
body[data-theme="dark"] textarea{background:#2b3532;color:#f4f8f7;border-color:#4b5855}
body[data-theme="dark"] .teb-site-footer{color:#b7c3c0}
body[data-theme="dark"] .teb-footer-line{background:#4b5855}
