/* Advanced Bag Designer - Left Filter | Right Canvas | Mobile Responsive */

.bag-designer-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

.bag-designer {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Header */
.designer-header {
    padding: 20px 28px;
    background: linear-gradient(135deg, #f8f6f2 0%, #ffffff 100%);
    border-bottom: 1px solid #ece7df;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
}

.designer-header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2d6a2f, #5a8f4c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}

.tagline {
    color: #7a8e75;
    font-size: 13px;
    margin-top: 6px;
    margin-left: 40px;
}

/* TWO COLUMN LAYOUT */
.designer-layout {
    display: flex;
    flex-wrap: wrap;
}

/* LEFT FILTER PANEL - 30% width */
.filters-panel {
    width: 30%;
    background: #fefcf9;
    border-right: 1px solid #ede8e1;
    padding: 28px 20px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #3a5c35;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.filter-label svg {
    stroke: #5f8b4e;
    stroke-width: 1.8;
}

.filter-select {
    width: 100%;
    padding: 5px 14px;
    background: #ffffff;
    border: 1.5px solid #e2dcd2;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e2b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f8b4e' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.2s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #b7cdaf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 139, 78, 0.1);
}

/* Color Selector - Clickable area */
.color-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 1.5px solid #e2dcd2;
    border-radius: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-selector:hover {
    border-color: #b7cdaf;
    background: #fefcf8;
    box-shadow: 0 0 0 3px rgba(95, 139, 78, 0.08);
}

.color-swatch {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.1s ease;
    border: 2px solid white;
}

.color-selector:active .color-swatch {
    transform: scale(0.98);
}

.color-label {
    font-size: 13px;
    color: #6b7f66;
    font-weight: 500;
    flex: 1;
}

.filter-divider {
    height: 1px;
    background: linear-gradient(to right, #e2dcd2, transparent);
    margin: 24px 0 20px 0;
}

/* Action Buttons Row */
.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1.5px solid #dbd3c8;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #4a6b44;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f4f8f1;
    border-color: #9bc18b;
    transform: translateY(-1px);
}

.upload-label {
    position: relative;
    overflow: hidden;
}

.upload-label input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Tips Card */
.tips-card {
    background: #f4f7f2;
    border-radius: 20px;
    padding: 14px 16px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e6db;
}

.tips-icon {
    font-size: 24px;
}

.tips-content {
    display: flex;
    flex-direction: column;
}

.tips-content strong {
    font-size: 12px;
    color: #2d6a2f;
    margin-bottom: 3px;
}

.tips-content span {
    font-size: 11px;
    color: #647c5e;
}

/* RIGHT CANVAS PANEL - 70% */
.canvas-panel {
    width: 70%;
    padding: 30px 28px;
    background: #fdfbf8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canvas-container {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: inline-block;
    border: 1px solid #efe5da;
}

canvas {
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
}

.download-btn {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #2d6a2f;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(45, 106, 47, 0.25);
}

.download-btn:hover {
    background: #235a25;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 106, 47, 0.3);
}

/* Footer */
.designer-footer {
    background: #f9f7f3;
    padding: 14px 28px;
    border-top: 1px solid #eae5dd;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8a9a83;
    font-weight: 500;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 850px) {
    .designer-layout {
        flex-direction: column;
    }
    
    .filters-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ede8e1;
        padding: 20px 18px;
    }
    
    .canvas-panel {
        width: 100%;
        padding: 24px 20px;
    }
    
    .designer-header h1 {
        font-size: 20px;
    }
    
    .tagline {
        margin-left: 40px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .action-row {
        justify-content: flex-start;
    }
    
    .tips-card {
        margin-top: 16px;
    }
}

@media (max-width: 550px) {
    .bag-designer-wrapper {
        padding: 0 12px;
        margin: 12px auto;
    }
    
    .designer-header {
        padding: 16px 18px;
    }
    
    .brand-icon {
        font-size: 24px;
    }
    
    .designer-header h1 {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 11px;
        margin-left: 36px;
    }
    
    .filter-label {
        font-size: 13px;
    }
    
    .filter-select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .color-swatch {
        width: 44px;
        height: 44px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .canvas-container {
        padding: 10px;
    }
    
    canvas {
        width: 100%;
        height: auto;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .designer-footer {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }
}