/* Enlightenment Era Blends — Additional Styles */

:root {
  --gold: #d4af37;
  --brown: #2c2118;
  --cream: #f8f1e3;
  --accent: #8c6642;
}

body {
  font-feature-settings: "ss01", "ss02";
}

/* Elegant serif headings */
h1, h2, h3, .font-serif {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-feature-settings: "kern", "tnum";
}

/* Product cards */
.product-card {
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: white;
  border: 1px solid #e5d4a8;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.product-card img {
  transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.035);
}

/* Filter buttons */
.filter-btn {
  transition: all 0.1s ease;
  color: #8c6642;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #2c2118;
  color: #f8f1e3;
}

/* Modal polish */
#product-modal .rounded-3xl {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

/* Cart drawer item rows */
.cart-item {
  transition: opacity .15s ease;
}

/* Grind option pills */
.grind-option {
  border: 1px solid #d4af37;
  transition: all 0.1s ease;
  cursor: pointer;
}

.grind-option input {
  display: none;
}

.grind-option:has(input:checked) {
  background: #2c2118;
  color: #f8f1e3;
  border-color: #2c2118;
}

/* Form inputs */
input, select {
  transition: border-color .1s ease, box-shadow .1s ease;
}

input:focus, select:focus {
  border-color: #8c6642;
  box-shadow: 0 0 0 3px rgba(140, 102, 66, 0.1);
  outline: none;
}

/* Toast */
#toast {
  animation: toastPop 0.2s ease forwards;
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Nice scrollbar for cart / modals */
#cart-items::-webkit-scrollbar,
#checkout-items::-webkit-scrollbar {
  width: 5px;
}
#cart-items::-webkit-scrollbar-thumb,
#checkout-items::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 20px;
}

/* Subtle product badge */
.roast-badge {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 1px 9px;
  border-radius: 9999px;
  display: inline-block;
  font-weight: 600;
}

/* Make the Voltaire hero image more dramatic on smaller screens */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 3.25rem;
    line-height: .92;
  }
}

/* Small aesthetic touches */
.prose p {
  margin-bottom: 1.15em;
}

/* Fallback line clamp (Tailwind CDN doesn't ship the plugin) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Order confirmation */
#success-modal {
  animation: fadeInScale 0.2s ease forwards;
}

@keyframes fadeInScale {
  from { opacity: 0; }
  to { opacity: 1; }
}