@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');


/* =====================================================
   VARIÁVEIS
===================================================== */

:root {
    --wine: #542c3d;
    --wine-dark: #3b1d2b;

    --rose: #a96f76;
    --terracotta: #b87861;
    --gold: #b89a5b;

    --paper: #f8f3ea;
    --paper-dark: #eee5d7;
    --cream: #fffdf8;

    --text: #342a2c;
    --text-light: #75686a;
}


/* =====================================================
   RESET
===================================================== */

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


html {
    scroll-behavior: smooth;
}


body {
    background-color: var(--paper);
    color: var(--text);

    min-height: 100vh;

    font-family: 'Lora', serif;

    display: flex;
    flex-direction: column;
}


/* =====================================================
   CABEÇALHO
===================================================== */

.top-bar {
    width: 100%;

    padding: 30px 6vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: var(--paper);

    border-bottom: 1px solid rgba(84, 44, 61, 0.18);
}


/* =====================================================
   MARCA
===================================================== */

.brand-sign {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: relative;
}


.brand-sign::after {
    content: "✦";

    position: absolute;

    right: -28px;
    top: -12px;

    color: var(--gold);

    font-size: 16px;
}


.main-board {
    border: none;

    background: transparent;

    padding: 0;
}


.main-board h1 {
    font-family: 'Cormorant Garamond', serif;

    color: var(--wine);

    font-size: 2rem;
    font-weight: 600;

    letter-spacing: 3px;
}


.site-logo {
    display: block;

    width: 210px;
    height: auto;

    object-fit: contain;
}


.sub-board {
    background: transparent;

    padding: 0;

    margin-top: 2px;
    margin-left: 4px;
}


.sub-board span {
    color: var(--rose);

    font-family: 'Lora', serif;

    font-size: 0.85rem;

    font-style: italic;

    letter-spacing: 1px;
}


/* =====================================================
   BOTÕES DO CABEÇALHO
===================================================== */

.top-actions {
    display: flex;

    gap: 10px;
}


.icon-btn {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--wine);

    background: transparent;

    border: 1px solid rgba(84, 44, 61, 0.25);

    border-radius: 50%;

    text-decoration: none;

    font-size: 1rem;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.icon-btn:hover {
    background-color: var(--wine);

    color: var(--paper);

    transform: translateY(-2px);
}

.admin-access-button {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(84, 44, 61, 0.3);
    border-radius: 24px;
    color: var(--wine);
    background: var(--cream);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-access-button[hidden] { display: none; }

.admin-access-button:hover {
    background: var(--wine);
    color: var(--cream);
}


/* =====================================================
   CONTEÚDO PRINCIPAL
===================================================== */

.site-wrapper {
    flex: 1;

    width: 100%;

    max-width: 1150px;

    margin: 0 auto;

    padding: 80px 40px;
}


/* =====================================================
   SOBRE A ARTISTA
===================================================== */

.section-about-me {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 70px;
}


.about-content {
    display: flex;

    align-items: center;

    gap: 35px;

    max-width: 820px;
}


/* =====================================================
   FOTO DE PERFIL
===================================================== */

.img-placeholder {
    background-color: var(--paper-dark);

    color: var(--wine);

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;
}


.profile-pic {
    width: 145px;
    height: 165px;

    flex-shrink: 0;

    border: none;

    border-radius:
        48% 52% 45% 55%
        /
        55% 45% 55% 45%;

    transform: rotate(-2deg);

    background:
        linear-gradient(
            135deg,
            #e6d8d0,
            #d8c0bd
        );
}


.profile-pic img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    position: relative;

    z-index: 1;
}


.profile-pic::after {
    content: "";

    position: absolute;

    inset: 7px;

    border: 1px solid rgba(84, 44, 61, 0.3);

    border-radius:
        48% 52% 45% 55%
        /
        55% 45% 55% 45%;

    z-index: 2;

    pointer-events: none;
}


/* =====================================================
   TEXTO SOBRE MIM
===================================================== */

.about-me-text h2 {
    font-family: 'Cormorant Garamond', serif;

    color: var(--wine);

    font-size: 2.5rem;

    font-weight: 600;

    margin-bottom: 10px;
}


.about-me-text p {
    color: var(--text-light);

    line-height: 1.8;

    font-size: 0.98rem;

    max-width: 600px;
}


/* =====================================================
   INSTAGRAM
===================================================== */

.insta-link a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--wine);

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.2rem;

    font-style: italic;

    text-decoration: none;

    padding-bottom: 4px;

    border-bottom: 1px solid var(--gold);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.insta-link a:hover {
    color: var(--terracotta);

    transform: translateY(-2px);
}


/* =====================================================
   DIVISÓRIA
===================================================== */

.divider {
    border: none;

    height: 1px;

    background-color: rgba(84, 44, 61, 0.18);

    margin: 0 0 60px;

    position: relative;
}


.divider::after {
    content: "✦";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background-color: var(--paper);

    padding: 0 15px;

    color: var(--gold);

    font-size: 13px;
}


/* =====================================================
   PRODUTOS
===================================================== */

.items-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;
}


.section-item {
    display: flex;

    align-items: center;

    gap: 25px;

    background: transparent;

    padding: 0;

    border: none;

    box-shadow: none;

    position: relative;
}


.section-item::before {
    content: "";

    position: absolute;

    left: -20px;
    top: 10px;

    width: 2px;
    height: 35px;

    background-color: var(--gold);

    transform: rotate(-5deg);

    opacity: 0.7;
}


/* =====================================================
   IMAGENS DOS PRODUTOS
===================================================== */

.card-img {
    width: 150px;
    height: 190px;

    flex-shrink: 0;

    border: none;

    background-color: var(--paper-dark);

    border-radius: 4px;

    transform: rotate(-2deg);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.section-item:nth-child(2) .card-img {
    transform: rotate(2deg);
}

.section-item-link { color: inherit; text-decoration-color: transparent; transition: color .2s ease, text-decoration-color .2s ease; }
.section-item-link:hover { color: var(--rose); text-decoration-color: currentColor; }
.section-item-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--rose); font-size: .82rem; font-weight: 600; text-decoration: none; }
.section-item-cta:hover { color: var(--wine); }


.card-img img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 4px;

    position: relative;

    z-index: 1;
}


.section-item:hover .card-img {
    transform: rotate(0deg);

    box-shadow:
        0 12px 25px rgba(59, 29, 43, 0.12);
}

.shop-catalog { padding: 54px 0 20px; }
.shop-catalog-heading { margin-bottom: 25px; text-align: center; }
.shop-catalog-heading > span { color: var(--gold); font-size: 1.1rem; }
.shop-catalog-heading h2 { margin: 5px 0; color: var(--wine); font: 600 2rem 'Cormorant Garamond',serif; }
.shop-catalog-heading p { color: var(--text-light); font-size: .9rem; }
.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 20px; }
.shop-product-card { overflow: hidden; border: 1px solid rgba(84,44,61,.14); border-radius: 9px; background: var(--cream); box-shadow: 0 9px 26px rgba(59,29,43,.06); }
.shop-product-image { display: block; width: 100%; height: 230px; object-fit: cover; background: var(--paper-dark); }
.shop-product-image.is-placeholder { display: grid; place-items: center; color: var(--rose); font-size: 2rem; }
.shop-product-info { padding: 16px; }
.shop-product-info h3 { color: var(--wine); font: 600 1.25rem 'Cormorant Garamond',serif; }
.shop-product-info p { margin-top: 7px; color: var(--text-light); font-size: .82rem; line-height: 1.55; }
.shop-product-price { display: block; margin-top: 13px; color: var(--wine); font-weight: 600; }
.shop-product-stock { display: block; margin-top: 5px; color: var(--rose); font-size: .72rem; }
.products-page { min-height: 100vh; }
.products-brand { display: flex; flex-direction: column; align-items: flex-start; color: inherit; text-decoration: none; }
.products-brand .main-board span { color: var(--wine); font: 600 2rem 'Cormorant Garamond',serif; letter-spacing: 3px; }
.products-brand .sub-board span { color: var(--rose); font: italic .85rem 'Lora',serif; letter-spacing: 1px; }
.products-back { color: var(--wine); font-size: .85rem; text-decoration: none; }
.products-back i { margin-right: 6px; }
.products-main { flex: 1; }
.products-main .shop-catalog { padding-top: 28px; }
.products-main .shop-catalog-heading h1 { margin: 5px 0; color: var(--wine); font: 600 2.4rem 'Cormorant Garamond',serif; }
.catalog-message { margin: 10px 0 22px; color: var(--text-light); font-size: .9rem; text-align: center; }
.catalog-message:empty { display: none; }

/* Carrinho e interações de compra */
.cart-link { position: relative; }
.cart-link.has-items { color: var(--rose); border-color: var(--rose); }
.cart-link.has-items:hover { color: var(--paper); }
.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--paper);
    border-radius: 20px;
    background: var(--rose);
    color: white;
    font: 600 11px 'Lora', serif;
    line-height: 1;
}
.cart-count[hidden] { display: none; }
.shop-product-card.is-addable { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.shop-product-card.is-addable:hover, .shop-product-card.is-addable:focus-visible { transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 13px 28px rgba(59,29,43,.14); outline: none; }
.shop-product-card.just-added { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,154,91,.25); }
.cart-main .shop-catalog { padding-top: 35px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); align-items: start; gap: 28px; }
.cart-items, .cart-summary { border: 1px solid rgba(84,44,61,.15); border-radius: 10px; background: var(--cream); box-shadow: 0 9px 26px rgba(59,29,43,.05); }
.cart-items { padding: 8px 24px; }
.cart-empty { padding: 34px 10px; color: var(--text-light); text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-item { display: grid; grid-template-columns: 76px minmax(100px,1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(84,44,61,.12); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-image { width: 76px; height: 82px; object-fit: cover; border-radius: 6px; background: var(--paper-dark); }
.cart-item-placeholder { display: grid; place-items: center; color: var(--rose); font-size: 1.5rem; }
.cart-item-details h2 { color: var(--wine); font: 600 1.2rem 'Cormorant Garamond',serif; }
.cart-item-details p { margin-top: 5px; color: var(--text-light); font-size: .8rem; }
.cart-item-controls { display: flex; align-items: center; gap: 16px; }
.quantity-control { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 1px solid rgba(84,44,61,.18); border-radius: 24px; }
.quantity-control button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--paper); color: var(--wine); font: 1.1rem 'Lora',serif; cursor: pointer; }
.quantity-control button:disabled { opacity: .35; cursor: not-allowed; }
.quantity-control span { min-width: 14px; text-align: center; font-size: .85rem; }
.cart-line-total { min-width: 88px; color: var(--wine); font-size: .9rem; text-align: right; }
.remove-item { border: 0; background: transparent; color: var(--text-light); font: .75rem 'Lora',serif; cursor: pointer; white-space: nowrap; }
.remove-item:hover { color: #a23b45; }
.cart-summary { position: sticky; top: 20px; padding: 24px; }
.cart-summary h2 { margin-bottom: 18px; color: var(--wine); font: 600 1.45rem 'Cormorant Garamond',serif; }
.coupon-form { padding: 16px 0; border-top: 1px solid rgba(84,44,61,.12); border-bottom: 1px solid rgba(84,44,61,.12); }
.coupon-form label { display: block; margin-bottom: 8px; color: var(--text-light); font-size: .78rem; }
.coupon-controls { display: flex; gap: 7px; }
.coupon-controls input { min-width: 0; width: 100%; padding: 10px; border: 1px solid rgba(84,44,61,.2); border-radius: 5px; font: .8rem 'Lora',serif; }
.coupon-controls button { padding: 0 12px; border: 1px solid var(--wine); border-radius: 5px; background: var(--cream); color: var(--wine); font: 600 .76rem 'Lora',serif; cursor: pointer; }
.coupon-controls button:hover { background: var(--wine); color: var(--cream); }
.coupon-message { min-height: 17px; margin-top: 7px; color: #a23b45; font-size: .72rem; }
.coupon-message.is-success { color: #39724b; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--text-light); font-size: .84rem; }
.summary-line strong { color: var(--wine); font-weight: 600; }
  .shipping-form { padding: 15px 0; border-top: 1px solid rgba(84,44,61,.12); }
  .shipping-form > label { display: block; margin-bottom: 8px; color: var(--text-light); font-size: .78rem; }
  .shipping-options { display: grid; gap: 7px; margin-top: 10px; }
  .shipping-options:empty { display: none; }
  .shipping-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(84,44,61,.18); border-radius: 6px; color: var(--text-light); font-size: .75rem; cursor: pointer; }
  .shipping-option:has(input:checked) { border-color: var(--rose); background: rgba(169,111,118,.07); }
  .shipping-option input { accent-color: var(--wine); }
  .shipping-option strong { color: var(--wine); white-space: nowrap; }
.discount-line { color: #39724b; }
.total-line { margin-top: 3px; border-top: 1px solid rgba(84,44,61,.12); color: var(--wine); font-size: .95rem; }
.total-line strong { font-size: 1.1rem; }
.checkout-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 10px; border: 0; border-radius: 5px; background: var(--wine); color: var(--paper); font: 600 .78rem 'Lora',serif; cursor: pointer; }
.checkout-button:hover:not(:disabled) { background: var(--wine-dark); }
.checkout-button:disabled { opacity: .48; cursor: not-allowed; }
.checkout-note { margin-top: 11px; color: var(--text-light); font-size: .68rem; line-height: 1.5; text-align: center; }

@media (max-width: 800px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 560px) {
    .products-page .top-bar { flex-wrap: wrap; gap: 14px; }
    .products-page .products-brand .main-board span { font-size: 1.5rem; letter-spacing: 2px; }
    .products-page .products-brand .sub-board span { font-size: .72rem; }
    .products-page .top-actions { width: 100%; justify-content: space-between; }
    .cart-item { grid-template-columns: 58px minmax(90px,1fr); gap: 12px; }
    .cart-item-image { width: 58px; height: 66px; }
    .cart-item-controls { grid-column: 2; flex-wrap: wrap; justify-content: space-between; gap: 9px; }
    .cart-line-total { min-width: 0; text-align: left; }
    .cart-items { padding: 5px 15px; }
    .products-page .products-back { font-size: .8rem; }
}


/* =====================================================
   INFORMAÇÕES DOS PRODUTOS
===================================================== */

.item-info h2 {
    font-family: 'Cormorant Garamond', serif;

    color: var(--wine);

    font-size: 2rem;

    font-weight: 600;

    margin-bottom: 8px;
}


.item-info p {
    color: var(--text-light);

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =====================================================
   RODAPÉ
===================================================== */

.footer-section {
    background-color: var(--wine);

    color: var(--paper);

    padding: 50px 40px;

    margin-top: 60px;

    position: relative;
}


.footer-section::before {
    content: "✦";

    position: absolute;

    top: -13px;
    left: 50%;

    transform: translateX(-50%);

    background-color: var(--paper);

    color: var(--gold);

    padding: 0 15px;

    font-size: 14px;
}


.footer-content {
    max-width: 1150px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;
}


/* =====================================================
   LINK DO RODAPÉ
===================================================== */

.footer-link {
    color: var(--paper);

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.2rem;

    text-decoration: none;

    border-bottom: 1px solid rgba(255,255,255,0.4);

    padding-bottom: 3px;

    transition: color 0.2s ease;
}


.footer-link:hover {
    color: #e3c989;
}


/* =====================================================
   NEWSLETTER
===================================================== */

.newsletter-box h3 {
    font-family: 'Cormorant Garamond', serif;

    color: var(--paper);

    font-size: 1.5rem;

    font-weight: 500;

    margin-bottom: 12px;
}


.newsletter-box form {
    display: flex;

    gap: 8px;
    flex-wrap: wrap;
}


.newsletter-box input:not([type="checkbox"]) {
    padding: 11px 15px;

    background-color: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.3);

    color: white;

    border-radius: 3px;

    outline: none;

    width: 260px;

    font-family: 'Lora', serif;
}


.newsletter-box input::placeholder {
    color: rgba(255,255,255,0.65);
}


.newsletter-box input:not([type="checkbox"]):focus {
    border-color: var(--gold);
}

.newsletter-consent, .newsletter-feedback {
    margin-top: 8px;
    color: rgba(248, 243, 234, 0.72);
    font-size: .7rem;
    line-height: 1.5;
}
.newsletter-consent { width: 100%; flex: 1 0 100%; display: flex; align-items: flex-start; gap: 7px; cursor: pointer; }
.newsletter-consent input[type="checkbox"] { width: auto; flex: 0 0 auto; margin-top: 2px; accent-color: var(--gold); }
.newsletter-feedback:empty { display: none; }
.newsletter-feedback.is-success { color: #e3c989; }


.newsletter-box button {
    padding: 11px 18px;

    background-color: transparent;

    color: var(--paper);

    border: 1px solid var(--paper);

    border-radius: 3px;

    cursor: pointer;

    font-family: 'Lora', serif;

    font-size: 0.75rem;

    letter-spacing: 1px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.newsletter-box button:hover {
    background-color: var(--paper);

    color: var(--wine);
}


/* =====================================================
   ASSINATURA DO DESENVOLVEDOR
===================================================== */

.developer-signature {
    margin: 45px auto 0;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    font-family: "Comic Sans MS", "Comic Sans", cursive;

    font-size: 0.8rem;

    color: rgba(248, 243, 234, 0.55);

    transform: rotate(-1deg);
}


.developer-signature a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--paper);

    text-decoration: none;

    font-weight: bold;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.developer-signature a:hover {
    color: #e3c989;

    transform: rotate(2deg) scale(1.05);
}


.developer-signature i {
    font-size: 0.9rem;
}


/* =====================================================
   POPUP DE CADASTRO
===================================================== */

.modal-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background-color: rgba(59, 29, 43, 0.65);

    z-index: 99999;
}


/*
   Quando o HTML possui o atributo "hidden",
   o popup permanece completamente escondido.
*/

.modal-overlay[hidden] {
    display: none !important;
}


/* =====================================================
   CAIXA DO POPUP
===================================================== */

.modal {
    position: relative;

    width: min(100%, 420px);

    padding: 35px;

    background-color: var(--cream);

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(59, 29, 43, 0.30);
}


/* =====================================================
   TÍTULO DO POPUP
===================================================== */

.modal h2 {
    color: var(--wine);

    font-family: 'Cormorant Garamond', serif;

    font-size: 2rem;

    font-weight: 600;

    margin-top: 0;

    margin-bottom: 8px;
}


.modal > p {
    color: var(--text-light);

    line-height: 1.5;

    margin-bottom: 22px;
}


/* =====================================================
   BOTÃO FECHAR
===================================================== */

.modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: var(--wine);

    font-size: 22px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.modal-close:hover {
    color: var(--terracotta);

    transform: scale(1.1);
}


/* =====================================================
   FORMULÁRIOS (LOGIN E CADASTRO)
===================================================== */

.modal-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.modal-form div {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.modal-form label {
    color: var(--wine);

    font-size: 0.9rem;

    font-weight: 600;
}


.modal-form input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(84, 44, 61, 0.25);

    border-radius: 5px;

    background-color: white;

    color: var(--text);

    font-family: 'Lora', serif;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.modal-form input:focus {
    border-color: var(--rose);

    box-shadow:
        0 0 0 2px rgba(169, 111, 118, 0.15);
}


/* =====================================================
   BOTÕES DE SUBMIT (LOGIN E CADASTRO)
===================================================== */

.modal-submit {
    width: 100%;

    margin-top: 4px;

    padding: 12px;

    border: 1px solid var(--wine);

    border-radius: 5px;

    background-color: var(--wine);

    color: var(--paper);

    font-family: 'Lora', serif;

    font-size: 0.85rem;

    font-weight: 600;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}


.modal-submit:hover {
    background-color: var(--wine-dark);

    transform: translateY(-1px);
}


.modal-submit:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =====================================================
   RESULTADO DO CADASTRO
===================================================== */

#register-result,
#login-result,
#verify-result {
    margin-top: 18px;

    margin-bottom: 0;

    color: var(--wine);

    font-size: 0.9rem;

    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}


/* =====================================================
   BOTÃO DE TROCA DE MODAL
===================================================== */

.modal-switch {
    margin-top: 18px;

    text-align: center;

    font-size: 0.9rem;

    color: var(--text-light);
}

.modal-switch button {
    background: none;
    border: none;
    color: var(--rose);
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-switch button:hover {
    color: var(--wine);
}


/* =====================================================
   CAMPOS DE CÓDIGO DE VERIFICAÇÃO
===================================================== */

.verify-hint {
    margin-top: 8px;
    margin-bottom: 22px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

#verify-email-display {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
    color: var(--wine);
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}

.code-inputs-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

/* .modal-form div define coluna para os campos comuns; sobrescreve no OTP. */
.modal-form .code-inputs-container {
    flex-direction: row;
}

.code-input {
    box-sizing: border-box;
    flex: 0 0 48px;
    min-width: 0;
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;

    border: 2px solid rgba(84, 44, 61, 0.25);
    border-radius: 10px;
    background-color: white;
    color: var(--text);

    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease,
        background-color 0.15s ease;
}

.modal-form .code-inputs-container .code-input {
    width: 48px;
    padding: 0;
}

.code-input::placeholder {
    color: rgba(84, 44, 61, 0.25);
    font-weight: 400;
}

.code-input:focus {
    border-color: var(--rose);
    box-shadow:
        0 0 0 3px rgba(169, 111, 118, 0.18);
    transform: scale(1.05);
    z-index: 1;
}

/* Efeito de brilho discreto quando digita */
.code-input.glow {
    animation: codeGlow 0.35s ease-out;
    background-color: #fffdf8;
    border-color: var(--gold);
    box-shadow:
        0 0 0 2px rgba(184, 154, 91, 0.25),
        0 0 8px rgba(184, 154, 91, 0.25);
}

@keyframes codeGlow {
    0% {
        box-shadow:
            0 0 0 0 rgba(184, 154, 91, 0.3),
            0 0 0 rgba(184, 154, 91, 0);
        transform: scale(1.03);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(184, 154, 91, 0.3),
            0 0 12px rgba(184, 154, 91, 0.35);
        transform: scale(1.05);
    }
    100% {
        box-shadow:
            0 0 0 2px rgba(184, 154, 91, 0.25),
            0 0 8px rgba(184, 154, 91, 0.25);
        transform: scale(1.03);
    }
}

/* Estilo para input preenchido */
.code-input.filled {
    border-color: var(--rose);
    background-color: #fffdf8;
}

/* Estilo para input com erro */
.code-input.error {
    border-color: #c0392b;
    background-color: #fdf2f2;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Responsividade dos campos de código */
@media (max-width: 450px) {
    .code-input {
        flex-basis: 36px;
        width: 36px;
        height: 42px;
        font-size: 1.2rem;
    }
    .code-inputs-container {
        gap: 4px;
    }
}

@media (max-width: 450px) {
    body > .top-bar { flex-wrap: wrap; gap: 14px; }
    body > .top-bar .brand-sign { width: 100%; }
    body > .top-bar .top-actions { width: 100%; justify-content: flex-end; }
    body > .top-bar .main-board h1 { font-size: 1.55rem; letter-spacing: 2px; }
    .item-info { min-width: 0; }
    .section-item { min-width: 0; }
    .modal-form .code-inputs-container { gap: 4px; }
}

@media (min-width: 1200px) {
    .shop-product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}


/* =====================================================
   RESPONSIVIDADE — TABLET
===================================================== */

@media (max-width: 768px) {

    .top-bar {
        padding: 22px 20px;
    }


    .site-logo {
        width: 165px;
    }


    .site-wrapper {
        padding: 55px 25px;
    }


    .section-about-me {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        margin-bottom: 55px;
    }


    .about-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }


    .profile-pic {
        width: 125px;

        height: 145px;
    }


    .about-me-text h2 {
        font-size: 2.2rem;
    }


    .insta-link {
        align-self: flex-start;
    }


    .items-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .section-item {
        align-items: flex-start;
    }


    .card-img {
        width: 120px;

        height: 155px;
    }


    .item-info h2 {
        font-size: 1.7rem;
    }


    .footer-section {
        padding: 45px 25px;
    }


    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }


    .newsletter-box {
        width: 100%;
    }


    .newsletter-box form {
        flex-direction: column;
    }


    .newsletter-box input {
        width: 100%;
    }


    .developer-signature {
        margin-top: 35px;

        font-size: 0.75rem;

        flex-wrap: wrap;
    }


    .modal {
        padding: 30px 25px;
    }

}


/* =====================================================
   CELULARES PEQUENOS
===================================================== */

@media (max-width: 450px) {

    .top-bar {
        padding: 18px 15px;
    }


    .site-logo {
        width: 145px;
    }


    .icon-btn {
        width: 38px;

        height: 38px;
    }


    .site-wrapper {
        padding: 45px 20px;
    }


    .about-content {
        width: 100%;
    }


    .section-item {
        gap: 18px;
    }


    .card-img {
        width: 100px;

        height: 135px;
    }


    .item-info p {
        font-size: 0.82rem;
    }


    .item-info h2 {
        font-size: 1.5rem;
    }


    .developer-signature {
        text-align: center;

        justify-content: center;
    }


    .modal-overlay {
        padding: 15px;
    }


    .modal {
        width: 100%;

        padding: 28px 20px;
    }


    .modal h2 {
        font-size: 1.8rem;
    }

}
