/* ============================================================
   Mix 10 Herbal Coffee — stylesheet
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: #FBF2E7;
    color: #111;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 18px;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   SHARED
   ============================================================ */

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
    padding: 22px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 16px;
    letter-spacing: -.4px;
    margin-bottom: 16px;
    color: #6F4E37;
}

/* ============================================================
   DETAILS CARD (aligns with the hero product card, 650px)
   ============================================================ */

.details {
    position: relative;
    width: calc(100% - 36px);   /* matches hero product card margins */
    max-width: 650px;           /* matches hero product card width */
    margin: 0 auto;             /* matches prototype: spacing from hero padding + buy-area margin */
    padding: 26px 22px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .07);
}

.details h2 {
    font-size: 20px;
    letter-spacing: -.7px;
    margin-bottom: 10px;
}

.details>p {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 22px;
}

.details .benefit {
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.details .benefit-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.details .benefit-text {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* ============================================================
   FORMS
   ============================================================ */

.field { margin-bottom: 14px; }

label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: .3px;
}

input, textarea {
    width: 100%;
    border: 1.5px solid #e5ddd2;
    border-radius: 10px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    transition: border-color .2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6F4E37;
}

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

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

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

/* ============================================================
   CART
   ============================================================ */

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ece6;
}

.cart-item:last-of-type { border-bottom: none; }

.cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5efe8;
}

.cart-info { flex: 1; min-width: 0; }

.cart-info .name {
    font-size: 13px;
    font-weight: 600;
}

.cart-info .meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.cart-info .price {
    font-size: 12px;
    color: #6F4E37;
    font-weight: 600;
    margin-top: 3px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty button {
    width: 26px;
    height: 26px;
    border: 1.5px solid #e5ddd2;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    color: #6F4E37;
}

.qty button:hover { background: #f6ede2; }

.qty .qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.item-total {
    min-width: 70px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

/* money is right-aligned, comma separated, 2 decimals */
.money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   TOTALS
   ============================================================ */

.totals { margin-top: 8px; }

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    padding: 7px 0;
    color: #555;
}

.total-row .money { color: #111; }

.total-row.grand {
    border-top: 2px solid #f0ece6;
    margin-top: 6px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.total-row.grand .money { color: #6F4E37; font-weight: 800; }

/* ============================================================
   CTA
   ============================================================ */

.bux-logo {
    display: inline-block;
    font-size: 11px;
    color: #bbb;
    margin-top: 14px;
    text-align: center;
    width: 100%;
}

.btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #6F4E37;
    color: #fff;
    padding: 17px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(111,78,55,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(111,78,55,.4);
}

.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   BUY AREA (aligns with hero + details cards, 650px)
   ============================================================ */

.buy-area {
    width: calc(100% - 36px);   /* matches hero product card margins */
    max-width: 650px;           /* matches hero product card width */
    margin: 25px auto 35px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 520px) {
    .row2 { grid-template-columns: 1fr; }
    .cart-info .meta { font-size: 10px; }
}
