/* ==================================================================
   Static cart (local ubzy replica)
   Mini cart dropdown, cart page, checkout page
   ================================================================== */

/* ---------- header mini cart dropdown ---------- */
.header .nav li.cart-item { position: relative; }

.header .nav li.cart-item.has-dropdown > .nav-dropdown {
  width: 340px;
  min-width: 340px;
  max-width: 340px;
  padding: 0;
  left: auto;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  text-align: left;
  z-index: 999;
}

.header .nav li.cart-item.has-dropdown > .nav-dropdown > li.html {
  display: block;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.header .nav li.cart-item.has-dropdown:hover > .nav-dropdown,
.header .nav li.cart-item.has-dropdown.ux-open > .nav-dropdown,
.header .nav li.cart-item.has-dropdown.current-dropdown > .nav-dropdown {
  left: auto !important;
  right: 0 !important;
  max-height: none;
  opacity: 1;
  visibility: visible;
}

.header .nav li.cart-item.has-dropdown:after,
.header .nav li.cart-item.has-dropdown:before {
  display: none !important;
}

/* ---------- mini cart content ---------- */
.ux-mini-cart {
  padding: 20px 18px 18px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
}

.ux-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ux-mini-list .ux-mini-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0 26px 0 0;
  vertical-align: top;
}

.ux-mini-list .ux-mini-item + .ux-mini-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.ux-mini-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 46px;
  display: block;
  overflow: hidden;
  background: #f5f5f5;
}

.ux-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ux-mini-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ux-mini-title {
  display: block;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  text-decoration: none;
}

.ux-mini-title:hover { color: #133d8d; }

.ux-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ux-mini-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.ux-mini-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #8a8a8a;
  font-size: 16px;
  font-family: Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
}

.ux-mini-remove:hover {
  color: #111;
  border-color: #111;
}

/* quantity stepper (shared) */
.ux-qty {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  border: 1px solid #e3e3e3;
  background: #fff;
}

.ux-qty-btn {
  width: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-qty-btn:hover {
  color: #111;
  background: #f7f7f7;
}

.ux-qty input.ux-qty-input {
  width: 36px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.ux-qty input.ux-qty-input::-webkit-outer-spin-button,
.ux-qty input.ux-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ux-mini-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.ux-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ux-mini-actions .ux-btn {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.ux-mini-actions .ux-btn-view {
  background: #1c5cd6;
  color: #fff !important;
}

.ux-mini-actions .ux-btn-view:hover { background: #1750bd; }

.ux-mini-actions .ux-btn-checkout {
  background: #0d2b5e;
  color: #fff !important;
}

.ux-mini-actions .ux-btn-checkout:hover { background: #0a2149; }

/* empty state */
.ux-mini-empty {
  padding: 26px 18px 22px;
  background: #fff;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.ux-mini-empty svg {
  height: 64px;
  opacity: .12;
  color: #111;
}

.ux-mini-empty-text { margin: 8px 0 14px; }

/* off-canvas cart popup */
#cart-popup .ux-mini-cart { padding: 0; }
#cart-popup .ux-mini-empty { padding: 10px 0 0; }

/* ---------- cart page ---------- */
.ux-cart-empty {
  padding: 30px 0 40px;
  text-align: center;
}

.ux-cart-empty p {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}

.ux-cart-wrap { max-width: 1080px; margin: 0 auto; }

.ux-cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 140px 110px 30px;
  gap: 16px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #888;
}

.ux-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 140px 110px 30px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ececec;
}

.ux-cart-prod {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ux-cart-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 66px;
  display: block;
  overflow: hidden;
  background: #f5f5f5;
}

.ux-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ux-cart-meta { min-width: 0; }

.ux-cart-title {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.ux-cart-title:hover { color: #133d8d; }

.ux-cart-variant {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #888;
}

.ux-cart-price,
.ux-cart-sub {
  font-size: 15px;
  color: #111;
}

.ux-cart-sub { font-weight: 700; }

.ux-cart-del {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #999;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ux-cart-del:hover {
  color: #b20000;
  border-color: #b20000;
}

.ux-cart-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.ux-continue { margin-top: 4px; }

.ux-cart-totals {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  padding: 20px 22px;
  border: 1px solid #e7e7e7;
  background: #fff;
  box-sizing: border-box;
}

.ux-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
  color: #333;
}

.ux-total-row.ux-grand {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  font-size: 17px;
  color: #111;
}

.ux-muted { color: #888; font-size: 13px; }

.ux-place-order-link {
  display: block;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 2px;
  background: #133d8d;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.ux-place-order-link:hover { background: #0f326f; color: #fff !important; }

/* ---------- checkout page ---------- */
.ux-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 34px;
  align-items: start;
}

.ux-checkout-card {
  padding: 22px;
  border: 1px solid #e7e7e7;
  background: #fff;
  box-sizing: border-box;
}

.ux-checkout-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.ux-fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.ux-field { margin: 0 0 14px; }

.ux-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ux-field input,
.ux-field select,
.ux-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 14px;
  box-sizing: border-box;
}

.ux-field input:focus,
.ux-field select:focus,
.ux-field textarea:focus {
  border-color: #133d8d;
  outline: none;
}

.ux-req { color: #b20000; }

.ux-submit-order {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: 0;
  border-radius: 2px;
  background: #133d8d;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
}

.ux-submit-order:hover { background: #0f326f; }

.ux-checkout-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.ux-checkout-summary .ux-sum-items {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

.ux-sum-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 14px;
  color: #333;
}

.ux-sum-name { min-width: 0; }
.ux-sum-name em { font-style: normal; color: #888; }
.ux-sum-name strong { color: #111; }
.ux-sum-price { white-space: nowrap; font-weight: 600; color: #111; }

.ux-order-received {
  padding: 30px 0 50px;
  text-align: center;
}

.ux-order-received h2 { margin-bottom: 14px; }
.ux-order-received p { font-size: 15px; color: #444; }

/* ---------- toast ---------- */
#ux-cart-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 99999;
  max-width: 90vw;
  padding: 11px 18px;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity .25s ease, transform .25s ease;
}

#ux-cart-toast.ux-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */
@media (max-width: 849px) {
  .ux-checkout-grid { grid-template-columns: 1fr; }

  .ux-cart-head { display: none; }

  .ux-cart-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "prod remove"
      "qty sub";
    gap: 10px 14px;
    padding: 16px 0;
  }

  .ux-cart-prod { grid-area: prod; }
  .ux-cart-del { grid-area: remove; justify-self: end; }
  .ux-cart-price { display: none; }
  .ux-cart-qty { grid-area: qty; }
  .ux-cart-sub { grid-area: sub; justify-self: end; align-self: center; }

  .ux-cart-bottom { gap: 20px; }
  .ux-cart-totals { max-width: none; margin-left: 0; }
}

@media (max-width: 549px) {
  .header .nav li.cart-item.has-dropdown > .nav-dropdown {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }

  .ux-fields-2 { grid-template-columns: 1fr; }
}

/* ===== Brand logo: text logo (WORLDSHOP) ===== */
#logo .header_logo,
#logo .header-logo-dark {
  display: none !important;
}

#logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#logo a::after {
  content: "WORLDSHOP";
  display: block;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 549px) {
  #logo a::after { font-size: 19px; }
}
