/*
Theme Name: OneFairPrice Child
Theme URI: https://onefairprice.com
Description: Tema filho ultraleve oficial para o marketplace OneFairPrice. Compatível com Hello Elementor e Astra, otimizado para celulares e servidores compartilhados HostGator.
Author: OneFairPrice Team
Author URI: https://onefairprice.com
Template: hello-elementor
Version: 1.0.0
Text Domain: onefairprice-child

Slogan: "Comida boa, preço justo!"
*/

:root {
  --ofp-primary: #ea580c;
  --ofp-primary-hover: #c2410c;
  --ofp-secondary: #16a34a;
  --ofp-dark: #0f172a;
  --ofp-gray: #64748b;
  --ofp-bg: #f8fafc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--ofp-bg);
  color: var(--ofp-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Marketplace Global Layout */
.ofp-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.ofp-store-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.ofp-store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.ofp-store-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ofp-badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ofp-badge-status.open {
  background: #22c55e;
  color: #ffffff;
}

.ofp-badge-status.closed {
  background: #64748b;
  color: #ffffff;
}

.ofp-store-info {
  padding: 16px;
  position: relative;
}

.ofp-store-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  position: absolute;
  top: -26px;
  left: 16px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ofp-store-title {
  margin: 18px 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ofp-dark);
}

.ofp-store-category {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 12px 0;
}

.ofp-store-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.ofp-button-menu {
  display: block;
  text-align: center;
  background: var(--ofp-primary);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}

.ofp-button-menu:hover {
  background: var(--ofp-primary-hover);
  color: #ffffff;
}

/* Mobile Specific Optimizations */
@media (max-width: 640px) {
  .ofp-stores-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}
