.home-coupons { width: min(calc(100% - 32px), var(--page-max-width, 1180px)); margin: 32px auto; padding: 0; box-sizing: border-box; color: var(--color-primary, #493b2d); }
.home-coupons-heading { margin-bottom: 18px; }
.home-coupons-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.5; }
.home-coupons-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b4a18a #f5efe5; }
.home-coupon-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; box-sizing: border-box; border: 1px solid #d8c5ad; border-radius: 12px; background: var(--color-card, #fffdf9); overflow: hidden; overflow-wrap: anywhere; scroll-snap-align: start; box-shadow: 0 3px 10px rgba(91, 68, 43, .1); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.home-coupon-card:hover { border-color: #ad8c67; box-shadow: 0 6px 16px rgba(91, 68, 43, .14); transform: translateY(-2px); }
.home-coupon-ticket-body { position: relative; display: grid; grid-template-rows: auto auto 3.2em auto minmax(0, 1fr); align-content: start; flex: 1 1 auto; min-width: 0; padding: 16px 13px 20px; overflow: hidden; }
.home-coupon-card.has-ribbon .home-coupon-heading-row { padding-right: 47px; }
.home-coupon-label { margin: 0; color: #765f46; font-size: .78rem; font-weight: 800; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; }
.home-coupon-card .home-coupon-value { align-self: start; margin: 5px 0 7px; color: var(--color-accent-dark, #84613c); font-size: 1.48rem; font-weight: 850; line-height: 1.35; }
.home-coupon-description { display: -webkit-box; min-height: 3.2em; max-height: 3.2em; margin: 0; overflow: hidden; white-space: normal; color: #51483e; font-size: .88rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.home-coupon-terms { align-self: start; width: 100%; box-sizing: border-box; margin: 8px 0 0; padding-left: 16px; font-size: .82rem; line-height: 1.65; color: var(--color-muted, #786a59); }
.home-coupon-expiry { margin-top: 10px; padding: 8px; list-style: none; background: #f4ebdc; border-radius: 5px; color: #654521; font-weight: 700; }
.home-coupon-expiry time { display: block; }
.home-coupon-remaining { align-self: end; margin: 8px 0 0; font-weight: 700; font-size: .85rem; color: #8a4f3f; }
.home-coupon-code-row { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; height: 64px; min-height: 64px; box-sizing: border-box; margin-top: auto; padding: 13px 12px 12px; border-top: 1px dashed #bfa98e; background: #eee1cf; }
.home-coupon-code-row::before, .home-coupon-code-row::after { position: absolute; top: 0; z-index: 2; width: 16px; height: 16px; border: 1px solid #d8c5ad; border-radius: 50%; background: var(--color-bg, #faf7f1); content: ""; transform: translateY(-50%); }
.home-coupon-code-row::before { left: 0; transform: translate(-50%, -50%); }
.home-coupon-code-row::after { right: 0; transform: translate(50%, -50%); }
.home-coupon-code-row code { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; color: #513d29; font-size: .8rem; font-weight: 800; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.home-coupon-code-row button { padding: 7px 10px; border: 1px solid #bda489; border-radius: 6px; background: #fffaf3; color: #51422f; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.home-coupon-code-row button:hover { border-color: #927253; background: #fff; }
.home-coupon-code-row button:focus-visible, .home-coupons-grid:focus-visible { outline: 2px solid #84613c; outline-offset: 3px; }
.home-coupon-ribbon { position: absolute; top: 12px; right: -30px; z-index: 1; width: 104px; padding: 4px 0; background: #6f7850; color: #fff; font-size: .62rem; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-align: center; text-transform: uppercase; transform: rotate(42deg); box-shadow: 0 1px 3px #0002; }
.home-coupons-feedback { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); max-width: calc(100vw - 48px); margin: 0; padding: 10px 20px; border-radius: 8px; background: #4e4030; color: #fff; z-index: 1200; font-size: .9rem; line-height: 1.5; box-shadow: 0 3px 14px #0002; pointer-events: none; }
.home-coupon-heading-row { display: flex; min-height: 30px; align-items: center; justify-content: flex-start; gap: 6px; }
.home-coupon-details-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; box-sizing: border-box; width: 18px; height: 18px; min-height: 0; margin: 0; border: 1px solid #a48b6e; border-radius: 50%; padding: 0; background: transparent; color: #765633; font: inherit; font-size: .78rem; font-weight: 800; line-height: 1; cursor: pointer; }
.home-coupon-details-button:hover { border-color: #765633; background: #f5ecdf; }
.home-coupon-details-button:focus-visible { outline: 2px solid #84613c; outline-offset: 3px; }
.home-coupon-tooltip { position: fixed; z-index: 1201; width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box; padding: 12px 14px; border: 1px solid #d8cbb9; border-radius: 8px; background: #fffdf9; color: #51422f; box-shadow: 0 3px 14px #0002; font-size: .85rem; line-height: 1.65; }
.home-coupon-tooltip ul { margin: 0; padding-left: 18px; }
.home-coupon-tooltip li + li { margin-top: 5px; }
@media (max-width: 1023px) { .home-coupons-grid { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (max-width: 639px) { .home-coupons-grid { grid-auto-columns: min(84%, 280px); gap: 14px; } }
