/*
Theme Name: LimaCloud Storefront
Template: storefront
Version: 1.0
Description: Child theme do Storefront com identidade visual moderna para a Loja LimaCloud.
*/

:root {
  --lc-bg: #ffffff;
  --lc-surface: #f7f7fb;
  --lc-text: #16161f;
  --lc-text-soft: #63636f;
  --lc-accent: #5b4bf5;
  --lc-accent-dark: #4636d6;
  --lc-accent-soft: #ede9ff;
  --lc-border: #ececf2;
  --lc-radius: 14px;
  --lc-shadow: 0 4px 20px rgba(22, 22, 31, 0.06);
  --lc-shadow-hover: 0 16px 40px rgba(22, 22, 31, 0.12);
  --lc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--lc-text);
  background: var(--lc-bg);
  -webkit-font-smoothing: antialiased;
  animation: lc-page-in 0.5s var(--lc-ease);
}

@keyframes lc-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lc-text);
}

a {
  transition: color 0.25s var(--lc-ease);
}

/* ---------- Announcement bar ---------- */
.lc-announcement-bar {
  background: var(--lc-text);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55em 1em;
  letter-spacing: 0.01em;
}

/* ---------- Language switcher ---------- */
.lc-lang-switcher {
  display: flex;
  justify-content: flex-end;
  padding: 0.4em 1.5em;
  background: var(--lc-surface);
  border-bottom: 1px solid var(--lc-border);
}

.lc-lang-switcher ul {
  display: flex;
  gap: 0.6em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-lang-switcher li {
  margin: 0;
}

.lc-lang-switcher a {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lc-text-soft);
  text-decoration: none;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  transition: background 0.2s var(--lc-ease), color 0.2s var(--lc-ease);
}

.lc-lang-switcher a:hover {
  background: var(--lc-accent-soft);
  color: var(--lc-accent-dark);
}

.lc-lang-switcher img {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lc-border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s var(--lc-ease);
}

.site-header.lc-scrolled {
  box-shadow: 0 2px 16px rgba(22, 22, 31, 0.06);
}

.site-title a {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lc-text) !important;
}

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

.custom-logo-link img {
  max-height: 42px;
  width: auto;
}

.site-branding .site-title,
.site-branding .site-description {
  display: none;
}

.main-navigation ul li a {
  font-weight: 500;
  position: relative;
  color: var(--lc-text) !important;
}

.main-navigation ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--lc-accent);
  transition: width 0.3s var(--lc-ease);
}

.main-navigation ul li a:hover::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.button,
button,
input[type="submit"],
.wc-forward,
a.button {
  background: var(--lc-text) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.75em 1.6em !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--lc-ease), box-shadow 0.25s var(--lc-ease), background 0.25s var(--lc-ease) !important;
  box-shadow: var(--lc-shadow);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
a.button:hover {
  background: var(--lc-accent) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--lc-shadow-hover);
}

.button:active,
button:active {
  transform: translateY(0) scale(0.98);
}

.added_to_cart {
  border-radius: 999px !important;
}

/* ---------- Product grid ---------- */
ul.products li.product,
.storefront-product-section .product {
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  padding: 1.2em 1.2em 1.6em;
  transition: transform 0.4s var(--lc-ease), box-shadow 0.4s var(--lc-ease);
  opacity: 0;
  transform: translateY(24px);
}

ul.products li.product.lc-visible {
  animation: lc-fade-up 0.6s var(--lc-ease) forwards;
}

@keyframes lc-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

ul.products li.product:hover,
.storefront-product-section .product:hover {
  transform: translateY(-6px);
  box-shadow: var(--lc-shadow-hover);
}

ul.products li.product img {
  border-radius: calc(var(--lc-radius) - 4px);
  transition: transform 0.6s var(--lc-ease);
}

ul.products li.product:hover img {
  transform: scale(1.06);
}

ul.products li.product .price {
  color: var(--lc-accent-dark);
  font-weight: 700;
}

ul.products li.product h2,
ul.products li.product h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Single product ---------- */
.single-product div.product .price {
  color: var(--lc-accent-dark);
  font-size: 1.6em;
  font-weight: 800;
}

.single-product div.product .woocommerce-product-gallery img {
  border-radius: var(--lc-radius);
}

/* ---------- Cards / content blocks ---------- */
.storefront-product-section,
.woocommerce-message,
.woocommerce-info {
  border-radius: var(--lc-radius) !important;
  border: 1px solid var(--lc-border) !important;
  box-shadow: var(--lc-shadow);
}

/* ---------- Scroll reveal (generic) ---------- */
.lc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--lc-ease), transform 0.7s var(--lc-ease);
}

.lc-reveal.lc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cart badge micro-interaction ---------- */
.cart-contents,
.site-header-cart .amount {
  transition: transform 0.3s var(--lc-ease);
}

.lc-bump {
  animation: lc-bump 0.4s var(--lc-ease);
}

@keyframes lc-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lc-text);
  color: #d6d6e0;
}

.site-footer a {
  color: #fff;
}

/* ---------- Homepage: force full-width, no sidebar ---------- */
.home .content-area {
  width: 100% !important;
  float: none !important;
}

.home .sidebar {
  display: none !important;
}

.home .site-content .col-full {
  padding: 0 !important;
}

.home .lc-section,
.home .lc-cta-band {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

/* ---------- Homepage: hide redundant page title ---------- */
.home .entry-header,
.home .page-title {
  display: none !important;
}

/* ---------- Homepage: hero ---------- */
.lc-hero {
  position: relative;
  overflow: hidden;
  padding: 6em 1.5em 7em;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, #6C5CE7 0%, transparent 55%),
              radial-gradient(circle at 80% 0%, #8B7CFF 0%, transparent 45%),
              linear-gradient(160deg, #16162b 0%, #211f3f 55%, #16162b 100%);
  color: #fff;
}

.lc-hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c3ff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1.5em;
}

.lc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  max-width: 16em;
  margin: 0 auto 0.5em;
}

.lc-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 34em;
  margin: 0 auto 2em;
}

.lc-hero .button {
  background: #fff !important;
  color: var(--lc-text) !important;
  font-size: 1.05rem !important;
  padding: 0.9em 2em !important;
}

.lc-hero .button:hover {
  background: var(--lc-accent) !important;
  color: #fff !important;
}

/* ---------- Homepage: trust bar ---------- */
.lc-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lc-border);
  border-bottom: 1px solid var(--lc-border);
  margin-top: -3.5em;
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--lc-radius);
  overflow: hidden;
  box-shadow: var(--lc-shadow-hover);
}

.lc-trust-item {
  background: #fff;
  padding: 1.5em 1.2em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lc-text);
}

@media (max-width: 700px) {
  .lc-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lc-trust-item span.lc-emoji {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

/* ---------- Homepage: sections ---------- */
.lc-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 1.5em;
}

.lc-section-head {
  text-align: center;
  margin-bottom: 2.5em;
}

.lc-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.3em;
}

.lc-section-head p {
  color: var(--lc-text-soft);
}

/* ---------- Homepage: category grid ---------- */
.lc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
}

@media (max-width: 700px) {
  .lc-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .lc-cat-grid {
    grid-template-columns: 1fr;
  }
}

.lc-cat-card {
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  padding: 2em 1.2em;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.35s var(--lc-ease), box-shadow 0.35s var(--lc-ease);
  display: block;
}

.lc-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lc-shadow-hover);
}

.lc-cat-card .lc-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5em;
}

.lc-cat-card span.lc-cat-name {
  font-weight: 700;
  color: var(--lc-text);
  display: block;
}

/* ---------- Homepage: closing CTA ---------- */
.lc-cta-band {
  background: var(--lc-text);
  color: #fff;
  text-align: center;
  padding: 4em 1.5em;
  border-radius: var(--lc-radius);
  margin: 0 1.5em 4em;
}

.lc-cta-band h2 {
  color: #fff;
  margin-bottom: 0.5em;
}

.lc-cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5em;
}

.lc-cta-band .button {
  background: #fff !important;
  color: var(--lc-text) !important;
}

.lc-cta-band .button:hover {
  background: var(--lc-accent) !important;
  color: #fff !important;
}

/* ---------- Misc polish ---------- */
::selection {
  background: var(--lc-accent-soft);
  color: var(--lc-accent-dark);
}

img {
  transition: filter 0.3s var(--lc-ease);
}
