:root {
    --ink: #231133;
    --paper: rgba(255, 243, 207, .92);
    --paper-2: rgba(255, 231, 163, .92);

    --purple: #a855f7;
    --purple-deep: #6d28d9;
    --yellow: #fbbf24;

    --border: rgba(255, 255, 255, .16);
    --shadow: 0 20px 55px rgba(0, 0, 0, .45);

    --max: 1080px;
    --radius: 22px;
    --scroll-offset: 140px;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #fff6d8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* “quadro” central como no seu desenho */
.frame {
    min-height: auto;
    display: grid;
    place-items: center;
    padding: 34px 16px;
}

.frame-compact {
    min-height: auto;
    padding: 22px 16px 28px;
}

.page-cart {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-cart main {
    flex: 1;
    display: flex;
}

.page-cart .frame {
    flex: 1;
    display: block;
    padding: 34px 16px 34px;
}

.cart-layout {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    display: grid;
    gap: 20px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid rgba(35, 17, 51, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
}

.cart-header h1 {
    margin: 0;
    color: var(--ink);
}

.cart-header p {
    margin: 2px 0 0;
    color: rgba(35, 17, 51, 0.75);
    font-size: 0.95rem;
}

.cart-total {
    text-align: right;
}

.cart-total span {
    display: block;
    color: rgba(35, 17, 51, 0.75);
    font-weight: 600;
}

.cart-total strong {
    font-size: 1.4rem;
    color: var(--ink);
}

.cart-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-empty {
    border: 1px dashed rgba(35, 17, 51, 0.22);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: rgba(35, 17, 51, 0.7);
}

.cart-item {
    border: 1px solid rgba(35, 17, 51, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.cart-item-media {
    width: 68px;
    height: 68px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(35, 17, 51, 0.12);
    display: grid;
    place-items: center;
}

.stock-sold-out .cart-item-media::after {
    content: 'Vendas Encerradas';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    z-index: 2;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-align: center;
    padding: 2px 4px;
    border-radius: 8px;
    text-transform: uppercase;
    pointer-events: none;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.cart-item-title {
    font-weight: 800;
    color: var(--ink);
}

.stock-note {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 8px 0 10px;
    font-weight: 700;
}

.cart-status-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #111827;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 700;
}

.cart-status-notice .notice-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cart-item-meta {
    font-size: 0.88rem;
    color: rgba(35, 17, 51, 0.7);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-remove {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.12s ease, transform 0.12s ease;
}

.cart-remove img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.cart-remove:hover {
    background: rgba(35, 17, 51, 0.06);
    transform: translateY(-1px);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(35, 17, 51, 0.2);
    border-radius: 10px;
    padding: 4px 8px;
    background: #fff;
    color: #0f172a;
}

.qty-control button {
    border: none;
    background: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink);
    padding: 2px 6px;
}

.cart-item-price {
    font-weight: 800;
    color: var(--ink);
}
.cart-item-price-block {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 120px;
}
.cart-item-surcharge {
    font-size: 0.85rem;
    color: rgba(35, 17, 51, 0.75);
}
.cart-item-surcharge-unit {
    font-size: 0.82rem;
    color: rgba(35, 17, 51, 0.7);
    margin-top: 4px;
}

.cart-summary {
    border: 1px solid rgba(35, 17, 51, 0.14);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
    align-self: start;
    min-width: 260px;
    max-width: 320px;
}

.cart-summary[hidden] {
    display: none;
}

.cart-summary h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink);
}

.checkout-contact {
    display: grid;
    gap: 6px;
    margin: 4px 0 8px;
}

.checkout-contact h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink);
}

.checkout-contact label {
    font-size: 0.85rem;
    color: rgba(35, 17, 51, 0.8);
}

.checkout-contact input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(35, 17, 51, 0.18);
    background: #f8fafc;
    font-size: 0.9rem;
    color: var(--ink);
}

.contact-note {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(35, 17, 51, 0.7);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: rgba(35, 17, 51, 0.8);
}

.summary-row.total {
    font-weight: 800;
    color: var(--ink);
}

.cart-summary .btn-primary {
    width: 100%;
    justify-content: center;
}

.cart-summary .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 800px) {
    .cart-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cart-summary {
        max-width: none;
        width: 100%;
        order: 2;
    }
}

.page {
    width: min(var(--max), 100%);
    border: 3px solid rgba(255, 255, 255, .20);
    border-radius: 26px;
    padding: 28px 22px 26px;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    position: relative;
    margin: 0 auto;
}

.top-left {
    position: absolute;
    left: 18px;
    top: 12px;
    font-family: Oswald, Impact, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
}

/* área central: logo e texto */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 34px;
}

.offer-label {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 4px;
}

.page-sponsors .content .text-box {
    background: #eff6ff;
    border: 2px solid rgba(15, 23, 42, .18);
    color: var(--ink);
}

.page-sponsors .content .text-box p {
    color: rgba(35, 17, 51, .8);
}

.page-sponsors .content .contact-box {
    background: transparent;
    border: 2px solid rgba(239, 246, 255, .6);
}

.page-sponsors .content .contact-row {
    gap: 22px;
}

.page-sponsors .content .contact-pill {
    background: transparent;
    border: none;
    color: #e7f0ff;
    font-size: 16px;
    gap: 10px;
    padding-left: 6px;
    padding-right: 6px;
}

.page-sponsors .content .contact-pill b {
    color: #e7f0ff;
    font-size: 16px;
}

.page-sponsors .content .contact-icon {
    width: 22px;
    height: 22px;
}

.page-sponsors .content {
    padding-top: 6px;
}

.page-sponsors .sponsors-grid {
    margin-top: 8px;
}

.page-sponsors .supporters-grid {
    margin-top: 8px;
}

.page-sponsors .page {
    padding-top: 16px;
}

.page-sponsors .frame-compact {
    padding: 14px 14px 24px;
}

.page-sponsors {
    padding-top: 88px;
}

.page-sponsors header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

@media (max-width: 700px) {
    .page-sponsors {
        padding-top: 76px;
    }
}

.logo-wrap {
  width: 360px;
  height: 220px;
  border-radius: 18px;
  border: 4px solid rgba(0, 0, 0, .72);
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
}

.logo-wrap-master {
  width: min(520px, 90%);
  height: 240px;
  border-width: 0;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55);
}

.logo-wrap-master img {
    object-fit: contain;
}

@media (max-width: 700px) {
  .logo-wrap-master {
    width: 100%;
    height: 260px;
  }
}

/* se não tiver imagem, fica “SUA LOGO AQUI” */
.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-wrap-master img {
    object-fit: contain;
}

.logo-placeholder {
    text-align: center;
    font-family: Oswald, Impact, sans-serif;
    color: rgba(0, 0, 0, .70);
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.text-box {
    width: min(760px, 100%);
    border-radius: 16px;
    background: var(--paper);
    border: 3px solid rgba(0, 0, 0, .75);
    padding: 22px 18px;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.text-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(35, 17, 51, .85);
}

/* barra de contatos (vermelho no seu desenho — aqui em “amarelo/roxo” mas você pode mudar) */
.contact-box {
    width: min(820px, 100%);
    margin-top: 12px;
    border-radius: 18px;

    background: rgba(0, 0, 0, .35);
    border: 3px solid var(--yellow);
    padding: 14px 14px;

    display: grid;
    gap: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 12px;
    border-radius: 999px;

    background: rgba(255, 243, 207, .92);
    border: 1px solid rgba(0, 0, 0, .18);
    color: rgba(0, 0, 0, .75);
    text-decoration: none;

    font-weight: 600;
    font-size: 14px;

    transition: transform .12s ease, filter .12s ease;
}

.contact-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.contact-pill b {
    color: #2a0a55;
    font-weight: 800;
}

.note {
    text-align: center;
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    margin-top: 6px;
}

.sponsors-grid {
    margin-top: 26px;
    display: grid;
    gap: 16px;
}

.sponsors-grid-title {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: clamp(18px, 2vw, 22px);
    text-align: center;
    color: #fef3c7;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sponsor-card {
    background: rgba(0, 0, 0, .32);
    border: 2px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    padding: 16px 14px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    display: grid;
    gap: 12px;
    align-content: start;
    scroll-margin-top: var(--scroll-offset);
}

.sponsor-card-hero {
    gap: 14px;
}

.hero-logo-rect {
    width: 100%;
    height: 240px;
    background: #ffffff;
    border: 3px solid rgba(15, 23, 42, .18);
    border-radius: 18px;
    display: grid;
    place-items: center;
    padding: 18px 16px;
    box-shadow: inset 0 4px 18px rgba(0, 0, 0, .12);
}

.hero-logo-rect img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.hero-logo-rect img.logo-azul {
    transform: scale(0.9);
}

.hero-logo-rect img.logo-cabana {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: translateY(-10px);
}

.logo-wrap-small {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.logo-wrap-tiny {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(0, 0, 0, 0.38);
  border-radius: 999px;
  border-width: 3px;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden;
}

.logo-wrap-tiny .logo-placeholder {
    font-size: 12px;
    line-height: 1.1;
}

.logo-wrap-tiny img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0 8px 14px;
    transform: translateY(-4px);
    background: #ffffff;
}

.contact-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.contact-icon-phone {
    width: 20px;
    height: 20px;
    background-image: url("../img/icons/phone.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sponsor-card-hero .text-box {
    background: #eff6ff;
    border: 2px solid rgba(15, 23, 42, .18);
    color: var(--ink);
    min-height: 220px;
}

.sponsor-card-hero .text-box h3 {
    color: var(--ink);
}

.sponsor-card-hero .text-box p {
    color: rgba(35, 17, 51, .8);
}

.sponsor-card-hero .contact-box {
    background: transparent;
    border: 2px solid rgba(239, 246, 255, .6);
}

.sponsor-card-hero .contact-row {
    gap: 22px;
}

.sponsor-card-hero .contact-pill {
    background: transparent;
    border: none;
    color: #e7f0ff;
    font-size: 16px;
    gap: 10px;
    padding-left: 6px;
    padding-right: 6px;
}

.sponsor-card-hero .contact-pill b {
    color: #e7f0ff;
    font-size: 16px;
}

.sponsor-card-hero .contact-icon {
    width: 22px;
    height: 22px;
}

.supporters-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.supporter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    justify-items: center;
}

.supporter-slot {
    display: flex;
    justify-content: center;
}

@media (max-width: 820px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .supporter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* responsivo */
@media (max-width: 520px) {
    .logo-wrap {
        width: 300px;
        height: 190px;
    }

    .logo-wrap-master {
        width: min(450px, 96%);
        height: 200px;
    }

    .logo-wrap-tiny {
        width: 110px;
        height: 110px;
    }

    .page {
        padding: 22px 14px 18px;
    }

    .top-left {
        font-size: 16px;
    }

    .supporter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-sponsors .content .contact-row,
    .sponsor-card-hero .contact-row {
        flex-direction: column;
        align-items: center;
    }

    .page-sponsors .content .contact-pill,
    .sponsor-card-hero .contact-pill {
        width: 100%;
        justify-content: center;
    }
}
