/* Cart page — ShiKK Beauty */

/* ---- Full-width cart (theme + default OC + LiveStore column wrappers) ---- */
body.sb-route-cart #column-left,
body.sb-route-cart #column-right,
body.sb-route-cart aside#column-left,
body.sb-route-cart aside#column-right,
body:has(#checkout-cart) #column-left,
body:has(#checkout-cart) #column-right,
body:has(.sb-cart-page) #column-left,
body:has(.sb-cart-page) #column-right {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  overflow: hidden !important;
}

body.sb-route-cart #sb-main > .container > .row,
body.sb-route-cart #sb-main .container > .row,
body.sb-route-cart #checkout-cart.container > .row,
body:has(#checkout-cart) #sb-main > .container > .row,
body:has(#checkout-cart) #checkout-cart > .row {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

body.sb-route-cart #content,
body.sb-route-cart #sb-main [class*="col-sm-"],
body.sb-route-cart #sb-main [class*="col-md-"],
body.sb-route-cart #checkout-cart [class*="col-sm-"],
body.sb-route-cart #checkout-cart [class*="col-md-"],
body:has(#checkout-cart) #content,
body:has(#checkout-cart) #sb-main [class*="col-sm-"],
body:has(#checkout-cart) #sb-main [class*="col-md-"],
body:has(#checkout-cart) #checkout-cart [class*="col-sm-"],
body:has(#checkout-cart) #checkout-cart [class*="col-md-"],
#checkout-cart,
#checkout-cart.container,
#checkout-cart #content,
#checkout-cart .col-sm-6,
#checkout-cart .col-sm-8,
#checkout-cart .col-sm-9,
#checkout-cart .col-sm-12 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#checkout-cart.container,
body.sb-route-cart #sb-main > .container,
body:has(#checkout-cart) #sb-main > .container {
  max-width: var(--sb-container, 1240px) !important;
  width: 100% !important;
}

/* Default OC empty cart card — full width + centered */
#checkout-cart:not(.sb-cart-page) #content,
body.sb-route-cart #checkout-cart:not(.sb-cart-page) #content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  background: #FFFEFC;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
  padding: 48px 32px;
  box-sizing: border-box;
  text-align: center !important;
  gap: 14px;
  min-height: 300px;
}
#checkout-cart:not(.sb-cart-page) #content h1 {
  margin: 0 !important;
  width: 100%;
  text-align: center !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #3B2438;
}
#checkout-cart:not(.sb-cart-page) #content > p {
  margin: 0 !important;
  width: 100%;
  text-align: center !important;
  font-size: 17px;
  color: #7A6B7A;
}
#checkout-cart:not(.sb-cart-page) #content .buttons {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  overflow: visible !important;
  text-align: center !important;
  float: none !important;
}
#checkout-cart:not(.sb-cart-page) #content .buttons::before,
#checkout-cart:not(.sb-cart-page) #content .buttons::after {
  display: none !important;
}
#checkout-cart:not(.sb-cart-page) #content .buttons .pull-left,
#checkout-cart:not(.sb-cart-page) #content .buttons .pull-right {
  float: none !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 280px;
}
#checkout-cart:not(.sb-cart-page) #content .btn-primary,
#checkout-cart:not(.sb-cart-page) #content .buttons a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  background: #3B2438 !important;
  border-color: #3B2438 !important;
  border-radius: 999px !important;
  padding: 12px 28px;
  color: #fff !important;
  text-decoration: none !important;
}

.sb-cart-page {
  padding: 8px 0 56px;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.sb-cart-page .sb-wrap {
  width: 100% !important;
  max-width: var(--sb-container, 1240px) !important;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.sb-cart-page .sb-bc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 18px;
  font-size: 13px;
  color: #7A6B7A;
}
.sb-cart-page .sb-bc a { color: #7A6B7A; }
.sb-cart-page .sb-bc a:hover { color: #3B2438; }
.sb-cart-page .sb-bc span { opacity: 0.5; }

.sb-cart-page__head {
  margin-bottom: 22px;
}
.sb-cart-page__head h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #3B2438;
  line-height: 1.15;
}
.sb-cart-page__head small {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #7A6B7A;
}

.sb-cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.sb-cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sb-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: #FFFEFC;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
}
.sb-cart-item.is-oos {
  border-color: #e8c4bc;
  background: #fff8f6;
}

.sb-cart-item__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: #EDE6F3;
  flex-shrink: 0;
}
.sb-cart-item__media--nophoto {
  padding: 8px 8px 6px;
  box-sizing: border-box;
  gap: 4px;
}
.sb-cart-item__media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  text-decoration: none !important;
}
.sb-cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sb-cart-item__media--nophoto .sb-cart-item__media-link img {
  width: 72%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.sb-cart-item__media .sb-nophoto-label {
  display: block;
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  color: #5c534c;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  pointer-events: none;
  user-select: none;
}
.sb-cart-item__media--icon,
.sb-cart-item__ph {
  color: #3B2438;
  font-size: 28px;
}

.sb-cart-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sb-cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sb-cart-item__info h2 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.sb-cart-item__info h2 a { color: #3B2438; }
.sb-cart-item__info h2 a:hover { color: #3B2438; }
.sb-cart-item__info h2 em {
  color: #3B2438;
  font-style: normal;
  font-size: 14px;
}
.sb-cart-item__meta {
  font-size: 13px;
  color: #7A6B7A;
}
.sb-cart-item__opts {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #7A6B7A;
}
.sb-cart-item__opts span { color: #7A6B7A; }

.sb-cart-item__remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7A6B7A;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s ease, background .2s ease;
}
.sb-cart-item__remove:hover {
  color: #3B2438;
  background: #EDE6F3;
}

.sb-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sb-cart-item__qty {
  display: inline-flex;
  align-items: center;
  height: 42px;
  background: #f1ebe6;
  border-radius: 10px;
  overflow: hidden;
}
.sb-cart-item__qty--locked {
  padding: 0 14px;
  font-weight: 600;
  color: #7A6B7A;
}
.sb-qty-btn {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #3B2438;
}
.sb-qty-input {
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  outline: 0;
  color: #3B2438;
}

.sb-cart-item__prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.sb-cart-item__unit {
  font-size: 14px;
  color: #7A6B7A;
}
.sb-cart-item__sum {
  font-size: 18px;
  font-weight: 700;
  color: #3B2438;
}

.sb-cart-page__toolbar {
  margin-top: 16px;
}

.sb-cart-empty {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px 64px;
  min-height: 320px;
  background: #FFFEFC;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
}
.sb-cart-empty__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.sb-cart-empty__inner h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #3B2438;
  line-height: 1.15;
  text-align: center;
  width: 100%;
}
.sb-cart-empty i {
  font-size: 42px;
  color: #3B2438;
  margin: 0;
  line-height: 1;
}
.sb-cart-empty p {
  margin: 0;
  font-size: 17px;
  color: #7A6B7A;
  line-height: 1.45;
  text-align: center;
}
.sb-cart-empty .sb-btn {
  margin-top: 6px;
  width: 100%;
  max-width: 280px;
}
.sb-cart-page.is-empty .sb-cart-page__head {
  display: none !important;
}
.sb-cart-page.is-empty .sb-cart-page__layout,
.sb-cart-page.is-empty .sb-cart-page__side {
  display: none !important;
}
.sb-cart-page.is-empty .sb-cart-empty,
.sb-cart-page.is-empty .sb-wrap {
  width: 100% !important;
  max-width: var(--sb-container, 1240px) !important;
}

.sb-cart-modules {
  margin-top: 28px;
  padding: 22px 24px;
  background: #FFFEFC;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
}
.sb-cart-modules h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}
.sb-cart-modules__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #7A6B7A;
}
.sb-cart-modules__item {
  margin-bottom: 10px;
}
.sb-cart-modules__item:last-child { margin-bottom: 0; }
.sb-cart-modules .panel,
.sb-cart-modules .panel-default {
  border: 1px solid #E5DCEB !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden;
}
.sb-cart-modules .panel-heading {
  background: #f7f1ec !important;
  border-bottom: 1px solid #E5DCEB !important;
  font-weight: 600;
}
.sb-cart-modules .btn-primary {
  background: #3B2438 !important;
  border-color: #3B2438 !important;
}
.sb-cart-modules .btn-primary:hover {
  background: #2A1929 !important;
  border-color: #2A1929 !important;
}

.sb-cart-summary {
  position: sticky;
  top: 20px;
  padding: 24px;
  background: #FFFEFC;
  border: 1px solid #E5DCEB;
  border-radius: 16px;
}
.sb-cart-summary h2 {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}
.sb-cart-summary__rows {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.sb-cart-summary__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #E5DCEB;
  font-size: 14px;
  color: #7A6B7A;
}
.sb-cart-summary__rows li strong {
  color: #3B2438;
  font-weight: 650;
}
.sb-cart-summary__rows li.is-grand {
  border-bottom: 0;
  padding-top: 14px;
  font-size: 16px;
  color: #3B2438;
}
.sb-cart-summary__rows li.is-grand strong {
  font-size: 22px;
  color: #3B2438;
}

.sb-cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sb-btn--accent {
  background: #3B2438;
  color: #fff !important;
}
.sb-btn--accent:hover { background: #2A1929; color: #fff !important; }
.sb-btn--ghost {
  background: transparent;
  border-color: #E5DCEB;
  color: #3B2438 !important;
}
.sb-btn--ghost:hover {
  border-color: #3B2438;
  color: #3B2438 !important;
}
.sb-btn--block { width: 100%; }

.sb-cart-summary__trust {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #E5DCEB;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  color: #7A6B7A;
}
.sb-cart-summary__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-cart-summary__trust i { color: #3B2438; width: 14px; text-align: center; }

.sb-cart-page .sb-cloak {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.sb-cart-page .alert {
  border-radius: 12px;
  border: 0;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .sb-cart-page__layout {
    grid-template-columns: 1fr;
  }
  .sb-cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .sb-cart-page__head h1 { font-size: 30px; }
  .sb-cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .sb-cart-item__media {
    width: 84px;
    height: 84px;
  }
  .sb-cart-item__info h2 { font-size: 18px; }
  .sb-cart-item__bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-cart-item__prices {
    justify-content: space-between;
  }
}
