/* Global reset and font */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
ul,
h1,
h2,
h3,
p,
button {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif; /* Georgia everywhere */
  color: #333;
  line-height: 1.6;
}

body {
  background-color: #fafafa; /* light neutral background */
}

/* Navbar */
.navbar {
  background: #f4e1d2;
  padding: 25px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 12px 24px;
  background: #a0522d;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.navbar a:hover,
.navbar a.active {
  background: #7a3d20;
  transform: scale(1.05);
}
.site-logo {
  max-width: 125px;
  height: auto;
  display: block;
}

/* Header */
header {
  background: #fff8f2;
  padding: 40px 20px;
  text-align: center;
}
header h1 {
  font-size: 3rem;
  color: #444;
  letter-spacing: 0.5px;
  margin-bottom: 0.5em;
}

/* Hero (Home page) */
.hero {
  background: #fff8f2;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 3.2rem;
  color: #444;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #555;
}
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #a0522d;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background: #7a3d20;
}

/* Main wrapper */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* About page */
.intro {
  margin-bottom: 40px;
}
.intro h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #555;
}
.intro p {
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 0 auto 20px auto;
  max-width: 700px;
}

/* Shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* bigger squares */
  gap: 40px;
  margin: 50px 0;
}
.shop-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 30px;
}

/* Shop link card */
.shop-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.shop-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.shop-link img {
  width: 100%;
  height: 220px; /* consistent height */
  object-fit: contain; /* keep full image visible */
  margin-bottom: 20px;
  border-radius: 8px;
}
.shop-link h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #444;
}
.shop-link p.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #a0522d;
  margin: 10px 0;
}

/* Product detail layout */
.product-detail {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-image,
.slide-image {
  max-width: 250px; /* smaller, consistent */
  height: auto; /* no cropping */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}
.product-info {
  flex: 1;
  text-align: left;
}
.product-info h2 {
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 10px;
}
.product-info p {
  font-size: 1.2rem; /* larger description */
  line-height: 1.8;
  color: #333;
}
.product-info ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}
.product-info li {
  margin: 6px 0;
}

/* Slideshow controls */
.slideshow-container {
  max-width: 300px;
  position: relative;
  margin: 0 auto;
}
.mySlides {
  display: none;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 8px;
  margin-top: -22px;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
  user-select: none;
}
.next {
  right: 0;
}
.prev:hover,
.next:hover {
  color: #ffd700;
}
.slideshow-dots {
  text-align: center;
  margin-top: 8px;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.dot.active,
.dot:hover {
  background-color: #444;
}

/* Buttons */
.add-to-cart {
  background-color: #ffd700;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}
.add-to-cart:hover {
  background-color: #e6c200;
}

#keep-shopping-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin: 15px 0; /* spacing above cart */
  transition: background 0.3s;
}
#keep-shopping-btn:hover {
  background-color: #0056b3;
}

/* Cart section */
.cart {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #fffef5;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
.cart h2 {
  font-size: 1.6rem;
  color: #444;
  margin-bottom: 12px;
}
#cart-items {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
#cart-items li {
  margin: 5px 0;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.remove-btn {
  background: #ff6666;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  cursor: pointer;
}
.remove-btn:hover {
  background: #cc0000;
}
#cart-total {
  font-weight: bold;
  margin-top: 10px;
}

#clear-cart {
  background-color: #999;
  color: #fff;
  margin-top: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#clear-cart:hover {
  background-color: #666;
}

#checkout-btn {
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 10px;
}
#checkout-btn:hover {
  background-color: #218838;
}

/* Contact page */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  padding: 10px 20px;
  background: #a0522d;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.contact-form button:hover {
  background: #7a3d20;
}

/* Footer */
footer {
  background: #f4e1d2;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  main {
    padding: 30px 16px;
  }
  header h1 {
    font-size: 2.6rem;
  }
  .shop-link img {
    height: 180px;
  }
  .product-detail {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 24px 12px;
  }
  header h1 {
    font-size: 2.2rem;
  }
  .navbar {
    padding: 18px 20px;
  }
  .navbar a {
    font-size: 1.1rem;
    padding: 10px 16px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  } /* single column on mobile */
  .shop-link img {
    height: 160px;
  }
  .product-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-info {
    text-align: center;
  }
}
/* Slideshow container */
.slideshow-container {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

/* Prev/Next buttons above the image */
.prev,
.next {
  position: absolute;
  top: -40px; /* move buttons above the image */
  color: #333;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
  user-select: none;
}

.prev {
  left: 0;
}
.next {
  right: 0;
}

.prev:hover,
.next:hover {
  color: #ffd700;
}
/* Consistent product image sizing */
.product-photo,
.slide-image {
  width: 300px; /* fixed width */
  height: 300px; /* fixed height */
  object-fit: contain; /* keep full image visible without distortion */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}
/* Sidebar cart */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -320px; /* hidden by default */
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.cart-sidebar.open {
  right: 0; /* slide in */
}

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

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.open-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffd700;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
/* ---------- Cart control buttons ---------- */
.cart-decrement,
.cart-increment,
.cart-remove,
.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #222;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Primary Add to Cart appearance */
.add-to-cart {
  background: linear-gradient(180deg, #ffd966 0%, #ffb84d 100%);
  border-color: rgba(0, 0, 0, 0.06);
  color: #111;
  box-shadow: 0 6px 18px rgba(255, 184, 77, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
}

/* Small +/- controls inside sidebar */
.cart-decrement,
.cart-increment {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: #f6f6f6;
  border: 1px solid #e6e6e6;
  font-size: 18px;
  line-height: 1;
}

/* Remove button style */
.cart-remove {
  background: transparent;
  color: #c0392b;
  border: 1px dashed rgba(192, 57, 43, 0.12);
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Hover and active states */
.add-to-cart:hover,
.cart-decrement:hover,
.cart-increment:hover,
.cart-remove:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.add-to-cart:active,
.cart-decrement:active,
.cart-increment:active,
.cart-remove:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Focus outlines for keyboard users */
.add-to-cart:focus,
.cart-decrement:focus,
.cart-increment:focus,
.cart-remove:focus,
.open-cart-btn:focus,
.close-btn:focus {
  outline: 3px solid rgba(255, 184, 77, 0.28);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Disabled state */
.add-to-cart[disabled],
.cart-decrement[disabled],
.cart-increment[disabled],
.cart-remove[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Floating cart toggle and close ---------- */
.open-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(180deg, #ffd966, #ffb84d);
  color: #111;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Close button inside sidebar */
.close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #444;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

/* Small responsive tweak */
@media (max-width: 640px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  .cart-sidebar.open {
    right: 0;
  }
  .open-cart-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .add-to-cart {
    width: 100%;
    box-sizing: border-box;
  }
}
/* Product page adjustments (merge into style.css) */
.page-content {
  padding: 28px 20px;
}
.breadcrumb {
  color: var(--muted, #666);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}
.product-media {
  background: var(--card-bg, #fff);
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--card-shadow, 0 6px 20px rgba(0, 0, 0, 0.04));
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-media img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.product-info {
  background: var(--card-bg, #fff);
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--card-shadow, 0 6px 20px rgba(0, 0, 0, 0.04));
}
.product-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.product-desc {
  color: #444;
  margin-bottom: 14px;
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}
.msrp {
  color: #888;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333;
}
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.add-to-cart {
  background: linear-gradient(180deg, #ffd966 0%, #ffb84d 100%);
  border: none;
  color: #111;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 184, 77, 0.14);
}
.meta {
  font-size: 0.9rem;
  color: #666;
}

.color-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  font-size: 0.9rem;
}
.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Cart sidebar (consistent with site) */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: var(--card-bg, #fff);
  box-shadow: -2px 0 18px rgba(0, 0, 0, 0.12);
  padding: 18px;
  transition: right 0.28s ease;
  z-index: 1200;
  overflow-y: auto;
}
.cart-sidebar.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
#cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
#cart-items li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
#cart-total {
  font-weight: 700;
  margin: 12px 0;
}
.cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-primary {
  background: #111;
  color: #fff;
  border: none;
}
.btn-outline {
  background: #fff;
  border: 1px solid #ddd;
}

/* Floating cart button */
.open-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(180deg, #ffd966, #ffb84d);
  color: #111;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 1199;
}

/* Responsive */
@media (max-width: 880px) {
  .product-page {
    grid-template-columns: 1fr;
  }
  .selectors {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  .cart-sidebar.open {
    right: 0;
  }
}
/* widen media column for product pages */
.product-detail {
  grid-template-columns: 1fr 520px; /* increase from 420px to 520px */
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; }
}
/* Slideshow: polished, larger images */
.product-detail { display:grid; grid-template-columns: 1fr 560px; gap:28px; }
@media (max-width:880px) { .product-detail { grid-template-columns: 1fr; } }

.slideshow-container {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 420px; /* ensures consistent visual height */
}

/* Each slide is centered; images scale to fit while preserving aspect ratio */
.mySlides { display:none; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.slide-image {
  width:100%;
  max-width: 720px; /* cap for very large screens */
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: zoom-in;
}

/* Hover subtle lift */
.slide-image:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }

/* Controls: larger, accessible */
.prev, .next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background: rgba(0,0,0,0.6);
  color:#fff;
  padding:10px 14px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  z-index:10;
  font-size:18px;
  line-height:1;
}
.prev { left:14px; }
.next { right:14px; }

/* Dots: larger and spaced */
.slideshow-dots { text-align:center; margin-top:12px; }
.slideshow-dots .dot {
  display:inline-block;
  width:12px;
  height:12px;
  margin:6px;
  background:#e0e0e0;
  border-radius:50%;
  border:none;
  cursor:pointer;
}
.slideshow-dots .dot.active { background:var(--accent,#ffb84d); box-shadow:0 4px 10px rgba(0,0,0,0.08); }

/* Lightbox overlay */
.lightbox {
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.75);
  z-index:2000;
  padding:20px;
}
.lightbox.open { display:flex; }
.lightbox img { max-width:calc(100% - 80px); max-height:calc(100% - 80px); border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,0.6); cursor:zoom-out; }
/* Product layout and slideshow container */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 520px; /* wider media column */
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Slideshow card */
.slideshow-container {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Slide layout */
.mySlides { display:none; width:100%; height:100%; align-items:center; justify-content:center; }
.mySlides.active { display:flex; }

/* Image sizing and polish */
.slide-image {
  width:100%;
  max-width:760px;
  height:auto;
  border-radius:10px;
  object-fit:contain;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: zoom-in;
}
.slide-image:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }

/* Prev/Next controls */
.prev, .next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background: rgba(0,0,0,0.6);
  color:#fff;
  padding:10px 14px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  z-index:10;
  font-size:18px;
}
.prev { left:14px; }
.next { right:14px; }

/* Dots */
.slideshow-dots { text-align:center; margin-top:12px; }
.slideshow-dots .dot {
  width:12px; height:12px; margin:6px; background:#e0e0e0; border-radius:50%; border:none; cursor:pointer;
}
.slideshow-dots .dot.active { background:var(--accent,#ffb84d); box-shadow:0 4px 10px rgba(0,0,0,0.08); }

/* Lightbox */
.lightbox { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.75); z-index:2000; padding:20px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:calc(100% - 80px); max-height:calc(100% - 80px); border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,0.6); cursor:zoom-out; }

/* Product info spacing */
.product-info { padding:18px; background:var(--card-bg,#fff); border-radius:8px; box-shadow:var(--card-shadow,0 6px 20px rgba(0,0,0,0.04)); }
.product-info h2 { margin-top:0; margin-bottom:12px; font-size:1.25rem; }