 /* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #111;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Top Strip */
.top-strip {
  background: #7b3903;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Navbar */
.navbar {
  background: #f4f4f4;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-right input {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  filter: brightness(65%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text p {
  margin: 1rem 0;
}

.btn {
  background: #111;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 3px;
  display: inline-block;
}

.btn:hover {
  background: #333;
}

.btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Process Section */
.process-section {
  background-color: #f7f7f7;
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.process-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  text-align: center;
}

.process-text {
  flex: 1 1 450px;
}

.process-text h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: bold;
}

.process-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.process-image {
  flex: 1 1 400px;
}

.process-image img {
  max-width: 80%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quick Ship */
.centered-section {
  background-color: #f5f5f5;
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.content-wrapper {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.content-wrapper img {
  width: 450px;
  height: auto;
  border-radius: 6px;
}

.text-content {
  max-width: 400px;
}

.text-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-content p {
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.text-content .btn {
  background-color: black;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Customize Section */
.customize {
  padding: 5rem 2rem;
  background-color: #f5f5f5;
}

.customize-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 5rem;
  flex-wrap: wrap;
  text-align: center;
}

.customize-text {
  flex: 1;
}

.customize-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.customize-text p {
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.5;
}

.customize-image {
  flex: 1;
}

.customize-image img {
  max-width: 80%;
  height: auto;
  border-radius: 4px;
}

/* FAQ + Custom */
.faq-custom.single {
  background: #fff;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.faq-custom.single div {
  max-width: 600px;
  width: 100%;
}



/* Footer */
.footer {
  background: #7b3903;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem;
  height: auto;
}

.footer-left img {
  max-width: 500px;
  height: auto%;
}

.footer-right {
  max-width: 500px;
}

.footer-right h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-right p {
  margin-bottom: 1rem;
}


/* Bottom Bar */
.bottom-bar {
  text-align: center;
  padding: 1rem;
  background: #7b3903;
  color: #aaa;
  font-size: 0.8rem;
}

/* Shop Page Styles */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 5rem 2rem;
  background-color: #fafafa;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.product-card .btn {
  background-color: #7b3903;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.product-card .btn:hover {
  background-color: #5e2d02;
}

/* --- Shop Page Enhancements --- */

/* Navbar Active Link */
.nav-links a {
  position: relative;
  padding: 10px;
  text-decoration: none;
  color: black;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #7b3903;
}

/* Shop Hero Banner */
.hero-img2 {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: brightness(65%);
}

.shop-hero h1 {
  font-size: 2.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
}

/* Toggle Buttons */
.toggle-buttons {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  gap: 1rem;
}

.toggle-buttons button {
  padding: 10px 20px;
  border: 1px solid #7b3903;
  background-color: white;
  color: #7b3903;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.toggle-buttons button.active,
.toggle-buttons button:hover {
  background-color: #7b3903;
  color: white;
}

/* Product Sections */

  .product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  width: 360px; /* Set a fixed width */
  height: 470px; /* Set a fixed height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 340px;       /* Fixed height */
  object-fit: cover;   /* Crops while preserving aspect ratio */
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-card {
  text-decoration: none;       /* Removes underline */
  color: #111;                 /* Default text color */
  font-family: 'Segoe UI', sans-serif;  /* Clean modern font */
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.02);      /* Optional: subtle zoom on hover */
}

.product-card p {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 1rem;
  color: #333;
  text-align: center;
}

/* General Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Top Strip */
.top-strip {
  background-color: #7b3903;
  height: 20px;
}

/* Navbar */
.navbar {
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-form input[type="text"] {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-form button {
  padding: 5px 10px;
  background-color: #7b3903;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cart-icon {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
}

/* Carousel Container Shared */
.carousel-section {
  margin: 3rem auto;
  max-width: 900px;
  text-align: center;
}

.carousel-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #7b3903;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.carousel-section {
  padding: 20px;
  background: #fff;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

button.prev,
button.next {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.selection-dots {
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

/* =======================
   Product page (scoped)
   ======================= */

:root{
  --brand: #7b3903;
  --brand-600: #5e2d02;
  --ink: #111;
  --muted: #737373;
  --card: #ffffff;
  --ring: rgba(0,0,0,.08);
}

/* container */
.product-page{
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem 1rem 4rem;
  color: var(--ink);
}

/* --- hero layout: image left, info right --- */
.product-hero{
  display: grid;
  grid-template-columns: minmax(400px, 58%) 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-block: 1rem 2.5rem;
}

/* nudge the media a bit left without hugging the edge */
.product-media{
  justify-self: start;
}

/* product info (right side) */
.product-info .product-title{
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  line-height: 1.2;
  margin: .25rem 0 .5rem;
}
.product-info .price{
  font-weight: 700;
  color: var(--brand);
  font-size: 1.25rem;
  margin: .25rem 0 .25rem;
}
.product-info .sku{
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.product-desc{
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--ring);
  padding: 1rem 1.25rem;
}
.product-desc ul{
  margin: .5rem 0 0 1.1rem;
}

/* --- carousel card --- */
.carousel{
  position: relative;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 28px var(--ring);
  padding: 1rem;
  display: grid;
  place-items: center;
}
.carousel img.carousel-image{
  max-width: min(100%, 860px);
  height: clamp(340px, 55vh, 540px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* arrows */
.carousel .prev,
.carousel .next{
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  box-shadow: 0 6px 16px var(--ring);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.carousel .prev{ left: .5rem; }
.carousel .next{ right: .5rem; }
.carousel .prev:hover,
.carousel .next:hover{ background: #fff; }

/* dots */
.selection-dots{
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.selection-dots .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #d4d4d4;
  border: none;
  cursor: pointer;
}
.selection-dots .dot.active{ background: var(--brand); }

/* section headings */
.carousel-section{
  margin-block: 2.25rem;
}
.carousel-section > h2{
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}

/* color chips */
.option-row{
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.chip{
  border: 1px solid #e5e5e5;
  background: #fff;
  color: var(--ink);
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .95rem;
}
.chip:hover{ border-color: #d4d4d4; }
.chip.active{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* uploader */
.uploader{
  margin-top: 2rem;
}
.uploader .muted{ color: var(--muted); font-size: .9rem; }
.upload-box{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
}
.preview-wrap{
  margin-top: 1rem;
  background: var(--card);
  padding: .75rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--ring);
  max-width: 520px;
}
.preview-wrap img{
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* buttons */
.btn{
  appearance: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: var(--ink);
  padding: .65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn.outline:hover{ border-color: #cfcfcf; }
.btn.primary{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn.primary:hover{ background: var(--brand-600); }

.add-to-cart-row{
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
#addToCartBtn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

/* helpers */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* responsive */
@media (max-width: 980px){
  .product-hero{
    grid-template-columns: 1fr;
  }
  .add-to-cart-row{
    justify-content: center;
  }
  .carousel img.carousel-image{
    height: clamp(300px, 46vh, 480px);
  }
}

/* ensure arrows are clickable above the image */
.carousel { position: relative; }
.carousel .prev, .carousel .next {
  position: absolute;
  z-index: 5;          /* <-- important */
}
.carousel img.carousel-image {
  position: relative;
  z-index: 1;
  pointer-events: none; /* image won't eat clicks */
}

.carousel { position: relative; overflow: visible; }
.carousel .prev, .carousel .next { position: absolute; z-index: 10; }
.carousel img.carousel-image { position: relative; z-index: 1; pointer-events: none; }

/* Keep the logo inside the brown footer on small screens */
.footer { 
  overflow: hidden;           /* don't let children spill out */
}

/* If your logo is an <img> inside .footer-left */
.footer-left img {
  display: block;
  max-width: clamp(160px, 60vw, 320px); /* responsive cap */
  height: auto;
}

/* Mobile layout for the footer */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;   /* stack logo and text */
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  .footer-left,
  .footer-right {
    max-width: none;          /* let them use full width */
    width: 100%;
  }
  .footer-left img {
    margin: 0 auto 1rem;      /* center the logo */
    max-width: 70vw;          /* keep it well inside the brown area */
  }
}

@media (max-width: 768px) {
  .footer-left .logo-text {
    font-size: clamp(22px, 8vw, 36px);
    line-height: 1.1;
    white-space: nowrap;      /* or remove if you want wrapping */
  }
}

/* =========================
   Mobile & Tablet Fixes
   ========================= */

/* Medium screens (tablets) */
@media (max-width: 1024px) {
  .product-page { padding: 1.25rem; }
  .product-hero { gap: 1.5rem; }
  .product-info .product-desc p { font-size: 1rem; }
}

/* Phones */
@media (max-width: 768px) {
  /* General rhythm */
  body { line-height: 1.5; }
  .top-strip { padding: .5rem 0; }
  .navbar { padding: .6rem 1rem; gap: .75rem; }

  /* Product hero: stack vertically, center image */
  .product-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
    margin: 0 auto;
    max-width: 640px;
  }

  .product-media,
  .product-info {
    margin: 0 auto;
    max-width: 520px;
    width: 100%;
  }

  /* Image/carousel sizing */
  .carousel { position: relative; }
  .carousel img.carousel-image {
    width: 100%;
    height: auto;
    max-height: 360px;       /* prevents super-tall images */
    object-fit: contain;     /* no cropping on mobile */
    display: block;
    margin-inline: auto;
  }

  .carousel .prev,
  .carousel .next {
    top: 50%;
    transform: translateY(-50%);
  }

  /* Info: center headline/price, keep bullets readable */
  .product-title { font-size: 1.65rem; }
  .price { font-size: 1.25rem; margin: .25rem 0 .5rem; }
  .sku { font-size: .9rem; color: #666; }

  .product-info { text-align: center; }
  .product-info .product-desc { margin-top: .75rem; }
  .product-info .product-desc ul {
    display: inline-block;   /* keeps bullets left‑aligned */
    text-align: left;
    margin: .5rem auto 0;
    padding-left: 1rem;
  }

  /* Section paddings */
  .carousel-section,
  .uploader,
  .size-section { padding: 1.25rem 0; }

  /* Buttons full width on small screens */
  .btn,
  .chip,
  .option-row .chip-color {
    width: 100%;
    justify-content: center;
    margin: .35rem 0;
  }

  /* Dots touch targets a bit larger */
  .selection-dots .dot { width: 10px; height: 10px; }

  /* Size cards (if you added the size chooser) */
  .size-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .size-card img {
    height: 200px;
    object-fit: cover;
  }

  /* “Customize”/Quick‑ship section on home page */
  .centered-section .content-wrapper,
  .process-content,
  .customize-content {
    flex-direction: column;
    align-items: center;
    text-align: left;            /* copy stays left aligned */
  }
  .content-wrapper img {
    width: 70vw;
    max-width: 320px;
    margin: 1rem auto 0;
  }
}

/* Checkout page layout */
.checkout-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.checkout-container h1 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #7b3903; /* your brown theme color */
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: #7b3903;
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 57, 3, 0.2);
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.25rem;
}

.btn-submit {
  background-color: #7b3903;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #622e02;
}

@media (max-width: 600px) {
  .checkout-container {
    padding: 1rem;
  }
}

/* Limit size selection images */
.size-card img {
  max-width: 450px;   /* scale down width */
  height: auto;       /* keep proportions */
  display: block;
  margin: 0 auto;     /* center them */
}
