/* WooCommerce notices redesign
   Based on WooCommerce classic notice templates:
   - .woocommerce-error
   - .woocommerce-info
   - .woocommerce-message
*/

/* WooCommerce notices redesign
   Based on WooCommerce classic notice templates:
   - .woocommerce-error
   - .woocommerce-info
   - .woocommerce-message
*/

.woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout {
  --ttc-notice-success: #4A7C59;
  --ttc-notice-success-soft: rgba(74, 124, 89, 0.08);
  --ttc-notice-success-border: rgba(74, 124, 89, 0.18);

  --ttc-notice-info: #B5541A;
  --ttc-notice-info-soft: rgba(181, 84, 26, 0.08);
  --ttc-notice-info-border: rgba(181, 84, 26, 0.18);

  --ttc-notice-error: #C0392B;
  --ttc-notice-error-soft: rgba(192, 57, 43, 0.08);
  --ttc-notice-error-border: rgba(192, 57, 43, 0.18);

  --ttc-notice-heading: var(--e-global-typography-primary-font-family, "Cormorant Garamond", serif);
  --ttc-notice-body: var(--e-global-typography-text-font-family, "Lora", serif);
  --ttc-notice-ui: var(--e-global-typography-accent-font-family, "Jost", sans-serif);
  --ttc-notice-button: "DM Sans", sans-serif;

  --ttc-notice-text: var(--e-global-color-text, #2E1A0E);
  --ttc-notice-surface: #FFFDF9;
  --ttc-notice-radius: 12px;
  --ttc-notice-radius-sm: 8px;
  --ttc-notice-shadow: 0 8px 30px rgba(92, 61, 30, 0.08), 0 2px 6px rgba(92, 61, 30, 0.05);

  display: grid !important;
  gap: 14px !important;
  margin: 0 0 24px !important;
}

.woocommerce-notices-wrapper:empty,
.woocommerce .woocommerce-notices-wrapper:empty,
.woocommerce-NoticeGroup:empty,
.woocommerce-NoticeGroup-checkout:empty {
  display: none !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  position: relative !important;
  margin: 0 !important;
  padding: 18px 20px 18px 82px !important;
  border: 1px solid transparent !important;
  border-left-width: 4px !important;
  border-radius: var(--ttc-notice-radius) !important;
  box-shadow: var(--ttc-notice-shadow) !important;
  background: var(--ttc-notice-surface) !important;
  background-repeat: no-repeat !important;
  background-position: 24px 18px !important;
  background-size: 30px 30px !important;
  color: var(--ttc-notice-text) !important;
  font-family: var(--ttc-notice-body) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  list-style: none !important;
  overflow: hidden !important;
  animation: ttc-notice-enter 0.28s ease !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  content: none !important;
  display: none !important;
}

.woocommerce-error::after,
.woocommerce-info::after,
.woocommerce-message::after {
  content: none !important;
  display: none !important;
}

.woocommerce-message {
  border-color: var(--ttc-notice-success-border) !important;
  border-left-color: var(--ttc-notice-success) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7C59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.3 2.3 4.7-5.1'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(74, 124, 89, 0.06), rgba(255, 255, 255, 0.96)) !important;
}

.woocommerce-info {
  border-color: var(--ttc-notice-info-border) !important;
  border-left-color: var(--ttc-notice-info) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5541A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v5'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(181, 84, 26, 0.06), rgba(255, 255, 255, 0.96)) !important;
}

.woocommerce-error {
  border-color: var(--ttc-notice-error-border) !important;
  border-left-color: var(--ttc-notice-error) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 21 19H3L12 3.5Z'/%3E%3Cpath d='M12 9v4.5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(192, 57, 43, 0.06), rgba(255, 255, 255, 0.97)) !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-error li + li {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px dashed rgba(192, 57, 43, 0.16) !important;
}

.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
  color: inherit !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.16em !important;
}

.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover {
  opacity: 0.82 !important;
}

.woocommerce-message:has(> .button),
.woocommerce-message:has(> .wc-forward),
.woocommerce-message:has(> .restore-item),
.woocommerce-message:has(> .showlogin),
.woocommerce-message:has(> .showcoupon),
.woocommerce-info:has(> .button),
.woocommerce-info:has(> .wc-forward),
.woocommerce-info:has(> .restore-item),
.woocommerce-info:has(> .showlogin),
.woocommerce-info:has(> .showcoupon),
.woocommerce-error:has(> .button),
.woocommerce-error:has(> .wc-forward),
.woocommerce-error:has(> .restore-item),
.woocommerce-error:has(> .showlogin),
.woocommerce-error:has(> .showcoupon) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 16px !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message .wc-forward,
.woocommerce-info .wc-forward,
.woocommerce-error .wc-forward,
.woocommerce-message .showlogin,
.woocommerce-info .showlogin,
.woocommerce-error .showlogin,
.woocommerce-message .showcoupon,
.woocommerce-info .showcoupon,
.woocommerce-error .showcoupon,
.woocommerce-message .restore-item,
.woocommerce-info .restore-item,
.woocommerce-error .restore-item {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  margin: 12px 10px 0 0 !important;
  padding: 0 16px !important;
  border: 1px solid currentColor !important;
  border-radius: var(--ttc-notice-radius-sm) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
  font-family: var(--ttc-notice-button) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease !important;
}

.woocommerce-message > .button,
.woocommerce-info > .button,
.woocommerce-error > .button,
.woocommerce-message > .wc-forward,
.woocommerce-info > .wc-forward,
.woocommerce-error > .wc-forward,
.woocommerce-message > .showlogin,
.woocommerce-info > .showlogin,
.woocommerce-error > .showlogin,
.woocommerce-message > .showcoupon,
.woocommerce-info > .showcoupon,
.woocommerce-error > .showcoupon,
.woocommerce-message > .restore-item,
.woocommerce-info > .restore-item,
.woocommerce-error > .restore-item {
  order: 2 !important;
  margin: 0 0 0 auto !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover,
.woocommerce-message .wc-forward:hover,
.woocommerce-info .wc-forward:hover,
.woocommerce-error .wc-forward:hover,
.woocommerce-message .restore-item:hover,
.woocommerce-info .restore-item:hover,
.woocommerce-error .restore-item:hover {
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

.woocommerce-message .button,
.woocommerce-message .wc-forward,
.woocommerce-message .showlogin,
.woocommerce-message .showcoupon,
.woocommerce-message .restore-item {
  color: var(--ttc-notice-success) !important;
}

.woocommerce-info .button,
.woocommerce-info .wc-forward,
.woocommerce-info .showlogin,
.woocommerce-info .showcoupon,
.woocommerce-info .restore-item {
  color: var(--ttc-notice-info) !important;
}

.woocommerce-error .button,
.woocommerce-error .wc-forward,
.woocommerce-error .showlogin,
.woocommerce-error .showcoupon,
.woocommerce-error .restore-item {
  color: var(--ttc-notice-error) !important;
}

.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover,
.woocommerce-message .showlogin:hover,
.woocommerce-message .showcoupon:hover,
.woocommerce-message .restore-item:hover {
  background: var(--ttc-notice-success) !important;
  color: #fff !important;
}

.woocommerce-info .button:hover,
.woocommerce-info .wc-forward:hover,
.woocommerce-info .showlogin:hover,
.woocommerce-info .showcoupon:hover,
.woocommerce-info .restore-item:hover {
  background: var(--ttc-notice-info) !important;
  color: #fff !important;
}

.woocommerce-error .button:hover,
.woocommerce-error .wc-forward:hover,
.woocommerce-error .showlogin:hover,
.woocommerce-error .showcoupon:hover,
.woocommerce-error .restore-item:hover {
  background: var(--ttc-notice-error) !important;
  color: #fff !important;
}

.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button {
  box-shadow: none !important;
}

.woocommerce-error .showlogin,
.woocommerce-error .showcoupon,
.woocommerce-error .restore-item,
.woocommerce-info .showlogin,
.woocommerce-info .showcoupon,
.woocommerce-info .restore-item,
.woocommerce-message .showlogin,
.woocommerce-message .showcoupon,
.woocommerce-message .restore-item {
  font-family: var(--ttc-notice-ui) !important;
}

.woocommerce-error strong,
.woocommerce-info strong,
.woocommerce-message strong {
  font-family: var(--ttc-notice-heading) !important;
  font-size: 1.15em !important;
  font-weight: 700 !important;
  color: #2A170C !important;
}

.woocommerce-error:focus-within,
.woocommerce-info:focus-within,
.woocommerce-message:focus-within {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(181, 84, 26, 0.08), var(--ttc-notice-shadow) !important;
}

@keyframes ttc-notice-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .woocommerce-notices-wrapper,
  .woocommerce .woocommerce-notices-wrapper,
  .woocommerce-NoticeGroup,
  .woocommerce-NoticeGroup-checkout {
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .woocommerce-error,
  .woocommerce-info,
  .woocommerce-message {
    padding: 16px 16px 16px 68px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    background-position: 20px 16px !important;
    background-size: 24px 24px !important;
  }

  .woocommerce-error::before,
  .woocommerce-info::before,
  .woocommerce-message::before {
    display: none !important;
  }

  .woocommerce-message:has(> .button),
  .woocommerce-message:has(> .wc-forward),
  .woocommerce-message:has(> .restore-item),
  .woocommerce-message:has(> .showlogin),
  .woocommerce-message:has(> .showcoupon),
  .woocommerce-info:has(> .button),
  .woocommerce-info:has(> .wc-forward),
  .woocommerce-info:has(> .restore-item),
  .woocommerce-info:has(> .showlogin),
  .woocommerce-info:has(> .showcoupon),
  .woocommerce-error:has(> .button),
  .woocommerce-error:has(> .wc-forward),
  .woocommerce-error:has(> .restore-item),
  .woocommerce-error:has(> .showlogin),
  .woocommerce-error:has(> .showcoupon) {
    align-items: stretch !important;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button,
  .woocommerce-message .wc-forward,
  .woocommerce-info .wc-forward,
  .woocommerce-error .wc-forward,
  .woocommerce-message .showlogin,
  .woocommerce-info .showlogin,
  .woocommerce-error .showlogin,
  .woocommerce-message .showcoupon,
  .woocommerce-info .showcoupon,
  .woocommerce-error .showcoupon,
  .woocommerce-message .restore-item,
  .woocommerce-info .restore-item,
  .woocommerce-error .restore-item {
    width: 100% !important;
    justify-content: center !important;
    margin-right: 0 !important;
  }

  .woocommerce-message > .button,
  .woocommerce-info > .button,
  .woocommerce-error > .button,
  .woocommerce-message > .wc-forward,
  .woocommerce-info > .wc-forward,
  .woocommerce-error > .wc-forward,
  .woocommerce-message > .showlogin,
  .woocommerce-info > .showlogin,
  .woocommerce-error > .showlogin,
  .woocommerce-message > .showcoupon,
  .woocommerce-info > .showcoupon,
  .woocommerce-error > .showcoupon,
  .woocommerce-message > .restore-item,
  .woocommerce-info > .restore-item,
  .woocommerce-error > .restore-item {
    margin: 4px 0 0 0 !important;
    width: 100% !important;
  }
}

/*  Notices ends here */


/* ============================================================
   PRODUCTS — Custom Style
   ============================================================ */

/* ── Product Grid Container ── */
.elementor-wc-products .products.elementor-grid {
  gap: 22px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Individual Product Card ── */
.elementor-wc-products .products .product {
  background: #FDFAF5;
  border: 1px solid #EDE5D8;
  border-radius: 4px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.elementor-wc-products .products .product:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ── Product Image ── */
.elementor-wc-products .products .product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.5s ease;
}

.elementor-wc-products .products .product:hover img {
  transform: scale(1.02);
}

/* Image overflow clip */
.elementor-wc-products .products .product a.woocommerce-loop-product__link {
  overflow: hidden;
  display: block;
}

/* ── Product Title ── */
.elementor-wc-products .products .product h2.woocommerce-loop-product__title {
	font-family: 'Lora' !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  padding: 18px 18px 8px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price ── */
.elementor-wc-products .products .product .price {
  display: block;
  padding: 0 18px 18px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #8C7B6B !important;
  letter-spacing: 0.02em;
		font-family: 'Lora' !important;
	margin-top:8px !important;
}

.elementor-wc-products .products .product .price .woocommerce-Price-amount {
  color: #4A3728 !important;
  font-weight: 600 !important;
  font-size: 16px;
}

/* ── "Select Options" Button ── */
.elementor-wc-products .products .product .button.add_to_cart_button {
  display: block;
  margin: auto 18px 18px !important;
  padding: 12px 22px !important;
  background: transparent !important;
  color: #1C1410 !important;
  border: 1px solid #1C1410 !important;
  border-radius: 2px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease !important;
}

.elementor-wc-products .products .product .button.add_to_cart_button:hover {
  background: #1C1410 !important;
  color: #F7F2EA !important;
  border-color: #1C1410 !important;
  transform: translateY(-1px);
}

/* ── Sale Badge ── */
.elementor-wc-products .products .product .onsale {
  background: #C4956A !important;
  color: #FDFAF5 !important;
  border-radius: 0 !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  top: 12px !important;
  left: 12px !important;
  min-height: unset !important;
  min-width: unset !important;
  line-height: 1.4 !important;
}

/* ── Mobile Optimization ── */
@media (max-width: 768px) {
  .elementor-wc-products .products.elementor-grid {
    gap: 8px !important;
  }

  .elementor-wc-products .products .product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    -webkit-line-clamp: 3 !important;
    padding: 12px 14px 0px !important;
  }

  .elementor-wc-products .products .product .price {
    font-size: 13px !important;
    padding: 0 14px 14px !important;
  }

  .elementor-wc-products .products .product .price .woocommerce-Price-amount {
    font-size: 12px !important;
  }

  .elementor-wc-products .products .product .button.add_to_cart_button {
    margin: auto 14px 14px !important;
    padding: 10px 16px !important;
    font-size: 10px !important;
  }
}


/* ============================================================



/* product disable btn style color  */
.woocommerce :is(a.button, button.button, input.button, #respond input#submit).alt:is(.disabled, :disabled, [disabled]),
.woocommerce :is(a.button, button.button, input.button, #respond input#submit).alt:is(.disabled, :disabled, [disabled]):hover {
  background-color: #b5541a !important;
}

/* Re-enable hover on disabled button */
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button:disabled {
  pointer-events: auto !important;
  cursor: not-allowed !important;
  position: relative;
}

/* Tooltip bubble */
.woocommerce .single_add_to_cart_button.disabled::after {
  content: "Please select a Sweetener";
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #2c1a0e;
  color: #f5f0e8;
  font-family: 'Lora', serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* Tooltip arrow */
.woocommerce .single_add_to_cart_button.disabled::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #2c1a0e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* Show on hover */
.woocommerce .single_add_to_cart_button.disabled:hover::after,
.woocommerce .single_add_to_cart_button.disabled:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}