body.page-template-create-bottle-template {
    background-color: #F9FAFB;
}
.main {
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-8 {
    width: 66.66%;
    padding: 0 15px;
}

.col-4 {
    width: 33.33%;
    padding: 0 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header h2 {
    margin: 0;
    color: #5e370c;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header h2:before {
    content: "1";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #5e370c;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-size: 14px;
}

.collapse-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.filter-section {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    margin-bottom: 10px;
}

.filter-label {
    width: 70px;
    font-weight: bold;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.filter-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 12px;
}

.filter-button.active {
    background-color: #d8c9a6;
    border-color: #c2ae89;
    color: #5e370c;
}

.result-count {
    background-color: #d8c9a6;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #5e370c;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    max-height: 400px;
    overflow: auto;
}

.items{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.items.active{
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}
.images img:hover{
    transform: scale(1.2);
    transition: transform 0.3s;

}

.images {
    border: 1px solid #ddd;
    padding: 15px;
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 4px;
}

.images img {
    max-width: 100%;
    max-height: 100%;
}

.bottle-parent,.cap-parent,.collar-parent {
    overflow: hidden;
}

.bottle-select{
    scale: 1.2;
}
.collar-select{
    scale: 1.5;
    margin-bottom: 50px;
}
.cap-select{
    scale: 1.5;
    margin-bottom: 50px;
}
.item-name {
    font-size: 12px;
    color: #666;
}

.item-name span {
    color: #ff6b00;
}

.selector {
    margin-bottom: 15px;
}

.selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-8 {
    flex: 0 0 66.66%;
}

.col-4 {
    flex: 0 0 31%;
} */

.selector {
    margin-bottom: 15px;
}



#custom-render-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    background-color: white;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.page-template-create-bottle-template #custom-render-box {
    border: 1px solid #E7E5E4;
    border-radius: 8px;
}

#custom-render-pad {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    /* Remove the excessive padding */
    padding-top: 200px !important;
    padding-bottom: 20px;
    /* transform: scale(1.3) translate(0, 7%); */
}

#preview-area {
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 0 auto;
    /* scale: 1.2; */
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#preview-canvas{
    position: absolute;
    max-width: 100%;
    z-index: 1;
    top: 12%;
    scale: 1.5;
    margin: 0 auto;
}
#bottle-img {
    position: absolute;
    z-index: 1;
    margin: 0 auto;

    max-width: 100%;
    scale: 1.5;
    top: 10%;
    
}
#bottle-img.bwop {
    position: absolute;
    z-index: 1;
    margin: 0 auto;

    max-width: 100%;
    scale: 1.5;
    top: 12%;
    
}
#bottle-img.bwp {
    position: absolute;
    z-index: 1;
    margin: 0 auto;

    max-width: 100%;
    scale: 1.58;
    top: 0%;
    
}
.page-template-create-bottle-template .get-quote-btn {
    background: #292524;
    border: 0;
    padding: 17px 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-family: "poppins";
    display: flex;
    column-gap: 1rem;
    align-items: center;
    border-radius: 50px;
    margin-inline: auto;
    border: 1px solid transparent;
    position: relative;
    z-index: 2;
}
.page-template-create-bottle-template .get-quote-btn:hover {
    background: transparent;
    color: #000;
    border-color: #292524;
}
.page-template-create-bottle-template .get-quote-btn svg.hovered {
    display: none;
}
.page-template-create-bottle-template .get-quote-btn:hover svg {
    display: none;
}
.page-template-create-bottle-template .get-quote-btn:hover svg.hovered {
    display: block;
}

.color-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #3498db; /* Initial color matching the input */
  }

  .collar-image img {
    width: 300px;
    max-width: 300px;
    object-fit: cover;
  }
#collar-img {
    position: absolute;
    /* Position relative to bottle top */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 350px;
    z-index: 2;
}

.cap-image img {
    width: 180px;
    max-width: 180px;
    object-fit: cover;
}
#cap-img {
    position: absolute;
    /* Position relative to bottle top */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 438px;
    z-index: 2;
}

.color-name {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    /* Make sure this sits below the bottle */
    position: relative;
    z-index: 5;
}
.bottle-parent.selected,
.collar-parent.selected,
.cap-parent.selected {
    border: 2px solid #333;
    background-color: #f0f0f0;
}

.filter-button.active {
    background-color: #D4C39E;
    color: #292524;
}


#result canvas {
    width: 255px !important;
    height: auto !important;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

.breadcrumb {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb .breadcrumb-item.active::before {
    content: ">";
}
.breadcrumb .breadcrumb-item.active {
    color: #000;
}

.steps-container {
    display: flex;
    max-width: 768px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step-item {
    text-align: center;
    width: 18%;
}

.step-icon {
    background-color: #f8f2e7;
    border-radius: 5px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-bottom: 10px;
}
.step-icon img {
    /* height: 36px; */
    width: 40px;
    height: 40px;
    object-fit: contain;
    max-width: unset;
}
.step-text {
    font-size: 12px;
    color: #555;
}
.steps-container .step-text {
    color: #292524;
    font-weight: 600;
}
.steps-container .step-text .step-title {
    color: #44403C;
    font-weight: 400;
}
.page-template-create-bottle-template .step-section {
    background: transparent;
}



#custom-logo,
#custom-label {
    position: absolute;
    display: block;
    z-index: 3;
    pointer-events: auto; /* Make sure it’s interactive */
}

#custom-logo {
    width: 80px;
    top: 25%;
    left: 20%;
    transform: translate(-50%, -50%);
    cursor: move;
}

#custom-label {
    position: absolute;
    z-index: 10;
    padding: 5px;
    font-size: 24px;
    color: #000;
    font-weight: 600;
    cursor: move;
    white-space: nowrap;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.part {
    pointer-events: none;
}


.draggable {
    position: absolute;
    cursor: move;
    z-index: 3;
    pointer-events: auto;
}

.logo-app-container {
    max-width: 1200px;
    width: 100%;
    gap: 24px;
    background: #FFFEFB;
    padding: 24px;
}

.item-header {
    text-align: start;
    padding: 16px;
    border-radius: 10px;
}

.item-heading {
    margin: 0;
    color: #2d3748;
    font-size: 28px;
}
.item-heading span {
    background: #3D2505;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;

}
.logo-content-area {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.logo-control-panel {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-preview-panel {
    flex: 2;
    min-width: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.logo-preview-title {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    font-weight: 600;
    color: #4a5568;
}

.logo-design-area {
    flex-grow: 1;
    position: relative;
    background-color: #f8fafc;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(#e2e8f0 1px, transparent 1px),
                      linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 1;
}

.logo-selector {
    margin-bottom: 20px;
}

.logo-selector-title {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 600;
}

.logo-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.logo-file-input-button {
    display: block;
    background-color: #edf2f7;
    color: #4a5568;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    border: 2px dashed #cbd5e0;
    transition: all 0.2s;
}

.logo-file-input-button:hover {
    background-color: #e2e8f0;
}

.logo-file-input-wrapper input[type="file"] {
    position: absolute;
    font-size: 100px;
    opacity: 0;
    right: 0;
    top: 0;
    cursor: pointer;
}

.logo-image-preview {
    margin-top: 12px;
    width: 100%;
    height: 100px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text-input,
.logo-color-input {
    width: 10%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.logo-color-input {
    height: 40px;
    padding: 5px;
    cursor: pointer;
}

.logo-range-input {
    width: 100%;
    margin: 8px 0;
    accent-color: #4299e1;
}

.logo-range-value {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
}

.logo-section-title {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

.logo-custom-image {
    position: absolute;
    z-index: 10;
    max-width: 200px;
    max-height: 200px;
    cursor: move;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.logo-drag-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(45, 55, 72, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 20;
}


.step-item.active {
    border: 2px solid #000;
    background: #f9f9f9;
}


/* ......................  */



.swatch-item {
    cursor: pointer;
    border-radius: 8px;
    /* padding: 10px; */
    transition: transform 0.2s, box-shadow 0.2s;
}



.swatch-item.active {
    border: 2px solid #333;
    background-color: rgba(0,0,0,0.05);
}

.swatch-item .olila-canvas:hover{
    transform: scale(1.2);
    transition: transform 0.3s;
}

.images {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.color-preview {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 0;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-swatch-label {
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}


/*  create bottle page  */
.step-section .filter-button{
    font-size: 12px !important;	
        padding: 3px 15px;
    }
    @media(max-width: 600px){
        .steps-container{
            overflow-x:auto;
            gap: 10px;
        }
        .step-item {
        width: 35% !important;
            padding-bottom: 10px;
    }
        .step-section {
            padding:0px !important;
        }
        .step-section  .filter-row {
            margin-bottom: 12px;
            gap:0px !important;
        }
        .step-section .filter-label {
            font-size: 14px !important;	
        }
        .step-section .filter-button{
            padding: 0px 8px;
        }
        .custom-grid {
        display: grid
    ;
        grid-template-columns: repeat(2, 1fr) !important;
    }
        .swatch-item .images.olila-bottles-color-change{
            padding:0px !important;
        }
    }