/* =====================================================
   GLOBAL RESET / ASTRA OVERRIDES
   ===================================================== */
html, body, .site, .ast-container, .site-content,
#primary, .content-area, .entry-content {
  margin: 0;
  padding: 0;
  background: #e5e5e5 !important;
  box-shadow: none !important;
  border: 0 !important;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
}

.ast-container,
.site-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide Astra header globally (intentional) */
.ast-primary-header-bar,
.main-header-bar,
.ast-desktop .main-header-menu,
.site-branding .site-title {
  display: none !important;
}

/* =====================================================
   HOMEPAGE / HERO
   ===================================================== */
#eee-home,
#hero-anchor {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}

#hero-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.treadmill-img {
  width: 360px;
  max-width: 90%;
  height: auto;
  margin: 10px auto 20px;
  animation: eee-turntable 20s linear infinite;
}

@keyframes eee-turntable {
  from { transform: rotateY(0); }
  to   { transform: rotateY(360deg); }
}

.buyer-seller-links {
  position: relative;
  top: -110px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 480px) {
  .buyer-seller-links { top: -60px; }
}

/* =====================================================
   BUTTONS (GLOBAL)
   ===================================================== */
.eee-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #ffcc00;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transition: transform .12s ease, background .2s ease, color .2s ease;
}

.eee-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}

.eee-btn.secondary {
  background: #ddd;
}

.eee-btn.muted,
.eee-btn[aria-disabled="true"] {
  background: #aaa;
  color: #555;
  cursor: not-allowed;
  box-shadow: none;
}

/* =====================================================
   DASHBOARDS (BUYER + SELLER)
   ===================================================== */
#eee-buyer-dashboard,
#eee-seller-dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eee-dashboard-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.eee-warning {
  margin-top: 10px;
  color: #a00;
  font-size: 14px;
}

/* =====================================================
   SAFE DEFAULTS
   ===================================================== */
.muted {
  opacity: .65;
}

/* ============================
   EEE STORE — FINAL AUTHORITY
   ============================ */

#eee-store {
  width: 100%;
}

/* Two-column layout: filters + grid */
.eee-store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

@media (max-width: 1100px) {
  .eee-store-layout {
    grid-template-columns: 1fr;
  }
}

/* FILTERS */
.eee-filters {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
}

/* GRID — FIXED CARD WIDTHS */
#eee-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 20px;
}

@media (max-width: 1400px) {
  #eee-store-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  #eee-store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  #eee-store-grid { grid-template-columns: 1fr; }
}

/* CARD */
.eee-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden;
  text-align: left;
}

/* IMAGE — ONLY THIS DEFINES HEIGHT */
.eee-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* BODY */
.eee-card-body {
  padding: 8px 10px;
}

/* TITLE */
.eee-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 2px;
  color: #111;
}

/* PRICE */
.eee-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* LINKS — KILL BLUE + UNDERLINE */
#eee-store-grid a,
#eee-store-grid a:visited,
#eee-store-grid a:hover,
#eee-store-grid a:active {
  color: #111;
  text-decoration: none;
}

/* EMPTY STATES */
.eee-empty {
  text-align: center;
  padding: 40px;
}

/* FULL-WIDTH STORE — BREAK ASTRA CONTENT CAGE */
.ast-container,
.site-content,
#primary,
.content-area,
.entry-content {
  max-width: none !important;
  width: 100% !important;
}

#eee-store {
  max-width: none !important;
  width: 100% !important;
}
.eee-filters input,
.eee-filters select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.eee-filters input:-webkit-autofill {
  box-sizing: border-box;
}
