/* --- 1. CORE ATMOSPHERE --- */
        body {
            margin: 0;
            overflow: hidden;
            background-color: #e6e9f0;
            background-image: radial-gradient(#d0d4e0 1px, transparent 1px);
            background-size: 20px 20px; /* Subtle dot pattern */
            font-family: 'Georgia', 'Times New Roman', serif;
            touch-action: none; /* Critical for custom drag physics */
        }

        /* --- 2. BOTTOM CART STRIP --- */
        #cart-banner {
            position: fixed;
            bottom: 20px; left: 5%; width: 90%;
            background: #111; color: white;
            padding: 12px 25px; border-radius: 50px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
            z-index: 9000;
            display: flex; justify-content: space-between; align-items: center;
            font-family: 'Segoe UI', sans-serif;
            transform: translateY(150%); /* Hidden by default */
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        #cart-banner.visible { transform: translateY(0); }
        
        .checkout-btn {
            background: #fff; color: #000; border: none;
            padding: 10px 24px; border-radius: 20px;
            font-weight: 700; font-size: 13px; cursor: pointer;
            transition: transform 0.1s;
        }
        .checkout-btn:active { transform: scale(0.95); }

        /* --- 3. THE POLAROID (Physical Object) --- */
        .polaroid {
            position: absolute;
            background: white;
            padding: 12px 12px 0 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            width: fit-content;
            display: flex; flex-direction: column;
            transform-origin: center center;
            user-select: none;
            will-change: transform;
            cursor: grab;
            border-radius: 2px;
        }
        .polaroid:active { cursor: grabbing; }

        /* High-Res Image Container */
        .polaroid img {
            display: block; pointer-events: none;
            border: 1px solid #f0f0f0;
            max-width: 280px; max-height: 380px; /* Bounding Box */
            width: auto; height: auto;
            background: #eee;
        }

        /* The "Chin" (Text Area) */
        .caption {
            padding: 18px 5px 20px 5px;
            text-align: center;
            min-width: 150px;
        }
        .caption h3 {
            margin: 0 0 5px 0; font-size: 18px; color: #222;
            font-weight: normal; letter-spacing: 0.5px;
        }
        .customize-btn {
            background: transparent;
            border: 1px solid #222; color: #222;
            padding: 6px 16px; margin-top: 8px;
            font-family: 'Segoe UI', sans-serif;
            font-size: 10px; letter-spacing: 1px; font-weight: bold;
            cursor: pointer; transition: all 0.2s;
        }
        .customize-btn:hover { background: #222; color: #fff; }

        /* --- 4. CONFIGURATOR MODAL (Overlay) --- */
        #order-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(255,255,255,0.85); /* Milky glass effect */
            backdrop-filter: blur(5px);
            z-index: 9999;
            opacity: 0; pointer-events: none;
            transition: opacity 0.3s ease;
            display: flex; align-items: center; justify-content: center;
        }
        #order-overlay.open { opacity: 1; pointer-events: auto; }

        .config-card {
            background: #fff; width: 90%; max-width: 420px;
            border-radius: 12px;
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
            overflow: hidden; display: flex; flex-direction: column;
            max-height: 85vh; font-family: 'Segoe UI', sans-serif;
            border: 1px solid #eee;
        }

        /* Modal Header */
        .config-header {
            padding: 20px; background: #fafafa; border-bottom: 1px solid #eee;
            display: flex; align-items: center; gap: 15px; position: relative;
        }
        .close-x {
            position: absolute; top: 15px; right: 20px;
            font-size: 28px; cursor: pointer; color: #999; line-height: 20px;
        }
        .thumb-img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; }
        
        /* Modal Body */
        .config-body { padding: 25px; overflow-y: auto; }
        .section-title {
            font-size: 11px; font-weight: 800; color: #b08d55; /* Gold/Bronze */
            text-transform: uppercase; letter-spacing: 1px;
            margin-bottom: 12px; display: block;
        }

        /* Price Tiers */
        .tier-grid { display: flex; gap: 10px; margin-bottom: 25px; }
        .tier-card {
            flex: 1; border: 1px solid #ddd; padding: 12px 5px;
            text-align: center; border-radius: 6px; cursor: pointer;
            transition: 0.2s;
        }
        .tier-card.selected { border-color: #b08d55; background: #fffbf5; }
        .tier-name { display: block; font-size: 11px; font-weight: bold; margin-bottom: 4px; }
        .tier-price { font-size: 13px; color: #333; }

        /* Upload Rows */
        .upload-row {
            display: flex; justify-content: space-between; align-items: center;
            background: #f8f8f8; padding: 10px 15px;
            margin-bottom: 8px; border-radius: 6px; border: 1px solid #eee;
        }
        .upload-label { font-size: 13px; font-weight: 500; }
        .file-btn {
            font-size: 11px; padding: 6px 12px; background: #fff;
            border: 1px solid #ccc; border-radius: 4px; cursor: pointer;
        }
        .file-btn.done { background: #d4edda; border-color: #c3e6cb; color: #155724; }

        /* Modal Footer */
        .config-footer { padding: 15px 25px; border-top: 1px solid #eee; }
        .add-cart-btn {
            width: 100%; background: #222; color: #fff; padding: 15px;
            border: none; border-radius: 6px; font-weight: bold;
            font-size: 14px; cursor: pointer;
        }
        
        /* --- SMART UPLOAD STYLES --- */
.file-list {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 8px; margin-bottom: 15px;
}

.file-chip {
    background: #fff; border: 1px solid #ddd;
    padding: 6px 10px; border-radius: 4px;
    font-size: 11px; color: #555;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-chip span {
    max-width: 150px; overflow: hidden; 
    text-overflow: ellipsis; white-space: nowrap;
}

.delete-file {
    color: #ff4757; font-weight: bold; cursor: pointer;
    background: rgba(255, 71, 87, 0.1);
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 0; font-size: 14px;
}

.delete-file:hover { background: #ff4757; color: white; }

/* --- DYNAMIC ADD BUTTON --- */
.add-member-btn {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    background: #fafafa;
    color: #666;
    font-weight: bold;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}
.add-member-btn:hover {
    border-color: #b08d55;
    color: #b08d55;
    background: #fff;
}

