    * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: radial-gradient(circle at top left, rgba(84, 136, 255, 0.24), transparent 20%),
                        linear-gradient(135deg, #0c2668 0%, #0f3b91 45%, #102c74 100%);
            color: #f8fafc;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .builder {
            width: 100%;
            max-width: 1420px;
            display: grid;
            grid-template-columns: 84px 1fr;
            gap: 22px;
            background: rgba(255,255,255,0.06);
            border-radius: 40px;
            padding: 24px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
        }
        .sidebar {
            background: rgba(12, 38, 104, 0.95);
            border-radius: 32px;
            padding: 24px 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            min-height: 760px;
            margin-top: 150px;
        }
        .sidebar .tool {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .sidebar .icon {
            width: 50px;
            height: 50px;
            border-radius: 18px;
            background: rgb(18 157 22 / 82%);
            display: grid;
            place-items: center;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .sidebar .icon:hover {
            background: rgba(255,255,255,0.18);
        }
        .sidebar .icon.active {
            background: #ffffff;
            color: #0f4dff;
            box-shadow: 0 16px 40px rgba(15,77,255,0.14);
        }
        .sidebar .icon-label {
            color: rgba(255,255,255,0.85);
            font-size: 10px;
            text-align: center;
            line-height: 1.2;
            max-width: 64px;
            word-break: break-word;
        }
        .sidebar .trash {
            margin-top: auto;
            width: 48px;
            height: 48px;
            background: #ff2d3a;
            color: #fff;
            font-size: 20px;
        }
        .workspace {
            background: rgba(255,255,255,0.08);
            border-radius: 40px;
            padding: 32px;
            /* display: grid; */
            grid-template-columns: 1.45fr 0.78fr;
            gap: 22px;
            min-height: 760px;
        }
        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        .topbar h2 {
            color: #f9fafb;
            font-size: 22px;
            letter-spacing: 0.02em;
        }
        .topbar .badge {
            background: rgba(255,255,255,0.16);
            color: #f8fafc;
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .categories {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
            margin-bottom:20px;
        }
        .category-pill {
            padding: 11px 18px;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            color: #f8fafc;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }
        .category-pill:hover {
            background: rgba(255,255,255,0.18);
        }
        .category-pill.active {
            background: #ffffff;
            color: #0f4dff;
            font-weight: 700;
            border-color: rgba(255,255,255,0.28);
        }
        .builder-body {
            display: grid;
            grid-template-columns: 2.6fr 0.75fr;
            gap: 22px;
            align-items: start;
        }
        .preview-panel {
            background: #ffffff;
            border-radius: 32px;
            padding: 36px;
            display: grid;
            gap: 28px;
            box-shadow: 0 20px 60px rgba(15, 77, 255, 0.12);
        }
        .preview-image {
            background: linear-gradient(180deg, #e9eefb 0%, #f7f9ff 100%);
            border-radius: 32px;
            padding: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 480px;
            
            float:left;
        }
        .preview-image svg {
            max-width: 100%;
            max-height: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }
        .shirt {
            position: relative;
        }
        .shirt-image-inner {
            position: relative;
            display: inline-block;
            width:532px;
        }
        .logo-resize-handle {
            position: absolute;
            width: 14px;
            height: 14px;
            background: #ffffff;
            border: 2px solid #0f4dff;
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgba(15, 77, 255, 0.16);
            cursor: pointer;
            z-index: 50;
            pointer-events: auto;
        }
        .uploaded-logo {
            position: absolute;
            width: 140px;
            height: auto;
            cursor: move;
            z-index: 15;
            box-sizing: border-box;
            pointer-events: auto;
        }
        .uploaded-logo.selected {
            outline: 2px dashed #0f4dff;
            outline-offset: 4px;
        }
        .uploaded-logo img {
            width: 100%;
            height: auto;
            display: block;
            pointer-events: none;
        }
         .preview-image-thumbs {
            background: #D6DBE4;
            border-radius: 32px;
            
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 480px;
            width:200px;
             float:right;
        }
        .product-info h3 {
            font-size: 26px;
            margin-bottom: 10px;
            color: #111827;
        }
        .product-info p {
            color: #4b5563;
            line-height: 1.7;
        }
        .product-info strong {
            display: block;
            margin-top: 20px;
            color: #111827;
            font-size: 15px;
        }
        .thumbs {
            background: rgba(255,255,255,0.12);
            border-radius: 28px;
            padding: 18px;
            display: grid;
            gap: 14px;
            border: 1px solid rgba(255,255,255,0.14);
        }
        .thumbs img {
            width: 100%;
            border-radius: 20px;
            object-fit: cover;
        }
        .thumbs .thumb-grid {
            display: grid;
            gap: 14px;
            width:120px;
        }
        .thumbs .thumb-grid img {
            height: 100px;
        }
        .custom-area {
            background: linear-gradient(180deg, #0f4dff 0%, #183ea5 100%);
            border-radius: 32px;
            padding: 28px;
            color: #fff;
            display: grid;
            gap: 20px;
        }
        .custom-area h3 {
            font-size: 20px;
            margin-bottom: 6px;
        }
        .custom-area label {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 8px;
            display: block;
            opacity: 0.9;
        }
        .custom-area input,
        .custom-area select {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 14px;
            background: rgba(255,255,255,0.10);
            color: #221f1f;
            outline: none;
        }
        .custom-area .input-row {
            display: grid;
            gap: 16px;
        }
        .custom-area .input-row.two {
            grid-template-columns: 1fr 1fr;
        }
        .custom-area .font-search {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 10px;
        }
        .custom-area .font-search input {
            flex: 1;
        }
        .custom-area .format-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .custom-area .btn-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255,255,255,0.12);
            display: grid;
            place-items: center;
            cursor: pointer;
            color: #fff;
            font-size: 14px;
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .custom-area .btn-icon:hover {
            background: rgba(255,255,255,0.22);
            transform: translateY(-1px);
        }
        
        .thumbs {
            background: rgba(255,255,255,0.12);
            border-radius: 28px;
            padding: 18px;
            display: grid;
            gap: 14px;
        }
        .thumbs img {
            width: 100%;
            border-radius: 20px;
            object-fit: cover;
        }
        .thumbs .thumb-grid {
            display: grid;
            gap: 14px;
        }
        .thumbs .thumb-grid img {
            height: 100px;
        }
        .custom-area {
            background: #183ea5;
            border-radius: 32px;
            padding: 20px;
            color: #fff;
            display: grid;
            gap: 20px;
            
        }
        .custom-area h3 {
            font-size: 20px;
            margin-bottom: 20px;
        }
        .custom-area label {
            font-size: 12px;
            
            margin-bottom: 8px;
            display: block;
            opacity: 0.9;
        }
        .custom-area input,
        .custom-area select {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 14px;
            background: rgba(255,255,255,0.10);
            color: #201e1e;
            outline: none;
        }
        .custom-area .input-row {
            display: grid;
            gap: 16px;
        }
        .custom-area .input-row.two {
            grid-template-columns: 1fr 1fr;
        }
        .custom-area .font-search {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 10px;
        }
        .custom-area .font-search input {
            flex: 1;
        }
        .custom-area .format-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .custom-area .btn-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255,255,255,0.12);
            display: grid;
            place-items: center;
            cursor: pointer;
            color: #fff;
            font-size: 14px;
        }
        .custom-area .option-group {
            display: grid;
            gap: 14px;
        }
        .custom-area .option-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
        }
        .custom-area .option-row .pill {
            flex: 1;
            background: rgba(255,255,255,0.10);
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.18);
            color: #fff;
            text-align: center;
            padding: 10px 0;
            cursor: pointer;
        }
        .custom-area .option-row .pill.active {
            background: #fff;
            color: #0f4dff;
            border-color: transparent;
            font-weight: 700;
        }
        .price-box {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 22px;
            padding: 16px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
            font-size: 14px;
        }
        .custom-area .actions {
            display: grid;
            gap: 14px;
        }
        .custom-area .btn {
            border: none;
            border-radius: 14px;
            padding: 14px 18px;
            cursor: pointer;
            font-weight: 700;
            font-size: 14px;
        }
        .custom-area .btn.save {
            background: rgba(255,255,255,0.16);
            color: #fff;
        }
        .custom-area .btn.cart {
            background: #ff2d3a;
            color: #fff;
            width: 100%;
        }
        .custom-area .btn.share {
            background: rgba(255,255,255,0.10);
            color: #fff;
        }
        .formatting-row{
            margin-bottom: 10px;
        }
                 
      .product-color-options{
          width: 100%;
            float: left;
          margin-top: 15px; 
          display: flex;
            gap: 10px;
            flex-wrap: wrap;
            color:#000;
        }
        .product-row{
          width: 100%;
            float: left;
          margin-top: 15px; 
          display: flex;
            gap: 10px;
            flex-wrap: wrap;
            color:#000;
        }
        .color-option{
                flex: 1; 
                min-width: 120px;
                text-align: center;
                border : solid 1px #ddd;
                padding: 10px
                }
        .color-option label{
            display: block; 
            margin-bottom: 5px; 
            font-weight: 600;
        }
        .color-option input[type="color"],
        .color-option select,
        .color-option input[type="number"]{
            width: 100%; 
            height: 40px; 
            border: 1px solid #ccc; 
            cursor: pointer;
            padding: 5px 8px;
            box-sizing: border-box;
        }  


 
    #clipart_toggle:checked ~ .sidebar .tool#clipart_tool .icon {
        background: #0f4dff;
        color: #fff;
    }
    #clipart_toggle:checked ~ .workspace .clipart-panel {
        display: block;
    }
    .clipart-panel {
        display: none;
        margin-top: 15px;
        padding: 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.14);
    }
    .clipart-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 10px;
    }
    .clipart-grid label {
        cursor: pointer;
        display: block;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 12px;
        padding: 10px;
        text-align: center;
        background: #fff;
    }
    .clipart-grid img {
        width: 100%;
        height: 70px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid transparent;
    }
    #clipart_star:checked ~ .workspace .clipart-grid label[for="clipart_star"] img,
    #clipart_heart:checked ~ .workspace .clipart-grid label[for="clipart_heart"] img,
    #clipart_lightning:checked ~ .workspace .clipart-grid label[for="clipart_lightning"] img,
    #clipart_tshirt:checked ~ .workspace .clipart-grid label[for="clipart_tshirt"] img {
        box-shadow: 0 0 0 2px rgba(15, 77, 255, 0.18);
        border-color: #0f4dff;
    }
    .shirt-image-inner .clipart-overlay {
        position: absolute;
        top: 40px;
        left: 40px;
        width: 140px;
        height: auto;
        display: none;
        z-index: 11;
        pointer-events: none;
    }
    #clipart_star:checked ~ .workspace .shirt-image-inner .clipart-overlay.star,
    #clipart_heart:checked ~ .workspace .shirt-image-inner .clipart-overlay.heart,
    #clipart_lightning:checked ~ .workspace .shirt-image-inner .clipart-overlay.lightning,
    #clipart_tshirt:checked ~ .workspace .shirt-image-inner .clipart-overlay.tshirt {
        display: block;
    }


    .clipart-panel {
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    }
    .clipart-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    }
    .clipart-item {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    border: 1px solid rgba(15,77,255,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .clipart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15,77,255,0.14);
    }
    .clipart-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    }
    .clipart-item.clipart-remove {
    min-width: 72px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0f4dff;
    background: #eef4ff;
    }
    .clipart-element {
    position: absolute;
    width: 100px;
    display: inline-block;
    top: 0;
    left: 0;
    cursor: move;
    z-index: 15;
    }
    .clipart-element img {
    width: 100%;
    height: auto;
    display: block;
    }
    .clipart-overlay {
    display: none !important;
    }
    .clipart-resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #0f4dff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(15,77,255,0.16);
    z-index: 40;
    cursor: nwse-resize;
    }    
.format-btn{
    flex: 1;
     padding: 8px;
      border: 1px solid #ddd;
       background: #fff;
        cursor: pointer; 
}


@media (max-width: 1100px) {
    .builder {
        grid-template-columns: 1fr;
    }
    .workspace {
        grid-template-columns: 1fr;
    }
}