﻿.coc-order {
  --coc-navy: #4b0618;
  --coc-gold: #d8aa3c;
  --coc-light-gold: #f4d37a;
  --coc-rose: #8d1d21;
  --coc-ink: #221719;
  --coc-muted: #6f5d58;
  --coc-line: #ead7ab;
  --coc-soft: #fff8eb;
  color: var(--coc-ink);
  font-family: inherit;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 16px 96px;
}

.coc-order * {
  box-sizing: border-box;
}

.coc-order__hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(216, 170, 60, .28), transparent 32%),
    linear-gradient(135deg, #12070b 0%, #4b0618 52%, #8d1d21 100%);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.coc-order__hero::after {
  background: rgba(216, 170, 60, .16);
  content: "";
  height: 100%;
  position: absolute;
  right: -18%;
  top: 0;
  transform: skewX(-18deg);
  width: 40%;
}

.coc-order__eyebrow {
  color: var(--coc-light-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.coc-order h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.coc-order__hero p:last-child {
  font-size: 17px;
  margin: 0;
  max-width: 720px;
  opacity: .92;
}

.coc-product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.coc-product-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(231, 197, 111, .36);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 25, 51, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.coc-product-toolbar label {
  align-items: center;
  color: var(--coc-navy);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.coc-product-toolbar input {
  border: 1px solid rgba(13, 42, 82, .2);
  border-radius: 6px;
  font-weight: 800;
  max-width: 86px;
  min-height: 38px;
  padding: 6px 10px;
}

.coc-product-pages {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.coc-product-pages button {
  background: var(--coc-navy);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.coc-product-pages button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.coc-product-pages span {
  color: var(--coc-navy);
  font-size: 13px;
  font-weight: 800;
}

.coc-product-card {
  background: #fff;
  border: 1px solid var(--coc-line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 25, 51, .2), 0 3px 10px rgba(196, 147, 61, .14);
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.coc-product-card--selected {
  border-color: var(--coc-navy);
  box-shadow: 0 16px 42px rgba(13, 42, 82, .16), 0 0 0 2px rgba(196, 147, 61, .18);
}

.coc-product-card:hover {
  transform: translateY(-2px);
}

.coc-current-product,
.coc-page-matched-product {
  animation: cocMatchedGlow 1.05s infinite ease-in-out;
  border: 3px solid #d60000 !important;
  box-shadow: 0 0 0 4px rgba(214,0,0,.16), 0 0 22px rgba(214,0,0,.65);
  position: relative;
  z-index: 2;
}

@keyframes cocMatchedGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(214,0,0,.14), 0 0 14px rgba(214,0,0,.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(214,0,0,.24), 0 0 32px rgba(214,0,0,.95);
  }
}

.coc-current-badge {
  background: var(--coc-navy);
  border: 1px solid rgba(231, 197, 111, .7);
  border-radius: 999px;
  color: var(--coc-light-gold);
  font-size: 12px;
  font-weight: 700;
  left: 12px;
  padding: 6px 10px;
  position: absolute;
  top: 12px;
  z-index: 2;
}

.coc-product-card__image-link {
  background: linear-gradient(180deg, rgba(255,255,255,.96), var(--coc-soft));
  display: block;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.coc-product-card img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.coc-product-card__body {
  padding: 16px;
}

.coc-product-card h3 {
  color: var(--coc-navy);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.coc-product-card__desc {
  color: var(--coc-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.coc-product-card__meta {
  display: block;
  margin-bottom: 14px;
  text-align: center;
}

.coc-price-wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 11px;
  text-align: center;
}

.coc-regular-price {
  color: #4b0618;
  display: inline-block;
  font-size: var(--coc-regular-price-size, 22px);
  font-weight: 900;
  line-height: 1;
  position: relative;
  white-space: nowrap;
}

.coc-regular-price::after {
  background: #8b0000;
  content: "";
  height: 3px;
  left: -5%;
  position: absolute;
  right: -5%;
  top: 50%;
  transform: rotate(-7deg);
  transform-origin: center;
}

.coc-sale-price {
  color: #8b0000;
  font-size: var(--coc-sale-price-size, 32px);
  font-weight: 900;
  line-height: 1;
}

.coc-price-pulse {
  align-items: center;
  animation: cocPricePulse 1.05s infinite ease-in-out;
  background: rgba(255,255,255,.85);
  border: 2px solid #d60000;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  padding: 8px 16px;
  position: relative;
}

@keyframes cocPricePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214,0,0,.45);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(214,0,0,0);
    transform: scale(1.035);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214,0,0,0);
    transform: scale(1);
  }
}

.coc-product-promo {
  color: var(--coc-rose);
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.coc-qty {
  align-items: center;
  border: 1px solid var(--coc-line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  height: 46px;
  overflow: hidden;
}

.coc-qty__btn {
  appearance: none;
  background: var(--coc-navy);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  height: 100%;
}

.coc-qty input {
  border: 0;
  color: var(--coc-navy);
  font-size: 18px;
  font-weight: 800;
  height: 100%;
  text-align: center;
  width: 100%;
}

.coc-subtotal {
  color: var(--coc-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

.coc-checkout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.coc-customer-form,
.coc-summary {
  background: #fff;
  border: 1px solid var(--coc-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(13, 42, 82, .08);
  padding: 20px;
}

.coc-customer-form label {
  display: block;
  margin-bottom: 16px;
}

.coc-customer-form span {
  color: var(--coc-navy);
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

.coc-customer-form b,
.coc-customer-form small {
  color: #B42318;
}

.coc-customer-form input,
.coc-customer-form textarea {
  background: #fff;
  border: 1px solid #D9D2C8;
  border-radius: 8px;
  color: var(--coc-ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  width: 100%;
}

.coc-customer-form textarea {
  min-height: 132px;
  resize: vertical;
}

.coc-customer-form .coc-invalid {
  border-color: #B42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.coc-customer-form small {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

.coc-submit,
.coc-mobile-total button {
  appearance: none;
  background: linear-gradient(135deg, #4b0618, #8d1d21);
  border: 1px solid rgba(231, 197, 111, .75);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  min-height: 52px;
  padding: 13px 18px;
  width: 100%;
}

.coc-submit:hover,
.coc-mobile-total button:hover {
  background: linear-gradient(135deg, #8d1d21, #4b0618);
}

.coc-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.coc-form-message {
  border-radius: 8px;
  color: var(--coc-navy);
  font-weight: 700;
  margin: 4px 0 14px;
  min-height: 22px;
}

.coc-form-message--error {
  color: #B42318;
}

.coc-form-message--success {
  background: #ECFDF3;
  color: #027A48;
  padding: 12px;
}

.coc-legal {
  color: var(--coc-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.coc-summary {
  position: sticky;
  top: 92px;
}

.coc-summary h3 {
  color: var(--coc-navy);
  font-size: 21px;
  margin: 0 0 14px;
}

.coc-summary__items > div {
  border-bottom: 1px solid var(--coc-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.coc-summary__items span {
  color: var(--coc-muted);
}

.coc-summary__empty {
  color: var(--coc-muted);
  padding: 10px 0;
}

.coc-summary__total {
  align-items: center;
  border-top: 2px solid var(--coc-gold);
  color: var(--coc-navy);
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
}

.coc-summary__total strong {
  font-size: 24px;
}

.coc-mobile-total {
  display: none;
}

@media (max-width: 980px) {
  .coc-product-grid,
  .coc-checkout {
    grid-template-columns: 1fr;
  }

  .coc-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .coc-order {
    padding: 14px 12px 92px;
  }

  .coc-order__hero {
    padding: 24px 18px;
  }

  .coc-price-wrap {
    gap: 10px;
    margin: 13px 0 12px;
  }

  .coc-regular-price::after {
    height: 4px;
  }

  .coc-price-pulse {
    border-width: 2px;
    padding: 10px 18px;
  }

  .coc-product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .coc-product-pages {
    justify-content: space-between;
    width: 100%;
  }

  .coc-qty {
    grid-template-columns: 56px 1fr 56px;
    height: 54px;
  }

  .coc-mobile-total {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--coc-line);
    bottom: 0;
    box-shadow: 0 -10px 30px rgba(13, 42, 82, .12);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    left: 0;
    padding: 10px 12px;
    position: fixed;
    right: 0;
    z-index: 9999;
  }

  .coc-mobile-total span {
    color: var(--coc-navy);
    font-weight: 800;
    min-width: 110px;
  }

  .coc-mobile-total button {
    min-height: 46px;
    width: auto;
  }
}

@media (max-width: 380px) {
  .coc-price-pulse {
    padding: 9px 14px;
  }
}
