/* Premium Watch Store Styles */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #c9a961;
  --accent-color: #8b7355;
  --text-primary: #333;
  --text-secondary: #666;
  --background: #fafafa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
  background-color: #000;
  padding: 8px 0;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid #333;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  font-weight: 300;
}

nav a:hover {
  color: var(--secondary-color);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-count {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

/* Search Bar */
.search-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 5px 20px;
  margin-left: 20px;
}

.search-form input {
  background: none;
  border: none;
  color: var(--white);
  padding: 5px 10px;
  width: 200px;
  font-size: 14px;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: all 0.3s;
}

.cta-button:hover {
  background-color: #b08d4f;
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

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

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  background-color: #f5f5f5;
}

.product-info {
  padding: 30px;
}

.product-name {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
}

.product-price {
  font-size: 28px;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-tag {
  background-color: #f0f0f0;
  padding: 5px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.add-to-cart {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 15px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.add-to-cart:hover {
  background-color: #b08d4f;
}

/* Categories */
.categories {
  margin-bottom: 60px;
}

.categories h2 {
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

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

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.product-detail-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  background-color: #f5f5f5;
}

.product-detail-info {
  padding: 40px 0;
}

.product-detail-info h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-detail-price {
  font-size: 42px;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.product-detail-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.product-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color);
}

.quantity-selector button {
  background: none;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
}

.quantity-selector input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: 16px;
}

/* Cart Page */
.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-items {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 30px;
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.cart-item-price {
  font-size: 24px;
  font-weight: 300;
}

.cart-summary {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 40px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.summary-total {
  font-size: 24px;
  font-weight: 500;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}