@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terracotta: #E8825F;
  --terracotta-dark: #B85530;
  --terracotta-light: #F2A47E;
  --brown-text: #3A1B0F;
  --brown-mid: #6B3A22;
  --cream: #FBF5EE;
  --sand-light: #F3E4D6;
  --gold: #C89B5C;
  --shadow: rgba(58, 27, 15, 0.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; font-weight: 300; background: var(--cream); color: var(--brown-text); line-height: 1.7; overflow-x: hidden; animation: bodyFadeIn 0.6s ease; }
@keyframes bodyFadeIn { from { opacity: 0; } to { opacity: 1; } }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--terracotta), var(--gold)); z-index: 1000; width: 0%; transition: width 0.1s ease; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 3rem; background: rgba(251, 245, 238, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-light); position: sticky; top: 0; z-index: 100; transition: padding 0.3s ease, box-shadow 0.3s ease; }
.navbar.scrolled { padding: 0.9rem 3rem; box-shadow: 0 4px 20px var(--shadow); }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--terracotta-dark); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--brown-text); font-size: 0.95rem; letter-spacing: 0.5px; transition: color 0.3s ease; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--terracotta-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--terracotta-dark); }
.nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--brown-text); }

.btn { display: inline-block; padding: 0.9rem 2.4rem; border-radius: 2px; text-decoration: none; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.35s ease; cursor: pointer; border: 1px solid transparent; }
.btn-solid { background: var(--brown-text); color: var(--cream); }
.btn-solid:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
.btn-outline { border-color: var(--brown-text); color: var(--brown-text); background: transparent; }
.btn-outline:hover { background: var(--brown-text); color: var(--cream); transform: translateY(-2px); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--terracotta) 0%, #DC7350 55%, var(--terracotta-dark) 100%); overflow: hidden; padding: 2rem; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.25; filter: blur(2px); transition: transform 0.3s ease-out; }
.shape-1 { width: 260px; height: 260px; background: var(--gold); top: 10%; left: 8%; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 180px; height: 180px; background: var(--cream); bottom: 15%; right: 12%; animation: float 8s ease-in-out infinite 2s; }
.shape-3 { width: 120px; height: 120px; background: var(--sand-light); top: 55%; left: 20%; animation: float 8s ease-in-out infinite 4s; }
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(15px); } }
.particle { position: absolute; width: 4px; height: 4px; background: var(--cream); border-radius: 50%; opacity: 0.5; pointer-events: none; animation: particleRise linear infinite; }
@keyframes particleRise { from { transform: translateY(0); opacity: 0.6; } to { transform: translateY(-100vh); opacity: 0; } }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 750px; }
.hero-kicker { color: var(--sand-light); letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.5rem; }
.hero-title { font-size: 4.6rem; color: var(--cream); line-height: 1.12; margin-bottom: 1.5rem; }
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); animation: lineReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-title .line[data-delay="0"] { animation-delay: 0.1s; }
.hero-title .line[data-delay="100"] { animation-delay: 0.3s; }
.hero-title .line[data-delay="200"] { animation-delay: 0.5s; color: var(--gold); }
@keyframes lineReveal { to { opacity: 1; transform: translateY(0); } }
.hero-sub { font-size: 1.2rem; color: var(--sand-light); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: var(--cream); color: var(--cream); }
.hero-actions .btn-outline:hover { background: var(--cream); color: var(--terracotta-dark); }
.scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--cream); border-radius: 20px; z-index: 2; }
.scroll-indicator span { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; background: var(--cream); border-radius: 50%; animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 24px; } }

.marquee { background: var(--brown-text); padding: 1rem 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 2rem; animation: marqueeScroll 22s linear infinite; color: var(--sand-light); font-size: 0.95rem; letter-spacing: 1px; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.section { padding: 6rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: 2.6rem; color: var(--terracotta-dark); margin-bottom: 0.5rem; text-align: center; }
.section-kicker { text-align: center; color: var(--brown-mid); margin-bottom: 0.6rem; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }
.section-alt { background: linear-gradient(180deg, var(--cream) 0%, var(--sand-light) 50%, var(--cream) 100%); max-width: 100%; }
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.about-text p { margin-bottom: 1.2rem; color: var(--brown-mid); }
.link-arrow { color: var(--terracotta-dark); text-decoration: none; font-weight: 500; transition: opacity 0.3s ease, gap 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }
.link-arrow:hover { opacity: 0.7; gap: 0.7rem; }
.about-block { height: 380px; border-radius: 8px; background: linear-gradient(135deg, var(--gold) 0%, var(--terracotta) 100%); transition: transform 0.5s ease; }
.about-visual:hover .about-block { transform: scale(1.02); }

.spotlight { background: var(--brown-text); padding: 7rem 1.5rem; overflow: hidden; }
.spotlight-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.spotlight-visual { position: relative; height: 460px; border-radius: 10px; overflow: hidden; }
.spotlight-badge { position: absolute; top: 1.5rem; left: 1.5rem; background: var(--gold); color: var(--brown-text); padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; z-index: 2; animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.spotlight-info .section-kicker { text-align: left; color: var(--terracotta-light); }
.spotlight-info h2 { text-align: left; color: var(--cream); font-size: 3rem; }
.spotlight-info p { color: var(--sand-light); margin: 1.2rem 0 2rem; }
.spotlight-price { font-size: 1.6rem; color: var(--gold); margin-bottom: 1.5rem; font-family: 'Jost', sans-serif; font-weight: 500; }

/* Garantias (substitui números/testemunhos falsos) */
.guarantees-section { background: linear-gradient(135deg, var(--sand-light) 0%, var(--terracotta-light) 100%); border-radius: 16px; }
.guarantees-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.guarantee-card { text-align: center; padding: 1.5rem; }
.guarantee-icon { width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--brown-text); display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 1.4rem; transition: transform 0.3s ease; }
.guarantee-card:hover .guarantee-icon { transform: scale(1.1) rotate(-6deg); }
.guarantee-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--brown-text); }
.guarantee-card p { color: var(--brown-mid); font-size: 0.9rem; }

.grid, .featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 3rem; }
.card { background: var(--sand-light); border-radius: 8px; overflow: hidden; cursor: pointer; transition: box-shadow 0.35s ease, transform 0.15s ease-out; transform-style: preserve-3d; will-change: transform; }
.card:hover { box-shadow: 0 20px 40px var(--shadow); }
.card-img { width: 100%; height: 220px; position: relative; transition: transform 0.5s ease; overflow: hidden; }
.card:hover .card-img { transform: scale(1.06); }
.card-shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 60%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card:hover .card-shine { opacity: 1; }
.card-body { padding: 1.5rem; text-align: center; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.price { font-family: 'Jost', sans-serif; font-weight: 500; color: var(--terracotta-dark); margin: 0.5rem 0 1rem; font-size: 1.1rem; }
.btn-small { padding: 0.7rem 1.8rem; background: var(--brown-text); color: var(--cream); border: none; border-radius: 2px; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; }
.btn-small:hover { background: var(--terracotta-dark); transform: scale(1.05); }
.featured-cta { text-align: center; margin-top: 3rem; }

.shop-layout { display: flex; gap: 3rem; max-width: 1300px; margin: 0 auto; padding: 3rem 1.5rem 5rem; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 100px; }
.sidebar h3 { font-size: 1.1rem; margin-bottom: 1.2rem; color: var(--terracotta-dark); }
.filter-group { margin-bottom: 2rem; }
.filter-group label { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.95rem; cursor: pointer; color: var(--brown-text); }
.filter-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--terracotta-dark); cursor: pointer; }
.results-count { font-size: 0.9rem; color: var(--brown-mid); margin-bottom: 1.5rem; }

.product-detail { display: flex; gap: 4rem; max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; flex-wrap: wrap; }
.product-detail-img { flex: 1; min-width: 300px; height: 480px; border-radius: 10px; animation: fadeIn 0.8s ease; }
.product-detail-info { flex: 1; min-width: 300px; }
.product-detail-info h1 { font-size: 2.6rem; margin-bottom: 0.5rem; }
.product-detail-info .price { font-size: 1.6rem; margin-bottom: 1.5rem; }
.product-detail-info p.description { margin-bottom: 2rem; color: var(--brown-mid); }
.quantity-selector { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--terracotta); background: transparent; border-radius: 4px; font-size: 1.1rem; cursor: pointer; transition: background 0.2s ease; }
.qty-btn:hover { background: var(--sand-light); }
.qty-value { font-size: 1.1rem; min-width: 24px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 3rem; }
.gallery-img { height: 240px; border-radius: 8px; background: linear-gradient(135deg, var(--gold) 0%, var(--terracotta) 100%); transition: transform 0.4s ease, filter 0.4s ease; cursor: pointer; }
.gallery-img:hover { transform: scale(1.03); filter: brightness(1.05); }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(58, 27, 15, 0.92); z-index: 999; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; }
.lightbox.open { display: flex; animation: lightboxIn 0.3s ease; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { width: min(600px, 80vw); height: min(400px, 60vh); border-radius: 10px; background: linear-gradient(135deg, var(--gold) 0%, var(--terracotta) 100%); }
.lightbox-caption { color: var(--sand-light); font-size: 1rem; }
.lightbox-close { position: absolute; top: 2rem; right: 3rem; color: var(--cream); font-size: 2.5rem; cursor: pointer; line-height: 1; transition: transform 0.2s ease; }
.lightbox-close:hover { transform: rotate(90deg); }

.newsletter { background: linear-gradient(135deg, var(--terracotta-dark) 0%, var(--brown-text) 100%); padding: 5rem 1.5rem; text-align: center; color: var(--cream); }
.newsletter h2 { color: var(--cream); font-size: 2.2rem; margin-bottom: 0.6rem; }
.newsletter p { color: var(--sand-light); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input { padding: 0.9rem 1.2rem; border-radius: 2px; border: 1px solid var(--sand-light); background: transparent; color: var(--cream); min-width: 260px; font-family: inherit; }
.newsletter-form ::placeholder { color: var(--sand-light); opacity: 0.7; }
.newsletter-msg { margin-top: 1rem; color: var(--gold); font-size: 0.9rem; min-height: 1.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; max-width: 500px; margin: 3rem auto 0; }
.contact-form input, .contact-form textarea { padding: 0.9rem; border: none; border-bottom: 1px solid var(--terracotta); background: transparent; font-family: inherit; font-size: 1rem; color: var(--brown-text); transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--terracotta-dark); }
.contact-form ::placeholder { color: var(--brown-mid); opacity: 0.6; }

/* FAQ */
.faq-list { max-width: 800px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--sand-light); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 0.5rem; cursor: pointer; font-size: 1.05rem; color: var(--brown-text); }
.faq-icon { font-size: 1.3rem; color: var(--terracotta-dark); transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: var(--brown-mid); padding: 0 0.5rem; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 0.5rem 1.3rem; }

.footer { background: linear-gradient(180deg, var(--brown-mid) 0%, var(--brown-text) 100%); color: var(--sand-light); padding: 3rem 1.5rem 1.5rem; text-align: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--cream); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--sand-light); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { font-size: 0.8rem; opacity: 0.7; border-top: 1px solid rgba(251,245,238,0.15); padding-top: 1.5rem; }

@media (max-width: 900px) {
  .about-grid, .spotlight-grid { grid-template-columns: 1fr; }
  .shop-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
}
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 70px; right: -100%; background: var(--cream); flex-direction: column; width: 220px; padding: 2rem; gap: 1.5rem; transition: right 0.3s ease; box-shadow: -4px 0 12px var(--shadow); }
  .nav-links.open { right: 0; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 2.8rem; }
}

.reveal, .reveal-left, .reveal-right { animation: forceReveal 0s 1.5s forwards; }
@keyframes forceReveal { to { opacity: 1; transform: none; } }

/* ===== Responsividade mobile completa ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 1rem 1.2rem; }
  .navbar.scrolled { padding: 0.7rem 1.2rem; }
  .logo { font-size: 1.5rem; }

  /* Hero */
  .hero { min-height: 90vh; padding: 1.5rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-kicker { font-size: 0.75rem; letter-spacing: 2px; }
  .hero-sub { font-size: 1rem; padding: 0 0.5rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 0.8rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-shape { display: none; }

  /* Marquee */
  .marquee-track { font-size: 0.8rem; gap: 1.2rem; }

  /* Sections */
  .section { padding: 3.5rem 1.2rem; }
  .section h2 { font-size: 2rem; }
  .section-kicker { font-size: 0.75rem; }

  /* About */
  .about-grid { gap: 2rem; margin-top: 2rem; }
  .about-block { height: 240px; }

  /* Spotlight */
  .spotlight { padding: 3.5rem 1.2rem; }
  .spotlight-grid { gap: 2rem; }
  .spotlight-visual { height: 260px; }
  .spotlight-info h2 { font-size: 2.2rem; text-align: center; }
  .spotlight-info .section-kicker { text-align: center; }
  .spotlight-info p { text-align: center; }
  .spotlight-price { text-align: center; }
  .spotlight-info { text-align: center; }

  /* Guarantees */
  .guarantees-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .guarantee-card { padding: 1rem 0.5rem; }
  .guarantee-card h3 { font-size: 1rem; }
  .guarantee-card p { font-size: 0.85rem; }

  /* Product grids */
  .grid, .featured-grid { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
  .card-img { height: 150px; }
  .card-body { padding: 1rem; }
  .card h3 { font-size: 1.05rem; }
  .price { font-size: 1rem; }
  .btn-small { padding: 0.6rem 1rem; font-size: 0.75rem; width: 100%; }

  /* Desliga o tilt 3D em ecrãs táteis — não faz sentido sem rato */
  .card { transform: none !important; }

  /* Shop layout */
  .shop-layout { padding: 1.5rem 1.2rem 3rem; gap: 1.5rem; }
  .sidebar { padding: 1rem; background: var(--sand-light); border-radius: 8px; }

  /* Product detail */
  .product-detail { padding: 2rem 1.2rem; gap: 2rem; }
  .product-detail-img { height: 300px; }
  .product-detail-info h1 { font-size: 2rem; }
  .product-detail-info .price { font-size: 1.3rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 2rem; }
  .gallery-img { height: 140px; }
  .lightbox-close { top: 1rem; right: 1.2rem; font-size: 2rem; }

  /* Newsletter */
  .newsletter { padding: 3rem 1.2rem; }
  .newsletter h2 { font-size: 1.7rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; min-width: 0; }

  /* Contact form */
  .contact-form { margin-top: 2rem; }

  /* Footer */
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 1rem 0.3rem; }
}

/* Telemóveis muito pequenos (iPhone SE e similares) */
@media (max-width: 380px) {
  .hero-title { font-size: 2rem; }
  .guarantees-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}