/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
:root {
    --sutore-black: #1a1a1a;
    --sutore-gray: #f5f5f5;
    --sutore-border: #e0e0e0;
    --sutore-text-light: #757575;
    --sutore-success: #166534;
    --sutore-error: #d32f2f;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --anim-speed: 0.3s;
}
html.resale-modal-open,
body.resale-modal-open {
    overflow: hidden !important;
}

/* =========================================
   2. MANIFESTO & DASHBOARD (Başlangıç Ekranı)
   ========================================= */
/* --- CONTAINER --- */
.sutore-dashboard-v2 {
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero-cycle-section {
    text-align: center;
    padding: 0 0 45px;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
    border-radius: 16px;
}

.cycle-container {
    position: relative;
    width: 225px;
    height: 225px;
    margin: 0 auto 20px;
}

/* Dönen Yazı */
.rotating-text-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: rotateText 20s linear infinite;
    pointer-events: none;
}

.rotating-text-svg {
    width: 100%;
    height: 100%;
    fill: #000;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Değişen Resim */
.center-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
    transform: scale(0.9);
}

.hero-img.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: -0.5px;
}

.hero-content p {
    color: #222;
    margin: 0;
}

/* --- ACTION AREA & BUTTONS --- */
.action-footer {
    text-align: center;
    margin-top: 30px;
}

#btn-open-resale-wizard,
a.sutore-btn-outline{
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    padding: 16px !important;
    line-height: normal;
    border-radius: 8px;
    height: 52px !important;
    box-shadow: none;
    margin: 0 !important;
    text-transform: capitalize !important;
    font-weight: 400 !important;
    align-content: center;
    color: #fff;
    border: 1px solid #222;
    background: #222;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.9rem, 1.2vw, 1rem) !important;
    width: 25%;
}

#btn-open-resale-wizard:hover,
a.sutore-btn-outline:hover{
    background: #333;
    color: #fff !important;
}

a.sutore-btn-outline{
    margin-top: 8px !important;
}

/* --- QR POPUP (NEW) --- */
.sutore-qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.sutore-qr-modal {
    background: #fff;
    padding: 45px;
    max-width: 420px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: popupUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#desktop-qr-view button.close-qr-modal {
    position: absolute;
    top: -5px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px !important;
    font-weight: normal;
    cursor: pointer !important;
    line-height: 1;
    color: #333;
    padding: 0 !important;
    margin: 0 !important;
}

.qr-img-box img {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    display: block;
}

.sutore-qr-modal h3 {margin: 0 0 10px 0;font-size: 20px;font-weight: 500 !important;}
#desktop-qr-view .sutore-qr-modal p {color: #222;font-size: 13.6px !important;margin-bottom: 0;/* padding: 0 60px; */}
.sutore-qr-modal span {font-size: 13.6px;text-transform: uppercase;color: #878787;letter-spacing: 1px;}

/* --- PROCESS STEPS (Static Images) --- */
.process-steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 45px 0 0;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
}

.step-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.step-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.step-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-info p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
    padding: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .process-steps-container {
        flex-direction: column;
        gap: 60px;
        padding: 60px 20px 0;
    }
    #btn-open-resale-wizard,
    a.sutore-btn-outline {
        width: calc(100vw - 40px);
    }
    .page-id-85 .large-9.col:has(.sutore-dashboard-v2) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hero-content {
        padding: 0 20px;
    }
}

/* =========================================
   3. MODAL (APP-LIKE STRUCTURE)
   ========================================= */
.resale-modal {
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;       /* desktop: ortada */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.resale-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.resale-modal::-webkit-scrollbar {
    display: none;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    height: 80vh;
    max-height: 800px;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Mobil: Tam Ekran Sheet */
@media (max-width: 768px) {
    .resale-modal { align-items: flex-end; }
    .modal-content {
        width: 100%;
        max-height: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.close-modal {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    color: var(--sutore-black);
    padding: 20px;
}

/* =========================================
   4. WIZARD LAYOUT (HEADER - BODY - FOOTER)
   ========================================= */
.wizard-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid transparent;
    flex-shrink: 0;
    position: relative;
    background: #f9f9f9;
    border-radius: 16px 16px 0 0;
}
.wizard-header h3 {font-size: 20px;margin: 0;font-weight: 700;}
.wizard-header p { font-size: 0.9rem; color: var(--sutore-text-light); margin: 5px 0 0; }

#wizard-step-container .wizard-header .back-btn {
    position: absolute;
    background: none; border: none;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; padding: 0 !important;
    display: flex; align-items: center;
}

.wizard-body {
    flex: 1; /* Kalan alanı kapla */
    padding: 30px 20px;
    -webkit-overflow-scrolling: touch;
    min-height: calc(80vh - 168px);
    background: #fff;
}

.wizard-footer {
    padding: 20px;
    border-top: 1px solid var(--sutore-border);
    background: #fff;
    flex-shrink: 0;
    z-index: 10;
}

/* =========================================
   5. COMPONENTS & ELEMENTS
   ========================================= */

/* Button */
#step-next.button.primary-btn,
#btn-finish,
#btn-close-final {
    background-color: var(--sutore-black);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px !important;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
    margin: 0;
}
.button.primary-btn:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}
.button.primary-btn:not(:disabled):hover { opacity: 0.9; }

/* Inputs */
.input-label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--sutore-black);
}
.resale-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    font-size: 13.6px;
    margin: 0;
    height: auto;
}
.resale-input:focus { border-color: var(--sutore-black); }
.resale-input.big-input {font-size: 16px;font-weight: 700;padding: 25px;text-align: center;box-shadow: none;border-radius: 8px;}
textarea.resale-input { resize: none; min-height: 100px; }

/* Validation */
.validation-warning { font-size: 0.8rem; color: var(--sutore-error); margin-bottom: 15px; display: none; }
.input-error { border-color: var(--sutore-error) !important; }

/* =========================================
   6. STEP SPECIFIC STYLES
   ========================================= */

/* Step 1: Category Cards */
.resale-grid-2 {display: grid;grid-template-columns: 1fr 1fr;gap: 15px;}
.resale-card-select {
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.resale-card-select:hover { border-color: var(--sutore-black); }
.resale-card-select.selected { border-color: var(--sutore-black); background: #f9f9f9; box-shadow: inset 0 0 0 1px var(--sutore-black); }
.cat-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.cat-label {font-weight: 500;font-size: 16px;}

/* Step 2: Condition List */
.condition-list {display: flex;flex-direction: column;gap: 15px;}
.condition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.condition-row:hover { border-color: #bbb; }
.condition-row.selected { border-color: var(--sutore-black); background: #fcfcfc; }
.cond-name {font-weight: 500;font-size: 13.6px;}
.cond-desc {font-size: 0.85rem;color: var(--sutore-text-light);max-width: 85%;}
.cond-radio {
    width: 20px; height: 20px;
    border: 2px solid var(--sutore-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.condition-row.selected .cond-radio {
    border-color: var(--sutore-black);
}
.condition-row.selected .cond-radio::after {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--sutore-black); border-radius: 50%;
}

/* Step 2: Size Grid */
.resale-grid-4 {display: grid;grid-template-columns: repeat(4, 1fr);gap: 10px;}
.resale-box-select {
    border: 1px solid var(--sutore-border);
    border-radius: 4px;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    font-size: 13.6px;
    font-weight: 500;
}
.resale-box-select:hover { border-color: #999; }
.resale-box-select.selected { background: var(--sutore-black); color: #fff; border-color: var(--sutore-black); }

/* Step 3: Brands & Search */
.search-container { position: relative; margin-bottom: 15px; }
.search-container input { padding-right: 40px; }

.brand-list-scroll {
    max-height: 315px;
    min-height: 50px;
    overflow-y: auto;
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-md);
    background: #fff;
}
#brand-search-input,
#prod-title,
#prod-desc,
#prod-sku {
    border: 1px solid var(--sutore-border);
    padding: 15px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: none;
    margin: 0;
    font-size: 13.6px;
}
.brand-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 13.6px;
}
.brand-result-item:last-child { border-bottom: none; }
.brand-result-item:hover { background-color: #f9f9f9; font-weight: 600; }

/* Selected Tags */
.selected-brands-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.selected-brand-item {
    background: var(--sutore-black);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.remove-brand { cursor: pointer; font-size: 0.8rem; opacity: 0.8; }
.add-collab-btn {
    border: 1px dashed #999;
    color: #555;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.6px;
    cursor: pointer;
    width: 50%;
}
.not-listed-link {text-align: right;margin-top: 15px;text-decoration: underline;cursor: pointer;}

/* Step 4: Style & Color */
.pill-container { display: flex; flex-wrap: wrap; gap: 8px; }
.resale-pill {
    padding: 8px 16px;
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13.6px;
}
.resale-pill.selected { background: var(--sutore-black); color: #fff; border-color: var(--sutore-black); }

.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 10px; }
.color-swatch-wrapper {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; padding: 5px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
}
.color-swatch-wrapper.selected { border-color: var(--sutore-black); background: #f9f9f9; }
.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.color-name { font-size: 0.8rem; }

/* Step 6: Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.photo-slot {
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.photo-slot.filled { background: #fff; border: 1px solid #eee; }
.photo-slot input { position: absolute; width: 100%; height: 100%; opacity: 0; z-index: 5; cursor: pointer; }
.photo-preview { width: 100%; height: 100%; object-fit: cover; }
.plus-icon { font-size: 24px; color: #999; margin-bottom: 4px; }
.photo-label { font-size: 0.7rem; text-transform: uppercase; color: #777; font-weight: 600; text-align: center; }

.cover-badge {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 0.65rem; padding: 2px 0; text-align: center;
    z-index: 2;
}
.remove-photo {
    position: absolute; top: 4px; right: 4px;
    background: #fff; color: #000;
    width: 20px; height: 20px; border-radius: 50%;
    text-align: center; line-height: 20px; font-size: 12px; font-weight: bold;
    z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Step 7: Price */
.earnings-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 15px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-weight: 500;
    font-size: 13.6px;
}
.price-calc-box {
    background: var(--sutore-gray);
    padding: 15px; border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.price-calc-box .row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.price-calc-box .total { font-weight: 700; color: var(--sutore-black); font-size: 1.1rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 5px; }
.price-info-text { font-size: 0.8rem; color: #888; line-height: 1.4; margin-bottom: 20px; }

/* Step 8: Review Card */
.review-card {
    border: 1px solid var(--sutore-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.review-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.review-row:last-child { border-bottom: none; }
.review-row .lbl {color: var(--sutore-text-light);font-size: 13.6px;width: 30%;}
.review-row .val {font-weight: 500;font-size: 16px;flex: 1;text-align: right;padding-right: 15px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.review-row .edt {color: var(--sutore-text-light);font-size: 13.6px;text-decoration: underline;cursor: pointer;}
.review-row.highlight { background-color: #f9f9f9; }

/* Success Screen */
.success-screen { text-align: center; padding: 20px; }
.success-icon {font-size: 60px;margin-bottom: 30px;}

/* Animasyonlar */
.fade-in { animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Loader */
.loader-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px; vertical-align: text-bottom;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Kategori görseli için base stil */
.cat-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.cat-img-placeholder.shoes {
    background-image: url('https://sutore.com/wp-content/uploads/2025/12/resutore-cats.001.jpeg');
}
.cat-img-placeholder.bags {
    background-image: url('https://sutore.com/wp-content/uploads/2025/12/resutore-cats.003.jpeg');
}
.cat-img-placeholder.accessories {
    background-image: url('https://sutore.com/wp-content/uploads/2025/12/resutore-cats.004.jpeg');
}
.cat-img-placeholder.apparel {
    background-image: url('https://sutore.com/wp-content/uploads/2025/12/resutore-cats.002.jpeg');
}

.review-photo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
}
.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-row .val .review-photo-wrapper {
  justify-content: flex-end;
}

.success-screen h3 {
  font-size: 20px;
}
.success-screen p {
  margin-bottom: 30px;
}

