/* SDP Frontend Styles */

/* =============================================
   CHECKOUT PAGE — Two-column layout
   ============================================= */
.sdp-checkout-wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0 0 40px;
}
@media (max-width: 768px) {
    .sdp-checkout-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Breadcrumb */
.sdp-checkout-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sdp-checkout-breadcrumb a { color: #6366f1; text-decoration: none; font-weight: 500; }
.sdp-checkout-breadcrumb a:hover { text-decoration: underline; }
.sdp-checkout-breadcrumb .sdp-bc-sep { color: #cbd5e1; }
.sdp-checkout-breadcrumb .sdp-bc-current { color: #1e293b; font-weight: 700; }

/* Section */
.sdp-checkout-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sdp-checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 22px;
    letter-spacing: -.01em;
}

/* Fields */
.sdp-field { margin-bottom: 16px; }
.sdp-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.sdp-req { color: #ef4444; }
.sdp-field input[type="text"],
.sdp-field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #f8fafc;
    color: #1e293b;
}
.sdp-field input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* Secure note */
.sdp-checkout-secure-note {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin: 20px 0 0;
}

/* ── RIGHT COLUMN: Order Details ── */
.sdp-checkout-right {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    align-self: start;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Product card */
.sdp-order-product-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    margin-bottom: 20px;
}
.sdp-order-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
}
.sdp-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sdp-order-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.sdp-order-product-info {
    flex: 1;
    min-width: 0;
}
.sdp-order-product-badge {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sdp-order-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
}
.sdp-order-product-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.5;
}
.sdp-order-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
}

/* Price breakdown */
.sdp-order-breakdown {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-bottom: 20px;
}
.sdp-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}
.sdp-order-row .sdp-currency {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.sdp-order-row .sdp-amount {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.sdp-order-row-discount .sdp-discount-value,
.sdp-order-row-promo .sdp-discount-value {
    color: #16a34a;
    font-weight: 600;
}
.sdp-order-row-total {
    border-top: 1.5px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 14px;
}
.sdp-order-row-total span:first-child {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.sdp-order-total-value .sdp-currency {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
}
.sdp-order-total-value .sdp-amount {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

/* Terms */
.sdp-checkout-terms {
    margin-bottom: 18px;
}
.sdp-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}
.sdp-terms-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    flex-shrink: 0;
    cursor: pointer;
}
.sdp-terms-label a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}
.sdp-terms-label a:hover { text-decoration: underline; }

/* Checkout button */
.sdp-btn-checkout {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
    letter-spacing: .02em;
}
.sdp-btn-checkout:hover,
.sdp-btn-checkout:focus {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.sdp-btn-checkout:active { transform: scale(.98); }
.sdp-btn-checkout:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Legacy .sdp-btn kept for buttons elsewhere */
.sdp-btn {
    display: inline-block;
    padding: 13px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.sdp-btn:hover { background: #4f46e5; }
.sdp-btn:active { transform: scale(.98); }
.sdp-btn:disabled { background: #a5b4fc; cursor: not-allowed; }

.sdp-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.sdp-message.sdp-error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.sdp-message.sdp-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }

.sdp-notice {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    text-align: center;
}

/* =============================================
   THANK YOU PAGE
   ============================================= */
.sdp-thankyou-wrap {
    text-align: center;
    max-width: 560px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sdp-ty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}
.sdp-ty-success-icon { animation: sdp-pop .4s ease; }
@keyframes sdp-pop {
    0%   { transform: scale(.5); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.sdp-ty-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.sdp-ty-subtitle {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Email notice box */
.sdp-ty-email-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    margin-bottom: 24px;
}
.sdp-ty-notice-warning {
    background: #fffbeb;
    border-color: #fde68a;
}
.sdp-ty-notice-error {
    background: #fff1f2;
    border-color: #fecdd3;
}
.sdp-ty-email-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.sdp-ty-email-notice strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.sdp-ty-email-notice p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Order detail box */
.sdp-ty-order-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
}
.sdp-ty-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid #f0f4f8;
    gap: 12px;
}
.sdp-ty-detail-row:last-child { border-bottom: none; }
.sdp-ty-detail-row span:first-child { color: #64748b; flex-shrink: 0; }
.sdp-ty-detail-row span:last-child,
.sdp-ty-detail-row code { color: #1a1a2e; font-weight: 500; word-break: break-all; text-align: right; }
.sdp-ty-detail-row code {
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: .5px;
}

/* Buttons */
.sdp-ty-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    margin: 4px;
}
.sdp-ty-btn:hover { background: #4f46e5; color: #fff; }
.sdp-ty-btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}
.sdp-ty-btn-outline:hover { background: #f0f4ff; color: #4f46e5; }

/* =============================================
   CATALOG - Product List Grid
   ============================================= */
.sdp-catalog-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sdp-catalog-grid {
    display: grid;
    grid-template-columns: repeat( var(--sdp-cols, 3), 1fr );
    gap: 24px;
}
@media (max-width: 900px) { .sdp-catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sdp-catalog-grid { grid-template-columns: 1fr; } }

.sdp-catalog-empty {
    grid-column: 1/-1;
    text-align: center;
    color: #94a3b8;
    padding: 48px 0;
    font-size: 15px;
}

/* Card */
.sdp-product-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.sdp-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.sdp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(99,102,241,.15);
    border-color: #a5b4fc;
}
.sdp-product-card:hover::before { opacity: 1; }

/* Image area */
.sdp-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 16/10;
}
.sdp-card-thumb,
.sdp-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.sdp-product-card:hover .sdp-card-thumb,
.sdp-product-card:hover .sdp-card-img-link img { transform: scale(1.06); }

/* Image overlay gradient on hover */
.sdp-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,24,39,.35) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s ease;
}
.sdp-product-card:hover .sdp-card-img-overlay { opacity: 1; }

/* Placeholder when no image */
.sdp-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 50%, #faf5ff 100%);
}
.sdp-placeholder-emoji { font-size: 52px; line-height: 1; }
.sdp-placeholder-ext {
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Badges container */
.sdp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    z-index: 3;
}

.sdp-file-badge {
    background: rgba(17,24,39,.75);
    backdrop-filter: blur(6px);
    color: #e0e7ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.15);
}
.sdp-file-badge-lg {
    position: relative;
    top: auto; left: auto;
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: #6366f1;
    color: #fff;
}

/* Card body */
.sdp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.sdp-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.sdp-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.sdp-card-title a:hover { color: #6366f1; }

.sdp-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta chips row */
.sdp-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.sdp-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .1px;
    text-transform: uppercase;
}
.sdp-card-meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #818cf8;
    flex-shrink: 0;
    display: none;
}

/* Footer */
.sdp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f4f8;
}

.sdp-card-price-block { display: flex; flex-direction: column; gap: 2px; }
.sdp-card-price { line-height: 1; }
.sdp-card-price .sdp-currency { font-size: 13px; font-weight: 700; color: #6366f1; }
.sdp-card-price .sdp-amount   { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }

.sdp-btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(99,102,241,.35);
    letter-spacing: .1px;
}
.sdp-btn-buy:hover,
.sdp-btn-buy:focus {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99,102,241,.5);
}
.sdp-btn-buy:active { transform: scale(.97); }
.sdp-btn-buy-icon { font-size: 13px; }

/* =============================================
   DETAIL - Single Product Page (Revamped)
   ============================================= */
.sdp-detail-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.sdp-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sdp-breadcrumb a { color: #6366f1; text-decoration: none; font-weight: 500; }
.sdp-breadcrumb a:hover { text-decoration: underline; }
.sdp-bc-sep { color: #cbd5e1; font-size: 11px; }
.sdp-bc-current { color: #1e293b; font-weight: 600; }

/* Grid layout */
.sdp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}
@media (max-width: 720px) {
    .sdp-detail-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Image */
.sdp-detail-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}
.sdp-detail-thumb {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: transform .4s ease;
}
.sdp-detail-media:hover .sdp-detail-thumb {
    transform: scale(1.03);
}
.sdp-detail-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e0e7ff 0%, #faf5ff 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sdp-placeholder-icon { font-size: 72px; }
.sdp-detail-ext {
    background: #6366f1;
    color: #fff;
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Sale badge on image */
.sdp-sale-badge-img {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}

/* Type badge */
.sdp-detail-type-badge {
    display: inline-block;
    background: #eef2ff;
    color: #6366f1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid #e0e7ff;
    margin-bottom: 12px;
}

/* Info column */
.sdp-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.sdp-detail-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 20px;
}

/* Meta chips */
.sdp-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.sdp-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 24px;
    transition: border-color .2s, background .2s;
}
.sdp-detail-chip:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}
.sdp-chip-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Purchase card */
.sdp-detail-purchase {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.sdp-detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.sdp-detail-price .sdp-currency { font-size: 14px; font-weight: 700; color: #6366f1; }
.sdp-detail-price .sdp-amount   { font-size: 32px; font-weight: 900; color: #0f172a; letter-spacing: -.02em; }

.sdp-btn-purchase {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 36px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.sdp-btn-purchase:hover,
.sdp-btn-purchase:focus {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.sdp-btn-purchase:active { transform: scale(.97); }

.sdp-detail-guarantee {
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 0;
}

/* Description */
.sdp-detail-description {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.sdp-detail-description h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f0f4f8;
}
.sdp-description-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
}
.sdp-description-content p { margin: 0 0 16px; }
.sdp-description-content p:last-child { margin-bottom: 0; }

/* Related products */
.sdp-related {
    padding-top: 8px;
    margin-bottom: 20px;
}
.sdp-related h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
}


/* =============================================
   SALE BADGE + STRIKETHROUGH PRICING
   ============================================= */
.sdp-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(225,29,72,.4);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    margin-left: auto;
}
.sdp-sale-badge-detail,
.sdp-sale-badge-img {
    position: absolute;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 8px;
    margin-left: 0;
}

/* Strikethrough original price */
.sdp-price-original {
    text-decoration: line-through;
    opacity: .55;
    margin-right: 6px;
}
.sdp-price-original .sdp-currency { font-size: 11px; font-weight: 700; color: #94a3b8; }
.sdp-price-original .sdp-amount   { font-size: 14px; font-weight: 600; color: #94a3b8; }

/* Card on-sale highlight */
.sdp-card-on-sale { border-color: #fecdd3; }
.sdp-card-on-sale:hover { border-color: #e11d48; box-shadow: 0 8px 24px rgba(225,29,72,.12); }

/* Price wrap flex */
.sdp-price-wrap { display: flex; align-items: baseline; flex-direction: column; flex-wrap: wrap; gap: 4px; }
.sdp-card-footer .sdp-price-wrap { flex-direction: column; gap: 2px; align-items: flex-start; }
.sdp-card-price .sdp-currency { font-size: 18px; font-weight: 700; color: #6366f1; }
.sdp-card-price .sdp-amount   { font-size: 18px; font-weight: 800; color: #1a1a2e; }

/* Detail page sale price */

.sdp-detail-price-current, .sdp-detail-price-original { line-height: 1; }
.sdp-detail-price-original .sdp-currency { font-size: 12px; color: #94a3b8; }
.sdp-detail-price-original .sdp-amount   { font-size: 18px; font-weight: 600; color: #94a3b8; text-decoration: line-through; }
.sdp-detail-price-current .sdp-currency  { font-size: 14px; font-weight: 700; color: #6366f1; }
.sdp-detail-price-current .sdp-amount    { font-size: 32px; font-weight: 900; color: #0f172a; letter-spacing: -.02em; }

/* =============================================
   PROMO CODE FIELD
   ============================================= */
.sdp-promo-field { margin-bottom: 20px; }
.sdp-promo-optional { color: #94a3b8; font-weight: 400; font-size: 11px; }

.sdp-promo-row {
    display: flex;
    gap: 8px;
}
.sdp-promo-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 1px;
    background: #fafafa;
    box-sizing: border-box;
}
.sdp-promo-row input:focus { outline: none; border-color: #6366f1; background: #fff; }

.sdp-btn-promo {
    padding: 10px 18px;
    background: #f0f4ff;
    color: #6366f1;
    border: 1.5px solid #c7d7f7;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.sdp-btn-promo:hover { background: #e0e7ff; color: #4f46e5; border-color: #c7d7f7; }

.sdp-promo-msg {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}
.sdp-promo-ok  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.sdp-promo-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.sdp-promo-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}
.sdp-promo-summary-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Checkout price original strikethrough when promo applied */
.sdp-price-original {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* Thank you — discount row */
.sdp-ty-discount-row span:last-child { color: #16a34a; }

