@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color System */
  --bg-main: #0f0f10;
  --bg-sec: #18181b;
  --bg-light: #f9fafb;
  --text-light: #f9fafb;
  --text-dark: #111827;
  --text-muted: #9ca3af;
  
  --accent-gold: linear-gradient(135deg, #d4af37, #fbbf24);
  --accent-gold-solid: #d4af37;
  --accent-purple: #6d28d9;
  
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow-gold: rgba(212, 175, 55, 0.35);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  
  /* Radii */
  --radius: 14px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-main);
  box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-gold);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold-solid);
  color: var(--accent-gold-solid);
}

.btn-outline:hover {
  background: var(--glass);
  color: #fff;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(15, 15, 16, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
  transition: stroke 0.3s ease;
}

.cart-icon-wrapper:hover svg {
  stroke: var(--accent-gold-solid);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-gold);
  color: var(--bg-main);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/photo-1541961017774-22349e4a1262-hero-hero-bg.png');
  background-size: cover;
  background-position: center;
  animation: slowZoom 20s infinite alternate;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 15, 16, 0.4), var(--bg-main));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 8rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

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

.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sec);
  transition: transform 0.4s ease;
}

.product-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.product-artist {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent-gold-solid);
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--bg-sec);
  z-index: 2001;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-overlay.active .cart-panel {
  right: 0;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.5rem;
}

.close-cart {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 1rem;
  font-family: var(--font-serif);
}

.cart-item-price {
  color: var(--accent-gold-solid);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-sec);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
}

.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-sec);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.empty-cart-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* Product Detail Page */
.product-detail-section {
  padding: 120px 0 8rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-detail-gallery {
  position: sticky;
  top: 120px;
}

.product-detail-main-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-detail-info h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.product-detail-artist {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.product-detail-price {
  font-size: 2rem;
  color: var(--accent-gold-solid);
  font-weight: 600;
  margin-bottom: 2rem;
}

.product-detail-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.product-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.product-meta p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.product-meta span {
  color: var(--text-light);
}

/* Checkout Page */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-top: 120px;
}

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

.checkout-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-form-group input {
  width: 100%;
  padding: 1rem;
  background: var(--bg-sec);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
}

.checkout-form-group input:focus {
  outline: none;
  border-color: var(--accent-gold-solid);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.checkout-summary {
  background: var(--bg-sec);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  position: sticky;
  top: 120px;
}

/* Footer */
footer {
  background: #000;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
  color: var(--text-muted);
}

.footer-links ul li a:hover {
  color: var(--accent-gold-solid);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

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

/* Utilities */
.text-gold { color: var(--accent-gold-solid); }

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .product-detail-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Simplified for pure HTML/JS */
  .hero h1 { font-size: 2.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-panel { max-width: 100%; right: -100%; }
}