/* =========
   Page layout
   ========= */

.cart-page {
  padding: 40px 24px 64px;
}

.cart-page__inner {
  margin: 0 auto;
}

.cart-page__title {
  font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-page__title span {
	font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.cart-page__grid {
  display: grid;
  grid-template-columns: 1fr 375px;
  gap: 32px;
  align-items: flex-start;
}

/* =========
   Cards (left products + right summary)
   ========= */

.cart-page__products,
.cart-page__summary {
  background: #ffffff;
  border-radius: 12px;
  /* box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08); */
}

/* products card */

.cart-page__products {
  	width: 100%;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* summary card */

.cart-page__summary {
	background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 0px;
}

/* =========
   "Table" header row
   ========= */

.cart-page__table-head {
  	display: grid;
    grid-template-columns: 80px 1fr 100px 100px 100px 40px;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

/* container for all items */

.cart-item__header {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}


/* top row inside product (4 columns) */

.cart-item__top {
	display: grid;
    grid-template-columns: 80px 1fr 100px 100px 100px 40px;
    gap: 12px;
    padding: 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

/* left side: image + title/code */

.cart-item__product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item__image {
	width: 80px;
    height: 80px;
    background: var(--img-bg, #ECEEF1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
	background: #fff;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cart-item__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__name a {
	color: var(--dark);
	transition: color 0.2s;
	font-size: 14px;
    font-weight: 600;
}

.cart-item__name a:hover {
    color: var(--teal);
}

.cart-item__code {
  	font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cart-item__code span {
  	color: var(--teal);
	font-weight: 700;
}

/* quantity column */

.cart-item__qty {
  display: flex;
  justify-content: center;
}


.cart-item__price-value {
  font-size: 1rem;
  font-weight: 600;
}

/* actions column (delete) */

.cart-item__actions {
  display: flex;
  justify-content: center;
}

/* delete button */

.cart__remove {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.cart__remove svg path {
  transition: stroke 0.15s ease;
}

.cart__remove:hover svg path {
  stroke: #c53030;
}

/* =========
   Quantity control
   ========= */

.cart__product-input {
  display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
	height: auto;
}

.cart__product-input button {
  	width: 30px;
    height: 34px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart__product-input button:hover {
      background: var(--border);
}

.cart__product-input input[type="number"] {
    width: 36px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: var(--white);
}

/* remove default number arrows */

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

.cart__product-input input[type="number"] {
  -moz-appearance: textfield;
  height: 100%;
}

/* =========
   Options grid under each item
   ========= */

.cart-item__options {
  margin-top: 16px;
}

.co-opts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 16px;
  font-size: .875rem;
}

.co-opts__list li {
    background: #F4F5F5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.co-opt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* values (single or multi) */

.co-chip,
.co-opts__list li > span:not(.co-opts__name) {
  font-size: 14px;
  font-weight: 500;
}

/* make multi-select chips look like plain text inside the card */

.co-chip {
  display: inline;
  padding: 0;
  margin: 0 4px 0 0;
  border-radius: 0;
  border: 0;
  background: none;
}

.co-empty {
  color: #9ca3af;
}

/* =========
   Summary column
   ========= */


.cart-page__summary > div:nth-child(1) span:first-child {
  font-weight: 600;
  color: #111827;
}

.cart-page__summary > div:nth-child(1) span.js__cart__price-total {
  font-size: 24px;
  font-weight: 700;
}

.cart-page__summary > div:last-child {
  margin-top: 20px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

/* checkout button */

.cart-page__summary .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  min-height: 44px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cart-page__summary .button:hover {
  background: #1e4fd1;
}

.cart-page__summary .button.disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.cart-page__min-order-alert {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: red !important;
}

.page-switcher-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.cart-item__confirm-text label {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-item__confirm {
  margin-top: 20px;
      display: flex;
    padding: 28px 40px;
    gap: 20px;
    background: #6FBE4A;
    border-radius: 5px;
    align-items: center;

}

.cart-item__counter {
    background: #F4F5F5;
    height: 40px;
    width: 40px;
    display: flex;
    position: absolute;
    top: 30px;
    left: -55px;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
}

.co-opts__name::after {
  content: "";
}

.co-opts__list li {
  color: #353840;
  font-size: 1rem;
  line-height: 1.56;
}

.co-opts__name {
  color: #4c5e82;
  font-size: .875rem;
  line-height: 1.56;
}

.cart-item__edit {
  display: flex;
  font-size: .875rem;
  color: #259ACD;
  gap: 7px;
  font-weight: 600;
  align-items: center;
  text-transform: uppercase;
}

.co-opt-multi {
  display: block;
}

.co-opt-multi .co-opts__name {
  display: block;
}

.co-extras__price {
  display: none;
}

.cart-page__table-head span {
  font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.align-left {
  text-align: left !important;
}

.align-right {
  text-align: right !important;
}

.cart-page__summary h2 {
	font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-page__summary svg {
	width: 20px;
    height: 20px;
    color: var(--teal);
}

.cart-page__summary-product {
  gap: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.cart-page__summary ul {
  padding-bottom: 18px;
    border-bottom: 1px solid #CDD5E5;
    margin-bottom: 30px;
}

.os-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.cart-page__price-with-vat,
.cart-page__price-vat {
  display: flex; 
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 5px;
}

.cart-page__price-without-vat {
	font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.cart-page__price-vat {
  font-size: .8rem;
  color: #333333;
}

.cart-page__price-with-vat {
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.cart-page__price-with-vat-sum {
  display: flex;
  flex-direction: column;
      font-size: 22px;
    font-weight: 800;
    color: var(--teal);
}

.cart-page__price-with-vat-sum span {
    font-size: .875rem;
    font-weight: 300;
    margin-top: 2px;
    color: #333333;
}

.cart-page__actions .button.disabled,
.cart-page__actions .button.disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.cart-page__actions .button {
display: flex;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(232, 150, 0, 0.2);
    /* line-height: 1; */
    align-items: center;
    min-height: 48px;
}

.cart-page__actions .button:hover { background: var(--gold-hover); transform: translateY(-1px); }

.cart-page__actions .button:hover svg path,
.cart-page__actions .button:active svg path, 
.cart-page__actions .button:focus svg path {
    stroke: #fff;
}

.cart-page__actions svg { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; color: #fff; }

.js__cart-item__confirm {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.cart-item__confirm svg {
    margin-left: auto;
}

.cart-item__confirm-text {
  color: #fff;
}

.cart-item__confirm-text p {
  margin-top: 7px;
}

.cart-page__verify-msg {
    color: var(--st-bg-button-dark);
    margin-top: 15px;
    font-weight: 600;
    display: flex;
    gap: 12px;
    line-height: 1.56;
    font-size: .9rem;
}

.cart-page__verify-msg svg {
  min-width: 19px;
  min-height: 19px;
}

.cart-page__actions .button:not(.disabled) ~ .cart-page__verify-msg {
  display: none;
}

@media (min-width: 768px) {
  .cart-page__grid {
    grid-template-columns: 60% 38%;
    gap: 2%;
  }

  .cart-item__price-netTotal {
    display: none;
  }

  .cart-item__image {
    grid-area: image;
  }

  .cart-item__title {
    grid-area: product;
  }

  .cart-item__qty {
    grid-area: count;
  }

  .cart-item__price {
    grid-area: price;
  }

  .cart-item__actions {
    grid-area: actions;
  }

  .cart-item__qty {
    display: block;
  }

  .cart-item__actions {
    display: block;
    width: fit-content;
    margin-left: auto;
  }

  .cart-item__actions-edit {
    margin-right: 50px;
  }

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

}

.cart-item__price-value span {
  display: none;
}

@media(max-width: 1060px) {
    .cart-page__grid {
        grid-template-columns: 1fr;
    }
}

@media(min-width: 480px) {
  .cart-item__actions {
    width: auto;
    margin-left: unset;
  }

  .cart-page__table-head {
    display: grid;
  }

  .cart-item__price-netTotal {
    display: block;
  }

  .cart-item__qty {
    display: flex;
  }

  .cart-item__actions {
    display: flex;
    justify-content: center;
  }

  .cart-item__actions-edit {
    margin-right: unset;
  }

  .cart-item__image {
    grid-area: unset;
  }

  .cart-item__title {
    grid-area: unset;
  }

  .cart-item__qty {
    grid-area: unset;
  }

  .cart-item__price {
    grid-area: unset;
  }

  .cart-item__actions {
    grid-area: unset;
  }

  .co-opts__list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.breadcrumb-wrap { padding: 16px 0 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 0; font-size: 13px; flex-wrap: wrap; }
.breadcrumb-list li a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb-list li a:hover { color: var(--teal); }
.breadcrumb-list li[aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb-list .sep { color: var(--border); margin: 0 8px; }

.page-switcher { display: flex; gap: 8px; padding: 12px 0; flex-wrap: wrap; }
.page-switcher-btn {
  padding: 8px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-light); transition: all 0.2s; font-family: inherit;
}
.page-switcher-btn.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.page-switcher-btn:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
.page-view { display: none; }
.page-view.active { display: block; }

.cart-page__title svg {
	width: 24px;
    height: 24px;
    color: var(--teal);
}

#content {
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.os-trust { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.os-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.os-trust-item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.os-trust-item.warning svg { color: #E65100; }

.cart-item__price-value {

}

.cart-item__price-value--vat {
	font-size: 15px;
    font-weight: 700;
    color: var(--teal);
}

.cart-item__price-value--novat {
	font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.cart-item__price-netTotal .cart-item__price-value--vat {
	font-size: 16px;
    font-weight: 800;
    color: var(--dark);
}

.os-row-value {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
    .cart-item__top {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        column-gap: 16px;
    }

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

    .cart-item__image {
        width: 64px;
        height: 64px;
        grid-row: 1 / 3;
    }

    .cart-item__title, .cart-item__price, .cart-item__qty, .cart-item__actions {
        grid-column: 2;
    }

    .cart-item__qty,
    .cart-item__actions {
        justify-content: flex-start;
    }

    .cart-item__title {
      gap: 0px;
  }
}

.empty-cart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 24px;
  margin: 0;
}

.cart-item__badges { display: flex; gap: 4px; flex-wrap: wrap; }
.cart-badge-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.cart-badge-special { background: #FFF3E0; color:#E65100; }
.cart-badge-stock { background: #E8F5E9; color: #E8F5E9; }
.cart-badge-pallet { background: #E8EAF6; color: #1A3A8F; }

.cart-special-notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  background:#FFF3E0; border: 1px solid #FFE0B2; border-radius: var(--radius);
  margin-top: 16px; font-size: 12px; color: #E65100; line-height: 1.5;
}
.cart-special-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.cart-special-notice strong { font-weight: 700; }

.cart-badge-stock {
    color: var(--green);
}