@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --ink: #15372c;
    --green: #1d6049;
    --cream: #f7f4ea;
    --gold: #c89d55;
    --muted: #5f6d66;
    --line: #dbe1d8
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #fffdf8;
    color: var(--ink);
    font: 16px/1.5 'DM Sans', sans-serif
}

header {
    height: 76px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(20px, calc((100% - 1120px)/2))
}

.brand {
    font-weight: 700;
    letter-spacing: .1em
}

.brand:before {
    content: '●';
    color: var(--gold);
    margin-right: .4rem
}

a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none
}

.checkout {
    width: min(1050px, calc(100% - 40px));
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 4rem
}

.eyebrow {
    margin: 0;
    color: var(--green);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
    line-height: 1.1
}

.checkout-panel {
    background: var(--cream);
    padding: 1.8rem
}

.checkout-panel h2 {
    margin-top: 0
}

form {
    display: grid;
    gap: .8rem
}

label {
    font-size: .82rem;
    font-weight: 700;
    display: grid;
    gap: .3rem
}

input,
textarea {
    font: inherit;
    border: 1px solid #bfcbbf;
    padding: .7rem;
    background: #fff
}

textarea {
    min-height: 86px;
    resize: vertical
}

.total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-top: .5rem;
    font-size: 1.1rem
}

.note {
    font-size: .78rem;
    color: var(--muted);
    margin: 0
}

button {
    background: var(--ink);
    color: #fff;
    border: 0;
    padding: .85rem;
    font: 700 .92rem 'DM Sans', sans-serif;
    cursor: pointer
}

button:hover {
    background: var(--green)
}

button:disabled {
    opacity: .6;
    cursor: not-allowed
}

.cart-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line)
}

.cart-item img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    background: #f0f4ec
}

.cart-item small {
    display: block;
    color: var(--muted);
    margin: .2rem 0
}

.quantity {
    display: flex;
    gap: .6rem;
    align-items: center
}

.quantity button {
    width: 26px;
    height: 26px;
    padding: 0
}

/* .success {
    background: #e5f2e7;
    padding: 1.4rem
}

.success h2 {
    margin-top: 0
} */

@media(max-width:700px) {
    .checkout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto
    }

    .cart-item {
        grid-template-columns: 65px 1fr auto
    }

    .cart-item img {
        width: 65px;
        height: 65px
    }
}

.brand {
    display: flex;
    align-items: center
}

.brand:before {
    content: '' !important;
    width: 38px;
    height: 38px;
    margin-right: .5rem !important;
    background: url('product_images/pure-vita-logo-cropped.png') center/contain no-repeat;
    flex: 0 0 38px
}

.credit-footer {
    margin-top: 3rem;
    background: #102b22;
    color: #bed0c5;
    text-align: center;
    padding: 1.1rem;
    font-size: .8rem
}

.credit-footer a {
    color: #e2ce91
}
/* ========== ORDER SUCCESS STYLES (Professional) ========== */

.order-success {
  background: #f8faf8;
  border: 1px solid #c8d6c9;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  animation: successSlideIn 0.4s ease-out;
}

@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dbe1d8;
}

.success-indicator svg {
  flex-shrink: 0;
}

.success-indicator h2 {
  color: #15372c;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.order-reference {
  font-size: 0.95rem;
  color: #5a6b5d;
  margin-bottom: 0.75rem;
}

.order-reference b {
  color: #15372c;
  background: #e8ece6;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.confirmation-message {
  color: #15372c;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

/* Delivery & Contact Boxes */
.delivery-box,
.contact-box {
  background: #fffdf8;
  border: 1px solid #dbe1d8;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.delivery-box h3,
.contact-box h3 {
  color: #15372c;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8ece6;
}

.delivery-box p,
.contact-box p {
  margin: 0.4rem 0;
  color: #15372c;
  font-size: 0.9rem;
  line-height: 1.6;
}

.delivery-box p strong,
.contact-box p strong {
  color: #5a6b5d;
  font-weight: 600;
  display: inline-block;
  min-width: 90px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.delivery-address {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8ece6;
}

/* Order Note */
.order-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f5f7f3;
  border-radius: 6px;
  border-left: 3px solid #1d6049;
}

.order-note p {
  color: #5a6b5d;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .order-success {
    padding: 1.5rem 1.25rem;
  }
  
  .success-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .success-indicator h2 {
    font-size: 1.3rem;
  }
  
  .delivery-box,
  .contact-box {
    padding: 1rem;
  }
  
  .delivery-box p strong,
  .contact-box p strong {
    min-width: 80px;
  }
}