/* Shoresh — Variation Selection Modal + Back-in-Stock Notify Modal */

/* ── Notify me link (single product page) ─────────────────────── */
.shoresh-notify-wrap {
    margin-top: 0.75rem;
    text-align: center;
}
.shoresh-notify-trigger {
    color: #D93F0C;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}
.shoresh-notify-trigger:hover {
    text-decoration: underline;
    color: #D93F0C;
}

/* ── Notify modal ─────────────────────────────────────────────── */
.shoresh-notify-modal .modal-content  { border: none; border-radius: 0; }
.shoresh-notify-modal .modal-header   { border-bottom: 1px solid #e5e5e5; padding: 1.25rem 1.5rem; }
.shoresh-notify-modal .modal-title    { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.shoresh-notify-modal .modal-body     { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.shoresh-notify-modal .modal-footer   { border-top: 1px solid #e5e5e5; padding: 1rem 1.5rem; }

.notify-product-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.notify-product-img img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
    border: 1px solid #e5e5e5;
}
.notify-product-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.notify-product-attrs {
    font-size: 0.875rem;
    color: #666;
}

.notify-email {
    border-radius: 0;
    border: 1px solid #ccc;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}
.notify-email:focus {
    border-color: #1D2321;
    box-shadow: none;
    outline: none;
}

.notify-message {
    font-size: 0.875rem;
    min-height: 1.2em;
}
.notify-message--success { color: #2e7d32; }
.notify-message--error   { color: #c62828; }

.shoresh-notify-modal .notify-submit {
    padding: 0.875rem;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    border-radius: 0;
}

/* Shoresh — Variation Selection Modal */

.shoresh-var-modal .modal-content {
    border: none;
    border-radius: 0;
}

.shoresh-var-modal .modal-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 1.25rem 1.5rem;
}

.shoresh-var-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shoresh-var-modal .modal-body {
    padding: 1.5rem;
}

.shoresh-var-modal .modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 1rem 1.5rem;
}

/* Attribute group */
.svm-attr {
    margin-bottom: 1.25rem;
}
.svm-attr:last-child {
    margin-bottom: 0;
}

.svm-attr-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.625rem;
    color: #888;
}

.svm-attr-label .svm-selected-val {
    color: #1D2321;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Color swatches (image-based) */
.svm-swatches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.svm-swatch {
    width: 58px;
    height: 58px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 2px;
    background: none;
    transition: border-color 0.15s;
    outline: none;
}
.svm-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Solid-color swatch (hex from Variation Swatches plugin) */
.svm-swatch--color {
    border-radius: 50%;
}
.svm-swatch-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.svm-swatch.active {
    border-color: #D93F0C;
}
.svm-swatch:hover:not(:disabled):not(.active) {
    border-color: #1D2321;
}
.svm-swatch:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Side / option buttons */
.svm-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.svm-option-btn {
    padding: 0.5rem 1.5rem;
    border: 1.5px solid #1D2321;
    background: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border-radius: 0;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
}
.svm-option-btn.active {
    background: #1D2321;
    color: #fff;
}
.svm-option-btn:hover:not(:disabled):not(.active) {
    background: #f5f5f5;
}
.svm-option-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* OOS message */
.svm-oos-msg {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    color: #c62828;
    font-weight: 500;
    border-top: 1px solid #f5e0e0;
    background: #fff8f8;
}

/* "Go to product page" button state */
.shoresh-var-modal .shoresh-modal-add[data-action="navigate"] {
    --bs-btn-bg: #1D2321;
    --bs-btn-border-color: #1D2321;
    --bs-btn-hover-bg: #333;
    --bs-btn-hover-border-color: #333;
}

/* Add to Bag button */
.shoresh-var-modal .shoresh-modal-add {
    padding: 0.875rem;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
}
