/* Premium modals — Add to Cart & Quick View */
.iz-modal-dialog { max-width: 920px; }
#quickViewModal .iz-modal-dialog { max-width: 1040px; }

.iz-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(8, 20, 40, 0.22);
}

.iz-modal-header {
    border: none;
    padding: 18px 22px 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.iz-modal-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #006ECC;
    margin-bottom: 4px;
}

.iz-modal-header .iz-brand-lockup--compact {
    margin-bottom: 4px;
}
.iz-modal-header .iz-brand-lockup--compact .iz-brand-lockup__name {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #006ECC;
}

.iz-modal-close {
    font-size: 28px;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.iz-modal-close:hover { opacity: 0.85; }

.iz-modal-body { padding: 0 22px 18px; }

.iz-modal-gallery { padding: 12px 14px 16px 0; }

.iz-modal-main-wrap,
.qv-main-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #f4f7fb, #eef3f9);
    box-shadow: inset 0 0 0 1px rgba(13, 43, 85, 0.06);
}

.iz-modal-main-img,
.qv-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.iz-modal-main-wrap:hover .iz-modal-main-img,
.qv-main-img-wrap:hover .qv-main-img { transform: scale(1.03); }

.iz-modal-img-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.iz-modal-img-btn {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0D2B55;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.iz-modal-img-btn:hover {
    transform: scale(1.06);
    background: #fff;
}

.iz-modal-img-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.qv-img-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(8, 20, 40, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.iz-modal-thumbs,
.qv-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 2px 2px;
    scrollbar-width: thin;
}

.iz-modal-thumbs::-webkit-scrollbar,
.qv-thumbs::-webkit-scrollbar { height: 5px; }

.iz-modal-thumb,
.qv-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    background: #f1f5f9;
}

.iz-modal-thumb img,
.qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iz-modal-thumb.active,
.iz-modal-thumb:hover,
.qv-thumb.active,
.qv-thumb:hover {
    border-color: #006ECC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 110, 204, 0.18);
}

.iz-modal-details { padding: 12px 4px 8px 18px; }

.iz-modal-product-name,
.qv-title {
    font-size: 20px;
    font-weight: 700;
    color: #0D2B55;
    line-height: 1.35;
    margin-bottom: 8px;
}

.iz-modal-price,
.qv-price {
    display: inline-block;
    font-size: 26px;
    font-weight: 800;
    color: #006ECC;
    margin-bottom: 14px;
}

.iz-modal-description-wrap {
    margin-top: -4px;
    margin-bottom: 14px;
}

.iz-modal-description {
    font-size: 13px;
    line-height: 1.6;
    color: #5a6578;
    max-height: 130px;
    overflow-y: auto;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.iz-modal-description p:last-child { margin-bottom: 0; }
.iz-modal-description img { max-width: 100%; height: auto; border-radius: 6px; }
.iz-modal-description ul, .iz-modal-description ol { padding-left: 18px; margin-bottom: 8px; }

.iz-modal-section { margin-bottom: 16px; }

.iz-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.iz-modal-label-hint {
    color: #006ECC;
    font-weight: 600;
    margin-left: 6px;
}

.iz-swatch-row,
.qv-color-swatches,
.iz-size-row,
.qv-size-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-size-btn,
.qv-size-btn {
    min-width: 46px;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #d7e3f0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-size-btn:hover,
.qv-size-btn:hover {
    border-color: #006ECC;
    color: #006ECC;
}

.modal-size-btn.active,
.qv-size-btn.active {
    border-color: #006ECC;
    background: linear-gradient(135deg, #006ECC, #0052a3);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 110, 204, 0.28);
}

.iz-modal-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iz-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d7e3f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.iz-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.iz-qty-btn:hover {
    background: #006ECC;
    color: #fff;
}

.iz-qty-input,
.modal-qty-input {
    width: 52px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    background: transparent;
}

.iz-modal-footer {
    border: none;
    padding: 14px 22px 20px;
    gap: 10px;
    background: #fafcff;
}

.iz-btn-cancel {
    flex: 1;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 1.5px solid #d7e3f0;
    background: #fff;
    color: #475569;
}

.iz-btn-cancel:hover {
    background: #f1f5f9;
    color: #0D2B55;
}

.iz-btn-primary {
    flex: 1.4;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #006ECC 0%, #0052a3 100%);
    box-shadow: 0 8px 22px rgba(0, 110, 204, 0.32);
    transition: transform 0.2s, box-shadow 0.2s;
}

.iz-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 110, 204, 0.4);
    color: #fff;
}

.iz-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.iz-btn-primary.iz-btn-order {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
}

.modal-field-error {
    margin-top: 6px;
    font-size: 12.5px;
    color: #e53e3e;
    font-weight: 500;
    animation: izFadeInDown 0.2s ease;
}

.modal-field-error i { margin-right: 4px; }

.modal-size-btn.input-error,
.modal-color-swatch.input-error { box-shadow: 0 0 0 2px #e53e3e !important; }

@keyframes izFadeInDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick View */
.qv-gallery { padding: 16px 16px 20px; }

.qv-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.6px;
}

.qv-badge-sale { background: #dc3545; color: #fff; }
.qv-badge-new { background: #198754; color: #fff; }
.qv-badge-hot { background: #ff6b35; color: #fff; }

.qv-details { padding: 20px 24px 24px 8px; }

.qv-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #006ECC;
    font-weight: 700;
}

.qv-price-box { margin: 10px 0 12px; }

.qv-original-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

.qv-discount-tag {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.qv-meta-row { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.qv-meta-label { font-weight: 700; color: #334155; margin-right: 6px; }

.qv-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.qv-action-btns {
    display: flex;
    gap: 10px;
    margin: 18px 0 8px;
    flex-wrap: wrap;
}

.qv-btn-cart {
    flex: 1;
    min-width: 140px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #006ECC, #0052a3);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 110, 204, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.qv-btn-cart:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 110, 204, 0.36);
}

.qv-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.qv-btn-view {
    flex: 1;
    min-width: 140px;
    padding: 13px 20px;
    background: #0D2B55;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.qv-btn-view:hover {
    background: #081428;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .iz-modal-details { padding: 16px 0 4px; }
    .iz-modal-gallery { padding-right: 0; }
    .iz-modal-footer { flex-direction: column; }
    .qv-details { padding: 16px 18px 20px; }
}
