/* ============================================
   ARMAZEM DOS CHINELOS - STYLE.CSS
   Mobile-first responsive design
   Clean, modern, premium aesthetic
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

/* === UTILITY === */
.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }

@media (min-width: 769px) {
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
}

/* === BTN === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #ff7e01;
  color: #fff;
}

.btn-primary:hover {
  background: #e87100;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
  background: linear-gradient(90deg, #1a1a2e, #16213e, #1a1a2e);
  background-size: 200% 100%;
  animation: promoShimmer 4s ease-in-out infinite;
  color: #fff;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

@keyframes promoShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.promo-banner-inner { text-align: center; }

.promo-content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.promo-emoji { font-size: 22px; }

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.promo-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.promo-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.promo-coupon {
  background: #ff7e01;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}

@media (min-width: 769px) {
  .promo-title { font-size: 17px; }
  .promo-subtitle { font-size: 14px; }
  .promo-text { flex-direction: row; gap: 10px; align-items: center; }
  .promo-emoji { font-size: 26px; }
}

/* ============================================
   BRAND SCROLLING BAR
   ============================================ */
.brand-bar {
  background: #fff;
  padding: 18px 0;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.brand-track {
  display: flex;
  width: max-content;
  animation: brandScroll 25s linear infinite;
}

.brand-slide {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
  padding-right: 36px;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-logo--wide {
  height: 22px;
}

@keyframes brandScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 769px) {
  .brand-logo { height: 40px; }
  .brand-logo--wide { height: 28px; }
  .brand-slide { gap: 56px; padding-right: 56px; }
  .brand-bar { padding: 24px 0; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: #ff7e01;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: none;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 12px;
  position: relative;
  padding: 8px 16px;
}

@media (min-width: 769px) {
  .header-inner { height: 80px; padding: 10px 16px; }
}

/* Header center - logo */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

@media (min-width: 480px) {
  .logo-img { height: 56px; max-width: 300px; }
}

@media (min-width: 769px) {
  .logo-img { height: 62px; max-width: 350px; }
}

/* Header right */
.header-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Header icon buttons */
.header-icon-btn {
  color: #fff;
  font-size: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-icon-btn:active {
  background: rgba(255,255,255,0.15);
}

/* Cart count bubble */
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: #da3f3f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cart-count.bump {
  transform: scale(1.4);
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.product-section {
  padding: 48px 0;
}

.product-section:nth-child(even) {
  background: #f8f8f8;
}

@media (min-width: 769px) {
  .product-section { padding: 80px 0; }
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #222;
}

@media (min-width: 769px) {
  .section-title { font-size: 30px; }
  .section-header { margin-bottom: 40px; }
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: #ff7e01;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-link:hover { color: #e87100; }

.section-link i { font-size: 11px; transition: transform 0.2s ease; }
.section-link:hover i { transform: translateX(3px); }

/* Product grid - GRID layout (no horizontal scroll) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Product image */
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

/* Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.badge-sale { background: #dd1d1d; }
.badge-new { background: #207758; }
.badge-hot { background: #222; }

/* Quick buy button */
.btn-quick-buy {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(255,126,1,0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  z-index: 3;
  border-radius: 0 0 12px 12px;
  -webkit-tap-highlight-color: transparent;
}

.btn-quick-buy:hover { background: #e87100; }

/* On mobile, always show the button */
@media (max-width: 768px) {
  .btn-quick-buy {
    transform: translateY(0);
    height: 36px;
    font-size: 11px;
    opacity: 0.9;
    background: rgba(255,126,1,0.92);
  }
}

@media (min-width: 769px) {
  .product-card:hover .btn-quick-buy {
    transform: translateY(0);
  }
}

/* Product info */
.product-info {
  padding: 14px;
}

@media (min-width: 769px) {
  .product-info { padding: 14px 16px 18px; }
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .product-title { font-size: 13px; }
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-compare {
  font-size: 12px;
  color: #b0b0b0;
  text-decoration: line-through;
}

.price-current {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

@media (min-width: 769px) {
  .price-current { font-size: 17px; }
}

/* Product rating stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.product-rating .stars {
  color: #f5a623;
  font-size: 12px;
  letter-spacing: -1px;
}

.product-rating .rating-count {
  font-size: 11px;
  color: #aaa;
}

/* Product color swatches */
.product-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #eee;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.color-swatch:hover {
  border-color: #222;
}

.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.color-more {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.product-shipping {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #0fa573;
  font-weight: 600;
  margin-top: 6px;
}

.product-shipping i {
  font-size: 10px;
}

/* ============================================
   CONTACT BAR
   ============================================ */
.contact-bar {
  background: #f8f8f8;
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}

.contact-bar-help {
  font-weight: 700;
  color: #222;
}

.contact-bar-hours { color: #888; }

.contact-bar-phone {
  font-weight: 600;
  color: #ff7e01;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #ff7e01;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 36px 0;
}

@media (min-width: 600px) {
  .footer-grid { gap: 28px; }
}

@media (min-width: 992px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0; }
}

@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(6, 1fr); }
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  opacity: 0.95;
}

@media (min-width: 769px) {
  .footer-col h4 { font-size: 13px; margin-bottom: 18px; }
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

@media (min-width: 769px) {
  .footer-col ul li a { font-size: 13px; }
  .footer-col ul li { margin-bottom: 10px; }
}

.footer-col ul li a:hover { color: #fff; text-decoration: underline; }

.footer-col p {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 4px;
}

@media (min-width: 769px) {
  .footer-col p { font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
}

.footer-col strong { color: #fff; }

/* Newsletter on mobile: full width */
.footer-newsletter {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .footer-newsletter { grid-column: auto; }
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-form input {
  flex: 1;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: #fff; }

.newsletter-form .btn {
  height: 42px;
  padding: 0 20px;
  background: #222;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
}

.newsletter-form .btn:hover { background: #333; }

/* Footer social */
.footer-social {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 22px 0;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

/* Footer copyright */
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: #fff;
  z-index: 3001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  min-height: 64px;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.cart-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #222;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.cart-close:hover { background: #f5f5f5; }

/* Cart items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: #aaa;
}

.cart-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #e0e0e0;
}

.cart-empty p { font-size: 14px; }

/* Cart item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f5f5f5;
  animation: cartItemIn 0.35s ease;
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-color {
  width: 60px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-img {
  width: 60px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

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

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-size {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  background: #fff;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.qty-btn:first-child { border-radius: 6px 0 0 6px; }
.qty-btn:last-child { border-radius: 0 6px 6px 0; }
.qty-btn:hover { background: #f8f8f8; }

.qty-val {
  width: 36px;
  height: 32px;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  align-self: flex-start;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover { color: #dd1d1d; background: #fff5f5; }

/* Cart footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.cart-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cart-coupon input {
  flex: 1;
  height: 40px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  text-transform: uppercase;
  min-width: 0;
  transition: border-color 0.2s ease;
}

.cart-coupon input:focus { border-color: #ff7e01; }

.btn-coupon {
  height: 40px;
  padding: 0 16px;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.btn-coupon:hover { background: #333; }

.cart-coupon-msg {
  font-size: 12px;
  margin-bottom: 8px;
  min-height: 16px;
}

.cart-coupon-msg.success { color: #0fa573; }
.cart-coupon-msg.error { color: #dd1d1d; }

.cart-totals {
  margin-bottom: 16px;
}

.cart-subtotal, .cart-discount, .cart-total {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.cart-subtotal { color: #888; }
.cart-discount { color: #0fa573; }
.cart-total { font-size: 17px; font-weight: 700; border-top: 1px solid #f0f0f0; padding-top: 14px; margin-top: 8px; }

.btn-checkout {
  width: 100%;
  height: 52px;
  font-size: 15px;
  border-radius: 12px;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
}

.toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar { width: 0px; }

@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #bbb; }
}

/* ============================================
   BODY LOCK (when modals open)
   ============================================ */
body.locked {
  overflow: hidden;
  touch-action: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
