﻿/* --- FOTOFIRST WIZARD PAGE ENHANCED STYLES --- */

.wizard-container {
    max-width: 1200px;
    margin: 28px auto;
    padding: 2.1rem 2.4rem 2.4rem 2.4rem;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 8px 32px #b3bcff22;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 660px;
}

.stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 34px;
    max-width: 1000px;
    width: 95%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    min-width: 56px;
}

    .step .circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #c7dcff;
        color: #fff;
        text-align: center;
        line-height: 40px;
        font-weight: bold;
        font-size: 21px;
        margin-bottom: 2px;
        box-shadow: 0 1px 6px #e0eaff66;
        transition: background 0.2s, color 0.2s;
    }

    .step.active .circle {
        background-color: #2196f3;
    }

    .step .label {
        font-size: 1.08rem;
        margin-top: 4px;
        min-width: 56px;
        white-space: nowrap;
        color: #558;
        text-align: center;
        font-weight: 500;
    }

.step-box {
    width: 100%;
    text-align: center;
    margin: 18px auto 0 auto;
    max-width: 1200px;
    min-width: 360px;
}

/* Upload Dropzone and Preview */
.upload-hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    margin-top: 16px;
    color: #213066;
    letter-spacing: -1.2px;
}

.upload-hero-desc {
    font-size: 1.13rem;
    color: #456;
    margin-bottom: 20px;
    margin-top: 3px;
}

.upload-action-bar {
    margin-top: 16px;
    text-align: center;
}

.upload-or-text {
    font-size: 1.09rem;
    color: #5d6a7a;
    margin: 11px 0 0 0;
    display: inline-block;
}

.upload-preview-list {
    margin: 16px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.upload-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #d1e6fc;
    box-shadow: 0 2px 14px #e7f4ffcc;
}

/* Step Action Bar */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 25px;
}

/* Form Input General */
.form-input {
    display: block;
    width: 96%;
    margin: 16px auto;
    padding: 13px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1.06rem;
    background: #f7f8fa;
}

/* Product Selector Grid */
.product-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 36px 0;
    flex-wrap: wrap;
}

.product-card {
    background: #f6f8ff;
    border: 2.3px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px 22px 16px 22px;
    cursor: pointer;
    width: 210px;
    min-height: 280px;
    text-align: center;
    box-shadow: 0 2px 16px #b5b8ff13;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0;
}

    .product-card.selected {
        border: 2.5px solid #2c93fd;
        background: #e7f2ff;
        box-shadow: 0 4px 18px #b5c8fa55;
    }

    .product-card img {
        width: 105px;
        height: 105px;
        border-radius: 16px;
        object-fit: cover;
        margin-bottom: 14px;
    }

.product-name {
    font-weight: 700;
    color: #244;
    font-size: 1.18rem;
    margin-bottom: 2px;
}

.product-desc {
    font-size: 1rem;
    color: #5e5e66;
}

/* Store Map Section */
.store-map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.store-map-img {
    width: 220px;
    margin-bottom: 16px;
    border-radius: 14px;
    box-shadow: 0 2px 14px #b8d6ff44;
}

/* Payment Summary & Preview */
.payment-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-img {
    width: 130px;
    margin-bottom: 14px;
}

.payment-summary {
    text-align: center;
    margin-bottom: 16px;
}

.order-amount {
    font-size: 1.65rem;
    color: #22b05a;
    margin-left: 10px;
    font-weight: 700;
}

.wizard-step-title {
    font-size: 2.35rem;
    font-weight: 800;
    margin-top: 20px;
    color: #232946;
    letter-spacing: -1.2px;
}

.wizard-step-desc {
    font-size: 1.15rem;
    color: #4c5473;
    margin-bottom: 24px;
    margin-top: 6px;
}

.delivery-choice-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 22px 0 8px 0;
    flex-wrap: wrap;
}

.delivery-card {
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    padding: 10px 18px;
    min-width: 230px;
    max-width: 320px;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.15s, background-color 0.15s, transform 0.08s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.delivery-card:hover {
    border-color: #2563eb;
    background-color: #eef3ff;
    transform: translateY(-1px);
}

.delivery-card.selected {
    border-color: #e11d48; /* red border when selected */
    background-color: #fef2f2;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.55);
}

.delivery-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.delivery-card-header i {
    font-size: 1.2rem;
    color: #1d4ed8;
}

.delivery-card.selected .delivery-card-header i {
    color: #1e293b;
}

.delivery-card-header span {
    font-weight: 700;
    color: #213066;
    font-size: 1.08rem;
}

.delivery-card-sub {
    font-size: 0.95rem;
    color: #5b647c;
}

/* Images with products in rows and grids */
.images-with-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 34px;
}

.image-product-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0ff;
}

.product-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #b2d7ff;
    margin-right: 20px;
    box-shadow: 0 2px 12px #e6f2ff88;
}

.product-options-inline {
    display: flex;
    gap: 18px;
}

.product-card-mini {
    border: 2px solid #d1e6fc;
    border-radius: 10px;
    display: inline-block;
    margin: 0 10px;
    padding: 15px 20px;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    background: #f7faff;
    transition: border-color 0.18s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .product-card-mini.selected {
        border-color: #47a6fc;
        background: #f0f8ff;
        font-weight: 700;
    }

    .product-card-mini img {
        width: 54px;
        height: 54px;
        border-radius: 9px;
        margin-bottom: 8px;
    }

.product-name-mini {
    font-size: 1.13rem;
    font-weight: 700;
    color: #234;
}

.product-price-mini {
    font-size: 1.02rem;
    color: #1f9d59;
    margin-top: 7px;
}

/* Image grid for summary */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 2rem;
}

.image-product-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0.7rem;
    background: #fafafc;
    border-radius: 20px;
    box-shadow: 0 2px 12px #f3f3fa;
}

/* Product dropdown */
.product-dropdown {
    margin-top: .7rem;
    width: 170px;
    padding: .45rem .7rem;
    border-radius: 10px;
    border: 1.5px solid #c6c7db;
    background: #f7fafd;
}

/* Responsive for tablets and mobile */
@media (max-width: 1100px) {
    .wizard-container, .step-box {
        max-width: 99vw;
        min-width: 98vw;
        margin: 0.4rem;
        padding: 1rem 2vw;
    }

    .stepper {
        gap: 16px;
    }
}

@media (max-width: 700px) {
    .wizard-container, .step-box {
        max-width: 100vw;
        min-width: 99vw;
        padding: 0.7rem 3vw;
    }

    .wizard-step-title {
        font-size: 1.6rem;
    }

    .wizard-step-desc {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .form-input {
        font-size: 0.95rem;
        padding: 9px 12px;
    }

    .delivery-card {
        min-width: 48%;
        padding: 8px 10px;
    }

    .product-card, .product-card-mini {
        min-width: 96vw;
        width: 98vw;
        margin: 9px 0;
        padding: 12px 2vw;
    }

    .upload-preview-img {
        width: 70vw;
        height: 70vw;
        max-width: 110px;
        max-height: 110px;
    }
}

@media (max-width: 500px) {
    .wizard-container, .step-box {
        border-radius: 8px;
        padding: 4px 0.5vw;
        min-width: 100vw;
    }

    .product-card, .product-card-mini {
        padding: 7px 2vw;
    }

    .stepper {
        gap: 6px;
    }
}

/* --- END FOTOFIRST WIZARD PAGE ENHANCED STYLES --- */
/* --- WIZARD CARD ACTION BUTTONS --- */

.image-card-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
}

.icon-btn {
    background: #f7faff;
    border: 1.5px solid #c9e6fa;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 1.08rem;
    color: #397cba;
    cursor: pointer;
    box-shadow: 0 2px 6px #e3e8fa66;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    margin: 0 2px;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover,
    .icon-btn:focus {
        background: #e7f2ff;
        border-color: #1d8ef7;
        color: #174d8b;
    }

/* --- QTY BUTTONS --- */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.qty-btn {
    background: #f7faff;
    border: 1.5px solid #bdd8f7;
    border-radius: 7px;
    padding: 5px 14px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #377ae0;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    outline: none;
}

    .qty-btn:hover,
    .qty-btn:focus {
        background: #e9f4ff;
        border-color: #2196f3;
        color: #174d8b;
    }

    .qty-btn:disabled {
        background: #f3f3fa;
        color: #c5c5d3;
        border-color: #e1e8ef;
        cursor: not-allowed;
    }

.qty-value {
    font-size: 1.18rem;
    font-weight: 700;
    color: #223;
    padding: 0 6px;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}

/* Make .image-product-card look more like your product cards */
.image-product-card {
    background: #fff;
    border: 2.3px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 14px #e7eafc22;
    padding: 18px 14px 18px 14px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.card-product-name {
    font-weight: 700;
    color: #234;
    font-size: 1.11rem;
    margin-bottom: 6px;
    margin-top: 7px;
    text-align: center;
    min-height: 26px;
}
/* Sized, centered dropzone */
.upload-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    min-height: 200px; /* <= set the box height */
    max-height: 260px;
    display: flex; /* center the visuals */
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8fbff;
    text-align: center;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

    .upload-dropzone.dragover {
        background: #f0f7ff;
        border-color: #60a5fa;
        box-shadow: 0 0 0 4px rgba(96,165,250,.15) inset;
    }

/* Invisible input overlay (unchanged) */
.file-overlay-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Visuals: small, never overflow */
.drop-visuals {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upload-drop-img {
    width: 72px; /* <= control icon size */
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    opacity: .85;
}

.upload-drop-icon {
    font-size: 18px;
    opacity: .6;
    line-height: 1;
}
