/* ============================================================
   Zen Gin AI Chat Widget
   ============================================================ */

/* ── Floating bubble button ──────────────────────────────── */
.chat-bubble-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid rgba(212, 175, 55, 0.6); /* gold accent */
  color: #d4af37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: chat-pulse 3s infinite;
}

.chat-bubble-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(212, 175, 55, 0.15);
}

.chat-bubble-btn__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.chat-bubble-btn__icon--close {
  display: none;
}

.chat-bubble-btn__label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: -2px;
  color: #d4af37;
}

@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0 rgba(212,175,55,0.4); }
  50%       { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 8px rgba(212,175,55,0); }
}

/* ── Chat panel ──────────────────────────────────────────── */
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 520px;
  max-height: calc(100vh - 7rem);
  background: #0d0d0d;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Panel header ────────────────────────────────────────── */
.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.chat-panel__header-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-panel__avatar {
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.chat-panel__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f0e68c;
  letter-spacing: 0.02em;
}

.chat-panel__subtitle {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

.chat-panel__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.3rem;
  transition: color 0.15s;
}

.chat-panel__close:hover { color: #fff; }

/* ── Messages area ────────────────────────────────────────── */
.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.2) transparent;
}

.chat-panel__messages::-webkit-scrollbar { width: 4px; }
.chat-panel__messages::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 2px; }

.chat-message { display: flex; }
.chat-message--user  { justify-content: flex-end; }
.chat-message--assistant { justify-content: flex-start; }

.chat-bubble {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble--user {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #f0e68c;
  border-bottom-right-radius: 0.25rem;
  border: 1px solid rgba(212,175,55,0.2);
}

.chat-bubble--assistant {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.chat-bubble--error {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.3);
  color: #fca5a5;
}

/* ── Typing indicator ────────────────────────────────────── */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.9rem;
}

.chat-typing-indicator span {
  width: 7px;
  height: 7px;
  background: rgba(212,175,55,0.5);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%            { transform: translateY(-6px); opacity: 1; }
}

/* ── Input footer ────────────────────────────────────────── */
.chat-panel__footer {
  padding: 0.75rem 0.9rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.84rem;
  padding: 0.55rem 0.75rem;
  resize: none;
  outline: none;
  min-height: 2.4rem;
  max-height: 6rem;
  transition: border-color 0.15s;
  font-family: inherit;
}

.chat-input:focus {
  border-color: rgba(212,175,55,0.45);
}

.chat-input::placeholder { color: rgba(255,255,255,0.3); }

.chat-send-btn {
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, #d4af37, #b8960e);
  border: none;
  border-radius: 0.65rem;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}

.chat-send-btn:hover { opacity: 0.9; transform: scale(1.04); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.chat-panel__powered-by {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  margin-top: 0.4rem;
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* Mobile: full-width panel */
@media (max-width: 480px) {
  .chat-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 5rem;
  }
  .chat-bubble-btn {
    right: 1rem;
    bottom: 1rem;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * OFF require_tree .



 */

:root {
    --my-min-height: calc(100vh - 130px);
    --tw-ring-color: #C7A37F;
}


/* Modal styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black with opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
}

button {
    padding: 10px;
    /* margin-top: 10px; */
}

body {
    background-color: black;
    border-radius: 20px;
}

#content {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 130px);
}

#content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/assets/line.svg);
    background-repeat: repeat-x;
    background-position: center;
    background-size: 300px 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

#content>* {
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: radial-gradient(50% 50% at 50% 50%, #C7A37F 0%, #493928 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-border {
    padding: 1px;
    background: linear-gradient(86.31deg, #302D29 -1.16%, #B79676 51.9%, #302D29 97.46%);
}

.gradient-border .bg-black {
    border-radius: 1000px;
    background-color: #000;
}

.inverted-rounded:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -70px;
    height: 70px;
    width: 70px;
    background: transparent;

    /* border-radius of pseudo element */
    border-bottom-right-radius: 50%;

    /* box shadow to give the shadow of the pseudo-element the same color as the background */
    box-shadow: 0 40px 0 0 rgb(34, 34, 34);
}

.inverted-rounded:after {
    content: "";
    position: absolute;
    top: -70px;
    right: 0;
    height: 70px;
    width: 70px;
    background: transparent;
    border-bottom-right-radius: 50%;
    box-shadow: 0 40px 0 0 rgb(34, 34, 34);
}

.notify_subscribe {
    height: 0;
    width: 0;
    display: none;
}

#notify-me:checked+.inverted-rounded {
    width: 100%;
}

#notify-me:checked+.inverted-rounded>div {
    width: 100%;
}

#notify-me:checked+.inverted-rounded .notify_subscribe {
    height: min-content;
    width: 100%;
    display: flex;
}

#notify-me:checked+.inverted-rounded>div>label {
    display: none;
}

#notify-me:checked+.inverted-rounded:before {
    display: none;
}

#notify-me:checked+.inverted-rounded:after {
    display: none;
}

.outline-button {
    display: flex;
    justify-items: center;
    align-items: center;
    border: 1px solid #C7A37F;
    border-radius: 50px;
    padding: 10px 24px;
    width: fit-content;
    margin: 0 auto;

    font-size: 14px;
    color: white;
}

.gradient-text {
    background: radial-gradient(circle at center, #C7A37F 0%, #493928 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.justify-start {
    justify-content: flex-start;
}

.underline {
    text-underline-offset: 3px;
}

.text-balance {
    text-wrap: balance;
}

.hero-img {
    display: block;
    width: 100%;
    max-height: 885px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .hero-img {
        max-width: 70%;
    }
}

.cart-btn_icon {
    background: #F2F2F2;
    width: 52px;
    height: 52px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.custom-select-wrapper .select-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #4a5568;
}

.breadcrumbs li:last-child a {
    font-weight: 700;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    /* Firefox */
}

.order-details_col {
    min-width: 280px;
}

.cart-item:not(:first-child),
.shipment-items li:not(:first-child) {
    border-top: 1px solid #c7a37f;
}

.shipping-methods__rate:not(:first-child) {
    border-top: 1px solid #CFCFCF;
    padding-top: 1.5rem;
}

.hero_benefits_list {
    margin-top: -4.5rem;
}

.contact_cta_arrow {
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 580px) {
    .product-submit .product-submit_actions {

        flex-wrap: wrap;
    }

    .product-submit .product-submit_actions #add-to-cart-button {
        order: 1;
    }

    .hero_benefits_list {
        margin-top: 0;
    }

    .contact_cta_arrow {
        width: 8px;
        height: 8px;
    }
}

@media screen and (min-width: 1110px) {

    .checkout__summary,
    .order__summary {
        max-width: 470px;
        position: sticky;
        top: 1rem;
    }
}
