/* Art Treasure — Poster Shop */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #d4a574;
  --bg: #fafafa;
  --card-bg: #fff;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --text-lighter: #999;
  --border: #eee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --max-width: 1280px;
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.text-center {
  text-align: center;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
#cookie-banner p {
  margin: 0;
}
#cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
}
.cookie-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.cookie-btn-settings {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a4e;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-sm:hover {
  background: #2a2a4e;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  color: var(--gold);
  font-size: 1.6rem;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.95rem;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.icon-btn {
  position: relative;
  color: var(--text);
  padding: 0.4rem;
  transition: var(--transition);
}
.icon-btn:hover {
  color: var(--primary);
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f8f6f3 0%, #eee8e0 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-desc {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stats div {
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}
.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* Hero poster grid */
.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  transform: perspective(800px) rotateY(-5deg);
  transition: var(--transition);
}
.poster-grid:hover {
  transform: perspective(800px) rotateY(0deg);
}
.poster-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.poster-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.poster-card .poster-label {
  position: relative;
  z-index: 1;
}
.poster-label {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}
.poster-1 {
  background: linear-gradient(135deg, #e94560, #ff6b6b, #ffd93d);
}
.poster-2 {
  background: linear-gradient(135deg, #2d6a4f, #52b788, #b7e4c7);
}
.poster-3 {
  background: linear-gradient(135deg, #1a1a2e, #2a2a4e, #e2e2e2);
}
.poster-4 {
  background: linear-gradient(135deg, #3a86ff, #8338ec, #ff006e);
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.cat-card p {
  font-size: 0.8rem;
  opacity: 0.85;
}
.cat-abstract {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
}
.cat-nature {
  background: linear-gradient(135deg, #2d6a4f, #52b788);
}
.cat-typo {
  background: linear-gradient(135deg, #3a86ff, #48bfe3);
}
.cat-minimal {
  background: linear-gradient(135deg, #1a1a2e, #3a3a5e);
}
.cat-photo {
  background: linear-gradient(135deg, #ff006e, #fb5607);
}
.cat-vintage {
  background: linear-gradient(135deg, #d4a574, #b07d62);
}

/* ===== PRODUCTS ===== */
.products {
  padding: 4rem 0;
  background: #fff;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header .section-title {
  text-align: left;
  margin-bottom: 0;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.product-img {
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge.bestseller {
  background: var(--gold);
}
.badge:only-child {
  background: var(--accent);
}
.product-info {
  padding: 1.2rem;
}
.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.sizes {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

/* Product image backgrounds (CSS art) */
.pi-1 {
  background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 50%, #1a1a2e 100%);
}
.pi-2 {
  background: linear-gradient(180deg, #87ceeb 0%, #98d8c8 40%, #52b788 100%);
}
.pi-3 {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #ddd 100%);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.02) 10px,
    rgba(0, 0, 0, 0.02) 20px
  );
}
.pi-4 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}
.pi-5 {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b4965 40%, #3a86ff 100%);
}
.pi-6 {
  background: linear-gradient(135deg, #b7e4c7 0%, #52b788 50%, #2d6a4f 100%);
}
.pi-7 {
  background: linear-gradient(180deg, #ff9a56 0%, #ff6b6b 50%, #e94560 100%);
  border-radius: 50% 50% 0 0;
  aspect-ratio: 3/4;
}
.pi-8 {
  background: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
}

/* ===== FEATURES ===== */
.features {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f6f3, #eee8e0);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 4rem 0;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: var(--text);
  font-style: italic;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 4rem 0;
  background: var(--primary);
  color: #fff;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.newsletter p {
  opacity: 0.85;
  font-size: 0.95rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  width: 280px;
  outline: none;
}
.newsletter-form .btn {
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.newsletter-form .btn:hover {
  background: #d63851;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo .logo-text {
  color: #fff;
}
.footer-logo .logo-icon {
  color: var(--gold);
}
.footer-about {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 2rem;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }
  .poster-grid {
    transform: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
    max-width: 400px;
  }
  .newsletter-form input {
    flex: 1;
    width: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    display: none;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
