/* ==========================================================================
   بخش سفارشی‌سازی گلدوزی - لوکاس
   این فایل رو یا انتهای market_min3.css اضافه کن، یا به صورت جدا لینک کن.
   ========================================================================== */

.embroidery-box {
    background: #f9f9fa;
    border: 1px solid #dfdfe3;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 22px;
}
.embroidery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.embroidery-header-text h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #2b2318;
}

.embroidery-sub {
    margin: 0;
    font-size: 13px;
    color: #8a7f6c;
}

/* تاگل - عینا همون سبک تاگل نهایی‌سازی سفارش */
.premium-switch-container {
    display: inline-block;
    position: relative;
    width: 56px;
    height: 30px;
    cursor: pointer;
    flex: none;
}
.premium-switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}
.premium-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}
.premium-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.premium-switch-container input:checked + .premium-switch-slider {
    background-color: #1b2a4a; /* هم‌رنگ تم سرمه‌ای سایت */
}
.premium-switch-container input:checked + .premium-switch-slider:before {
    transform: translateX(26px); /* 56px track - 22px thumb - 4px*2 margin = 26px */
}

.embroidery-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
}
.embroidery-body.embroidery-open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #eee0d0;
}

.embroidery-step { margin-bottom: 18px; }
.embroidery-step:last-child { margin-bottom: 0; }

.embroidery-step-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2318;
    margin-bottom: 8px;
}

.size-info-link {
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    white-space: nowrap;
}
.size-info-link i { margin-left: 3px; }

/* دکمه‌های سگمنتی (لوگو/نوشته ، سینه/مچ ، چپ/راست) */
.seg-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.seg-btn {
    flex: 1;
    min-width: 110px;
    padding: 10px 14px;
    border: 1.5px solid #e9e9e9;
    background: #ffffff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6b5e48;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.seg-btn:hover { border-color: #c9a227; }
.seg-btn.active {
    background: #1b2a4a;
    border-color: #1b2a4a;
    color: #fff;
}
.seg-btn-sm { min-width: 80px; flex: none; padding: 8px 20px; }

/* کارت‌های سایز */
.size-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .size-cards { grid-template-columns: 1fr; }
}
.size-card {
    border: 1.5px solid #dfdfe3;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all .15s ease;
    background: #f5f5f5;
}
.size-card:hover { border-color: #c9a227; }
.size-card.active {
    border-color: #1b2a4a;
    background: #f1f3f8;
}
.size-card-title { font-weight: 800; color: #2b2318; margin-bottom: 3px; }
.size-card-dim { font-size: 12px; color: #8a7f6c; margin-bottom: 6px; }
.size-card-price { font-size: 13px; font-weight: 700; color: #1b2a4a; }

/* رنگ‌های دایره‌ای */
.color-dots { display: flex; gap: 12px; flex-wrap: wrap; }
.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e3d9c6;
    transition: box-shadow .15s ease;
}
.color-dot.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1b2a4a;
    transform: scale(1.08);
}

.embroidery-total {
    background: #f1f3f8;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #2b2318;
    text-align: center;
}
.embroidery-total b { color: #1b2a4a; font-size: 15px; }

.embroidery-hint { font-size: 12px; color: #8a7f6c; margin-top: 6px; }

/* آپلودر و تکست‌باکس‌های مخصوص هر حالت - پیش‌فرض مخفی، فقط با JS نمایش داده میشن.
   دقت: display با JS ست میشه نه با asp:Visible، تا فایل انتخابی موقع پستبک نپره. */
.embroidery-only-logo,
.embroidery-only-text {
    display: none;
}

/* راهنمای اندازه‌ها - محتوای داخل مودال Fancybox (خود Fancybox قاب/بک‌دراپ رو می‌سازه) */
.embroidery-size-svg { width: 100%; max-width: 280px; height: auto; margin: 10px auto 16px; display: block; }
.embroidery-size-legend { margin-bottom: 14px; }
.embroidery-size-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #444;
    margin-bottom: 8px;
}
.embroidery-size-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: none;
}
.embroidery-size-modal-note { font-size: 12.5px; color: #8a7f6c; margin: 0; }
