/* ================= Base ================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f5f0;
  color: #333;
}

main {
  padding: 2rem;
}

h2 {
  color: #3c2f2f;
}
/* Featured section layout */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Force featured images to be same size */
.featured .cigar-card img {
  width: 100%;
  height: 220px;      /* change this height if you want */
  object-fit: cover;  /* crops to keep uniform size */
  border-radius: 6px;
  display: block;
}
.featured .cigar-card {
	display: flex;
	flex-direction: column;
	}

/* ================= Header / Nav ================= */
.site-header {
  background-color: #2b1d14;
  color: #fff;
}

.banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e6c07b;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #e6c07b;
  left: 0;
  bottom: -6px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ================= Search ================= */
.search-bar {
  max-width: 1200px;
  margin: 0 auto 0.75rem;
  padding: 0 2rem;
}

.search-bar label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.35rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* ================= Filters ================= */
.filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0.5rem;
}

.filter-bar {
  margin-top: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.12);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}

.filter-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.35rem;
}

.filter-group select {
  width: 100%;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  appearance: none;
}

.filter-reset {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  background: #2b1d14;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.filter-reset:hover {
  opacity: 0.9;
}

.filter-count {
  max-width: 1200px;
  margin: 0.75rem auto 0;
  padding: 0 2rem;
  opacity: 0.85;
}

/* ================= Inventory Grid ================= */
.inventory-grid {
  max-width: 1200px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

.cigar-tile {
  border: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.cigar-tile:hover {
  transform: translateY(-3px);
}

.cigar-tile img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.tile-text {
  padding: 0.9rem;
}

.tile-text span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ================= Modal ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-content {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.modal-gallery img {
  width: 100%;
  border-radius: 10px;
}

.modal-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
}

.modal-thumbs img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.modal-thumbs img:hover {
  border-color: #e6c07b;
}

/* ================= Footer ================= */
footer {
  background-color: #3c2f2f;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-thumbs img {
    width: 80px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    gap: 1.5rem;
  }
}
/* ==============================
   Contact / Order Form Enhancements
   ============================== */

.contact-form hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* Toggle radios */
.contact-form input[type="radio"] {
  margin-right: 6px;
}

/* Order search */
#orderSearch {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* Inventory list container */
#orderList {
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
}

/* Individual order row */
#orderList > div {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 0.6rem;
  border-bottom: 1px solid #f0f0f0;
}

#orderList > div:last-child {
  border-bottom: none;
}

/* Item name */
#orderList strong {
  color: #3c2f2f;
}

/* Item meta */
#orderList small {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Quantity input */
#orderList input[type="number"] {
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 0.95rem;
  text-align: center;
}

/* Order summary */
#orderSummary {
  margin-top: 0.75rem;
  font-weight: bold;
  color: #2b1d14;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #orderList > div {
    grid-template-columns: 1fr;
  }

  #orderList input[type="number"] {
    max-width: 120px;
  }
}
.lineSubtotal {
  font-weight: bold;
  color: #2b1d14;
}
.portal-box {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.portal-box h2 {
  margin-top: 0;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  padding: .75rem;
  border-bottom: 1px solid #eee;
}

.status-pill {
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: bold;
}

.status-pending { background:#ffeeba; }
.status-ready { background:#c3e6cb; }
.status-completed { background:#d4edda; }
.status-cancelled { background:#f5c6cb; }

.customer-portal {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.portal-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #2b1d14;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
}

.portal-button:hover {
  opacity: 0.9;
}


