/*
Theme Name: Retroarkivet
Theme URI: https://example.com
Author: Custom
Description: Retroarkivet design for WooCommerce. Matches the original retro shop layout.
Version: 1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: retroarkivet
Tags: e-commerce, woocommerce, retro
*/

:root {
  --orange: #ff5a1f;
  --orange-dark: #e04e1a;
  --dark: #1a1a1a;
  --light: #f8f8f8;
  --muted: #666;
  --border: #eee;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Top bar */
.top-bar {
  background: #f7f7f7;
  text-align: center;
  padding: 9px 16px;
  font-size: 12.5px;
  color: #666;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #eee;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.logo-icon { font-size: 26px; }
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #888;
  letter-spacing: 1.2px;
  margin-top: 1px;
}
.main-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 500;
  font-size: 14.5px;
  color: #222;
}
.main-nav a:hover { color: var(--orange); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.cart-count {
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 4px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 48px 40px;
  background: #fafafa;
  margin: 20px 24px 30px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.hero p {
  color: #555;
  max-width: 460px;
  margin: 0 0 22px;
  font-size: 15.5px;
}
.btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  display: inline-block;
  cursor: pointer;
}
.btn:hover { background: var(--orange-dark); }

.hero-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-circle {
  width: 300px;
  height: 300px;
  background: #ff6b4a;
  border-radius: 50%;
  position: absolute;
  right: 30px;
  top: 20px;
  opacity: 0.95;
}
.hero-items {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  transform: rotate(-4deg);
}
.hero-items img {
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  background: #fff;
}
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
}
.hero-dots span.active { background: var(--orange); }

/* Products */
.section {
  padding: 30px 48px 50px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}
.section-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.section-header .sub {
  color: #888;
  font-size: 12.5px;
  margin-top: 3px;
  letter-spacing: 0.8px;
}
.section-header a {
  color: #444;
  font-size: 14px;
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #f5f5f5;
}
.product-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
}
.product-card .meta {
  color: #888;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.product-card .price {
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 10px;
}
.wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

/* Features + Newsletter */
.features {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 36px 48px;
  background: #fafafa;
  margin: 10px 24px 40px;
  border-radius: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-icon { font-size: 26px; color: var(--orange); }
.feature h4 { margin: 0 0 3px; font-size: 14.5px; }
.feature p { margin: 0; font-size: 13px; color: #666; }

.newsletter {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid #eee;
}
.newsletter h3 { margin: 0 0 6px; font-size: 16px; }
.newsletter p { font-size: 13.5px; color: #666; margin-bottom: 14px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.newsletter button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* WooCommerce buttons */
.product-card .button,
.woocommerce a.button,
.woocommerce button.button,
.single_add_to_cart_button,
.add-to-cart {
  width: 100%;
  background: var(--orange) !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.product-card .button:hover,
.woocommerce a.button:hover,
.single_add_to_cart_button:hover {
  background: var(--orange-dark) !important;
}

/* Footer */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 36px 48px;
  text-align: center;
  font-size: 13.5px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero-visual { height: 260px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header { flex-wrap: wrap; padding: 14px 16px; }
  .main-nav { order: 3; width: 100%; margin-top: 12px; justify-content: center; gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .section, .features { padding: 24px 16px; }
  .hero h1 { font-size: 34px; }
}
