/* -------------------------
   Base & Reset
-------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333333; /* Charcoal Gray */
  background: #d9c9b8; /* Sandy Beige */
  line-height: 1.5;
}

/* Container */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Links & Text */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 0.75rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #333333;
}

/* -------------------------
   Buttons
-------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

/* Primary = Sunset Orange */
.btn-primary {
  background: #e76f40;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(231, 111, 64, 0.35);
}

.btn-primary:hover {
  background: #cf5f34;
  box-shadow: 0 12px 30px rgba(231, 111, 64, 0.5);
  transform: translateY(-1px);
}

/* Secondary = Lake Teal outline */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(62, 156, 163, 0.8);
  color: #3e9ca3;
}

.btn-secondary:hover {
  background: rgba(62, 156, 163, 0.08);
}

.btn.full-width {
  width: 100%;
}

/* -------------------------
   Header / Navigation
-------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(75, 111, 75, 0.96),
    rgba(75, 111, 75, 0.8),
    rgba(75, 111, 75, 0.4),
    transparent
  );
  border-bottom: 1px solid rgba(51, 51, 51, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #f5f3ef;
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #f5f3ef;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 239, 0.6);
  background: rgba(75, 111, 75, 0.95);
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #f5f3ef;
  border-radius: 999px;
}

/* Cart toggle */

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 239, 0.7);
  background: rgba(75, 111, 75, 0.95);
  color: #f5f3ef;
  font-size: 0.8rem;
  cursor: pointer;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e76f40; /* Sunset Orange */
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
}

/* -------------------------
   Hero
-------------------------- */

.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 0 3rem;
  color: #f5f3ef;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(4px);
  transform: scale(1.04);
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(75, 111, 75, 0.85),
    rgba(75, 111, 75, 0.75),
    rgba(75, 111, 75, 0.55),
    rgba(217, 201, 184, 0.9)
  );
}

/* Glass card hero */

.hero-content {
  position: relative;
  max-width: 650px;
  padding: 2.25rem 2.25rem 2rem;
}

/* Outdoor/frosted glass look */
.glass-card {
  background:
    radial-gradient(circle at top left, rgba(217, 201, 184, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(62, 156, 163, 0.3), transparent 60%),
    rgba(255, 255, 255, 0.84);
  border-radius: 1.35rem;
  border: 1px solid rgba(75, 111, 75, 0.28);
  box-shadow: 0 22px 45px rgba(51, 51, 51, 0.28);
  backdrop-filter: blur(16px);
  color: #333333;
}

.hero h1 {
  font-size: 2.15rem;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: #333333;
}

.hero p {
  font-size: 0.98rem;
  color: #555555;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #666666;
  opacity: 0.9;
}

/* -------------------------
   Sections
-------------------------- */

.section {
  padding: 3.5rem 0;
  color: #333333;
  background: #d9c9b8; /* Sandy Beige */
}

.section-alt {
  background: #f3e5d8; /* lighter sandy beige for contrast */
}

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

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: #666666;
  font-size: 0.95rem;
}

/* -------------------------
   Product Grid & Cards
-------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #333333;
}

.product-card p {
  color: #555555;
  font-size: 0.9rem;
}

/* Main image + thumbnails layout */
.product-img-wrapper {
  display: flex;
  flex-direction: column; /* thumbnails under image */
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

/* Main product image */
.product-img-center {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(51, 51, 51, 0.35);
}

/* Thumbnails strip (scrollable on small screens) */
.product-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-thumbnails img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex: 0 0 auto;
  border: 2px solid transparent;
  opacity: 0.9;
  transition: border 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.product-thumbnails img:hover {
  border-color: #c9a66b;
  transform: scale(1.08);
  opacity: 1;
}

.product-thumbnails img.is-active {
  border-color: rgba(0, 0, 0, 0.35);
  opacity: 1;
}

/* Feature list (FIXED bullets) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: #666666;
}

.feature-list li::before {
  content: "•";              /* ✅ fixed */
  margin-right: 0.4rem;
  color: #3e9ca3;             /* Lake Teal */
}

/* Product options */

.product-options {
  margin-bottom: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.form-row label {
  color: #333333;
}

.form-row select,
.form-row input,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 51, 51, 0.25);
  padding: 0.5rem 0.7rem;
  background: #f7f0e8;
  color: #333333;
  font-size: 0.86rem;
}

.form-row select:focus,
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #3e9ca3;
  box-shadow: 0 0 0 1px rgba(62, 156, 163, 0.4);
}

/* -------------------------
   Color Swatch Dropdown
-------------------------- */

.option-color {
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  appearance: none;
}

/* -------------------------
   Price
-------------------------- */

.product-price {
  font-weight: 700;
  font-size: 1rem;
  color: #4b6f4b; /* Trail Green emphasis */
  margin: 0.25rem 0 0.6rem;
}

/* -------------------------
   Cart Drawer
-------------------------- */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 320px;
  max-width: 80vw;
  height: 100vh;
  background: #f7f0e8;
  border-left: 1px solid rgba(51, 51, 51, 0.18);
  box-shadow: -25px 0 50px rgba(51, 51, 51, 0.45);
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: right 0.25s ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cart-header h2 {
  font-size: 1.1rem;
  color: #333333;
}

.cart-close {
  border: none;
  background: transparent;
  color: #777777;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Cart items */

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b0a396 transparent;
}

.cart-item {
  border-bottom: 1px dashed rgba(176, 163, 150, 0.9);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #333333;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: #666666;
  margin-bottom: 0.25rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.cart-qty-btn {
  border-radius: 999px;
  border: 1px solid rgba(51, 51, 51, 0.2);
  background: #f0e4d6;
  color: #333333;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: #e76f40;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.25rem;
}

.cart-footer {
  border-top: 1px solid rgba(176, 163, 150, 0.9);
  padding-top: 0.75rem;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333333;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cart-total-amount {
  font-weight: 700;
}

/* -------------------------
   Two-column, reviews, contact
-------------------------- */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  color: #333333;
  font-size: 0.95rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-grid .glass-card {
  padding: 1.25rem 1.4rem;
}

.review-author {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #666666;
}

/* Contact form */

.contact-form {
  padding: 1.4rem 1.5rem 1.3rem;
  max-width: 540px;
  margin: 0 auto;
}

/* -------------------------
   Footer
-------------------------- */

.site-footer {
  border-top: 1px solid rgba(51, 51, 51, 0.25);
  background: #4b6f4b; /* Trail Green */
  color: #f5f3ef;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.footer-inner a {
  color: #fef3e9;
}

.footer-inner a:hover {
  color: #ffd3b4;
}

/* Created by link */

.footer-credit {
  color: #f5f3ef;
  font-size: 0.8rem;
}

.footer-credit a {
  color: #ffd3b4;
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* -------------------------
   Minimal Pages (success / cancel)
-------------------------- */

.minimal-page {
  background: radial-gradient(circle at top, #4b6f4b, #d9c9b8);
  color: #333333;
  min-height: 100vh;
  margin: 0;
}

.centered-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.centered-page .glass-card {
  padding: 1.75rem 1.9rem 1.6rem;
  max-width: 460px;
  text-align: center;
}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(75, 111, 75, 0.98);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-content {
    padding: 1.5rem 1.3rem 1.4rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === Duke Chatbot === */

.duke-chat-launcher {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #e76f40; /* Sunset Orange */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.duke-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  background: #f17f52;
}

.duke-chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 340px;
  max-width: calc(100% - 2rem);
  background: #d9c9b8; /* Sandy Beige */
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.duke-chat-window.open {
  display: flex;
}

.duke-chat-header {
  background: #4b6f4b; /* Trail Green */
  color: #fdfdfd;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duke-chat-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.duke-chat-close {
  background: transparent;
  border: none;
  color: #fdfdfd;
  font-size: 1.25rem;
  cursor: pointer;
}

.duke-chat-body {
  max-height: 360px;
  padding: 0.75rem 0.75rem 0.5rem;
  overflow-y: auto;
  background: #f6eee5;
}

.duke-chat-message {
  display: flex;
  margin-bottom: 0.5rem;
}

.duke-chat-message-bot {
  justify-content: flex-start;
}

.duke-chat-message-user {
  justify-content: flex-end;
}

.duke-chat-bubble {
  max-width: 80%;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.duke-chat-message-bot .duke-chat-bubble {
  background: #3e9ca3; /* Lake Teal */
  color: #ffffff;
  border-bottom-left-radius: 0.25rem;
}

.duke-chat-message-user .duke-chat-bubble {
  background: #333333; /* Charcoal Gray */
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
}

.duke-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.5rem 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #efe2d3;
}

.duke-chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  outline: none;
}

.duke-chat-input:focus {
  border-color: #4b6f4b;
  box-shadow: 0 0 0 1px rgba(75, 111, 75, 0.25);
}

.duke-chat-send {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  background: #e76f40;
  color: #ffffff;
  cursor: pointer;
}

.duke-chat-send:hover {
  background: #f17f52;
}

/* Small screens */
@media (max-width: 480px) {
  .duke-chat-window {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

