/*
 * Silk & Shine Website Styles
 *
 * This stylesheet defines the primary colour palette and layout
 * for the Silk & Shine online store. It uses a refined maroon
 * background with golden accents to evoke luxury while keeping
 * content easy to read. Headings use a classic serif font,
 * while body text uses a modern sans‑serif. Colours are defined
 * as CSS variables at the top of the file for easy adjustment.
 */

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

:root {
  /*
   * Colour palette tuned to match the Silk & Shine logo background.
   * The primary colour is sampled from the deep maroon behind the
   * gold lettering in the provided logo. Secondary colours provide
   * a soft gold accent for text and highlights. Light tones are
   * derived by darkening the primary colour slightly to create
   * subtle contrast for different sections.
   */
  --primary-color: #1b0e0e; /* deep maroon base matching logo background */
  --secondary-color: #c8a46b; /* warm gold for text and accents */
  --light-color: #0f0707; /* slightly darker tone for page backgrounds */
  --dark-color: var(--secondary-color); /* default text colour is gold */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Lato', sans-serif;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--secondary-color);
}

.nav-brand img {
  /* Enlarge the logo to emphasise the brand across every page. */
  height: 100px;
  margin-right: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--light-color);
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

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

/* Categories section */
.categories {
  padding: 3rem 1rem;
  background-color: var(--light-color);
  text-align: center;
}

.categories h2 {
  font-family: var(--heading-font);
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 2rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-card span {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Product list page */
.filter-sort-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.filter-sort-bar select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.product-card {
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .info {
  padding: 1rem;
  flex-grow: 1;
}

.product-card h3 {
  font-family: var(--heading-font);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.product-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.product-card .price {
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.product-card .actions {
  padding: 0.5rem 1rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.product-card button {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.btn-cart:hover {
  background-color: #2e080b;
}

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

.btn-wishlist:hover {
  background-color: #a78962;
}

/* Cart/Wishlist pages */
.cart-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--secondary-color);
  padding: 1rem 0;
}

.cart-item h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--secondary-color);
}

.cart-item .remove-btn {
  background-color: transparent;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 1.2rem;
}

.summary {
  margin-top: 2rem;
  text-align: right;
}

.summary h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.summary .checkout-btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.summary .checkout-btn:hover {
  background-color: #a78962;
}

.shipping-options {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.shipping-options label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--secondary-color);
  cursor: pointer;
}

.shipping-options input[type="radio"] {
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 1rem;
}

footer p {
  margin: 0;
  font-size: 0.85rem;
}