/* --- Variables & Theming --- */
:root {
  --color-primary: #000000;      /* Black */
  --color-secondary: #ffffff;    /* White */
  --color-accent: #b91c1c;       /* Deep Red */
  --color-background: #f8fafc;   /* Snow Gray */
  --color-surface: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icons a {
  font-size: 1.3rem;
  position: relative;
}

.nav-icons a:hover {
  color: var(--color-accent);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
  color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

/* For pages where nav is transparent at top and solid later */
body.home-page .navbar {
  background: transparent;
  border-bottom: none;
  color: var(--color-secondary);
}
body.home-page .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  color: var(--color-secondary);
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 5.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
}

/* --- Utility Classes --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.max-w-1000 { max-width: 1000px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

.cta-section {
  background-color: var(--color-surface);
  text-align: center;
  max-width: 100%;
  padding: 8rem 2rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* --- Shop Layout --- */
.shop-layout {
  display: flex;
  gap: 3rem;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
}

.shop-main {
  flex-grow: 1;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.product-card {
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  group: hover;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #eaeaea;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.9);
  transition: var(--transition-smooth);
  opacity: 0;
}

.product-card:hover .product-actions {
  bottom: 0;
  opacity: 1;
}

.icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: var(--color-accent);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-brand p {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--color-accent);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #9ca3af;
}

.footer-links ul li a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  flex-grow: 1;
  padding: 0.5rem;
  outline: none;
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Media Queries --- */

/* Desktop / Large Screens */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 4.5rem; }
}

/* Tablets (Portrait) */
@media (max-width: 900px) {
  .navbar { background: rgba(255, 255, 255, 0.98); color: var(--color-primary); }
  body.home-page .navbar { background: rgba(255, 255, 255, 0.98); color: var(--color-primary); border-bottom: 1px solid rgba(0,0,0,0.05); }
  
  .mobile-menu-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: var(--nav-h, 72px);
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--color-surface);
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .nav-links.active { left: 0; }
  
  .hero-content h1 { font-size: 3.5rem; }
  .hero-content p { font-size: 1.1rem; }
  
  .footer-container { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .section-header h2 { font-size: 2.2rem; }
  
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .cta-section { padding: 5rem 1.5rem; }
  .cta-section h2 { font-size: 1.8rem; }
  
  .shop-layout { flex-direction: column; gap: 2rem; }
  .sidebar { width: 100%; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
  
  .hero { min-height: 500px; height: 80vh; }
  .hero-content { text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .btn-secondary { margin-left: 0; margin-top: 1rem; }
  .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .nav-container { padding: 1rem; }
  .brand-logo { font-size: 1.5rem; }
  
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 350px; }
  
  .form-container { padding: 2rem 1.5rem; }
  .page-header h1 { font-size: 2.5rem; }
}

/* Forms & Pages Base */
.page-header {
  padding: 10rem 2rem 4rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 4rem auto;
  background: var(--color-surface);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-block {
  width: 100%;
  text-align: center;
}
