/*
Theme Name: Forever 21 Clone
Theme URI: https://example.com/forever21
Author: Lovable
Author URI: https://lovable.dev
Description: A modern Forever 21 inspired WooCommerce-ready theme with white, black, red and grey palette.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forever21
Tags: e-commerce, fashion, woocommerce, custom-menu, featured-images

Forever 21 Clone WordPress Theme, (C) 2026 Lovable
*/

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-fg: #121212;
  --color-fg-muted: #737373;
  --color-border: #e5e5e5;
  --color-secondary: #f5f5f5;
  --color-sale: #dc2626;
  --color-sale-fg: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Announcement Bar ===== */
.announcement-bar {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 8px 16px;
  text-align: center;
  position: relative;
}
.announcement-bar p {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
}
.announcement-bar .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  padding: 4px;
}
.announcement-bar .nav-btn:hover { color: #fff; }
.announcement-bar .nav-btn.prev { left: 16px; }
.announcement-bar .nav-btn.next { right: 16px; }

/* ===== Site Header ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}
.site-header .site-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
}
.site-header .header-icons { display: flex; gap: 20px; align-items: center; }
.site-header .header-icons a,
.site-header .header-icons button {
  color: var(--color-fg);
  transition: color 0.2s;
}
.site-header .header-icons a:hover,
.site-header .header-icons button:hover { color: var(--color-fg-muted); }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0 40px 12px;
}
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-fg-muted); }
.site-nav a.sale-link { color: var(--color-sale); }
.site-nav a.sale-link:hover { opacity: 0.8; }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-sale);
  color: #fff;
  font-size: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,0.2);
}
.hero-banner .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 128px;
}
.hero-banner h2 {
  font-family: var(--font-display);
  font-size: 5rem;
  color: #fff;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-align: right;
}
.hero-banner .cta {
  margin-top: 24px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  padding-bottom: 4px;
  transition: opacity 0.2s;
}
.hero-banner .cta:hover { opacity: 0.8; }

/* ===== Category Grid ===== */
.category-grid {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category-card:hover img { transform: scale(1.05); }
.category-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,0.1);
  transition: background 0.3s;
}
.category-card:hover .card-overlay { background: rgba(18,18,18,0.2); }
.category-card .card-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ===== Product Grid ===== */
.new-arrivals { padding: 40px; }
.new-arrivals .section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 32px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 16px;
}
.product-card { cursor: pointer; }
.product-card .product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-secondary);
  margin-bottom: 12px;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card .quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.product-card:hover .quick-view { transform: translateY(0); }
.product-card .product-name {
  font-size: 12px;
  letter-spacing: 0.03em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 4px;
}
.product-card .product-price {
  font-size: 14px;
  font-weight: 600;
}
.product-card .product-colors {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.product-card .product-colors span {
  font-size: 10px;
  color: var(--color-fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.view-all-wrap { text-align: center; margin-top: 40px; }
.view-all-btn {
  display: inline-block;
  border: 1px solid var(--color-fg);
  color: var(--color-fg);
  padding: 12px 40px;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: all 0.2s;
}
.view-all-btn:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 64px 24px;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.newsletter form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter input[type="email"] {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 16px;
  font-size: 14px;
  color: #fff;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: #fff;
}
.newsletter button[type="submit"] {
  background: #fff;
  color: var(--color-fg);
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.newsletter button[type="submit"]:hover { opacity: 0.9; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-secondary);
}
.site-footer .footer-inner {
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.site-footer .footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.site-footer .footer-brand p {
  font-size: 12px;
  color: var(--color-fg-muted);
  line-height: 1.7;
}
.site-footer .social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.site-footer .social-links a {
  font-size: 12px;
  color: var(--color-fg-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.site-footer .social-links a:hover { color: var(--color-fg); }
.site-footer .footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.site-footer .footer-col ul { list-style: none; }
.site-footer .footer-col li { margin-bottom: 8px; }
.site-footer .footer-col a {
  font-size: 12px;
  color: var(--color-fg-muted);
  transition: color 0.2s;
}
.site-footer .footer-col a:hover { color: var(--color-fg); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer .footer-bottom p {
  font-size: 10px;
  color: var(--color-fg-muted);
  letter-spacing: 0.05em;
}
.site-footer .footer-bottom .legal-links { display: flex; gap: 16px; }
.site-footer .footer-bottom .legal-links a {
  font-size: 10px;
  color: var(--color-fg-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.site-footer .footer-bottom .legal-links a:hover { color: var(--color-fg); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-banner { height: 500px; }
  .hero-banner h2 { font-size: 3rem; }
  .hero-banner .content { align-items: center; padding-right: 32px; padding-left: 32px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .site-header .header-inner { padding: 12px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .new-arrivals { padding: 24px; }
  .newsletter form { flex-direction: column; }
  .site-footer .footer-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
