:root {
  --velmora-cart-forest: #244126;
  --velmora-cart-gold: #c8a447;
  --velmora-cart-cream: #f8f5ef;
  --velmora-cart-ink: #2f2a24;
  --velmora-cart-muted: #756d61;
  --velmora-cart-border: rgba(36, 65, 38, 0.12);
  --velmora-cart-shadow: 0 24px 60px rgba(36, 65, 38, 0.16);
}

.velmora-cart-shortcode {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.velmora-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--velmora-cart-ink);
  text-decoration: none;
  transition: transform .2s ease;
}

.velmora-cart-trigger:hover {
  transform: translateY(-1px);
}

.velmora-cart-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #222;
}

.velmora-cart-trigger__icon svg {
  width: 100%;
  height: 100%;
}

.velmora-cart-trigger__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.velmora-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5a5f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 90, 95, 0.28);
  border: 2px solid #fff;
}

.velmora-cart-count.is-empty {
  background: rgba(36, 65, 38, 0.12);
  color: var(--velmora-cart-forest);
  box-shadow: none;
  border-color: transparent;
}

.velmora-cart-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--velmora-cart-border);
  border-radius: 24px;
  box-shadow: var(--velmora-cart-shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  overflow: hidden;
  z-index: 999;
}

.velmora-cart-panel__backdrop {
  display: none;
}

.velmora-cart-shortcode.is-open .velmora-cart-panel,
.velmora-cart-shortcode:hover .velmora-cart-panel,
.velmora-cart-shortcode:focus-within .velmora-cart-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.velmora-cart-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(200, 164, 71, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(248,245,239,0.98), rgba(255,255,255,0.98));
  border-bottom: 1px solid var(--velmora-cart-border);
}

.velmora-cart-panel__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 65, 38, 0.08);
  color: var(--velmora-cart-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.velmora-cart-panel-count {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 65, 38, 0.08);
  color: var(--velmora-cart-forest);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.velmora-cart-panel-count.is-empty {
  color: var(--velmora-cart-muted);
  background: rgba(36, 65, 38, 0.06);
}

.velmora-cart-panel__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(36, 65, 38, 0.64);
}

.velmora-cart-panel__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  line-height: 1.1;
  color: var(--velmora-cart-ink);
}

.velmora-cart-panel-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 16px 22px;
}

.velmora-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.velmora-cart-item + .velmora-cart-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 65, 38, 0.08);
}

.velmora-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.velmora-cart-item__thumb a,
.velmora-cart-item__thumb img {
  display: block;
}

.velmora-cart-item__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(36, 65, 38, 0.06);
}

.velmora-cart-item__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.velmora-cart-item__title a {
  color: var(--velmora-cart-ink);
  text-decoration: none;
}

.velmora-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--velmora-cart-muted);
  font-size: 13px;
}

.velmora-cart-item__quantity {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 65, 38, 0.06);
  color: var(--velmora-cart-forest);
  font-weight: 700;
}

.velmora-cart-item__subtotal {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--velmora-cart-ink);
}

.velmora-cart-empty-state {
  padding: 18px 2px 10px;
  text-align: center;
}

.velmora-cart-empty-state__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--velmora-cart-ink);
}

.velmora-cart-empty-state__text,
.velmora-cart-empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--velmora-cart-muted);
}

.velmora-cart-panel-footer {
  border-top: 1px solid var(--velmora-cart-border);
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,239,0.98));
}

.velmora-cart-footer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.velmora-cart-footer__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(36, 65, 38, 0.66);
  font-weight: 800;
}

.velmora-cart-footer__value {
  font-size: 18px;
  font-weight: 900;
  color: var(--velmora-cart-ink);
}

.velmora-cart-footer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.velmora-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.velmora-cart-button:hover {
  transform: translateY(-1px);
}

.velmora-cart-button--primary {
  color: #fff;
  background: linear-gradient(180deg, #335935, var(--velmora-cart-forest));
  box-shadow: 0 14px 26px rgba(36, 65, 38, 0.18);
}

.velmora-cart-button--secondary {
  color: var(--velmora-cart-forest);
  background: rgba(36, 65, 38, 0.06);
  box-shadow: inset 0 0 0 1px rgba(36, 65, 38, 0.1);
}

.velmora-cart-footer.is-empty .velmora-cart-button--primary {
  opacity: .72;
}

@media (max-width: 767px) {
  body.velmora-cart-mobile-open {
    overflow: hidden;
  }

  .velmora-cart-shortcode {
    position: static;
  }

  .velmora-cart-panel {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    border-radius: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    background: rgba(47, 42, 36, 0.24);
  }

  .velmora-cart-shortcode.is-open .velmora-cart-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .velmora-cart-panel__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    z-index: 1;
  }

  .velmora-cart-panel__header {
    align-items: center;
    padding: 18px 18px 16px;
    position: relative;
    z-index: 2;
    background:
      radial-gradient(500px 200px at 0% 0%, rgba(200, 164, 71, 0.18), transparent 60%),
      linear-gradient(180deg, rgba(248,245,239,0.98), rgba(255,255,255,0.98));
  }

  .velmora-cart-panel__close {
    display: inline-flex;
    margin-left: 0;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(36, 65, 38, 0.14);
  }

  .velmora-cart-panel-body {
    max-height: none;
    flex: 1 1 auto;
    padding: 16px 18px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
  }

  .velmora-cart-footer__actions {
    grid-template-columns: 1fr;
  }

  .velmora-cart-panel-footer {
    padding: 16px 18px 24px;
    position: relative;
    z-index: 2;
  }
}
