/* === Perfumer Cart Drawer Styling === */
.widget_shopping_cart_content {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
    padding: 25px;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.4s ease;
    overflow-y: auto;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
}

/* When active (opened) */
.widget_shopping_cart_content.active {
    transform: translateX(0);
}

/* Cart overlay background */
.perfumer-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
}

/* Fade in overlay when cart opens */
.perfumer-cart-overlay.active {
    display: block;
}

/* Style inside cart */
.widget_shopping_cart_content ul.cart_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart_content ul.cart_list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.widget_shopping_cart_content .total,
.widget_shopping_cart_content .buttons {
    margin-top: 20px;
}

.widget_shopping_cart_content .total {
    font-size: 16px;
    font-weight: 600;
}

.widget_shopping_cart_content .buttons a {
    display: block;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.widget_shopping_cart_content .buttons a:hover {
    background: #444;
}




/* Slide-out panel styles */
.slide-out-panel {
    transform: translateX(100%);
    transition: transform 0.4s ease;
    position: absolute;
    width: 100%;
    background: #fff;
    padding: 1em;
    z-index: 10;
    left: 0;
    top: 0;
    height: 100%;
}

.slide-out-panel.active {
    transform: translateX(0%);
}

/* === Elegant Perfume Plugin Styling === */

body, .perfumer-form {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fefefe;
}

.perfumer-form {
    max-width: 550px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

.perfumer-step {
    margin-bottom: 2.25rem;
}

.perfumer-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #5a4e4e;
    margin-bottom: 1rem;
}

.perfumer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.perfumer-button {
    padding: 0.6rem 1.1rem;
    border: 1px solid #ccc;
    background: #faf7f5;
    color: #333;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    
}

.perfumer-size-btn {
    cursor: pointer;
}

.perfumer-button:hover,
.perfumer-button.active {
    background: #f0e8e3;
    border-color: #bbaea4;
    color: #1f1f1f;
}

input[type="text"],
textarea,
#about_you,
#perfume_name {
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 12px 0;
    border: 1px solid #e0d6cf;
    border-radius: 14px;
    background: #fcf9f7;
    font-size: 1rem;
    font-family: inherit;
    color: #3f322b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
#about_you:focus,
#perfume_name:focus {
    outline: none;
    border-color: #cbb6aa;
    box-shadow: 0 0 0 3px rgba(200, 180, 167, 0.25);
    background-color: #fffefc;
}

.perfumer-summary {
    margin-top: 3rem;
    text-align: center;
}

#perfumer_add_to_cart {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: #b8a89d;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#perfumer_add_to_cart:hover {
    background: #a09389;
}

@media (max-width: 600px) {
    .perfumer-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .perfumer-summary {
        flex-direction: column;
        gap: 1rem;
    }
}

/* === Sidebar Styling for Half-Page Width === */
.perfumer-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50vw !important;
    max-width: 600px;
    height: 100vh;
    background: #fffdfb;
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: right 0.4s ease;
    z-index: 9999;
    overflow-y: auto;
    border-left: 1px solid #e2dcd8;
    cursor: pointer;
}

.perfumer-sidebar.active {
    right: 0 !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.sidebar-header button.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    
}

@media (max-width: 768px) {
    .perfumer-sidebar {
        width: 100vw !important;
    }
}

/* === Open Sidebar Buttons === */
.open-sidebar {
    display: inline-block;
    background-color: #f7f4f2;
    color: #5b4332;
    border: 1px solid #e0d6cf;
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.open-sidebar:hover {
    background-color: #eaddd6;
    color: #3f2c21;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.open-sidebar:active {
    transform: scale(0.98);
    box-shadow: none;
}


/* === Adjust spacing between sidebar openers and inputs === */
.perfumer-step {
    margin-bottom: 1.25rem;
    padding: 1rem 0;
}

.perfumer-step textarea,
.perfumer-step input {
    margin-top: 0;
}

.perfumer-step:last-of-type,
.perfumer-step:nth-last-of-type(2) {
    margin-bottom: 1rem;
    padding-bottom: 0;
}


/* === Tighter vertical rhythm for form layout === */
.perfumer-step {
    margin-bottom: 1.2rem;
    padding: 0;
}

.perfumer-step h3 {
    margin-bottom: 0.5rem;
}

/* Remove excess margin above/below textareas and inputs */
.perfumer-step textarea,
.perfumer-step input {
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
}

/* Reduce spacing before total and button */
.perfumer-summary {
    margin-top: 1rem !important;
}


/* === Extra-tight vertical rhythm === */
.perfumer-step {
    margin-bottom: 0.75rem;
    padding: 0;
}

.perfumer-step h3 {
    margin-bottom: 0.25rem;
}

/* Minimize margins on input elements */
.perfumer-step textarea,
.perfumer-step input {
    margin-top: 0.1rem;
    margin-bottom: 0.5rem;
}

/* Reduce top margin before total section even further */
.perfumer-summary {
    margin-top: 0.5rem !important;
}


/* === Final Tight Layout Pass === */
.perfumer-step {
    margin-bottom: 0.5rem;
}

.perfumer-step h3 {
    margin-bottom: 0;
}

.open-sidebar {
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Textarea + Input tighter spacing */
.perfumer-step textarea,
.perfumer-step input {
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
}

/* Tighten summary section */
.perfumer-summary {
    margin-top: 0.4rem !important;
}


/* === Enforce tight layout === */
.perfumer-step {
    margin: 0 0 0.3rem 0 !important;
    padding: 0 !important;
}

.perfumer-step h3 {
    margin: 0 0 0.2rem 0 !important;
}

.perfumer-step textarea,
.perfumer-step input {
    margin: 0.1rem 0 0.3rem 0 !important;
    padding: 0.6rem 0.75rem !important;
}

.open-sidebar {
    margin-bottom: 0.15rem !important;
    display: inline-block;
}

.perfumer-summary {
    margin-top: 0.3rem !important;
}


/* === Final visual compression === */
.perfumer-step textarea,
.perfumer-step input {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Remove leftover margin from last step */
.perfumer-step:last-of-type {
    margin-bottom: 0.2rem !important;
}

/* Tighten the "Total" block */
.perfumer-summary {
    padding-top: 0.5rem;
    margin-top: 0.3rem !important;
}

#perfumer_add_to_cart {
    margin-top: 0.3rem;
}


/* === Match width for toggles and inputs === */
.open-sidebar {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.75rem;
    text-align: left;
    box-sizing: border-box;
}

.perfumer-step textarea,
.perfumer-step input {
    width: 100%;
    box-sizing: border-box;
}


/* === Make Add to Cart button full width === */
#perfumer_add_to_cart {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
}


/* === Align total price text to the left === */
.perfumer-summary {
    text-align: left !important;
}


/* === Personality Quiz Cleanup === */
.perfumer-sidebar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #5a4e4e;
    margin-bottom: 1rem;
}

.perfumer-sidebar h3 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.perfumer-sidebar .perfumer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.perfumer-sidebar {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}


/* === Add arrow to sidebar toggles === */
.perfumer-sidebar-toggle {
    position: relative;
    padding-right: 2rem !important;
}

.perfumer-sidebar-toggle::after {
    content: "→";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5c3d2e;
    font-size: 1.1rem;
}


/* Enhanced Design Styles */

/* --- Global Typography and Colors --- */
body {
  font-family: 'Inter', sans-serif;
  background-color: #fefcf9;
  color: #3b3b3b;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #3b3b3b;
}

/* --- Button Styles --- */
button {
  background-color: #c19a6b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #d4af7f;
  transform: scale(1.02);
}

/* --- Input Fields and Dropdowns --- */
input[type="text"], input[type="email"], textarea, select {
  border: 1px solid #e0dcd5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #c19a6b33;
  border-color: #c19a6b;
}

/* --- Step Container --- */
.step {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Size Buttons (30ML / 100ML) --- */
.size-option {
  display: inline-block;
  background: #f4f1ec;
  border: 2px solid transparent;
  padding: 12px 20px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-option.active {
  background: #c19a6b;
  color: white;
  border-color: #c19a6b;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .step {
    padding: 16px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }
}

.perfumer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.perfumer-overlay.active {
  display: block;
}

.perfumer-button.active {
  background-color: #5a3e2b !important;  /* Rich brown for contrast */
  color: #fff !important;
  border-color: #5a3e2b !important;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}






/* Floating icon container */
.custom-cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Clickable area — now perfectly square */
.custom-cart-icon .cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;

  width: 48px;          /* ✅ fixed width */
  height: 48px;         /* ✅ square height */
  padding: 0;
  margin: 0;

  color: #222;          /* change to #fff for dark themes */
  background: #f8f8f8;  /* light background — adjust as needed */
  border-radius: 8px;   /* rounded square edges */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

/* Hover bounce */
.custom-cart-icon .cart-link:hover {
  transform: scale(1.1);
  background: #eee;
}

/* Shopping bag icon */
.custom-cart-icon .cart-icon {
  font-size: 30px;   /* ✅ slightly smaller to fit neatly */
  line-height: 1;
  position: relative;
  margin: 0;
}

/* Cart count — perfectly centered inside bag */
.custom-cart-icon .cart-count {
  position: absolute;
  top: 55%;  /* adjust vertical centering */
  left: 50%;
  transform: translate(-50%, -40%);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  pointer-events: none;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}





/* === Cart Bounce Animation === */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  55%  { transform: scale(0.95); }
  75%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* apply to the clickable link so it scales neatly */
.custom-cart-icon .cart-link.cart-bounce {
  animation: cartBounce 0.72s cubic-bezier(.2,.7,.3,1) both;
  will-change: transform;
}

/* ensure hover transform doesn't conflict during animation */
.custom-cart-icon .cart-link {
  transition: transform 0.18s ease;
  transform-origin: center center;
}

