/* ===========================
   LOJA PAGE - loja.html
   =========================== */

.shop-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 60px;
  color: var(--white);
  text-align: center;
  padding: 40px 20px 30px;
}

/* Category Cards Row */
.category-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto 40px;
}

a.category-card,
a.category-circle {
  text-decoration: none;
  color: inherit;
}

.category-card {
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  width: 354px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 170, 25, 0.3);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
}

.category-card__image {
  width: 200px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto;
}

/* Category Circles */
.category-circles {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.category-circle {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-circle:hover {
  transform: scale(1.1);
}

.category-circle__image {
  width: 121px;
  height: 121px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  border: 3px solid var(--gold);
}

.category-circle__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle__name {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--white);
}

/* Product Grid */
.products-section {
  padding: 40px;
  max-width: 1700px;
  margin: 0 auto;
}

.products-section__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 60px;
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.product-card {
  width: 280px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(20, 20, 20, 0.8);
  display: flex;
  flex-direction: column;
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card__info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 42px;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 4px;
}

.product-card__installment {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.product-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-buy-now {
  position: relative;
  background-color: var(--black);
  color: var(--white);
  font-family: 'Fjalla One', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 7px 18px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  line-height: 1;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}

.btn-buy-now::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, var(--gold), #fff5cc, var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 100%;
  animation: borderShimmer 2.5s linear infinite;
  pointer-events: none;
}

@keyframes borderShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.btn-buy-now:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 170, 25, 0.35);
}

.btn-buy-now:active {
  transform: translateY(0);
  box-shadow: none;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
}

.qty-selector button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  padding: 8px 14px;
  cursor: pointer;
}

.qty-selector button:hover {
  background: rgba(255, 170, 25, 0.2);
}

.qty-selector span {
  padding: 8px 14px;
  font-size: 18px;
  color: var(--white);
  min-width: 30px;
  text-align: center;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--gold);
  color: var(--black);
  font-family: 'Fjalla One', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  line-height: 1;
  width: 100%;
  letter-spacing: 0.5px;
}

.btn-add-cart svg {
  width: 24px;
  height: 24px;
  fill: var(--black);
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background-color: #e6991a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 170, 25, 0.4);
}

.btn-add-cart:active {
  transform: translateY(0);
  box-shadow: none;
}

/* btn-whatsapp removido - substituído por btn-buy-now */

/* ===========================
   CARRINHO FLUTUANTE + SIDEBAR
   =========================== */

/* Botão flutuante do carrinho */
.cart-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 14px rgba(255, 170, 25, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.cart-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 170, 25, 0.6);
}

.cart-float:active {
  transform: scale(0.95);
}

.cart-float svg {
  width: 28px;
  height: 28px;
  fill: var(--black);
}

.cart-float__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red-btn);
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-float__badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Overlay escuro */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar do carrinho */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #111;
  border-left: 3px solid var(--gold);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--gold);
}

.cart-sidebar__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
}

.cart-sidebar__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.cart-sidebar__close:hover {
  color: var(--gold);
}

/* Lista de itens */
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-sidebar__empty {
  text-align: center;
  color: var(--gray-text);
  font-size: 18px;
  padding: 60px 0;
}

/* Item individual */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 170, 25, 0.15);
  align-items: center;
}

.cart-item__image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

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

.cart-item__name {
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__price {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cart-item__qty button {
  background: none;
  border: 1px solid var(--gold);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-item__qty button:hover {
  background: rgba(255, 170, 25, 0.2);
}

.cart-item__qty span {
  font-size: 15px;
  color: var(--white);
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--red-btn);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.cart-item__remove:hover {
  color: #e74c3c;
}

/* Footer do carrinho */
.cart-sidebar__footer {
  padding: 20px 24px;
  border-top: 2px solid var(--gold);
}

.cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-sidebar__total-label {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
}

.cart-sidebar__total-value {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
}

.cart-sidebar__checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white;
  font-family: var(--font-ui);
  font-size: 26px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cart-sidebar__checkout:hover {
  background: #1fb855;
  transform: scale(1.02);
}

.cart-sidebar__checkout svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Animação ao adicionar */
@keyframes cartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-float--pulse {
  animation: cartPulse 0.4s ease;
}

/* RESPONSIVE - LOJA */
@media (max-width: 1024px) {
  .shop-title { font-size: 50px; }
  .product-card { width: 260px; }
}

@media (max-width: 768px) {
  .shop-title { padding: 28px 16px 20px; }
  .category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    max-width: 560px;
  }
  .category-card { width: auto; max-width: none; padding: 14px; border-width: 2px; }
  .category-card__title { font-size: 17px; margin-bottom: 6px; }
  .category-card__image { width: 100%; height: 110px; }
  .category-circles { gap: 14px 18px; padding: 16px; }
  .category-circle__image { width: 84px; height: 84px; }
  .category-circle__name { font-size: 15px; }
  .products-section { padding: 28px 16px; }
  .products-grid { gap: 14px; }
  .product-card { width: 100%; max-width: 340px; }
}

@media (max-width: 480px) {
  .shop-title { font-size: 32px; }
  .products-section__title { font-size: 30px; }
  .category-card__title { font-size: 15px; }
  .category-card__image { height: 96px; }
}

/* ===========================
   PAGAMENTO ONLINE
   =========================== */
.cart-sidebar__pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFAA19, #ff8c00);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 26px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-bottom: 12px;
}

.cart-sidebar__pay:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(255, 170, 25, 0.45);
}

.cart-sidebar__pay svg { width: 24px; height: 24px; fill: var(--black); }

.cart-sidebar__or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--gray-text);
  font-family: var(--font-body);
  font-size: 14px;
  margin: 4px 0 12px;
}
.cart-sidebar__or::before,
.cart-sidebar__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.cart-sidebar__or span { padding: 0 12px; }

/* Modal de checkout */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkout-modal.open { display: flex; }

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(3px);
}

.checkout-modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #1a1a1a, #0c0c0c);
  border: 1px solid rgba(255,170,25,0.3);
  border-radius: 18px;
  padding: 34px 30px 30px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: checkoutIn .3s ease;
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes checkoutIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.checkout-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray-text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.checkout-modal__close:hover { color: var(--gold); }

.checkout-modal__title {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 6px;
}

.checkout-modal__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 18px;
}

.checkout-modal__summary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
}
.checkout-modal__summary .ck-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.checkout-modal__summary .ck-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 17px;
  color: var(--gold);
  font-weight: 700;
}

.checkout-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  margin-bottom: 14px;
}
.checkout-form input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.checkout-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.checkout-form__error {
  color: #ff6b6b;
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 18px;
  margin-bottom: 6px;
}

.checkout-form__submit {
  width: 100%;
  background: linear-gradient(135deg, #FFAA19, #ff8c00);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 28px;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .3s, opacity .2s;
}
.checkout-form__submit:hover { transform: scale(1.02); box-shadow: 0 6px 18px rgba(255,170,25,0.45); }
.checkout-form__submit:disabled { opacity: .6; cursor: wait; transform: none; }

.checkout-form__note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 12px;
}
