.sb-card{max-width:720px;margin:20px auto;border:2px solid #20c997;border-radius:18px;padding:18px;background:#fff;box-shadow:0 6px 26px rgba(0,0,0,.05)}
.sb-header{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:12px}
.sb-header h3{margin:0;font-size:22px}
.sb-meta {
    display: flex;
    font-size: 14px;
    color: #444;
    flex-direction: column;
    align-items: center;
}
.sb-meta .sb-money {
    font-size: 2em;
    color: #6d6c69;
}
.sb-body{display:flex;flex-direction:column;gap:10px}
.sb-row{display:grid;grid-template-columns:56px 1fr 140px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px;position:relative;transition:box-shadow .2s}
.sb-row.active{box-shadow:0 0 0 3px rgba(32,201,151,.15)}
.sb-check{display:flex;align-items:center;justify-content:center}
.sb-check input{display:none}
.sb-box{width:40px;height:40px;border:2px solid #bbb;border-radius:10px;display:inline-block;position:relative;transition:all .15s}
.sb-row.active .sb-box{border-color:#20c997;background:rgba(32,201,151,.08)}
.sb-txt .sb-title{font-weight:700;margin-bottom:2px}
.sb-desc, .sb-txt .sb-desc{font-size:12px;color:#666} /* General desc style */
.sb-prices{display:flex;flex-direction:column;align-items:flex-end;font-weight:700;text-align: right;}
.sb-sale{color:#a0a0a0;text-decoration: line-through;}
.sb-hidden{grid-column:1 / span 3;display:none;padding:10px;border-top:1px solid #eee}
.sb-counter{display:flex;gap:6px;align-items:center}
.sb-counter button{width:36px;height:36px;border-radius:10px;border:1px solid #ddd;background:#f7f7f7}
.sb-qty-input{width:90px;height:36px;border:1px solid #ddd;border-radius:10px;text-align:center}
.sb-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sb-opt{border:1px solid #009688;background:#fff;border-radius:12px;min-height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:5px;position:relative;overflow:hidden;text-align:center;transition:all .2s ease-out;}
.sb-opt.active {
    background: linear-gradient(45deg, #209388, #0ab1a1);
    border-color: #20c997 !important;
    color: #fff !important;
}
.sb-opt-title { font-weight: 600; transition: all 0.2s ease-out; }
.sb-opt-price-details {
    font-size: 1.1em;
    line-height: 1.3;
    margin-top: 2px;
    position: absolute;
    bottom: -5px;
    opacity: 0;
    transition: all 0.2s ease-out;
}
.sb-opt-price-details span { display: block; }
.sb-opt.active .sb-opt-title { transform: translateY(-8px); }
.sb-opt.active .sb-opt-price-details {
    transform: translateY(-10px);
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sb-footer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: 50px;
    background: #f1fbff;
    padding: 10px;
    border-radius: 15px;
}
.sb-sum-line,.sb-discount-line{display:flex;justify-content:space-between;font-size:16px}
.sb-actions{display:flex;justify-content:space-between;align-items:center}
.sb-actions .sb-addtocart {
    background: #20c997;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
button.sb-addtocart::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 45%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
.guarantee-badges-desktop {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.gb-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sb-row label.sb-check input[disabled] + .sb-box{background-color:#f0f0f0;cursor:not-allowed;border-color:#ccc}
.sb-row label.sb-check input[disabled]:checked + .sb-box{background-color:rgba(32,201,151,.2);border-color:#20c997}
/* Toast Notification Styles */
#sb-toast-container{position:fixed;top:60px;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;gap:10px;align-items:center}
.sb-toast{font-family:inherit;padding:12px 20px;border-radius:8px;color:#fff;font-size:14px;opacity:0;transform:translateY(-20px);transition:opacity .3s ease,transform .3s ease;box-shadow:0 4px 12px rgba(0,0,0,.15);min-width:250px;text-align:center}
.sb-toast.show{opacity:1;transform:translateY(0)}
.sb-toast.sb-toast-error{background-color:#dc3545}
.sb-toast.sb-toast-success{background-color:#28a745}
/* Separator Styles */
.sb-separator{text-align:center;margin:30px 0 25px}
.sb-separator-header{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}
.sb-separator h4{position:relative;margin:0;padding-bottom:6px;font-size:22px;font-weight:700;color:#2c3e50;white-space:nowrap}
.sb-separator h4::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:3px;border-radius:1.5px;background-color:var(--line-color,#20c997)}
.sb-separator-svg{max-height:28px;max-width:28px;display:block}
.sb-separator-desc{font-size:14px;color:#555;margin-top:0;line-height:1.6;max-width:650px;margin-left:auto;margin-right:auto}
/* Text Field Styles */
.sb-row-text{margin-bottom:12px}
.sb-text-label{font-weight:600;font-size:14px;margin-bottom:2px;display:block}
.sb-row-text .sb-desc { margin-bottom: 6px; }
.sb-required{color:#dc3545;margin-right:3px}
.sb-text-input{width:100%;border:1px solid #d0d7de;border-radius:8px;padding:8px 10px;box-sizing:border-box;}
.sb-text-input:focus{border-color:#20c997;box-shadow:0 0 0 3px rgba(32,201,151,.15);outline:none}
.sb-text-input.sb-invalid{border-color:#dc3545}
/* Popup Modal Styles */
.sb-popup-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:10000;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease-in-out, visibility .2s; visibility:hidden; pointer-events:none}
.sb-popup-overlay:not(.hidden){opacity:1; visibility:visible; pointer-events:auto;}
.sb-popup-modal{background:#fff;padding:20px;border-radius:12px;width:90%;max-width:450px;box-shadow:0 5px 25px rgba(0,0,0,.15);transform:scale(.95);transition:transform .2s ease-in-out}
.sb-popup-overlay:not(.hidden) .sb-popup-modal{transform:scale(1)}
.sb-popup-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid #eee;margin-bottom:15px}
.sb-popup-header h3{font-size:18px;margin:0}
.sb-popup-close{background:none;border:none;font-size:24px;cursor:pointer;color:#888}
.sb-popup-body{max-height: 70vh; overflow-y: auto;}
.sb-popup-body .sb-row-text, .sb-popup-body .sb-row{margin-bottom:15px}
.sb-popup-footer{margin-top:20px;text-align:left}
.sb-addtocart-popup{background:#20c997;border:none;color:#fff;padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}


.guarantee-badges-mobile {
	display: none;
}
/* ریسپانسیو */
/* Mobile */
@media (max-width: 768px) {
	.guarantee-badges-desktop {
		display: none;
	}
	.guarantee-badges-mobile {
		display: flex;
		justify-content: center;
		gap: 15px;
		margin-top: 20px;
		font-size: 0.75rem;
		color: var(--text-muted);
	}
	button.sb-addtocart::after {
		width: 85%;
	}
	.sb-footer {
		display: flex;
		flex-direction: row-reverse;
		position: fixed;
		z-index: 400;
		bottom: 5px;
		width: 95%;
		margin: 0px -25px;
		justify-content: space-around;
		background-color: #ffffff;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
		border-top: 2px solid #3b82f6;
	}
	.sb-sum-line, .sb-discount-line {
		justify-content: center;
		flex-direction: column;
		align-items: center;
		font-size: 1em;
	}
	.sb-popup-footer {
		display: flex;
		flex-direction: row-reverse;
		justify-content: space-around;
	}
	.sb-discount-line {
		background-color: #f0fdf4;
		border: 1px dashed #22c55e;
		border-radius: 10px;
		padding: 1px 5px;
		color: #166534;
	}
	.sb-options {
		grid-template-columns: repeat(2,1fr);
	}
}
@media (max-width:376px) {
	.sb-opt.active {
		height: 55px;
	}
	.sb-opt.active .sb-opt-price-details {
		transform: translateY(-10px);
		gap: 0;
		flex-direction: column;
	}
	/* .sb-opt.active .sb-opt-title {
		transform: translateY(-15px);
	} */
	
}

.sb-opt.active .sb-opt-title {
		display: none;
	}
	
	
	
.sb-opt .sb-opt-price-details:has(span:only-child) {
    bottom: 10px;
}
.sb-opt .sb-opt-price-details:not(:has(span:only-child)) span:nth-child(1) {
    color: #dddddd;
}
.sb-hidden:has(.sb-options) {
    padding: 10px 0 0;
}


/* --- Step 1: Hide the default browser checkbox (same as above) --- */
.sb-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* --- Step 2: Style the custom checkbox box (.sb-box) --- */
.sb-box {
    position: relative;
    display: inline-flex; /* Use flex to center the SVG */
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* --- Step 3: Style the SVG path for the animation --- */
.sb-box svg {
    width: 24px;
    height: 24px;
}

.sb-box .tick-path {
    /* The magic happens here */
    stroke-dasharray: 30; /* Approximate length of the path */
    stroke-dashoffset: 30; /* Hides the path initially */
    transition: stroke-dashoffset 0.5s ease-in-out;
}

/* --- Step 4: Define the styles for the CHECKED state --- */
.sb-check input[type="checkbox"]:checked + .sb-box {
    background-color: #009688;
}

/* Animate the path by setting the offset to 0 */
.sb-check input[type="checkbox"]:checked + .sb-box .tick-path {
    stroke-dashoffset: 0;
}