/* ==========================================================================
   Nagaku Cart Dropdown
   File: themes/custom/modins_sub/css/nagaku-cart.css
   ========================================================================== */

.nagaku-cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ── Trigger button ── */
.nagaku-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background 0.2s ease;
  line-height: 1;
}
.nagaku-cart-btn:hover,
.nagaku-cart-btn.is-active {
  background: rgba(240, 192, 64, 0.08);
  outline: none;
}
.nagaku-cart-btn:focus-visible {
  outline: 2px solid #f0c040;
  outline-offset: 2px;
}

/* ── Icon wrap + badge ── */
.nagaku-cart-icon-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nagaku-cart-icon {
  width: 24px;
  height: 24px;
  color: #e8e8e8;
  transition: color 0.2s ease;
  display: block;
}
.nagaku-cart-btn:hover .nagaku-cart-icon,
.nagaku-cart-btn.is-active .nagaku-cart-icon {
  color: #f0c040;
}

.nagaku-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0a;
  line-height: 1;
  animation: nagaku-cart-pulse 2.4s infinite;
}
.nagaku-cart-badge[data-empty="true"] {
  display: none;
}
@keyframes nagaku-cart-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.45); }
  50%       { box-shadow: 0 0 0 5px rgba(192, 57, 43, 0); }
}

/* ── Label ── */
.nagaku-cart-label {
  font-size: 9px;
  color: #c0392b;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nagaku-cart-btn:hover .nagaku-cart-label,
.nagaku-cart-btn.is-active .nagaku-cart-label {
  color: #f0c040;
}

/* ── Dropdown panel ── */
.nagaku-cart-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(240, 192, 64, 0.06);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
}
.nagaku-cart-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.nagaku-cart-arrow {
  position: absolute;
  top: -7px;
  right: 18px;
  width: 13px;
  height: 13px;
  background: #111;
  border-left: 1px solid #222;
  border-top: 1px solid #222;
  transform: rotate(45deg);
}

/* ── Dropdown header ── */
.nagaku-cart-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nagaku-cart-dropdown-title {
  font-size: 12px;
  font-weight: 700;
  color: #f0c040;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nagaku-cart-count-pill {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #c0392b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ── Item list ── */
.nagaku-cart-items {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.nagaku-cart-items::-webkit-scrollbar { width: 4px; }
.nagaku-cart-items::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.nagaku-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background 0.15s ease;
}
.nagaku-cart-item:hover { background: rgba(255, 255, 255, 0.03); }

.nagaku-cart-item-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nagaku-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nagaku-cart-item-img svg {
  width: 20px;
  height: 20px;
  color: #444;
}
.nagaku-cart-item-info { flex: 1; min-width: 0; }
.nagaku-cart-item-name {
  font-size: 13px;
  color: #e8e8e8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.nagaku-cart-item-qty-label {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
  margin-bottom: 0;
}
.nagaku-cart-item-right { text-align: right; flex-shrink: 0; }
.nagaku-cart-item-price {
  font-size: 13px;
  color: #f0c040;
  font-weight: 600;
}

/* ── Empty state ── */
.nagaku-cart-empty {
  padding: 28px 16px;
  text-align: center;
  color: #444;
}
.nagaku-cart-empty svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: block;
  opacity: 0.25;
}
.nagaku-cart-empty p { font-size: 13px; margin: 0; }

/* ── Footer ── */
.nagaku-cart-footer {
  border-top: 1px solid #1e1e1e;
  padding: 14px 16px;
}
.nagaku-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.nagaku-cart-subtotal-label {
  font-size: 11px;
  color: #555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nagaku-cart-subtotal-amount {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}
.nagaku-cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: #c0392b;
  border-radius: 8px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
}
.nagaku-cart-checkout-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.nagaku-cart-view-link {
  display: block;
  text-align: center;
  margin-top: 9px;
  font-size: 12px;
  color: #555 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.nagaku-cart-view-link:hover { color: #888 !important; }
/* Hide variation dropdown on views display - per variation cards shown instead */
.form-item-purchased-entity-0-attributes-attribute-paket {
  display: none !important;
}

/* Hide duplicate add-to-cart form from variations field in views - use rendered entity form instead */
.views-field-variations-target-id {
  display: none !important;
}

/* ===== Login / Register / Password form contrast fix ===== */
#user-login-form,
#user-pass,
#user-register-form {
  background: #0c0c0c;
  color: #fff;
  padding: 24px;
  border-radius: 8px;
}
#user-login-form .form-item,
#user-pass .form-item,
#user-register-form .form-item {
  background: transparent;
  margin-bottom: 16px;
}
#user-login-form label,
#user-pass label,
#user-register-form label {
  color: #ffffff !important;
  font-weight: 600;
  background: transparent;
  display: block;
  margin-bottom: 6px;
}
#user-login-form .description,
#user-pass .description,
#user-register-form .description,
#user-login-form .form-item .description,
#user-pass .form-item .description,
#user-register-form .form-item .description {
  color: #cfcfcf !important;
}
#user-login-form input[type="text"],
#user-login-form input[type="email"],
#user-login-form input[type="password"],
#user-pass input[type="text"],
#user-pass input[type="email"],
#user-pass input[type="password"],
#user-register-form input[type="text"],
#user-register-form input[type="email"],
#user-register-form input[type="password"] {
  background: #ffffff;
  color: #111111;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
}
#user-login-form input[type="submit"],
#user-pass input[type="submit"],
#user-register-form input[type="submit"] {
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}
#user-login-form input[type="submit"]:hover,
#user-pass input[type="submit"]:hover,
#user-register-form input[type="submit"]:hover {
  background: #333333;
}
#user-login-form a,
#user-pass a,
#user-register-form a {
  color: #ffd54a;
}

.page-user-login .main-page, .page-user-register .main-page, .page-user-pass .main-page{background:#0c0c0c;border:none;}
.page-user-login .bg, .page-user-register .bg, .page-user-pass .bg{background:#212121;}
.orderwa,.pricing-table .plan-signup a{
    margin: auto;
    display: table;
    background: #4cb237;
    padding: 10px 30px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    line-height:35px;
}
a.orderwa:hover,.pricing-table .plan-signup a:hover{color:#fff902;}