/* ==========================================================
   AMMAS HOMEPAGE — ammas-homepage.css
   Upload to: child theme root directory
   ========================================================== */

/* ---- SHARED ---- */

.ammas-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e07b39;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---- COMBO SECTION ---- */

.ammas-combo-section {
  background: linear-gradient(160deg, #fdf6ec 0%, #fefaf5 55%, #f9f3ea 100%);
  padding: 68px 20px 72px;
}

.ammas-combo-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.ammas-combo-header {
  text-align: center;
  margin-bottom: 50px;
}

.ammas-combo-header h2 {
  font-size: 2.25rem;
  color: #1a3a15;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.ammas-combo-header p {
  font-size: 1rem;
  color: #777;
  max-width: 460px;
  margin: 0 auto;
}

/* Grid: featured left | list right */
.ammas-combo-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 60px;
}

/* Featured column */
.ammas-combo-featured {
  position: sticky;
  top: 88px;
}

.ammas-combo-featured-inner {
  text-align: center;
}

.ammas-featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e07b39, #c96b29);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(224,123,57,0.32);
  min-height: 26px;
}

#ammas-featured-img {
  display: block;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  transition: opacity 0.22s ease;
}

.ammas-featured-label {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a15;
}

.ammas-btn-outline {
  display: inline-block;
  margin-top: 14px;
  border: 2px solid #2d5a27;
  color: #2d5a27 !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ammas-btn-outline:hover {
  background: #2d5a27;
  color: #fff !important;
}

/* Pack list */
.ammas-combo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ammas-pack-card {
  background: #fff;
  border: 2px solid #ebebeb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.ammas-pack-card:hover {
  border-color: #e07b39;
  box-shadow: 0 4px 20px rgba(224,123,57,0.11);
}

.ammas-pack-card.is-active {
  border-color: #e07b39;
  background: linear-gradient(135deg, #fff9f4 0%, #fffcf9 100%);
  box-shadow: 0 4px 20px rgba(224,123,57,0.14);
}

.pack-inner {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #888;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.ammas-pack-card.is-active .pack-rank {
  background: #e07b39;
  color: #fff;
}

.pack-info {
  flex: 1;
  min-width: 0;
}

.pack-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 5px;
  line-height: 1.3;
}

.pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.pack-meta span {
  font-size: 0.7rem;
  background: #f4f4f4;
  color: #555;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.pack-meta .pack-bestfor {
  background: #eef6ee;
  color: #2d6e26;
}

.pack-contents {
  font-size: 0.72rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.pack-badge {
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fff3e0;
  color: #e07b39;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ammas-btn-cart {
  display: inline-block;
  background: #e07b39;
  color: #fff !important;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
  line-height: 1;
}

.ammas-btn-cart:hover {
  background: #c86a28;
  color: #fff !important;
}

/* Comparison table */
.ammas-comparison-wrap {
  border-top: 1px solid #eee;
  padding-top: 44px;
}

.ammas-comparison-wrap h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a15;
  margin-bottom: 20px;
}

.ammas-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}

.ammas-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.87rem;
  background: #fff;
}

.ammas-compare-table thead th {
  background: #1a3a15;
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ammas-compare-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #f2f2f2;
  color: #333;
}

.ammas-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.ammas-compare-table tbody tr:hover {
  background: #fff9f5;
}

.tbl-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #fff3e0;
  color: #e07b39;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.ammas-btn-sm {
  display: inline-block;
  background: #2d5a27;
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}

.ammas-btn-sm:hover {
  background: #1a3a15;
  color: #fff !important;
}

/* ---- PRODUCT RAILS ---- */

.ammas-rail-section {
  padding: 52px 20px;
  background: #fff;
}

.ammas-rail-section.ammas-rail-newarrivals {
  background: #fafaf8;
}

.ammas-rail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ammas-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ammas-rail-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a3a15;
  margin: 0;
  letter-spacing: -0.2px;
}

.ammas-rail-nav {
  display: flex;
  gap: 8px;
}

.ammas-rail-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, color 0.18s, opacity 0.18s;
  color: #555;
}

.ammas-rail-btn:hover {
  border-color: #e07b39;
  background: #e07b39;
  color: #fff;
}

/* Track */
.ammas-rail-wrapper {
  overflow: hidden;
}

.ammas-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  padding-bottom: 4px;
}

.ammas-rail-track::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* Rail card */
.ammas-rail-item {
  flex: 0 0 178px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ammas-rail-item:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.rail-img-link {
  display: block;
}

.rail-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

.rail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ammas-rail-item:hover .rail-img-wrap img {
  transform: scale(1.04);
}

.rail-body {
  padding: 10px 11px 12px;
}

.rail-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  color: #222 !important;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 5px;
  min-height: 2.1em;
}

.rail-title:hover {
  color: #e07b39 !important;
}

.rail-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a3a15;
  margin-bottom: 8px;
}

.rail-price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
}

.rail-atc {
  display: block;
  width: 100%;
  text-align: center;
  background: #e07b39;
  color: #fff !important;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
  box-sizing: border-box;
}

.rail-atc:hover {
  background: #c86a28;
  color: #fff !important;
}

.rail-oos {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: #bbb;
  font-style: italic;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .ammas-combo-layout {
    grid-template-columns: 1fr;
  }
  .ammas-combo-featured {
    position: static;
  }
  #ammas-featured-img {
    max-width: 360px;
  }
  .ammas-combo-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .ammas-combo-section {
    padding: 44px 16px 50px;
  }
  .ammas-combo-header h2 {
    font-size: 1.5rem;
  }
  .pack-contents {
    display: none;       /* hide on small screens to save space */
  }
  .ammas-rail-item {
    flex: 0 0 148px;
  }
  .ammas-rail-header h2 {
    font-size: 1.2rem;
  }
}
