/* Appily twentyeight — Kardone-inspired floral base theme */
:root {
  --a28-plum: #3D2645;
  --a28-plum-dark: #2A1A30;
  --a28-sage: #5C7A6B;
  --a28-sage-light: #7A9A88;
  --a28-rose: #C97B84;
  --a28-rose-light: #E8B4BA;
  --a28-cream: #F7F3EE;
  --a28-linen: #EDE8E0;
  --a28-white: #FFFFFF;
  --a28-ink: #1C1418;
  --a28-muted: #6B6368;
  --a28-sale: #C0392B;
  --a28-font-display: 'Libre Baskerville', Georgia, serif;
  --a28-font-body: 'Karla', system-ui, sans-serif;
  --a28-radius: 4px;
  --a28-shadow: 0 8px 32px rgba(28, 20, 24, 0.08);
  --a28-container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.a28-store {
  margin: 0;
  font-family: var(--a28-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--a28-ink);
  background: var(--a28-cream);
  -webkit-font-smoothing: antialiased;
}

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }

.container {
  width: min(var(--a28-container), 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.a28-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: none; border-radius: var(--a28-radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.a28-btn:hover { transform: translateY(-1px); }
.a28-btn-primary { background: var(--a28-sage); color: var(--a28-white); }
.a28-btn-primary:hover { background: var(--a28-plum); }
.a28-btn-outline { background: transparent; color: var(--a28-ink); border: 1px solid var(--a28-ink); }
.a28-btn-dark { background: var(--a28-plum); color: var(--a28-white); }
.a28-btn-dark:hover { background: var(--a28-plum-dark); }
.a28-btn-light { background: var(--a28-white); color: var(--a28-ink); }

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-family: var(--a28-font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--a28-ink);
}
.section-head p { margin: 0; color: var(--a28-muted); font-size: 0.95rem; }

.empty-state {
  text-align: center; padding: 4rem 1rem;
  background: var(--a28-white); border-radius: var(--a28-radius);
}
.empty-state p { margin: 0; font-size: 1.1rem; }
.empty-state .sub { color: var(--a28-muted); margin-top: 0.5rem; font-size: 0.9rem; }

/* Product grid */
.a28-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.a28-product-card {
  background: var(--a28-white);
  display: flex; flex-direction: column;
}
.a28-product-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--a28-linen);
  overflow: hidden;
}
.a28-product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.a28-product-card:hover .a28-product-img img { transform: scale(1.04); }
.a28-product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--a28-plum); color: var(--a28-white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}
.a28-product-body { padding: 1rem 0.5rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.a28-product-body h3 {
  font-size: 0.92rem; font-weight: 500; margin: 0 0 0.35rem; line-height: 1.35;
}
.a28-product-body h3 a:hover { color: var(--a28-sage); }
.a28-product-cat { font-size: 0.75rem; color: var(--a28-muted); margin-bottom: 0.5rem; }
.a28-product-price { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem; }
.a28-product-price s { color: var(--a28-sale); font-weight: 400; margin-right: 0.35rem; }
.a28-product-actions { display: flex; gap: 0.35rem; margin-top: auto; }
.a28-product-actions .a28-cart-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem 0.5rem;
  background: var(--a28-ink); color: var(--a28-white);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: none;
}
.a28-product-actions .a28-cart-btn:hover { background: var(--a28-plum); }
.a28-icon-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--a28-ink); color: var(--a28-white);
  border: none; font-size: 0.85rem;
}
.a28-icon-btn:hover { background: var(--a28-plum); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 0.35rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; border: 1px solid var(--a28-linen);
  background: var(--a28-white);
}
.pagination a:hover { border-color: var(--a28-sage); color: var(--a28-sage); }
.pagination .current { background: var(--a28-plum); color: var(--a28-white); border-color: var(--a28-plum); }

/* Breadcrumb */
.a28-breadcrumb {
  font-size: 0.78rem; color: var(--a28-muted); letter-spacing: 0.04em;
}
.a28-breadcrumb a:hover { color: var(--a28-sage); }

/* Scroll to top */
.a28-scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--a28-muted); color: var(--a28-white);
  border: none; font-size: 1.1rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, background 0.2s;
}
.a28-scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.a28-scroll-top:hover { background: var(--a28-plum); }

@media (max-width: 1024px) {
  .a28-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .a28-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}
@media (max-width: 480px) {
  .a28-product-grid { grid-template-columns: 1fr 1fr; }
  .a28-product-actions .a28-cart-btn { font-size: 0.58rem; padding: 0.5rem 0.35rem; }
}
