/* Samino — cart page (filled + empty) */

body.samino-cart-page { background-color: #FFF7E8; }

/* Notice container — sits above the cart layout (WC default position),
   wrapped to the same content width so it doesn't flow edge-to-edge. */
.samino-cart__notices {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.samino-cart__notices:empty { display: none; }

/* Coupon section error state — fired when cart.php's pre-render peek finds
   a coupon-related error in the queue. The <details> is force-opened so
   the user sees the input that caused the failure, and both the summary
   label and the input border turn red to point at the source. */
.samino-cart__coupon.is-error > summary {
  color: #B14B22;
  cursor: default;          /* not collapsible while erroring — user needs the input */
}
.samino-cart__coupon.is-error > summary::before {
  display: none;            /* hide the + indicator so it doesn't look clickable */
}
.samino-cart__coupon-input.is-error,
.samino-cart__coupon.is-error .samino-cart__coupon-input {
  border-color: #B14B22;
  background: #FCEDE4;
}
.samino-cart__coupon-input.is-error:focus,
.samino-cart__coupon.is-error .samino-cart__coupon-input:focus {
  border-color: #B14B22;
  background: #fff;
}

/* ====== Cart hero ====== */

.samino-cart__hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 91, 0.10), transparent 55%),
    #FFF7E8;
  padding: 28px 24px 28px;
}
.samino-cart__hero-inner { max-width: 1300px; margin: 0 auto; }

.samino-cart__crumbs {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7A7A7A;
  margin-bottom: 14px;
}
.samino-cart__crumbs a {
  color: #7A7A7A;
  text-decoration: none;
  transition: color .15s;
}
.samino-cart__crumbs a:hover { color: #FF8A5B; }
.samino-cart__crumbs span { margin: 0 6px; }
.samino-cart__crumbs .is-current { color: #1C1C1C; }

.samino-cart__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  color: #1C1C1C;
  margin-bottom: 8px;
}
.samino-cart__sub {
  font-size: 14px;
  color: #4a4a4a;
}

/* ====== Layout ====== */

.samino-cart__main { padding-bottom: 100px; }
.samino-cart__main.is-empty { padding-bottom: 0; }

.samino-cart__layout { padding: 24px 24px 0; }
.samino-cart__layout-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .samino-cart__layout-inner {
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
  }
}

/* ====== Line items ====== */

.samino-cart__items {
  background: #fff;
  border: 1px solid #ECE6D7;
  border-radius: 18px;
  padding: 8px 24px;
}

/* Separator line BETWEEN items only — first item has none, last item has none.
   (Previously used border-bottom + :last-child, but form-actions is actually
   the last child of the form, so the rule never matched and we got a stray
   line stacking with form-actions' border-top.) */
.samino-cart__item + .samino-cart__item { border-top: 1px solid #ECE6D7; }
.samino-cart__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 22px 0;
}

.samino-cart__item-thumb {
  width: 96px;
  height: 120px;
  background: #f3f0e7;
  border-radius: 12px;
  overflow: hidden;
}
.samino-cart__item-thumb img,
.samino-cart__item-thumb a img,
.samino-cart__item-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;  /* keep models' heads in frame on tall product shots */
  display: block;
}

.samino-cart__item-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .samino-cart__item-body { flex-direction: row; align-items: flex-start; gap: 24px; }
  .samino-cart__item-info { flex: 1; }
}

.samino-cart__item-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.25;
  color: #1C1C1C;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
  transition: color .15s;
}
.samino-cart__item-name:hover { color: #FF8A5B; }

.samino-cart__item-info dl {
  margin: 4px 0;
  font-size: 12px;
  color: #7A7A7A;
}
.samino-cart__item-info dt { font-weight: 600; display: inline; }
.samino-cart__item-info dd { display: inline; margin: 0 8px 0 4px; }
.samino-cart__item-info p { margin: 0; }

.samino-cart__item-sku {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A7A7A;
  margin-bottom: 4px !important;
}
.samino-cart__item-unit {
  font-size: 12px;
  color: #7A7A7A;
}
.samino-cart__item-unit .woocommerce-Price-amount,
.samino-cart__item-unit bdi {
  color: #1C1C1C;
  font-weight: 600;
}

.samino-cart__item-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.samino-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ECE6D7;
  border-radius: 10px;
  background: #FFF7E8;
  overflow: hidden;
  height: 38px;
}
.samino-qty button {
  width: 32px; height: 100%;
  background: transparent;
  border: 0;
  font-size: 16px;
  color: #1C1C1C;
  cursor: pointer;
  transition: background .15s;
}
.samino-qty button:hover { background: #fff; }
.samino-qty input {
  width: 40px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}
.samino-qty input::-webkit-outer-spin-button,
.samino-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.samino-qty-fixed {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.samino-cart__item-line {
  font-size: 16px;
  font-weight: 700;
  color: #FFA500;
  letter-spacing: -0.01em;
  margin-left: auto;
}
.samino-cart__item-line .woocommerce-Price-amount,
.samino-cart__item-line bdi { color: inherit; }

.samino-cart__item-remove {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #ECE6D7;
  border-radius: 10px;
  color: #7A7A7A;
  text-decoration: none;
  transition: all .15s;
}
.samino-cart__item-remove:hover {
  color: #B14B22;
  border-color: #B14B22;
  background: #FEEFE7;
}

/* ====== Form actions row ====== */

.samino-cart__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* The Update cart button is fired by cart.js after a debounced qty change,
   so the user never needs to click it. Hide visually but keep in the DOM. */
.samino-cart__update {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.samino-cart__coupon { font-size: 13px; }
.samino-cart__coupon summary {
  cursor: pointer;
  color: #FF8A5B;
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.samino-cart__coupon summary::before {
  content: "+";
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s;
}
.samino-cart__coupon[open] summary::before { transform: rotate(45deg); }
.samino-cart__coupon summary::-webkit-details-marker { display: none; }

/* "+ Shop more" — bottom-right counterpart to "Got a code?". Same orange
   text + ghost weight, just a navigation link to the shop archive. */
.samino-cart__shop-more {
  color: #FF8A5B;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.samino-cart__shop-more:hover { color: #1C1C1C; }
.samino-cart__coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.samino-cart__coupon-input {
  padding: 10px 14px;
  border: 1px solid #ECE6D7;
  border-radius: 10px;
  font-size: 13px;
  background: #FFF7E8;
  outline: none;
  transition: border-color .15s, background .15s;
  min-width: 200px;
}
.samino-cart__coupon-input:focus { border-color: #FF8A5B; background: #fff; }

/* ====== Buttons ====== */

.samino-cart__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid transparent;
  background: transparent;
}
.samino-cart__btn--primary {
  background: #1C1C1C;
  color: #fff;
}
.samino-cart__btn--primary:hover { background: #FF8A5B; }
.samino-cart__btn--ghost {
  background: transparent;
  color: #1C1C1C;
  border-color: #1C1C1C;
}
.samino-cart__btn--ghost:hover {
  background: #1C1C1C;
  color: #fff;
}
.samino-cart__btn--sm {
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* ====== Summary card ====== */

.samino-cart__summary-wrap { position: relative; }
@media (min-width: 1024px) {
  .samino-cart__summary-wrap {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.samino-cart__summary {
  background: #fff;
  border: 1px solid #ECE6D7;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 44px -32px rgba(28, 28, 28, 0.18);
}
.samino-cart__summary-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 18px;
  color: #1C1C1C;
}
.samino-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 14px;
  color: #4a4a4a;
}
.samino-cart__summary-row .woocommerce-Price-amount,
.samino-cart__summary-row bdi {
  color: #1C1C1C;
  font-weight: 600;
}
.samino-cart__summary-row--discount span:last-child,
.samino-cart__summary-row--discount .woocommerce-Price-amount,
.samino-cart__summary-row--discount bdi {
  color: #2D7A4F;
}
.samino-cart__summary-divider {
  height: 1px;
  background: #ECE6D7;
  margin: 12px 0;
}
.samino-cart__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0 18px;
  font-size: 14px;
  color: #1C1C1C;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.samino-cart__summary-total span:last-child,
.samino-cart__summary-total .woocommerce-Price-amount,
.samino-cart__summary-total bdi {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: #FFA500;
  text-transform: none;
  font-weight: 600;
}

.samino-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 22px;
  background: #1C1C1C;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all .2s;
  margin-bottom: 12px;
}
.samino-cart__checkout:hover {
  background: #FF8A5B;
}
.samino-cart__checkout svg { transition: transform .2s; }
.samino-cart__checkout:hover svg { transform: translateX(2px); }

.samino-cart__continue {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #7A7A7A;
  text-decoration: none;
  padding: 8px;
  margin-bottom: 8px;
  transition: color .15s;
}
.samino-cart__continue:hover { color: #1C1C1C; }

.samino-cart__trust {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid #ECE6D7;
}
.samino-cart__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  color: #4a4a4a;
}
.samino-cart__trust li svg {
  flex-shrink: 0;
  color: #FF8A5B;
}

/* ====== Empty state ====== */

.samino-cart__empty { padding: 64px 24px 100px; }
.samino-cart__empty-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.samino-cart__empty-icon {
  display: inline-flex;
  width: 120px; height: 120px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #FF8A5B;
  box-shadow: 0 24px 44px -28px rgba(255, 138, 91, 0.55);
  margin-bottom: 28px;
  position: relative;
}
.samino-cart__empty-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 138, 91, 0.35);
  animation: samino-cart-pulse 5s ease-in-out infinite;
}
@keyframes samino-cart-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 0.2; }
}
.samino-cart__empty-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  color: #1C1C1C;
  margin-bottom: 14px;
}
.samino-cart__empty-sub {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 540px;
  margin: 0 auto 32px;
}
.samino-cart__empty-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.samino-cart__suggest {
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  padding-top: 56px;
}
.samino-cart__suggest-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7A7A7A;
  font-weight: 700;
  margin-bottom: 24px;
}
.samino-cart__suggest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .samino-cart__suggest-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.samino-cart__suggest-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ECE6D7;
  transition: transform .25s, box-shadow .25s;
}
.samino-cart__suggest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -22px rgba(28, 28, 28, 0.18);
}
.samino-cart__suggest-img {
  aspect-ratio: 1 / 1;
  background: #f3f0e7;
  overflow: hidden;
}
.samino-cart__suggest-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.samino-cart__suggest-meta { padding: 14px 14px 16px; text-align: left; }
.samino-cart__suggest-title {
  font-size: 13px;
  font-weight: 500;
  color: #1C1C1C;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.samino-cart__suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: #FFA500;
}
