body {
    font-family: 'Glacial Indifference ', sans-serif;
}

h1, h2 {
    font-family: 'Woof', sans-serif;
}

.button, .el-button {
    font-family: 'Woof2', sans-serif;
}


.home-categories-item {
    font-family: 'WDPC-Honey', sans-serif;
}

.wdpc-text {
    font-family: 'WDPC-Athelas', serif;
}

.wdpc-preview-text {
    font-family: 'WDPC-Woof2', sans-serif;
    cursor: text;
  outline: none;        /* removes default focus outline */
  user-select: text;    /* allows selection */
  white-space: pre-wrap;

    
}


/* WDPC - Customizer final CSS */

.wdpc-app {
    display: flex;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    gap: 0;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* LEFT — BOTTLE PREVIEW (30%) */
.wdpc-canvas-wrapper {
    flex: 0 0 35%;
    max-width: 500px;
    min-width: 300px;
    padding: 20px;
    background: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-sizing: border-box;
}
.wdpc-preview-bottle { width: 360px; height: 520px; position: relative; }
#wdpc_base_img { width:100%; height:auto; display:block; position: relative; z-index: 1; }

/* layers sit above base image but below sidebar */
.wdpc-layer { position:absolute; left:0; right:0;   width: 100%; z-index: 2; pointer-events:none; }

/* user media/text */
#wdpc_user_image, #wdpc_user_logo { position:absolute; z-index: 5; display:none; cursor:move; }
#wdpc_user_text {
    pointer-events: auto !important; /* ✅ Must be auto */
    cursor: move !important;
    user-select: none;
}
/* RIGHT — CONTROLS SIDEBAR (70%) */
.wdpc-right-sidebar {
    flex: 1;
    padding: 20px;
    background: #FFE5C5;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 100vh;
}
/* part buttons */
.wdpc-part-buttons { display:flex; flex-direction:column; gap:10px; }
.wdpc-btn {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    border:1px solid #ddd;
    text-align:left;
    cursor:pointer;
}
.wdpc-btn.active { background:#111; color:#fff; border-color:#000; }

/* COLOR SWATCHES — SINGLE ROW & SCROLL HORIZONTAL */
.wdpc-swatches {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
}

.wdpc-swatch {
   width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent; /* default no border */
    transition: border 0.2s ease;
}

/* Hover effect: circle border only */
.wdpc-swatch:hover {
    border-color: #333; /* your border color on hover */
}

/* Selected / Active swatch */
.wdpc-swatch.active {
    border-color: #000; /* your theme color */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; /* optional double-ring */
}

/* OPTIONAL: prettier scrollbar */
.wdpc-swatches::-webkit-scrollbar {
    height: 6px;
}
.wdpc-swatches::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* inputs */
.wdpc-section input[type="file"] { width:100%; }
.wdpc-section input[type="color"] { height:36px; width:100%; padding:0; border:none; }

/* color panel (if you want to show dedicated panel) */
.wdpc-color-panel { display:block; padding:10px; border-radius:6px; background:#fafafa; border:1px solid #eee; }

/* Make the part selector a single horizontal row */
/* ===== CONTAINER ===== */
.wdpc-categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #fdd4a2 !important;
    border-radius: 10px !important;
        margin-top: -14px;
}

/* ===== BUTTON ===== */
.wdpc-categories .home-categories-item {
    flex: 1;
    position: relative;              /* needed for divider */
    font-weight: 600px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 10px 8px !important;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    color: #000;
}

/* ===== DASHED DIVIDER (except last) ===== */
.wdpc-categories .home-categories-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    border-right: 1px dashed #fdd4a2;
}

/* Hover */
.wdpc-categories .home-categories-item:hover {
    background: #fff !important;
    color: #000;
}

/* Active */
.wdpc-categories .home-categories-item.active {
    background: #000 !important;
    color: #fff !important;
    border-radius: 5px;
}

/* Remove divider under active (clean look) */
.wdpc-categories .home-categories-item.active::after {
    border-right-color: transparent;
}

/* Focus safety */
.wdpc-categories .home-categories-item:focus {
    outline: none !important;
}


/* Card container */
.wdpc-color-card {
    position: relative; /* keep in normal flow */
    margin: 50px auto;  /* center horizontally and add top/bottom spacing */
    width: 300px; 
    height:270px;/* adjust width as needed */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(185, 202, 210, 0.5);
    background: #fff;
    padding: 15px;
    text-align: center;
}

/* Title */
.wdpc-color-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Color name */
.wdpc-color-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* Swatch row */
.wdpc-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Circular buttons */
.wdpc-color-item {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
/* Remove all hover backgrounds & borders */
.wdpc-color-item:hover,
.wdpc-color-item:focus,
.wdpc-color-item:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inner color circle */
.wdpc-color-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent; /* default */
    transition: 0.2s ease;
}

/* Active = thick ring */
.wdpc-color-item.active .wdpc-color-inner {
    border: 3px solid #000;
}
/* When selected → show BLACK border */
.wdpc-color-item.selected .wdpc-color-inner {
    border-color: #000; /* black */
}

/* --- BODY CONTROLS RIGHT PANEL (Professional Style) --- */

#wdpc_body_controls {
    width: 150px;
   /* background: #ffffff;*/
    border-radius: 14px;
    padding: 22px;
    /*box-shadow: 0 8px 30px rgba(0,0,0,0.08);*/

    position: absolute;
    top: 55px;
    right: 25px;

    display: none; /* shown only when BODY is active */
    z-index: 40;
}

/* Headers (Text / Image / Product) */
#wdpc_body_controls h4 {
        font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

/* Section Block */
#wdpc_body_controls .wdpc-section {
    margin-bottom: 22px;
}

/* Inputs Styling */
#wdpc_body_controls input,
#wdpc_body_controls select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}

/* Range styling (slider) */
#wdpc_body_controls input[type="range"] {
    background: transparent;
}

/* Add to cart button */
#wdpc_body_controls .wdpc-btn {
    width: 30%;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    background: #FF6F61;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

#wdpc_body_controls .wdpc-btn:hover {
    background: #e85748;
}

/* EXACT style like screenshot */
.wdpc-round-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d7dde3;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    margin: 0 auto;
}

.wdpc-round-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.wdpc-round-btn img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    opacity: 0.85;
}
.wdpc-side-panel {
  position: absolute;
    top: 180px;
    right: 120px; /* hidden */
    width: 170px;
    height: 60%;
    background: #fff;
    padding: 10px;
    border-left: 1px solid #eee;
    border-radius: 12px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transition: right 0.35s ease-in-out;
    z-index: 99999;
}

.wdpc-side-panel.open {
    right: 0;
}

.wdpc-side-header {
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.wdpc-close-btn {
    background: #ff6f61;
    border: none;
    padding: 6px 9px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 8px;
}

.wdpc-close-btn hover{
    background-color: #ffe5c5;
    color: black;
}

.wdpc-input {
     width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
}

.wdpc-main-btn {
     width: 100%;
    padding: 12px;
    background: #ff6f61;
    color: #fff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
.wdpc-main-btn hover{
    background-color: #ffe5c5;
    color: black;
}

#wdpc_body_color_preview {
    transition: background-color 0.25s ease;
}

#wdpc-side-panel {
    right: -350px;
    transition: right .3s ease;
    position: absolute;
      display: none;
}


#wdpc-side-panel.wdpc-open {
    right: 145px;
    display: block;
}


#wdpc-image-panel {
    display: none;
    right: -350px;
    position: absolute;
    transition: right .3s ease;
}
#wdpc-image-panel.wdpc-open {
    display: block;
    right: 145px;
}

/* Small color card preview */
.wdpc-color-card.hidden {
    display: none !important;
}



.wdpc-color-card-preview {
    width: 55px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #ffffff; /* default */
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform .2s, box-shadow .2s;
}

.wdpc-color-card-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* Overlay */
.wdpc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

/* Modal container */
.wdpc-modal {
    display: none;
    position: fixed;
    right: 0;
    top: 5px;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: -3px 0 12px rgba(0,0,0,0.2);
}

/* Modal content */
.wdpc-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.wdpc-modal-header {
    padding-left: 15px;
    background: #f5f5f5;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}



/* Body */
.wdpc-modal-body {
    padding: 15px;
    overflow-y: auto;
}

/* Grid for template thumbnails */
.wdpc-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px;
}

.wdpc-template-item img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.wdpc-template-item {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}
#wdpc-color-modal{
    position: relative;
    margin: 2% 55%;
    width: 225px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(185, 202, 210, 0.5);
    background: #fff;
    padding: 15px;
    text-align: center;
}

/* Make modal float next to sidebar like RRRTS */
#wdpc-color-modal {
    position: absolute;
    top: 100px;           /* adjust */
    right: -345px;        /* sits to the right of body control */
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    z-index: 999999;
}

/* Show when open */
#wdpc-color-modal.open {
    display: block;
}

/* Make sure swatches show normally */
#wdpc_colors_modal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

/* Circle color swatches */
.wdpc-color-item-modal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.wdpc-color-item-modal .wdpc-color-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

/* Active state */
.wdpc-color-item-modal.active .wdpc-color-inner {
    border-color: red;
}

/* Title labels */
#wdpc_color_label_modal {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

#wdpc_body_layer {
position: absolute;
  inset: 0;
  overflow: hidden; /* 🔒 HARD CLIP */
    z-index: 10;
     top: 15%;
  height: 65%;
    pointer-events: auto;
  
}

#wdpc_lid_layer {
  z-index: 20;
  pointer-events: none;
}

#wdpc-3d-wrap {
  width: 100%;
  height: 500px;
  position: relative;
}

#wdpc_3d_canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ==============================
   TEXT TOOLBAR — FINAL FIX
   ============================== */

#wdpc-text-toolbar {
  display: none;
    position: fixed;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    gap: 10px;
    align-items: center;
}

#wdpc-text-toolbar.active {
    display: flex;
}

#wdpc-text-toolbar select,
#wdpc-text-toolbar input[type="number"] {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#wdpc-text-toolbar button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto !important;
}

#tb-text-delete {
    background: white !important;
    color: white !important;
    border-color: #dddddd !important;
    font-weight: 600;
    pointer-events: auto !important;
}

#tb-text-delete:hover {
    background: #cc0000 !important;
    transform: scale(1.05);
}

#wdpc-text-toolbar button:hover {
    background: #f0f0f0;
}

#wdpc-text-toolbar input[type="color"] {
    width: 102px;
    height: 30px;
    border: none;
    cursor: pointer;

}


.wdpc-selectable-text {
  cursor: pointer;
}

#wdpc_body_color_overlay{
  position:absolute;
  inset:0;
  z-index:1.5;
  background:transparent;
  mix-blend-mode:multiply;
  pointer-events:none;
}

.wdpc-canvas-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* BODY ACTION ROW */
.wdpc-body-actions-row {
  display: flex;
  gap: 10px;
  margin-top: -150px;
  padding-top: 1px;
  margin-left: -36vw;
}

.wdpc-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  cursor: pointer;
}

.wdpc-action-btn:hover {
  background: #eaeaea;
}

.wdpc-action-btn.wdpc-danger {
  background: #ffe8e8;
  border-color: #f2b4b4;
  color: #b10000;
}


@media (max-width: 767px) {
  #wdpc_body_controls {
    padding-top: 10px;
  }
}

#wdpc_preview_box {
  position: relative;
    overflow: hidden;
    

}

#wdpc_3d_canvas {
  pointer-events: none; /* 🔥 MAIN FIX */
}

/* ===============================
   MOBILE HEADER DROPDOWN
   =============================== */

.wdpc-header-dropdown {
  display: none;
}

@media (max-width: 767px) {

  /* Hide desktop header buttons */
  .home-categories {
    display: none;
  }

  .wdpc-header-dropdown {
    display: block;
    margin-bottom: 12px;
  }

  .wdpc-header-toggle {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
  }

  .wdpc-header-menu {
    display: none;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .wdpc-header-menu button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
  }

  .wdpc-header-menu button:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

  .wdpc-header-dropdown.open .wdpc-header-menu {
    display: block;
  }
}
/* ===============================
   MOBILE BODY TOOL DROPDOWN
   =============================== */

.wdpc-body-dropdown {
  display: none;
}

@media (max-width: 767px) {

  /* Hide desktop body tools */
  #wdpc_body_controls .wdpc-section {
    display: none;
  }

  .wdpc-body-dropdown {
    display: block;
    margin-bottom: 12px;
  }

  .wdpc-body-toggle {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #ff6f61;
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
  }
.wdpc-body-toggle hover{
    background-color: #000;
    
}

  .wdpc-body-menu {
    display: none;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .wdpc-body-menu button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
  }

  .wdpc-body-menu button:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

  .wdpc-body-dropdown.open .wdpc-body-menu {
    display: block;
  }
}
/* ===============================
   WDPC MODAL CENTERING (GLOBAL)
   =============================== */

#wdpc-color-modal {
  position: fixed;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  max-width: 310px;
  max-height:680vh;

  background: #fff;
  border-radius: 14px;
  overflow-y: auto;

  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

#wdpc-design-modal
{
  position: fixed;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
    height: 100%;
  max-width: 310px;
  max-height: 60vh;
  background: #fff;
  border-radius: 14px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}



#wdpc-side-panel{
    position: fixed;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%);
  max-width: 310px;
  max-height: 60vh;
  background: #fff;
  border-radius: 14px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
#wdpc-image-panel{
    position: fixed;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%);
  max-width: 310px;
  max-height: 60vh;
  background: #fff;
  border-radius: 14px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}


@media (max-width: 767px) {
  #wdpc-color-modal,
  #wdpc-design-modal,
  #wdpc-side-panel,
  #wdpc-image-panel,
  #wdpc-sticker-modal,
  #wdpc-layers-modal {
    width: 94%;
    max-height: 85vh;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

@media (max-width: 767px) {
    #wdpc-color-modal{
     top: 70%;
  left: -5%;
    }
}


    
#wdpc-color-modal,
#wdpc-design-modal,
#wdpc-side-panel,
#wdpc-image-panel {
  animation: wdpcFadeIn 0.2s ease;
}

@keyframes wdpcFadeIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 767px) {

  .wdpc-body-actions-row {
   /* display: flex;
    flex-direction: column;*/
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin-left: -136px;
    margin-left: -60vw;
    margin-top: 48vh;
  }

  .wdpc-action-btn {
    width: 70%;
    max-width: 240px;
    text-align: center;
  }

}
/* BODY PREVIEW */
.wdpc-body-preview-row {
  margin: 10px 0 20px;
}

.wdpc-body-preview-box {
  width: 100%;
  max-width: 470px;
  height: 300px;
      margin-left: 16%;
  margin-top: 40px;
  margin-bottom:40px;
  background: #f7f7f7;
  border-radius: 14px;
  border: 2px dashed #ddd;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Layers */
.wdpc-preview-layer.body {
    position: absolute;
    inset: 0;
    background: transparent;
}

.wdpc-preview-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #000;
  white-space: nowrap;
  text-align: center;
  z-index: 999999;
  pointer-events: auto;
  
}
.wdpc-preview-text.active {
  outline: 2px dashed #007cba;
  outline-offset: 4px;
  z-index: 999999;      
}

.wdpc-preview-image {
    pointer-events: auto;
}

/* MOBILE */
@media (max-width: 767px) {
  .wdpc-body-preview-box {
    height: 35vh;
    max-width: 50vw;
  }
}

#wdpc_body_preview {
    display: none;
     position: relative;
}



.wdpc-preview-image,
.wdpc-preview-sticker,
.wdpc-preview-template {
    overflow: visible !important;
}

.wdpc-preview-image.ui-draggable-dragging {
   opacity: 0.7 !important;
    z-index: 9999 !important;
    cursor: move !important;
}

.wdpc-preview-image{
    opacity: 0.9;
}
/* ================================
   IMAGE ALIGNMENT TOOLBAR
   ================================ */

#wdpc-image-toolbar {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 6px;
   z-index: 9999;
  visibility: hidden;
  opacity: 0;
   border-radius: 5px !important;
   padding: 6px 10px;
  background: #fff;
   position: absolute;
  top: 100px;                /* 🔼 preview se upar */
  left: 45%;
  transform: translateX(-50%);
}


#wdpc-image-toolbar.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.wdpc-img-delete {
  background: #d63638;
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.wdpc-img-delete:hover {
  background: #b32d2e;
}

/* Button groups */
.wdpc-toolbar-group {
  display: flex;
  gap: 6px;
   position: relative; /* 🔑 anchor */
}

/* Buttons */
.wdpc-image-toolbar button {
  min-width: 30px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wdpc-image-toolbar button:hover {
  background: #ff6f61;
  border-color: #ff6f61;
  color: #fff;
}

/* Separator */
.wdpc-toolbar-sep {
  width: 1px;
  height: 22px;
  background: #ddd;
  margin: 0 6px;
}
#wdpc-image-toolbar {
  pointer-events: auto !important;
}

#wdpc-image-toolbar * {
  pointer-events: auto !important;
}
canvas {
  pointer-events: none;
}
#wdpc-text-toolbar,
#wdpc-text-toolbar * {
  pointer-events: auto !important;
}
/* FILTER POPUP */
.wdpc-filter-panel {
  position: absolute;
  top: 110%;                 /* 🔽 toolbar ke niche */
  left: 50%;
  transform: translateX(-50%);

  display: none;
  gap: 12px;
  padding: 12px;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);

  z-index: 999999;
  white-space: nowrap;
}

/* show */
.wdpc-filter-panel.active {
  display: flex;
}
.wdpc-filter-item {
  width: 72px;
  display: flex;              /* 🔥 */
  flex-direction: column;     /* 🔥 image upar, text niche */
  align-items: center;
  gap: 6px;                   /* image & text gap */
  cursor: pointer;
}

.wdpc-filter-item img {
  width: 100%;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.wdpc-filter-item span {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #333;
  white-space: nowrap;
}

.wdpc-filter-item:hover img {
  outline: 2px solid #ff6f61;
}


.wdpc-categories{
    border:none;
}

.wdpc-sticker-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.wdpc-sticker-item{
  width:100%;
  cursor:pointer;
}

.wdpc-close-modal{
    background: #ff6f61; border: none; padding: 6px 9px; border-radius: 50%; color: #fff; cursor: pointer; font-size: 8px;
}

/* Sticker toolbar */
/* Sticker toolbar fixed at top */
.wcpc-sticker-toolbar {
    position: fixed;       /* 🔑 float at top of viewport */
    top: 20px;             /* distance from top */
    left: 50%;             /* center horizontally */
    transform: translateX(-50%);
    display: none;         /* hide initially */
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    z-index: 999999;       /* above stickers */
}


.wcpc-sticker-toolbar.active {
    display: flex;
}


#wdpc-sticker-toolbar * {
  pointer-events: auto !important;
      top: -400px !important;
      left: 180px !important;
      background-color: white;

}
canvas {
  pointer-events: none;
}

.wdpc-toolbar-sep {
    width: 1px;
    background: #fff;
    height: 20px;
}

#wcpc-sticker-toolbar button {
    background: #fff;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color:black;
}

#wcpc-sticker-toolbar button:hover {
    background: #eee;
}

.wdpc-sticker-delete {
  background: #d63638;
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.wdpc-sticker-delete:hover {
  background: #b32d2e;
}

/* Button groups */
.wdpc-toolbar-group {
  display: flex;
  gap: 6px;
   position: relative; /* 🔑 anchor */
}

/* Buttons */

.wdpc-sticker-toolbar button:hover {
  background: #ff6f61;
  border-color: #ff6f61;
  color: #fff;
}

/* Separator */
.wdpc-toolbar-sep {
  width: 1px;
  height: 22px;
  background: #ddd;
  margin: 0 6px;
}




/*-------text-css-------------------*/
.wdpc-wrapper {
    position: absolute;
    border: 1px dashed #333;
    display: inline-block;
    min-width: 100px;
    min-height: 50px;
    padding: 5px;
    /*background: rgba(255,255,255,0.8);*/
    cursor: move;
    z-index: 10;
}

.wdpc-wrapper textarea {
    width: 100%;
    height: 64px;
    resize: none;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.wdpc-close, .wdpc-rotate {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 15;
}

.wdpc-close {
    top: -15px;
    right: -15px;
    background-color: #ff6b6b;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
}

.wdpc-rotate {
    bottom: -15px;
    right: -15px;
    background-image: url('https://www.iconexperience.com/_img/o_collection_png/green_dark_grey/512x512/plain/rotate_right.png');
}



.wdpc-rotate-left, .wdpc-rotate-right {
    position: absolute;
    top: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    background: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    user-select: none;
}
.wdpc-rotate-left { right: 40px; }
.wdpc-rotate-right { right: 20px; }
.wdpc-sticker-toolbar:not(.active) {
  display: none !important;
}


/* Hide 2D layers in front of 3D */
#wdpc_preview_box .wdpc-layer {
    display: none !important;
}

/* Enable mouse events on 3D canvas */
/* Enable mouse events and touch on 3D canvas */
#wdpc_3d_container canvas {
    pointer-events: auto !important;
    touch-action: none !important;
}

#wdpc_3d_container {
    touch-action: none !important;
}

/* Position body design elements over 3D bottle body area */
#wdpc_preview_box {
    position: relative !important;
}

#wdpc_user_text,
#wdpc_user_image,
#wdpc_user_logo {
    position: absolute !important;
    z-index: 10 !important; /* Above 3D but below controls */
    pointer-events: auto !important;
}

/* Center body design area over GLB body mesh */

#wdpc_user_image {
    right: 20% !important;
    top: 45% !important;
}

#wdpc_user_logo {
    left: 20% !important;
    top: 40% !important;
}

/* Body Design Canvas - Positioned over 3D bottle body */
/* Body Design Canvas */
#wdpc_body_design_canvas {
    width: 512px !important;
    height: 512px !important;
    background: transparent;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
        overflow: visible !important;

}

/* All elements inside canvas should render cleanly */
#wdpc_body_design_canvas * {
    image-rendering: -webkit-optimize-contrast;
}

#wdpc_body_design_canvas.active {
     display: block !important;
    border-color: rgba(255, 111, 97, 0.8) !important;
}

/* Images inside canvas */
#wdpc_body_design_canvas img {
    pointer-events: auto !important;
    display: block !important;
}


/* Show canvas in body mode */
body.wdpc-body-mode #wdpc_body_design_canvas {
    display: block !important;
}


/* Design elements inside canvas */
#wdpc_body_design_canvas #wdpc_user_text,
#wdpc_body_design_canvas #wdpc_user_image,
#wdpc_body_design_canvas #wdpc_user_logo,
#wdpc_body_design_canvas .wdpc-sticker {
    z-index: 10;
}

/* Show canvas only in body mode */
.wdpc-body-mode #wdpc_body_design_canvas {
    display: block !important;
}

.wdpc-zoom-btn {
    transition: all 0.2s ease;
    color: black;
}

.wdpc-zoom-btn:hover {
    background: #f0f0f0 !important;
    transform: scale(1.1);
    border-color: black !important;
    color: black;
}

.wdpc-zoom-btn:active {
    transform: scale(0.95);
}

.wdpc-designs-panel {
    width: 120px;
    background: #f8f9fa;
    border-radius:5px;
    display: flex;
    flex-direction: column;
    height: 88vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}


.wdpc-designs-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wdpc-designs-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.wdpc-design-tab {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
   
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.wdpc-design-tab:hover {
    border-color: #ff6f61;
    background: #fff5f4;
}

.wdpc-design-tab.active {
    background: black;
    border-color: #ff6f61;
    color: white;
}

.wdpc-design-name {
    font-weight: 500;
    font-size: 12px;
}

.wdpc-design-delete {
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.wdpc-design-tab:hover .wdpc-design-delete {
    opacity: 1;
}

.wdpc-design-tab.active .wdpc-design-delete {
    color: white;
}

.wdpc-design-delete:hover {
    color: #ff0000;
}

.wdpc-add-design-btn {
    margin: 10px;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wdpc-add-design-btn:hover {
    background:#141414;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,111,97,0.3);
}

.wdpc-design-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wdpc-design-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wdpc-design-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wdpc-design-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.wdpc-design-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.wdpc-design-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.wdpc-design-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wdpc-design-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.wdpc-design-option-btn:hover {
    border-color: #ff6f61;
    background: #fff5f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.2);
}

.wdpc-option-icon {
    font-size: 40px;
    line-height: 1;
}

.wdpc-option-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wdpc-option-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wdpc-design-modal {
        width: 95%;
        margin: 20px;
    }
    
    .wdpc-design-modal-body {
        padding: 16px;
    }
    
    .wdpc-design-option-btn {
        padding: 16px;
    }
    
    .wdpc-option-icon {
        font-size: 32px;
    }
    
    .wdpc-option-content h4 {
        font-size: 15px;
    }
    
    .wdpc-option-content p {
        font-size: 12px;
    }
}

/* ========== STICKER MODAL CATEGORIES ========== */
.wdpc-sticker-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.wdpc-sticker-back-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    color: #333333;
}

.wdpc-sticker-back-btn:hover {
    background: #e0e0e0;
}

/* Category Cards Grid */
.wdpc-sticker-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fixed 2 columns */
    gap: 20px;
    padding: 24px;
}

.wdpc-category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: -1px 24px; /* More vertical padding for better proportion */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 180px; /* Ensures consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wdpc-category-card:hover {
    border-color: #ff6f61;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 111, 97, 0.2);
    background: #fff5f4;
}

.wdpc-category-icon {
    font-size: 35px; /* Larger icons for 2-column layout */
    margin-bottom: 16px;
    line-height: 1;
}

.wdpc-category-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px; /* Slightly larger text */
    font-weight: 600;
    color: #333;
}

.wdpc-category-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Modal content sizing */
.wdpc-sticker-modal-content {
    max-width: 700px; /* Optimal width for 2 columns */
    max-height: 85vh;
    overflow-y: auto;
}

/* Mobile Responsive - Stack to 1 column on small screens */
@media (max-width: 600px) {
    .wdpc-sticker-categories {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 16px;
        padding: 16px;
    }
    
    .wdpc-category-card {
        padding: 24px 16px;
        min-height: 150px;
    }
    
    .wdpc-category-icon {
        font-size: 48px;
    }
    
    .wdpc-category-card h4 {
        font-size: 18px;
    }
}

/* Tablet - Keep 2 columns */
@media (min-width: 601px) and (max-width: 1024px) {
    .wdpc-sticker-categories {
        gap: 16px;
        padding: 20px;
    }
    
    .wdpc-category-card {
        padding: 28px 20px;
    }

    
    .wdpc-category-icon {
        font-size: 36px;
    }
    
    .wdpc-sticker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 16px;
    }
}
/* Stickers in design canvas */
#wdpc_body_design_canvas .wdpc-sticker,
#wdpc_body_design_canvas .wdpc-canvas-sticker {
    display: block !important;
    pointer-events: auto !important;
    position: absolute !important;
}

/* Preview sticker active state */
.wdpc-preview-sticker {
    transition: all 0.2s;
}

.wdpc-preview-sticker.active {
    border: 2px dashed #ff6f61 !important;
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
}

/* Canvas stickers - no interaction */
#wdpc_body_design_canvas .wdpc-sticker {
    pointer-events: none; /* Don't allow clicking canvas stickers */
}

/* Only preview stickers are clickable */
.wdpc-preview-sticker {
    pointer-events: auto !important;
    cursor: pointer !important;
}


/* Smooth dragging feedback */
.wdpc-dragging {
    opacity: 0.9;
    cursor: move !important;
    z-index: 1000;
    transition: opacity 0.2s;
}



/* Hover effect for preview elements */
.wdpc-preview-text:hover,
.wdpc-preview-image:hover,
.wdpc-preview-sticker:hover,
.wdpc-preview-template:hover {
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    transition: box-shadow 0.2s;
}

/* Active element highlight */
.wdpc-preview-text.active,
.wdpc-preview-image.active,
.wdpc-preview-sticker.active,
.wdpc-preview-template.active {
    box-shadow: 0 0 0 2px #4a90e2;
}

/* Prevent text selection during drag/resize */
.wdpc-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}


.wdpc-transform-wrapper {
    position: absolute;
    border: 2px dashed rgba(74, 144, 226, 0.8) !important;
    pointer-events: none;
    box-sizing: content-box;
}

.wdpc-transform-wrapper.wdpc-resizing,
.wdpc-transform-wrapper.wdpc-rotating {
    border-color: #4a90e2 !important;
}

/* Element inside wrapper */
.wdpc-transform-wrapper img {
    pointer-events: auto;
    cursor: move;
}


/* Rotate handle - bottom center with icon */
.wdpc-rotate-handle {
    position: absolute;
    width: 24px !important;
    height: 24px !important;
    background: #ffffff !important;
    border: 2px solid #4a90e2 !important;
    border-radius: 50% !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    cursor: grab !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4a90e2;
    font-weight: bold;
    transition: all 0.2s ease;
}

.wdpc-rotate-handle:hover {
    background: #4a90e2 !important;
    color: #ffffff !important;
    transform: translateX(-50%) scale(1.2) !important;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.6) !important;
}

.wdpc-rotate-handle:active,
.wdpc-rotate-handle[style*="grabbing"] {
    cursor: grabbing !important;
    background: #357abd !important;
    color: #ffffff !important;
}

/* Hide handles when not active */
.wdpc-transform-wrapper:not(:hover), .wdpc-transform-wrapper:not(:hover) .wdpc-rotate-handle {
    opacity: 0.7;
}

/* Show handles clearly when hovering */
.wdpc-transform-wrapper:hover, 
.wdpc-transform-wrapper:hover .wdpc-rotate-handle {
    opacity: 1;
}

/* During resize/rotate, keep handles visible */
.wdpc-transform-wrapper.wdpc-resizing,
.wdpc-transform-wrapper.wdpc-rotating .wdpc-rotate-handle {
    opacity: 1 !important;
}

/* Prevent selection during transform */

.wdpc-rotating,
.wdpc-rotating * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* 3D Control Button (for reset rotation) */
.wdpc-3d-control-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.wdpc-3d-control-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: scale(1.1);
}

.wdpc-3d-control-btn:active {
    transform: scale(0.95);
}

.wdpc-3d-control-btn svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* Canvas cursor */
#wdpc_3d_canvas {
    cursor: grab;
}

#wdpc_3d_canvas:active {
    cursor: grabbing;
}

/* ===============================
   DESIGN TEMPLATE CATEGORIES
   =============================== */

.wdpc-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.wdpc-template-category-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdpc-template-category-card:hover {
    border-color: #FF6F61;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.wdpc-category-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.wdpc-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Back Button */
#wdpc-template-back {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#wdpc-template-back:hover {
    background: #e0e0e0;
}

/* Templates Grid (existing, just ensure it's styled) */
.wdpc-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.wdpc-template-item {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wdpc-template-item:hover {
    border-color: #FF6F61;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}



#wdpc-template-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wdpc-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .wdpc-template-category-card {
        padding: 20px 15px;
    }
    
    .wdpc-category-icon {
        font-size: 36px;
    }
}

/* ===============================
   LAYERS PANEL
   =============================== */

/* ===============================
   LAYERS MODAL (Like other modals)
   =============================== */

#wdpc-layers-modal {
    display: none;
}

#wdpc-layers-modal .wdpc-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 600px;
}

.wdpc-modal-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wdpc-btn-clear-layers {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.wdpc-btn-clear-layers:hover {
    background: #d32f2f;
}

.wdpc-layers-list {
    overflow-y: auto;
    max-height: 500px;
    padding: 20px;
}

.wdpc-no-layers {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* Layer Item */
.wdpc-layer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wdpc-layer-item:hover {
    background: #f0f0f0;
    border-color: #FF6F61;
}

.wdpc-layer-item.active {
    background: #fff5f3;
    border-color: #FF6F61;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.2);
}

/* Layer Thumbnail */
.wdpc-layer-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.wdpc-layer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Layer Info */
.wdpc-layer-info {
    flex: 1;
    min-width: 0;
}

.wdpc-layer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wdpc-layer-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layer Actions */
.wdpc-layer-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wdpc-layer-action-btn {
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.wdpc-layer-action-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: scale(1.1);
}

.wdpc-layer-action-btn.danger:hover {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
}

/* Layer Order Buttons */
.wdpc-layer-order {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wdpc-layer-order-btn {
    background: white;
    border: 1px solid #ddd;
    width: 28px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wdpc-layer-order-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #FF6F61;
}

.wdpc-layer-order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #wdpc-layers-modal .wdpc-modal-content {
        width: 95%;
        max-height: 80vh;
    }
    
    .wdpc-layers-list {
        padding: 15px;
        max-height: 60vh;
    }
    
    .wdpc-layer-item {
        padding: 10px;
        gap: 10px;
    }
    
    .wdpc-layer-thumbnail {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .wdpc-layer-name {
        font-size: 13px;
    }
}

#wdpc_layers_btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d7dde3;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    margin: 0 auto;
}

#wdpc_layers_btn:hover {
      transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#wdpc-export-psd {
    color: white;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: white;
    margin-top: 1px;
}

#wdpc-export-psd:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#wdpc-export-psd:active {
    transform: translateY(0);
}

/* ===============================
   COMPLETE RESPONSIVE SYSTEM
   =============================== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
  .wdpc-app {
    max-width: 1920px;
    margin: 0 auto;
  }
  
  .wdpc-canvas-wrapper {
    max-width: 600px;
  }
}

/* Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .wdpc-canvas-wrapper {
    flex: 0 0 35%;
    max-width: 500px;
  }
  
  .wdpc-right-sidebar {
    flex: 1;
    padding: 20px;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .wdpc-canvas-wrapper {
    flex: 0 0 40%;
    max-width: 450px;
    padding: 15px;
  }
  
  .wdpc-right-sidebar {
    flex: 1;
    padding: 15px;
  }
  
  #wdpc_body_controls {
    right: 15px;
  }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .wdpc-app {
    flex-direction: column;
  }
  
  .wdpc-canvas-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 500px;
    order: 1;
  }
  
  .wdpc-right-sidebar {
    width: 100%;
    order: 2;
    max-height: none;
  }
  
  #wdpc_3d_container {
    height: 500px;
  }
  
  #wdpc_body_controls {
   
    top: auto;
    margin: 20px auto;
  }
}

/* Mobile & Tablet Portrait (max-width: 767px) */
@media (max-width: 767px) {
  .wdpc-app {
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
  }
  
  .wdpc-canvas-wrapper {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    order: 1;
    min-height: 400px;
    padding: 10px;
  }
  
  .wdpc-right-sidebar {
    width: 100%;
    order: 2;
    padding: 15px;
    max-height: none;
  }
  
  #wdpc_3d_container {
    width: 100% !important;
    height: 400px !important;
  }
  
  #wdpc_3d_canvas {
    width: 100% !important;
    height: 400px !important;
  }
  
  /* Body controls centered */
  #wdpc_body_controls {
    position: relative;
    right: auto;
    top: auto;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
  }
  
  /* Actions row stacked */
  .wdpc-body-actions-row {
    flex-direction: column;
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
  }
  
  .wdpc-action-btn {
    width: 100%;
    max-width: 100%;
  }
  
  /* Preview box full width */
  .wdpc-body-preview-box {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Categories horizontal scroll */
  .wdpc-categories {
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .wdpc-canvas-wrapper {
    padding: 5px;
    min-height: 350px;
  }
  
  #wdpc_3d_container {
    height: 350px !important;
  }
  
  #wdpc_3d_canvas {
    height: 350px !important;
  }
  
  .wdpc-right-sidebar {
    padding: 10px;
    gap: 15px;
  }
  
  .wdpc-body-preview-box {
    height: 250px;
  }
  
  /* Smaller buttons on tiny screens */
  .wdpc-round-btn {
    width: 36px;
    height: 36px;
  }
  
  .wdpc-round-btn img {
    width: 14px;
    height: 14px;
  }
}

/* Extra Small (max-width: 360px) */
@media (max-width: 360px) {
  .wdpc-canvas-wrapper {
    min-height: 300px;
  }
  
  #wdpc_3d_container {
    height: 300px !important;
  }
  
  #wdpc_3d_canvas {
    height: 300px !important;
  }
}


/* ===============================
   RESIZE HANDLES - CHILD APPROACH
   =============================== */

.wdpc-resize-handle {
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    border: 3px solid #FF6F61 !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    opacity: 0 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

/* Position corners */
.wdpc-resize-handle[data-pos="nw"] {
    top: -8px !important;
    left: -8px !important;
    cursor: nw-resize !important;
}

.wdpc-resize-handle[data-pos="ne"] {
    top: -8px !important;
    right: -8px !important;
    cursor: ne-resize !important;
}

.wdpc-resize-handle[data-pos="sw"] {
    bottom: -8px !important;
    left: -8px !important;
    cursor: sw-resize !important;
}

.wdpc-resize-handle[data-pos="se"] {
    bottom: -8px !important;
    right: -8px !important;
    cursor: se-resize !important;
}

/* Show handles on hover or when active */
.wdpc-preview-image:hover .wdpc-resize-handle,
.wdpc-preview-sticker:hover .wdpc-resize-handle,
.wdpc-preview-template:hover .wdpc-resize-handle,
.wdpc-preview-image.active .wdpc-resize-handle,
.wdpc-preview-sticker.active .wdpc-resize-handle,
.wdpc-preview-template.active .wdpc-resize-handle,
.wdpc-resizing .wdpc-resize-handle {
    opacity: 1 !important;
}

.wdpc-resize-handle:hover {
    transform: scale(1.3) !important;
    background: #FF6F61 !important;
    border-color: #ffffff !important;
}

/* Make sure parent is positioned */
.wdpc-preview-image,
.wdpc-preview-sticker,
.wdpc-preview-template {
    position: absolute !important;
}

/* During resize */
.wdpc-resizing {
    opacity: 0.9;
    transition: none !important;
}

/* Prevent text selection during resize */
body.wdpc-resizing,
body.wdpc-resizing * {
    user-select: none !important;
    -webkit-user-select: none !important;
}