/* Shared cards. Fixed media height prevents wider columns becoming taller cards. */
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
.hk-product-grid,.woocommerce ul.products.hk-product-grid,ul.products.hk-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;list-style:none;padding:0}
ul.products.hk-product-grid::before,ul.products.hk-product-grid::after{display:none!important}
.hk-product-card.hk-unified-card,.woocommerce ul.products li.product.hk-unified-card,ul.products li.product.hk-unified-card{box-sizing:border-box;position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:142px 38px 17px 34px 34px;gap:3px;min-width:0;min-height:0;width:auto!important;margin:0!important;padding:10px;border:1px solid #e1e5ed;border-radius:10px;background:#fff;box-shadow:none;direction:rtl;font-family:Vazirmatn,Tahoma,sans-serif;text-align:right;line-height:1.6;transition:border-color .15s,box-shadow .15s}
.hk-unified-card:hover{border-color:#bcc8dd;box-shadow:0 4px 16px #001e4b08}
.hk-unified-card a{text-decoration:none}
.hk-unified-card .screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;padding:0;border:0;overflow:hidden;white-space:nowrap}
.hk-card-price .woocommerce-price-suffix{font-size:9px;font-weight:400;color:#737983}
.hk-unified-card :is(button,a,input):focus-visible{outline:2px solid var(--hk-primary,#001ee6);outline-offset:3px}
.hk-card-media{position:relative;min-width:0;min-height:0}
.hk-card-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:4px 27px 1px;box-sizing:border-box}
.hk-unified-card .hk-card-image img,.woocommerce ul.products li.product.hk-unified-card a img{display:block;width:100%;height:100%;max-height:137px;margin:0;object-fit:contain;object-position:center}
.hk-card-heart{position:absolute;top:-2px;left:-2px;z-index:2;display:grid;place-items:center;width:27px;height:27px;padding:4px;border:0;background:#fffffff0;border-radius:5px;color:#313743;cursor:pointer}
.hk-card-heart .hk-icon{width:18px;height:18px}
.hk-card-heart[aria-pressed=true]{color:#db2345}.hk-card-heart[aria-pressed=true] svg{fill:#ffe7ed}
.hk-card-sale{position:absolute;top:0;left:30px;z-index:1;display:grid;min-width:34px;padding:2px 4px;background:#df2340;color:white;border-radius:4px;text-align:center;font-size:10px;font-weight:800;line-height:1.15}
.hk-card-sale small{font-size:9px;font-weight:700}
.hk-card-marks{position:absolute;right:0;top:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;pointer-events:none}
.hk-card-shipping{padding:1px 8px;border-radius:5px;color:#fff;font-size:10px;line-height:1.7;font-weight:650;background:#11896f}
.hk-card-shipping--half{background:#681295}
.hk-card-tick{width:19px;height:19px;display:grid;place-items:center}
.hk-card-tick .hk-icon{width:19px;height:19px}
.hk-card-tick--blue{color:#001ee6}.hk-card-tick--golden{color:#e0ad00}
.hk-card-colors{position:absolute;left:5px;top:38px;display:flex;flex-direction:column;align-items:center;gap:4px;max-height:92px}
.hk-card-color{box-sizing:border-box;display:block;width:9px;height:9px;border-radius:50%;border:1px solid #0002;background:var(--swatch);flex-shrink:0}
.hk-card-color--unknown{background:repeating-linear-gradient(45deg,#bbb 0 2px,#fff 2px 4px)}
.hk-card-colors small{font-size:9px;line-height:1.1;direction:ltr}
.hk-card-video{position:absolute;left:0;top:38px;display:grid;place-items:center;width:25px;height:19px;border-radius:5px;background:#ff536b;color:white}
.hk-card-video:hover{background:#d92543;color:white}.hk-card-video .hk-icon{width:14px;height:14px;fill:currentColor;stroke-width:0}
.hk-card-compare{position:absolute;left:0;bottom:0;display:block;width:27px;height:26px;cursor:pointer;color:#778198}
.hk-card-compare input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:2}
.hk-card-compare span{display:grid;place-items:center;width:100%;height:100%;background:#ffffffeb;border:1px solid transparent;border-radius:5px;opacity:0;transition:opacity .15s}
.hk-card-compare .hk-icon{width:17px;height:17px}.hk-unified-card:hover .hk-card-compare span,.hk-card-compare:focus-within span,.hk-card-compare:focus-within span{outline:2px solid var(--hk-primary);outline-offset:2px}
.hk-card-compare input:checked+span{opacity:1}
.hk-card-compare:focus-within span{outline:2px solid var(--hk-primary);outline-offset:2px}
.hk-card-compare input:checked+span{color:var(--hk-primary);background:#eef0ff;border-color:#b7c0ff}
.hk-card-identity{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;min-width:0;height:38px}
.hk-card-name{min-width:0;flex:1;text-align:right}
.hk-unified-card .hk-card-name h3,.woocommerce ul.products li.product.hk-unified-card .hk-card-name h3{font-family:inherit;font-weight:600;font-size:12.5px;line-height:19px;min-height:0;height:38px;max-height:38px;margin:0;padding:0;text-align:right;overflow:hidden;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.hk-card-name h3 a{color:#20242b;display:inline}
.hk-unified-card .hk-model-token{display:inline;font-size:inherit;line-height:inherit;font-weight:inherit;white-space:nowrap;unicode-bidi:isolate}
.hk-card-rating{display:flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0;line-height:17px;height:17px}
.hk-card-rating small{font-size:9px;color:#767b83;white-space:nowrap}
.hk-card-stars{display:inline-block;position:relative;font-size:12px;line-height:17px;letter-spacing:.2px;white-space:nowrap;color:#d6d6d6}
.hk-card-stars>span+span{position:absolute;top:0;left:0;height:100%;overflow:hidden;color:#ffb300}

.hk-card-price{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;gap:0 7px;min-width:0;height:34px;font-size:17px;line-height:1.5;font-weight:800;color:#151a23;direction:rtl;font-variant-numeric:tabular-nums}
.hk-card-price .amount bdi{display:inline-flex;flex-direction:row;align-items:baseline;gap:3px;direction:rtl;white-space:nowrap}
.hk-card-price .woocommerce-Price-currencySymbol{font-size:10px;font-weight:400;color:#707780;order:2}
.hk-card-price del{color:#9a9ea6;font-size:10px;font-weight:400;order:1}
.hk-card-price del .woocommerce-Price-currencySymbol{display:none}
.hk-card-price del .amount{display:inline-block;position:relative}.hk-card-price del .amount::after{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid currentColor}
.hk-card-price ins{font-weight:800;text-decoration:none;background:transparent;color:inherit;order:2}
.hk-card-price--range{font-size:13px;column-gap:3px}.hk-card-price--range .woocommerce-Price-currencySymbol{font-size:9px}
.hk-card-no-price{font-size:11px;font-weight:500;color:#6b7280}
.hk-unified-card .hk-card-cart{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-width:0;height:34px;padding:3px 5px;border:1px solid #98aedb;border-radius:6px;font-size:12px;font-weight:450;line-height:1.4;color:#3862a6;background:white;white-space:nowrap;text-decoration:none}
.hk-unified-card .hk-card-cart:hover{border-color:var(--hk-primary);background:var(--hk-primary);color:white}.hk-card-cart .hk-icon{width:19px;height:19px}
/* One set of dialogs is present in the footer, including on home and detail pages. */
.hk-compare-bar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:100;background:white;padding:12px;box-shadow:var(--hk-shadow);border:1px solid var(--hk-border);border-radius:12px;display:flex;gap:12px;align-items:center;max-width:95vw;font-family:Vazirmatn,Tahoma,sans-serif}
.hk-compare-bar[hidden]{display:none}.hk-compare-bar button{border:0;background:var(--hk-primary);color:white;padding:8px 12px;border-radius:7px;cursor:pointer;font:inherit}
.hk-compare-dialog,.hk-card-video-dialog{box-sizing:border-box;width:min(1100px,95vw);max-height:85vh;border:1px solid var(--hk-border);border-radius:14px;padding:24px;font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl}
.hk-compare-dialog::backdrop,.hk-card-video-dialog::backdrop{background:var(--hk-backdrop,#001e4baa)}
.hk-compare-table{overflow:auto}.hk-compare-table table{border-collapse:collapse;width:100%;min-width:600px}.hk-compare-table th,.hk-compare-table td{border:1px solid var(--hk-border);padding:12px;vertical-align:top;font-size:.9rem}.hk-compare-table a{color:var(--hk-primary)}
.hk-compare-dialog>button,.hk-card-video-dialog>button{border:1px solid var(--hk-border);border-radius:6px;padding:6px 14px;background:white;cursor:pointer;font:inherit}
.hk-card-video-dialog{width:min(760px,95vw)}.hk-card-video-dialog video{display:block;width:100%;max-height:60vh;background:#111;border-radius:8px}.hk-card-video-dialog h2{font-size:17px;line-height:1.8}
.hk-card-video-error{color:#8a2634;font-size:13px}
/* Compact horizontal alternative when a visitor deliberately selects list view. */
.hk-product-grid.is-list,.woocommerce ul.products.hk-product-grid.is-list{grid-template-columns:1fr}
.hk-product-grid.is-list .hk-product-card.hk-unified-card{grid-template-columns:190px minmax(0,1fr) 215px;grid-template-rows:38px 20px 20px 34px;align-items:center;gap:6px 18px}
.hk-product-grid.is-list .hk-card-media{grid-column:1;grid-row:1/5;height:130px}
.hk-product-grid.is-list .hk-card-identity,.hk-product-grid.is-list .hk-card-rating{grid-column:2}
.hk-product-grid.is-list .hk-card-identity{grid-row:1}.hk-product-grid.is-list .hk-card-rating{grid-row:2}
.hk-product-grid.is-list .hk-card-price{grid-column:3;grid-row:2}.hk-product-grid.is-list .hk-card-cart{grid-column:3;grid-row:3/5}
@media(max-width:1100px) and (min-width:881px){.hk-product-grid,.woocommerce ul.products.hk-product-grid,ul.products.hk-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:880px){.hk-product-grid,.woocommerce ul.products.hk-product-grid,ul.products.hk-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hk-product-grid.is-list{grid-template-columns:1fr}.hk-product-grid.is-list .hk-product-card.hk-unified-card{grid-template-columns:140px minmax(0,1fr);grid-template-rows:38px 20px 20px 30px 34px;gap:4px 12px}.hk-product-grid.is-list .hk-card-media{grid-row:1/6;height:142px}.hk-product-grid.is-list .hk-card-price,.hk-product-grid.is-list .hk-card-cart{grid-column:2}.hk-product-grid.is-list .hk-card-price{grid-row:4}.hk-product-grid.is-list .hk-card-cart{grid-row:5}}
@media(max-width:560px){.hk-product-grid,.woocommerce ul.products.hk-product-grid,ul.products.hk-product-grid{gap:8px}.hk-product-card.hk-unified-card,.woocommerce ul.products li.product.hk-unified-card,ul.products li.product.hk-unified-card{padding:8px;grid-template-rows:130px 38px 17px 38px 34px}.hk-card-image{padding-inline:13px}.hk-card-identity{gap:3px}.hk-unified-card .hk-card-name h3{font-size:11px}.hk-card-price{height:38px;font-size:14px;column-gap:4px}.hk-card-price--range{font-size:11px}.hk-card-price .woocommerce-Price-currencySymbol{font-size:9px}.hk-card-price del{font-size:9px;order:2}.hk-card-price ins{order:1}.hk-unified-card .hk-card-cart{font-size:10px;gap:4px}.hk-card-cart .hk-icon{width:16px;height:16px}.hk-card-shipping{font-size:8px;padding:1px 5px}.hk-card-sale{font-size:9px;left:25px;min-width:29px}.hk-card-sale small{font-size:8px}.hk-card-compare span{opacity:1}.hk-compare-bar{font-size:11px;gap:6px;white-space:nowrap}.hk-compare-bar button{padding:7px}.hk-product-grid.is-list .hk-product-card.hk-unified-card{grid-template-columns:105px minmax(0,1fr)}}
@media(hover:none){.hk-card-compare span{opacity:1}}
@media(prefers-reduced-motion:reduce){.hk-unified-card,.hk-card-compare span{transition:none}}
/* انتقال قیمت به سمت چپ کارت محصولات */
.hk-unified-card .hk-card-price {
    justify-content: flex-end !important;
    text-align: left !important;
}
/* HomKito shipping badges: top right, matching the supplied samples. */
.hk-unified-card .hk-card-marks {
    top: 0;
    right: 0;
    left: auto;
    z-index: 3;
    align-items: flex-start;
}
/* Slim shipping labels v2: white fill, colored text and hairline border. */
.hk-unified-card .hk-card-shipping,
body.single-product .hk-product-page .hk-product-price-row .hk-price-shipping {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1px 7px !important;
    height: 20px !important;
    min-height: 20px !important;
    border: 1px solid #d7e5df !important;
    border-radius: 4px !important;
    font-family: inherit;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    white-space: nowrap;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.hk-unified-card .hk-card-shipping--free,
body.single-product .hk-product-page .hk-product-price-row .hk-price-shipping--free {
    color: #08745d !important;
    border-color: #c9dfd5 !important;
}
.hk-unified-card .hk-card-shipping--half,
body.single-product .hk-product-page .hk-product-price-row .hk-price-shipping--half {
    color: #68268c !important;
    border-color: #dfd1e8 !important;
}

/* Compact the desktop facts column so it does not leave a long empty hero row. */
@media (min-width: 981px) {
    body.single-product .hk-product-layout > .hk-purchase-facts-card {
        padding: 12px;
    }
    body.single-product .hk-product-layout .hk-purchase-facts.hk-purchase-facts--icons {
        margin-top: 0;
    }
    body.single-product .hk-product-layout .hk-purchase-facts.hk-purchase-facts--icons > div {
        padding-block: 6px;
        row-gap: 1px;
    }
    body.single-product .hk-product-layout .hk-purchase-facts.hk-purchase-facts--icons > div > span {
        line-height: 1.5;
    }
    body.single-product .hk-product-layout .hk-purchase-facts.hk-purchase-facts--icons > div > strong {
        line-height: 1.5;
    }
    body.single-product .hk-product-layout + .hk-product-tabs-nav {
        margin-top: 18px;
    }
}
