@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #f8f8f2;
  --text-secondary: #b3b3b3;
  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c358;
  --border-color: rgba(255, 255, 255, 0.1);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition-smooth);
  background: rgba(18, 18, 18, 0);
}

header.scrolled {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-icon:hover {
  color: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  /* For slight parallax effect */
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3) 0%, rgba(18, 18, 18, 0.9) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

/* Products Section */
.products-section {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.section-header p {
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-heading);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.price {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.btn-add {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-add:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.close-cart {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1;
}

.close-cart:hover {
  color: var(--text-primary);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.empty-cart-msg {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
  font-style: italic;
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-brand {
  font-size: 0.7rem;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.qty-btn {
  color: var(--text-primary);
  padding: 0 0.5rem;
}

.remove-btn {
  color: #ff4d4d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.remove-btn:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.btn-checkout {
  width: 100%;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.btn-checkout:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .products-grid {
    gap: 2rem;
  }

  .card-img-wrapper {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}