.hb-builder{
    display:flex;
    gap:40px;
    align-items:flex-start;
}
.hb-left{
    width:45%;
}
.hb-right{
    width:55%;
}
.hb-carry-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}
.hb-carry-card{
    border:1px solid #ddd;
    border-radius:8px;
    padding:15px;
    cursor:pointer;
    text-align:center;
    transition:.2s;
}
.hb-carry-card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:6px;
}
.hb-carry-card:hover{
    border-color:#000;
}
.hb-carry-card.active{
    border:2px solid #000;
}
.hb-step select{
    width:100%;
    max-width:420px;
    padding:12px;
    font-size:15px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
}
.hb-handedness-grid{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}
.hb-hand-card{
    border:2px solid #ddd;
    border-radius:8px;
    padding:12px 20px;
    cursor:pointer;
    text-align:center;
    min-width:140px;
    transition:.2s;
}
.hb-hand-card img{
    width:40px;
    display:block;
    margin:0 auto 10px;
}
.hb-hand-card.active{
    border-color:#000;
    background:#f3f3f3;
}
.hb-kydex-grid{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}
.hb-kydex-card{
    width:170px;
    border:2px solid #ddd;
    border-radius:10px;
    padding:12px;
    cursor:pointer;
    text-align:center;
    transition:.25s;
}

.hb-kydex-card img{
    width:100%;
    height:120px;
    object-fit:contain;
}
.hb-kydex-card h4{
    margin:10px 0 5px;
}
.hb-kydex-card.active{
    border-color:#000;
    background:#000;
    border-color: #c8a75a;
    box-shadow: 0 0 0 1px #c8a75a inset;
}
.hb-kydex-tab.disabled{
    opacity:.4;
    pointer-events:none;
    cursor:not-allowed;
}

.hb-edc-grid{
     display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}


.hb-edc-card:hover{
    border-color:#2271b1;
}

.hb-edc-card.active, .hb-edc-card:hover{     background: #000;
    border-color: #c8a75a;
    box-shadow: 0 0 0 1px #c8a75a inset;
}

.hb-edc-card.active::after{
    content:"✓";
    position:absolute;
    top:8px;
    right:8px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#2271b1;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:bold;
	display:none;
}

.hb-washer-grid{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}
.hb-washer-card{
    width:170px;
    border:2px solid #ddd;
    border-radius:8px;
    padding:12px;
    cursor:pointer;
    text-align:center;
}
.hb-washer-card.active{
    border-color:#2271b1;
    background:#eef6ff;
}
.hb-addon-grid{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}
.hb-addon-card{
    width:180px;
    border:2px solid #ddd;
    border-radius:8px;
    padding:12px;
    cursor:pointer;
    display:block;
}
.hb-addon-card input{
    display:none;
}
.hb-addon-card.active{
     border-color: #c8a75a;
    background: #000;
}
.hb-step-error {
    border: 1px solid #e74c3c !important;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(231, 76, 60, 0.04);
}
.hb-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

 /* preview image */
/* Container Box */
/* Container styling to match reference dark theme */
.hb-preview-container {
    position: sticky;
    top: 20px;
    width: 100%;
    background-color: #121212;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}


/* Main Preview Box */
.hb-preview-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #181818;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layer Images Absolute Overlay */
.hb-preview-canvas img {
    position: absolute;
	aspect-ratio: 1 / 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents zooming / stretching */
    pointer-events: none;
}

#hb_img_base   { z-index: 1; }
#hb_img_wrap   { z-index: 2; }
#hb_img_washer { z-index: 3; }

/* Hide broken image icons automatically */
.hb-preview-canvas img[src=""],
.hb-preview-canvas img:not([src]) {
    display: none !important;
}

/* Label on bottom right */
.hb-preview-caption {
    text-align: right;
    margin-top: 12px;
}

#hb_preview_label {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}



/* Holster Builder css */
.hb-builder {
    display: flex;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 42px;
    align-items: start;
    color: #fff;
}
.hb-left {
    position: sticky;
    top: 90px;}
.hb-right {
   background: #111315;
    border: 1px solid #2b2f33;
    border-radius: 20px;
    overflow: hidden;
    padding: 34px;}
body .hb-right h2{ color: #fff;}

.hb-step {
    padding: 20px 10px;
    border-bottom: 1px solid #2b2f33;}
.hb-step h3{
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
font-size: 17px;
color:#fff;}
.hb-carry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hb-carry-card.active {
    border: 1px solid #c8a75a;
    box-shadow: 0 0 0 1px #c8a75a inset;
    background: #211c10;
}
.hb-carry-card, .hb-hand-card{
    background: #0b0d0f;
    border: 1px solid #34383d;
    color: var(--text);
    border-radius: 11px;
    padding: 13px;
    text-align: left;
    cursor: pointer;
    height: inherit;
    line-height: 20px;
}
.hb-carry-card h4{
    font-size: 15px;
    color: #fff;
    margin: 0;}
.hb-carry-card span {
        display: inline;
    font-size: .78rem;
    margin-top: 4px;
    color: #fff;
}
.hb-step select {
    width: 100%;
    background: #0b0d0f;
       color: #fff;
    border: 1px solid #34383d;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: .96rem;
    max-width: 100%;
}
.segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.hb-handedness-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.hb-hand-card{min-width: 48%;
    text-align: center;}
.hb-hand-card span{
        color: #fff;
    cursor: pointer;
    font-size: 14px;}
.hb-hand-card span.active {
    border-color: #c8a75a;
    background: #211c10;
}
.hb-hand-card.active {
     border-color: #c8a75a;
    background: #211c10;
}
.hb-tabs button{
    background: #0b0d0f;
    border: 1px solid #34383d;
    color: #fff;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;}
.hb-tabs button.active, .hb-tabs button:hover{
    border-color: #c8a75a;
    background: #211c10;}
.hb-kydex-card{
   display: flex;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
    margin: 0 0 14px;
    background: #0b0d0f;
    border: 1px solid #34383d;
    border-radius: 12px;
    padding: 10px;
    color: #fff;
font-size: 17px;
    width: 100%;
    flex-direction: column;}
.hb-kydex-grid {
        margin-top: 20px;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;}
.hb-note {
    font-size: 14px;
    color: #fff;}


.hb-edc-card {     transition: .3s;
    position: relative;
    background: #0b0d0f;
    border: 1px solid #34383d;
    border-radius: 10px;
    padding: 6px;
    color: #fff;
    cursor: pointer;
    text-align: left;
font-size: 12px;
}
.hb-washer-card {
    width: 170px;
       background: #0b0d0f;
    border: 1px solid #34383d;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    color: #fff;
}
.hb-washer-card.active {
    border-color: #c8a75a;
    box-shadow: 0 0 0 1px #c8a75a inset;
    background: #000;}
.hb-addon-grid {
    display: flex;
    gap: 9px;
flex-direction: column;
}
body .hb-addon-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #0b0d0f;
    border: 1px solid #34383d;
    border-radius: 10px;
    padding: 12px 13px;
    color: #fff;
    font-size: 13px;
    width: 100%;
}
.hb-summary {
    padding: 22px 15px 28px;
}
.hb-cart {
       display: grid;
    grid-template-columns: 135px 1fr;
    gap: 26px;
    margin-top: 14px;
}
.hb-qty {
    display: grid;
    grid-template-columns: 40px 1fr 37px;
    border: 1px solid #34383d;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0d0f;
}


#hb_add_to_cart {
    border: 0;
    background: #c8a75a;
    color: #111;
    border-radius: 10px;
    padding: 16px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.hb-qty button {
    border: 0;
    background: #171a1d;
    color: var(--text);
    cursor: pointer;
}
.hb-qty button:hover, .hb-qty button:focus{  background: #171a1d !important;}
.hb-qty input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: center;
}
input:not([type="range" i], [type="checkbox" i], [type="radio" i]) {
    overflow-clip-margin: 0px !important;
    overflow: clip !important;
}
.parent-main-options hr{display: none;}
.hb-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0 0;
    font-size: 30px;}
#hb_qty::-webkit-inner-spin-button,
#hb_qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
 
#hb_qty {
    -moz-appearance: textfield;
appearance: textfield;}

.hb-edc-card.no-wrap-cls {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

@media (max-width: 1000px) {
.hb-builder{
flex-direction: column;}
.hb-left {
    width: 99%;
	  position: inherit;}
.hb-right {
    width: 100%;
	    padding: 34px 15px;}
body .custom-description p {
        margin-block-end: 0;    }
.hb-handedness-grid {
    gap: 8px;}
.hb-kydex-card {
    gap: 7px;
    font-size: 12px;
    line-height: 14px;}
.hb-edc-card {
    text-align: center;
    font-size: 12px;
    line-height: 16px;}
.hb-washer-card {
width: 130px;}
.hb-summary-total {
    font-size: 22px;}
}

@media (max-width: 400px) {
  .hb-washer-card {
    width: 28%;
	line-height: 18px;}
#hb_add_to_cart{
	    font-size: 13px;}
.hb-kydex-grid, .hb-edc-grid {
    grid-template-columns: repeat(3, 1fr);}
}

/* Holster Builder css END */


/* Preview css */

.layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:42px;align-items:start}
.preview{position:sticky;top:90px}
.stage{min-height:680px;border:1px solid var(--line);border-radius:20px;overflow:hidden;position:relative;background:#0e1012;display:grid;place-items:center}
.stagebg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.62}
.stage::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.1),transparent 35%),linear-gradient(145deg,rgba(0,0,0,.1),rgba(0,0,0,.48))}
.holster{position:relative;width:min(74%,560px);aspect-ratio:.74;z-index:2;filter:drop-shadow(0 32px 28px rgba(0,0,0,.56));transition:.25s}
.shell{position:absolute;inset:7% 14% 5% 11%;border-radius:24% 18% 21% 29%/16% 18% 25% 22%;background-image:var(--base-tex);background-size:cover;background-position:center;border:2px solid rgba(255,255,255,.22);box-shadow:inset -35px -24px 50px rgba(0,0,0,.38),inset 0 0 0 4px rgba(0,0,0,.18);transform:rotate(-6deg)}
.channel{position:absolute;width:18%;height:43%;right:16%;top:3%;border-radius:22px;background:#0b0c0d;border:1px solid #34383d;transform:rotate(-6deg);z-index:3}
.clip{position:absolute;width:14%;height:48%;left:10%;top:14%;border-radius:12px;background:linear-gradient(#27292c,#060607);border:2px solid #3e4247;transform:rotate(-4deg);z-index:4}
.washer{position:absolute;width:36px;height:36px;border-radius:50%;left:23%;top:36%;background:var(--washer);border:2px solid rgba(255,255,255,.3);z-index:5;box-shadow:0 3px 9px #000}
.stamp{position:absolute;right:22%;bottom:16%;z-index:5;font-weight:900;letter-spacing:.16em;color:rgba(255,255,255,.78);transform:rotate(-6deg)}
.caption{display:flex;justify-content:space-between;color:var(--muted);padding:15px 3px 0;font-size:.88rem}
.thumbrow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.thumb{background:#0f1113;border:1px solid var(--line);border-radius:10px;padding:9px;text-align:center;color:var(--muted);font-size:.78rem}
.thumb.active{border-color:var(--gold);color:var(--text)}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.productHead{padding:28px;border-bottom:1px solid var(--line)}
.badge{display:inline-block;background:#211c10;border:1px solid #4b3e20;color:#ead9ab;border-radius:999px;padding:7px 10px;font-size:.72rem;letter-spacing:.09em;text-transform:uppercase}
.kicker{color:var(--gold);font-size:.76rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}