:root {
  /* Primary Colors */
  --color-bg: #1F1F1F;
  --color-text: #EAEAEA;
  --color-accent: #D2691E;
  --color-accent-hover: #A74E0C;

  /* Neutrals & Utility */
  --color-border: #444;
  --color-surface: #2D2D2D;
  --color-overlay: #333;
  --color-subtext: #bbb;
  --color-muted: #999;

  /* Button Feedback */
  --color-clicked: #005fa3;
  --color-checkout: #0078D4;

  /* Light backgrounds (optional sections) */
  --color-light-surface: #f5f5f5;
  --color-light-bg: #fffaf0;
  /* trust image backgroup color, to match images used back ground */
  --trust-bg: #fff;
}



/* Base Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  z-index: 10;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
nav a {
  margin: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
}
.hero img {
  width: 100%;
  height: auto;
}
.hero .title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  color: #fff;
  max-width: 90%;
}

/* Buy Bar */
.buy-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-surface);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  gap: 1rem;
}
.buy-bar select{
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #555;
  padding: 0.5rem;
}
.buy-bar button {
  background: var(--color-accent);
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.buy-bar button:hover {
  background: #A74E0C;
}
#add-to-cart.clicked {
  background-color: var(--color-clicked);
  transition: background 0.3s ease;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.feature img,
.feature .text {
  flex: 1 1 300px;
}

/* Trust */
.trust-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 20px 10px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 40%;
  margin: 10px 20px;
}

.trust-item img {
  max-height: 300px;
  object-fit: contain;
}

.trust-bar-wrapper {
  background-color: var(--trust-bg);
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


/* Accordion */
.accordion {
  border-top: 1px solid var(--color-border);
}
.accordion h3 {
  padding: 1rem;
  cursor: pointer;
  background: #333;
  font-size: 1.2rem;
  color: var(--color-text);
}
.accordion div {
  padding: 1rem;
  display: none;
  background: var(--color-surface);
  color: #ccc;
}

/* Reviews */
.reviews {
  background: #222;
  padding: 2rem;
  margin: 2rem 0;
  color: var(--color-text);
}

/* Accessories */
.accessory-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.accessory {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
}
.accessory img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #555;
}
.accessory p {
  color: #bbb;
}
.accessory-carousel::-webkit-scrollbar {
  height: 6px;
}
.accessory-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

/* Cart */
.cart-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}
.cart-icon {
  cursor: pointer;
  font-size: 1.5rem;
  position: relative;
}
.cart-overlay {
  position: absolute;
  top: 2.5rem;
  right: 0;
  width: 250px;
  background: var(--color-surface);
  border: 1px solid #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  display: none;
  color: var(--color-text);
}
.cart-overlay.open {
  display: block;
}
.cart-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-height: 200px;
  overflow-y: auto;
}
.cart-overlay li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-actions button {
  margin: 0 2px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}
#checkout-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

/* Image Framing */
.image-frame {
  background: var(--color-surface);
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.image-frame:hover {
  transform: scale(1.02);
}
.image-frame img {
  border-radius: 4px;
}

/* Footer */
footer {
  background: var(--color-surface);
  color: #ccc;
  padding: 2rem;
  text-align: center;
}
footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .title {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    margin-top: -4px;
  }

  .feature {
    flex-direction: column;
  }

  .trust-item {
    flex: 1 1 100%;
  }

  .buy-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .buy-bar select,
  .buy-bar button {
    width: 100%;
  }

  .accordion h3 {
    font-size: 1rem;
  }
}
