/* poopnshit.com — clean, fun, easy e-shop */
:root {
  --bg: #faf6f1;
  --bg-card: #ffffff;
  --ink: #2a211c;
  --muted: #6d5c52;
  --line: #e8ddd3;
  --brand: #8b5a2b;
  --brand-dark: #5c3a1a;
  --accent: #e07a3d;
  --accent-soft: #fff0e6;
  --success: #2f7d4a;
  --success-bg: #e8f6ec;
  --danger: #b33a2b;
  --danger-bg: #fdecea;
  --shadow: 0 10px 30px rgba(42, 33, 28, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fredoka", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #f3e2cf 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, #ffe8d6 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #c9894b, #8b5a2b);
  box-shadow: var(--shadow);
  font-size: 1.35rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.2rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px;
}

.cart-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  padding: 0 0.3rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Flash */
.flash {
  padding: 0.85rem 0;
  font-weight: 600;
}

.flash-success {
  background: var(--success-bg);
  color: var(--success);
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #3b2a22 0%, #6b4228 55%, #c7783a 100%);
  color: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "💩";
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-size: 10rem;
  opacity: 0.12;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(6px);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
}

.stat span {
  opacity: 0.85;
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(224, 122, 61, 0.35);
}

.btn-primary:hover {
  background: #cf6a2f;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: 2rem 0 3rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f3ebe3, #fff);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.badge-sale {
  background: var(--danger);
}

.badge-new {
  background: var(--success);
}

.product-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--display);
}

.product-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.price {
  font-weight: 800;
  font-size: 1.15rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.92rem;
}

.product-body .btn {
  margin-top: 0.55rem;
}

/* Product page */
.product-page {
  padding: 2rem 0 3rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.gallery-main {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7efe7, #fff);
  border-radius: 18px;
  margin-bottom: 0.85rem;
}

.gallery-main img {
  max-height: 100%;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.thumbs button {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.35rem;
  background: #f7efe7;
  cursor: pointer;
}

.thumbs button.active,
.thumbs button:hover {
  border-color: var(--accent);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.product-info .lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

.buy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--ink);
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(224, 122, 61, 0.35);
  border-color: var(--accent);
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-pills label {
  margin: 0;
}

.size-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-pills span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 44px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.size-pills input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-row input {
  width: 88px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-list li {
  margin-bottom: 0.35rem;
}

.trust-list li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 800;
}

/* Cart & checkout */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
}

.panel-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.layout-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #f7efe7;
  border-radius: 14px;
  padding: 0.35rem;
}

.cart-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.cart-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.55rem;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-actions input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.summary-row.total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state .emoji {
  font-size: 3rem;
}

/* Info cards / FAQ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card,
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.info-card h3,
.faq-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.info-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-family: var(--display);
}

.site-footer h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Success */
.success-box {
  max-width: 640px;
  margin: 2.5rem auto 3rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.success-box .emoji {
  font-size: 3rem;
}

.order-id {
  display: inline-block;
  margin: 0.75rem 0 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

/* Admin */
.admin-wrap {
  max-width: 960px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.admin-login {
  max-width: 420px;
  margin: 4rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-card,
  .product-layout,
  .layout-2,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
  }

  .cart-link {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item .line-total {
    grid-column: 2;
  }
}
