/* Front page additions for SakuraWP */
.featured-categories {
  padding: 36px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cat-card {
  display: block;
  text-align: center;
  padding: 20px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  background: #fff;
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.cat-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.notice-band {
  background: linear-gradient(90deg, var(--primary) 0%, #7a5c4a 100%);
  padding: 12px 0;
  overflow: hidden;
}

.notice-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8ddd0;
  font-size: 13px;
}

.notice-label {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.promo-banner {
  padding: 28px 0;
  background: var(--bg);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.promo-card {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s;
}

.promo-card:hover {
  transform: translateY(-2px);
}

.promo-card.theme-red { background: linear-gradient(135deg, #c0392b 0%, #96281b 100%); }
.promo-card.theme-brown { background: linear-gradient(135deg, #5c3d2e 0%, #3e2723 100%); }
.promo-card.theme-green { background: linear-gradient(135deg, #27ae60 0%, #1a7543 100%); }
.promo-card.theme-orange { background: linear-gradient(135deg, #e67e22 0%, #bf6516 100%); }
.promo-card.theme-blue { background: linear-gradient(135deg, #2f6fed 0%, #1d4fb5 100%); }

.promo-card .promo-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-card .promo-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.promo-card .promo-btn {
  align-self: flex-start;
  padding: 5px 14px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}

.promo-card .promo-btn:hover {
  background: rgba(255,255,255,0.4);
}

.promo-deco {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  opacity: 0.12;
}

.new-arrivals,
.hot-products {
  padding: 36px 0;
}

.home-text-block {
  padding: 8px 0 0;
  background: var(--bg-white);
}

.home-text-block-card {
  padding: 20px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
  box-shadow: var(--shadow-sm);
}

.home-text-block-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.new-arrivals {
  background: var(--bg-white);
}

.hot-products {
  background: var(--bg);
}

.info-cards {
  padding: 32px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.info-cards-header {
  margin-bottom: 18px;
}

.info-cards-title {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.info-cards-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
  min-width: 0;
  min-height: 100%;
}

.info-card-link {
  color: inherit;
  text-decoration: none;
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}

.info-card-icon-empty {
  width: 32px;
  min-width: 32px;
  height: 28px;
}

.info-card-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .cat-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cat-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .home-text-block-card {
    padding: 16px 14px;
  }

  .home-text-block-content {
    font-size: 13px;
    line-height: 1.8;
  }

  .info-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info-card {
    gap: 10px;
    padding: 16px 14px;
  }

  .info-card-icon,
  .info-card-icon-empty {
    width: 28px;
    min-width: 28px;
  }

  .info-card h4 {
    font-size: 13px;
  }

  .info-card p {
    font-size: 11px;
    line-height: 1.6;
  }
}
