/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Fika Dika — paleta vibrante */
  --yellow:     #FFD000;
  --yellow-dk:  #F5B800;
  --orange:     #FF8C00;
  --orange-lt:  #FFF0D0;

  --blue:       #1A6FD4;
  --blue-lt:    #D6E8FF;
  --blue-dk:    #1255A8;

  --green:      #2DBD6E;
  --green-lt:   #D4F5E2;
  --green-dk:   #1E9A56;

  --purple:     #8B3FD4;
  --purple-lt:  #EDD9FF;

  --pink:       #FF4FA0;
  --pink-lt:    #FFD9EE;

  --bg:         #FFFDF5;
  --white:      #FFFFFF;
  --card-bg:    #FFFFFF;
  --sand:       #FFF8E7;

  --dark:       #1A1A2E;
  --gray:       #5A5A72;
  --gray-lt:    #E2E0F0;

  --wa-green:   #25D366;

  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow:     0 4px 20px rgba(26,26,46,.08);
  --shadow-lg:  0 12px 48px rgba(26,26,46,.13);
  --trans:      .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Fredoka One', sans-serif;
  line-height: 1.2;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }
em { font-style: normal; color: var(--blue); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.9rem; border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem; font-weight: 700;
  transition: all var(--trans); cursor: pointer; border: none;
}
.btn-primary  { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { background: var(--yellow-dk); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,208,0,.45); }
.btn-outline  { background: transparent; color: var(--dark); border: 2px solid var(--gray-lt); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-blue     { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dk); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,111,212,.35); }
.btn-whatsapp { background: var(--wa-green); color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 0 var(--yellow), 0 4px 20px rgba(26,26,46,.07);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-top: .6rem; padding-bottom: .6rem;
  min-height: 60px;
}

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; gap: .1rem; }
.logo-img-wrap { display: inline-block; }
.logo-img { height: 48px; width: auto; object-fit: contain; display: block; }
.logo-img-footer { max-height: 56px; }
.logo-text { font-family: 'Fredoka One', sans-serif; font-size: 1.45rem; color: var(--logo-main, var(--blue)); letter-spacing: .01em; }
.logo-accent { color: var(--logo-accent, var(--orange)); }
.logo-tag {
  font-size: .55rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dark); background: var(--yellow); padding: .1rem .45rem;
  border-radius: 4px; align-self: flex-start;
}
.footer-logo { display: flex; flex-direction: column; gap: .1rem; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: .25rem; flex: 1; margin-left: .5rem; }
.nav-mobile-logo { display: none; }

.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 700; color: var(--gray);
  padding: .4rem .75rem; border-radius: 50px;
  transition: all var(--trans); white-space: nowrap;
  background: none; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif;
}
.nav-link:hover  { color: var(--blue); background: var(--blue-lt); }
.nav-link.active { color: var(--blue); background: var(--blue-lt); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn .chevron { transition: transform var(--trans); }
.nav-dropdown:hover .chevron,
.nav-dropdown-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + .6rem); left: 0;
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--gray-lt); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: .5rem; z-index: 200;
  animation: dropIn .18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open { display: flex; flex-direction: column; }

.dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 700; color: var(--gray);
  padding: .55rem .85rem; border-radius: 10px; transition: all var(--trans);
}
.dropdown-item:hover { background: var(--blue-lt); color: var(--blue); }
.dropdown-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--yellow); border: 2px solid var(--orange);
}

/* Search */
.search-form {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
  background: var(--sand); border-radius: 50px;
  padding: .35rem .35rem .35rem .85rem;
  border: 2px solid var(--gray-lt); transition: border-color var(--trans);
  flex-shrink: 0;
}
.search-form svg { color: var(--gray); flex-shrink: 0; }
.search-form:focus-within { border-color: var(--yellow); background: var(--white); }
.search-form input {
  background: none; border: none; outline: none;
  font-size: .88rem; font-family: 'Nunito', sans-serif; font-weight: 600;
  width: 130px; color: var(--dark);
}
.search-form button {
  background: var(--blue); border: none; border-radius: 50px;
  padding: .3rem .85rem; color: white; cursor: pointer;
  font-size: .8rem; font-weight: 800; font-family: 'Nunito', sans-serif;
  transition: background var(--trans); white-space: nowrap;
}
.search-form button:hover { background: var(--blue-dk); }

/* Hamburguer */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .35rem; margin-left: .5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--dark); border-radius: 3px; transition: all var(--trans); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E0 40%, #EEF6FF 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(255,208,0,.22) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(26,111,212,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 90%, rgba(45,189,110,.10) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 4rem 0; }
.hero-eyebrow {
  font-size: .95rem; font-weight: 800; letter-spacing: .08em;
  color: var(--orange); margin-bottom: 1rem;
}
.hero-title   { margin-bottom: 1.25rem; color: var(--dark); }
.hero-sub     { font-size: 1.15rem; font-weight: 500; color: var(--gray); margin-bottom: 2.5rem; max-width: 460px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Formas decorativas do hero */
.hero-shapes { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,208,0,.25) 0%, transparent 65%);
  top: 50%; right: -60px; transform: translateY(-50%);
}
.shape-2 {
  width: 220px; height: 220px;
  border: 3px solid rgba(26,111,212,.2);
  top: 15%; right: 18%; border-radius: 50%;
}
.shape-3 {
  width: 90px; height: 90px;
  background: rgba(45,189,110,.2);
  bottom: 18%; right: 8%; border-radius: 50%;
}
.shape-4 {
  width: 50px; height: 50px;
  background: rgba(255,79,160,.25);
  top: 25%; right: 8%; border-radius: 12px; transform: rotate(20deg);
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: .85rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .5rem;
}
.section-title { color: var(--dark); }
.section-cta   { text-align: center; margin-top: 3rem; }

/* ===== CATEGORIES GRID ===== */
.categories-section { background: var(--white); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }

.category-card {
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; text-align: center;
  border: 2.5px solid transparent; transition: all var(--trans);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Cor por categoria */
.category-card:nth-child(1) { background: var(--orange-lt); border-color: var(--yellow); }
.category-card:nth-child(1) .category-icon { background: var(--yellow); }
.category-card:nth-child(1) .category-icon svg { color: var(--dark); }
.category-card:nth-child(1) .category-link { color: var(--orange); }
.category-card:nth-child(1):hover { border-color: var(--orange); }

.category-card:nth-child(2) { background: var(--blue-lt); border-color: var(--blue); }
.category-card:nth-child(2) .category-icon { background: var(--blue); }
.category-card:nth-child(2) .category-icon svg { color: white; }
.category-card:nth-child(2) .category-link { color: var(--blue-dk); }

.category-card:nth-child(3) { background: var(--green-lt); border-color: var(--green); }
.category-card:nth-child(3) .category-icon { background: var(--green); }
.category-card:nth-child(3) .category-icon svg { color: white; }
.category-card:nth-child(3) .category-link { color: var(--green-dk); }

.category-card:nth-child(4) { background: var(--purple-lt); border-color: var(--purple); }
.category-card:nth-child(4) .category-icon { background: var(--purple); }
.category-card:nth-child(4) .category-icon svg { color: white; }
.category-card:nth-child(4) .category-link { color: var(--purple); }

.category-card:nth-child(5) { background: var(--pink-lt); border-color: var(--pink); }
.category-card:nth-child(5) .category-icon { background: var(--pink); }
.category-card:nth-child(5) .category-icon svg { color: white; }
.category-card:nth-child(5) .category-link { color: var(--pink); }

.category-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.category-icon svg { width: 26px; height: 26px; }
.category-card h3 { font-size: 1rem; font-family: 'Nunito', sans-serif; font-weight: 800; }
.category-card p  { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.category-link    { font-size: .85rem; font-weight: 800; margin-top: auto; }

/* ===== PRODUCTS GRID ===== */
.featured-section { background: var(--bg); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.products-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  overflow: hidden; border: 2px solid var(--gray-lt);
  transition: all var(--trans); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }

.product-card-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--sand); display: block;
}
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }

.product-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; color: var(--gray-lt);
}
.product-placeholder svg { width: 52px; height: 52px; }
.product-placeholder span { font-size: .8rem; font-weight: 600; }
.product-placeholder.large { min-height: 400px; }

.badge-featured {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--yellow); color: var(--dark);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: 50px;
  box-shadow: 0 2px 8px rgba(255,208,0,.5);
}

.product-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-category  { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.product-name      { font-size: 1.05rem; font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.3; }
.product-name a:hover { color: var(--blue); }
.product-footer    { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 2px solid var(--gray-lt); }
.product-price     { font-size: 1.15rem; font-weight: 800; color: var(--dark); font-family: 'Fredoka One', sans-serif; }
.product-price-contact { font-size: .95rem; font-weight: 700; color: var(--orange); font-style: italic; }
.btn-card {
  font-size: .82rem; font-weight: 800; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 50px;
  padding: .3rem .9rem; transition: all var(--trans);
  font-family: 'Nunito', sans-serif; cursor: pointer;
}
.btn-card:hover { background: var(--blue); color: white; }

/* ===== BANNER ===== */
.banner-section { padding: 3rem 0 5rem; }
.banner-card {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  border-radius: var(--radius-xl); padding: 4rem; position: relative; overflow: hidden;
  display: flex; align-items: center; border: 3px solid var(--yellow);
}
.banner-text { position: relative; z-index: 2; max-width: 520px; }
.banner-text .section-eyebrow { color: var(--yellow); }
.banner-text h2 { color: white; margin-bottom: 1rem; }
.banner-text p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.banner-shapes  { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; pointer-events: none; }
.b-shape { position: absolute; border-radius: 50%; }
.b-shape-1 { width: 380px; height: 380px; background: rgba(255,208,0,.1); right: -100px; top: -100px; }
.b-shape-2 { width: 200px; height: 200px; border: 2px solid rgba(45,189,110,.25); right: 60px; bottom: -50px; }
.b-shape-3 { width: 70px; height: 70px; background: rgba(255,79,160,.2); right: 220px; top: 50px; border-radius: 16px; transform: rotate(25deg); }

/* ===== PAGE HERO MINI ===== */
.page-hero-mini {
  background: linear-gradient(135deg, var(--sand) 0%, #EEF6FF 100%);
  padding: 3rem 0 2.5rem; border-bottom: 3px solid var(--yellow);
}
.page-hero-mini h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero-mini p  { color: var(--gray); margin-top: .5rem; font-size: 1.05rem; font-weight: 500; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--gray); margin-bottom: .5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span:last-child { color: var(--dark); }

/* ===== CATALOG LAYOUT ===== */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 5rem; }

.catalog-sidebar h3 {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 1rem;
}
.sidebar-cats li + li { margin-top: .3rem; }
.sidebar-cats a {
  display: block; padding: .55rem .85rem; border-radius: 10px;
  font-size: .95rem; font-weight: 700; color: var(--gray); transition: all var(--trans);
}
.sidebar-cats a:hover { background: var(--blue-lt); color: var(--blue); }
.sidebar-cats a.active { background: var(--yellow); color: var(--dark); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-lt); margin: 0 auto 1.5rem; }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p  { color: var(--gray); margin-bottom: 2rem; font-weight: 500; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
  padding: .5rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 700;
  border: 2px solid var(--gray-lt); color: var(--gray); transition: all var(--trans);
  font-family: 'Nunito', sans-serif;
}
.page-btn:hover { background: var(--blue-lt); color: var(--blue); border-color: var(--blue); }
.page-btn.active { background: var(--yellow); color: var(--dark); border-color: var(--yellow-dk); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-wrap { padding: 1.5rem 0 4rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.product-detail-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); aspect-ratio: 1; border: 3px solid var(--gray-lt); }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { display: flex; flex-direction: column; gap: 1.25rem; }
.product-detail-info h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.product-detail-info .product-category a:hover { color: var(--blue); }
.product-price-big { font-size: 2.2rem; font-weight: 800; color: var(--dark); font-family: 'Fredoka One', sans-serif; }
.price-contact-label { font-size: 1.5rem; color: var(--orange); font-style: italic; }
.cart-price-contact { color: var(--orange); font-weight: 700; font-style: italic; }

.product-stock { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; }
.product-stock svg { width: 16px; height: 16px; }
.in-stock  { color: var(--green-dk); }
.out-stock { color: #c0392b; }

.product-description h3 {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray); margin-bottom: .75rem;
}
.product-description p { color: var(--gray); line-height: 1.8; font-size: 1rem; font-weight: 500; }
.product-actions { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; }

/* ===== RELATED ===== */
.related-section { background: var(--sand); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 2.5rem 0 0; margin-top: 2rem; border-top: 4px solid var(--yellow); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; }
.footer-links h4, .footer-contact h4 {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem;
}
.footer-links li + li { margin-top: .4rem; }
.footer-links a { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.65); transition: color var(--trans); }
.footer-links a:hover { color: var(--yellow); }
.footer-contact p { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: .4rem; }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a { color: rgba(255,255,255,.5); transition: color var(--trans); }
.social-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.35); }

/* ===== ERROR PAGE ===== */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.error-content { text-align: center; position: relative; }
.error-code { font-size: 9rem; font-family: 'Fredoka One', sans-serif; color: var(--yellow); line-height: 1; text-shadow: 4px 4px 0 var(--orange); }
.error-content h2 { margin-top: -.5rem; margin-bottom: 1rem; }
.error-content p  { color: var(--gray); margin-bottom: 2rem; font-weight: 500; }
.e-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.e-shape-1 { width: 300px; height: 300px; background: rgba(255,208,0,.08); top: -80px; left: -120px; }
.e-shape-2 { width: 150px; height: 150px; border: 2px solid rgba(26,111,212,.15); bottom: -40px; right: -60px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
  .sidebar-cats a { padding: .4rem .85rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .banner-card { padding: 2.5rem; }
  .banner-shapes { display: none; }
}

/* ===== GALERIA DE PRODUTO ===== */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }

.gallery-main {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--sand);
  aspect-ratio: 1; border: 2px solid var(--gray-lt);
  cursor: zoom-in;
}
.gallery-main-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
  display: block;
}
.gallery-main-img.switching { opacity: 0; }

/* Botão zoom */
.gallery-zoom-btn {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.9); border: 2px solid var(--gray-lt);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--trans); color: var(--dark);
  backdrop-filter: blur(4px);
}
.gallery-zoom-btn:hover { background: var(--yellow); border-color: var(--yellow-dk); transform: scale(1.1); }

/* Setas de navegação na imagem principal */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: 2px solid var(--gray-lt);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--trans); color: var(--dark);
  backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: var(--yellow); border-color: var(--yellow-dk); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }

/* Thumbnails */
.gallery-thumbs {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.thumb-btn {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 2.5px solid var(--gray-lt); cursor: pointer;
  transition: all var(--trans); padding: 0; background: var(--sand);
  flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { border-color: var(--blue); transform: scale(1.05); }
.thumb-btn.active { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-dk); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,20,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  position: relative; max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: var(--radius);
  cursor: grab;
}
.lightbox-img-wrap.grabbing { cursor: grabbing; }

#lightboxImg {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center center;
  user-select: none; -webkit-user-drag: none;
}
#lightboxImg.switching { opacity: 0; }

/* Controles do lightbox */
.lightbox-close {
  position: fixed; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; transition: all var(--trans);
  z-index: 10;
}
.lightbox-close:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; transition: all var(--trans); z-index: 10;
}
.lightbox-nav:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-nav:disabled { opacity: .3; cursor: default; }

.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.15); color: white;
  font-size: .85rem; font-weight: 700; padding: .35rem 1rem;
  border-radius: 50px; backdrop-filter: blur(4px);
}

/* Zoom controls hint */
.lightbox-hint {
  position: fixed; bottom: 4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600;
  pointer-events: none;
}

/* ===== RESPONSIVE GALERIA ===== */
@media (max-width: 768px) {
  .thumb-btn { width: 60px; height: 60px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

@media (max-width: 768px) {
  /* Container com respiro lateral consistente */
  .container { padding: 0 1.25rem; }

  /* Nav mobile */
  .main-nav {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: .75rem 1.25rem;
    border-top: 2px solid var(--yellow); box-shadow: var(--shadow-lg);
    z-index: 99; gap: .25rem;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; order: -1; }
  .header-inner { position: relative; justify-content: center; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .cart-btn { margin-left: auto; }
  .nav-mobile-logo { display: block; padding-bottom: .5rem; margin-bottom: .25rem; border-bottom: 2px solid var(--gray-lt); }
  .nav-mobile-logo img { height: 40px; width: auto; object-fit: contain; }
  .search-form { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: flex-start; }
  .nav-dropdown-menu {
    display: flex !important; flex-direction: column;
    position: static; box-shadow: none; border: none;
    background: var(--sand); border-radius: var(--radius);
    padding: .35rem; margin-top: .25rem; animation: none;
  }
  .chevron { display: none; }

  /* Hero — padding vertical generoso, lateral via container */
  .hero { min-height: auto; }
  .hero-content { padding: 3rem 0 2.5rem; }
  .hero-shapes { display: none; }
  .hero-title { font-size: 2.4rem; }
  .hero-sub   { font-size: 1rem; }

  /* Grids */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Seções */
  .section { padding: 2.75rem 0; }
  .section-header { margin-bottom: 1.75rem; }

  /* Banner */
  .banner-section { padding: 0 0 2.75rem; }
  .banner-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }
  .banner-shapes { display: none; }
  .banner-text h2 { font-size: 1.6rem; }
  .banner-text p  { font-size: .95rem; margin-bottom: 1.5rem; }

  /* Produto detalhe */
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-detail-wrap { padding: 1.25rem 0 3rem; }
  .catalog-layout { padding-top: 1.5rem; padding-bottom: 3rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .site-footer { padding: 1.75rem 0 0; }
  .page-hero-mini { padding: 2rem 0 1.5rem; }
}

@media (max-width: 480px) {
  /* Padding lateral mínimo confortável */
  .container { padding: 0 1rem; }

  .categories-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .products-grid--4 { grid-template-columns: 1fr 1fr; gap: .75rem; }

  .related-section .products-grid--4 { grid-template-columns: 1fr; }

  .product-card-body { padding: .875rem; }
  .product-card-img-wrap { aspect-ratio: 4/3; }

  /* Hero compacto mas com respiro */
  .hero { min-height: auto; }
  .hero-content { padding: 15px; }
  .hero-title { font-size: 2rem; }
  .hero-sub   { font-size: .95rem; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; }

  /* Seções */
  .section { padding: 2.25rem 0; }
  .section-header { margin-bottom: 1.5rem; }
  .section-title  { font-size: 1.6rem; }

  /* Banner */
  .banner-section { padding: 0 0 2.25rem; }
  .banner-card { padding: 1.75rem 1.25rem; border-radius: var(--radius); }
  .banner-text h2 { font-size: 1.4rem; }

  /* Produto */
  .product-actions { flex-direction: column; gap: .75rem; }
  .product-actions .btn { justify-content: center; width: 100%; }
  .product-detail-wrap { padding: 1rem 0 2.5rem; }

  /* Categoria cards */
  .category-card { padding: 1.25rem 1rem; }
  .category-card p { display: none; } /* esconde descrição em telas muito pequenas */

  /* Galeria */
  .gallery-thumbs { gap: .5rem; }
  .thumb-btn { width: 56px; height: 56px; }

  .error-code { font-size: 5.5rem; }
}

/* ===== CART BUTTON (header) ===== */
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sand); border: 2px solid var(--gray-lt);
  color: var(--dark); transition: all var(--trans); flex-shrink: 0;
}
.cart-btn:hover { background: var(--yellow); border-color: var(--yellow-dk); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--blue); color: white;
  font-size: .65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white); padding: 0 3px;
}

/* ===== CART PAGE ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-items  { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--gray-lt); padding: 1rem 1.25rem;
  transition: border-color var(--trans);
}
.cart-item:hover { border-color: var(--yellow); }
.cart-item-img {
  width: 80px; height: 80px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: var(--sand);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 1rem; margin-bottom: .2rem; }
.cart-item-price { font-size: .88rem; color: var(--gray); font-weight: 600; }
.cart-item-qty {
  display: flex; align-items: center; gap: .4rem;
}
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--gray-lt); background: var(--white);
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans); color: var(--dark);
}
.qty-btn:hover { background: var(--yellow); border-color: var(--yellow-dk); }
.qty-input {
  width: 44px; text-align: center; border: 2px solid var(--gray-lt);
  border-radius: 8px; padding: .25rem; font-size: .95rem; font-weight: 700;
  font-family: 'Nunito', sans-serif;
}
.cart-item-sub { font-weight: 800; font-family: 'Fredoka One', sans-serif; font-size: 1.1rem; min-width: 80px; text-align: right; }
.cart-item-remove { color: var(--gray); cursor: pointer; background: none; border: none; padding: .25rem; transition: color var(--trans); }
.cart-item-remove:hover { color: #e74c3c; }

.cart-summary {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-lt); padding: 1.5rem;
  position: sticky; top: 80px; height: fit-content;
}
.cart-summary h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; color: var(--gray); margin-bottom: .6rem; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; padding-top: .75rem; border-top: 2px solid var(--gray-lt); margin-top: .5rem; }
.summary-total span:last-child { color: var(--blue); font-family: 'Fredoka One', sans-serif; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.checkout-register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkout-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-lt); padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.checkout-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.checkout-tab {
  flex: 1; padding: .65rem 1rem; border-radius: 50px;
  border: 2px solid var(--gray-lt); background: var(--white);
  font-family: 'Nunito', sans-serif; font-size: .9rem; font-weight: 800;
  cursor: pointer; transition: all var(--trans); color: var(--gray);
}
.checkout-tab.active { background: var(--yellow); border-color: var(--yellow-dk); color: var(--dark); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-group-front { margin-bottom: 1rem; }
.form-group-front label { display: block; font-size: .82rem; font-weight: 800; color: var(--gray); margin-bottom: .35rem; letter-spacing: .04em; }
.input-front {
  width: 100%; padding: .65rem .9rem;
  border: 2px solid var(--gray-lt); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--dark); background: var(--white);
  transition: border-color var(--trans);
}
.input-front:focus { outline: none; border-color: var(--blue); }
.input-front[readonly] { background: var(--sand); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 80px; gap: .75rem; }

/* Alert */
.alert {
  padding: .85rem 1.1rem; border-radius: 10px;
  font-size: .9rem; font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.alert-error   { background: #fef2f2; color: #c0392b; border: 1.5px solid #fca5a5; }
.alert-success { background: var(--green-lt); color: var(--green-dk); border: 1.5px solid #86efac; }
.alert-info    { background: var(--blue-lt); color: var(--blue-dk); border: 1.5px solid #93c5fd; }

/* Logged-in customer bar */
.customer-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green-lt); border: 1.5px solid #86efac;
  border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1.25rem;
  font-size: .9rem; font-weight: 700; color: var(--green-dk);
}

/* ===== RESPONSIVE CART/CHECKOUT ===== */
@media (max-width: 768px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-register-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item-img { width: 60px; height: 60px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  /* Cart items: empilhar verticalmente */
  .cart-item {
    flex-direction: column; align-items: flex-start; gap: .75rem;
    padding: 1rem;
  }
  .cart-item-img { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 10px; }
  .cart-item-img img { width: 100%; height: 100%; }
  .cart-item-info { width: 100%; }
  .cart-item-name { font-size: 1.05rem; }
  .cart-item-qty { width: 100%; justify-content: center; }
  .cart-item-sub { width: 100%; text-align: center; font-size: 1.15rem; }
  .cart-item-remove {
    position: absolute; top: .75rem; right: .75rem;
  }
  .cart-item { position: relative; }

  /* Checkout card */
  .checkout-card { padding: 1.25rem; }
  .checkout-tabs { flex-direction: column; gap: .4rem; }
  .checkout-tab { text-align: center; }
}
@media (max-width: 480px) {
  .cart-item-sub { min-width: auto; }
}

/* ===== ADMIN ORDER BADGES ===== */
.badge-warn { background: #FFF3CD; color: #856404; }
.badge-ok   { background: var(--green-lt); color: var(--green-dk); }
.badge-err  { background: #fef2f2; color: #c0392b; }

/* WhatsApp discreto na página do produto */
.btn-wa-subtle {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--wa-green);
  padding: .4rem .85rem; border-radius: 50px;
  border: 1.5px solid rgba(37,211,102,.35);
  background: rgba(37,211,102,.06);
  transition: all var(--trans); cursor: pointer;
  font-family: 'Nunito', sans-serif;
}
.btn-wa-subtle:hover { background: rgba(37,211,102,.14); border-color: var(--wa-green); }

/* ===== ADD TO CART MODAL ===== */
.acm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.acm-overlay.acm-open {
  display: flex;
}
.acm-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: min(380px, 100%); box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.acm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 2px solid var(--gray-lt);
  font-family: 'Fredoka One', sans-serif; font-size: 1.05rem;
}
.acm-close {
  background: none; border: none; font-size: 1.6rem; cursor: pointer;
  color: var(--gray); line-height: 1; padding: 0;
}
.acm-close:hover { color: var(--dark); }
.acm-body { padding: 1.25rem; text-align: center; }
.acm-product-name {
  font-weight: 800; font-size: 1rem; margin-bottom: 1rem;
  color: var(--dark); line-height: 1.3;
}
.acm-qty-row {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.acm-qty-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gray-lt); background: var(--white);
  font-size: 1.3rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans); color: var(--dark);
}
.acm-qty-btn:hover { background: var(--yellow); border-color: var(--yellow-dk); }
.acm-qty-input {
  width: 60px; text-align: center; border: 2px solid var(--gray-lt);
  border-radius: 10px; padding: .5rem; font-size: 1.15rem; font-weight: 800;
  font-family: 'Nunito', sans-serif; color: var(--dark);
}
.acm-qty-input:focus { outline: none; border-color: var(--blue); }
.acm-hint {
  font-size: .82rem; color: var(--gray); font-weight: 600;
  margin-top: .75rem;
}
.acm-footer {
  padding: .75rem 1.25rem 1.25rem; text-align: center;
}
.acm-confirm { width: 100%; padding: .75rem; font-size: 1rem; }

/* ===== BLOG ===== */
.blog-section { padding: 3rem 0 4rem; }
.blog-section .section-header { text-align: center; margin-bottom: 2.5rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--blue-lt, #D6E8FF);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-img--placeholder {
  color: var(--blue, #1A6FD4);
  opacity: .4;
}

.blog-badge-private {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,140,0,.9);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-size: .78rem;
  color: var(--gray, #5A5A72);
  font-weight: 600;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: .4rem 0;
  color: var(--dark, #1A1A2E);
  line-height: 1.3;
}
.blog-card-excerpt {
  font-size: .84rem;
  color: var(--gray, #5A5A72);
  line-height: 1.5;
  flex: 1;
}
.blog-card-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue, #1A6FD4);
  margin-top: .5rem;
}

/* Blog Article */
.blog-article { padding: 2rem 0 4rem; }
.blog-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.blog-hero-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.blog-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--gray, #5A5A72);
  font-weight: 600;
}
.blog-tag-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,140,0,.12);
  color: #FF8C00;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.blog-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark, #1A1A2E);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

/* Prose content */
.prose { font-size: .92rem; line-height: 1.75; color: var(--dark, #1A1A2E); }
.prose p { margin-bottom: .85rem; }
.prose h2 { font-size: 1.2rem; font-weight: 800; margin: 1.5rem 0 .6rem; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.prose img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose blockquote {
  border-left: 4px solid var(--primary, #FFD000);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255,208,0,.08);
  border-radius: 0 8px 8px 0;
}

/* Attachments */
.blog-attachments {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--blue-lt, #D6E8FF);
  border-radius: 12px;
}
.blog-attachments h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark, #1A1A2E);
}
.attachment-list { list-style: none; padding: 0; margin: 0; }
.attachment-list li { margin-bottom: .5rem; }
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5rem 1rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: var(--blue, #1A6FD4);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}
.attachment-link:hover { background: rgba(255,255,255,.7); }
.attachment-size { color: var(--gray, #5A5A72); font-weight: 400; font-size: .8rem; }

/* Blog Sidebar */
.blog-sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-bottom: 1rem;
}
.blog-sidebar-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark, #1A1A2E);
}
.blog-recent-list { list-style: none; padding: 0; margin: 0; }
.blog-recent-list li { margin-bottom: .75rem; }
.blog-recent-list a {
  text-decoration: none;
  color: var(--dark, #1A1A2E);
  font-size: .88rem;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}
.blog-recent-list a:hover { color: var(--blue, #1A6FD4); }
.blog-recent-list time {
  display: block;
  font-size: .75rem;
  color: var(--gray, #5A5A72);
  font-weight: 500;
  margin-top: 2px;
}
.btn-outline-full {
  display: block;
  text-align: center;
  padding: .75rem;
  border: 2px solid var(--blue, #1A6FD4);
  color: var(--blue, #1A6FD4);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.btn-outline-full:hover {
  background: var(--blue, #1A6FD4);
  color: #fff;
}

/* Login Wall */
.blog-login-wall {
  text-align: center;
  max-width: 480px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.blog-login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255,140,0,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8C00;
}
.blog-login-wall h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark, #1A1A2E);
  margin-bottom: .75rem;
}
.blog-login-wall p {
  color: var(--gray, #5A5A72);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}
.blog-login-error {
  background: #FFF5F5;
  color: #E53E3E;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  margin: .75rem 0;
}
.blog-auth-tabs {
  display: flex;
  gap: 0;
  margin: 1.5rem 0 1rem;
  border-bottom: 2px solid #E2E8F0;
}
.blog-auth-tab {
  flex: 1;
  padding: .6rem;
  background: none;
  border: none;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray, #5A5A72);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  font-family: inherit;
}
.blog-auth-tab.active {
  color: var(--blue, #1A6FD4);
  border-bottom-color: var(--blue, #1A6FD4);
}
.blog-auth-form {
  text-align: left;
}
.blog-form-group {
  margin-bottom: .85rem;
}
.blog-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark, #1A1A2E);
  margin-bottom: .3rem;
}
.blog-form-group input {
  width: 100%;
  padding: .6rem .85rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s;
}
.blog-form-group input:focus {
  outline: none;
  border-color: var(--blue, #1A6FD4);
}
.blog-auth-btn {
  width: 100%;
  margin-top: .5rem;
}
.blog-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray, #5A5A72);
  text-decoration: none;
}
.blog-back-link:hover { color: var(--blue, #1A6FD4); }
.blog-login-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-title { font-size: 1.3rem; }
}
