/* ==========================================================================
   KREME Coffee Shop - Modern Premium Styling
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
  --bg-outer: #eae1cc;          /* Outer border/frame background */
  --bg-section: #f5efe0;        /* Main section background */
  --bg-color: var(--bg-section);
  --bg-card: #faf8f5;           /* Soft Warm White */
  --text-color: #043927;        /* Forest Green */
  --text-muted: #4e6358;        /* Soft Sage Green */
  --primary-accent: #043927;    /* Forest Green Primary */
  --secondary-accent: #c97a48;  /* Terracotta Accent */
  --border-color: rgba(4, 57, 39, 0.15);
  --border-focus: rgba(4, 57, 39, 0.4);
  --white: #ffffff;
  
  /* Fonts */
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout Spacing */
  --section-padding: 100px 0;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(4, 57, 39, 0.04);
  --shadow-md: 0 12px 32px rgba(4, 57, 39, 0.06);
  --shadow-lg: 0 24px 64px rgba(4, 57, 39, 0.1);
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-outer);
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding: 24px; /* Frame padding */
}

/* Base Card layouts for sections */
section, footer {
  background-color: var(--bg-section);
  border-radius: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  section, footer {
    border-radius: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 12px;
  }
  section, footer {
    border-radius: 12px;
    margin-bottom: 12px;
  }
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--text-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: normal;
  display: none; /* Hidden on mobile/touch, enabled in JS on desktop mousemove */
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: rgba(4, 57, 39, 0.08);
  border-color: var(--text-color);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: normal;
  line-height: 1.1;
}

p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- UI Utilities --- */
.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .section-container {
    padding: 0 20px;
  }
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-slow);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 48px;
  left: 24px;
  width: calc(100% - 48px);
  z-index: 1000;
  pointer-events: none; /* allow clicks through container, enabled on children */
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  .header {
    top: 32px;
    left: 16px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 576px) {
  .header {
    top: 24px;
    left: 12px;
    width: calc(100% - 24px);
  }
}

.logo-link,
.nav-capsule,
.header-right {
  pointer-events: auto;
}

/* Left Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.logo-icon {
  width: 18px;
  height: 18px;
  color: var(--text-color);
  animation: logoSpin 12s linear infinite;
}

@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Central Capsule Navigation */
.nav-capsule {
  display: flex;
  align-items: center;
  background-color: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--secondary-accent);
}

.nav-link.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

@media (max-width: 992px) {
  .nav-capsule {
    display: none; /* We can toggle a mobile drawer, or simplify for mobile */
  }
}

/* Right Header Utilities */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  font-size: 0.9rem;
  font-weight: 600;
  background-color: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
}

.phone-link:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.cart-btn:hover .cart-count-badge {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 50%;
  transition: var(--transition);
}

@media (max-width: 576px) {
  .phone-link {
    display: none;
  }
  .cart-label {
    display: none;
  }
  .cart-btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .cart-count-badge {
    min-width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 20vw;
  line-height: 0.85;
  text-align: center;
  color: var(--text-color);
  user-select: none;
  letter-spacing: -0.02em;
  margin: auto 0;
  text-transform: uppercase;
  animation: heroTitleFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes heroTitleFade {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.hero-footer-left p,
.hero-footer-right p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.5;
}

.hero-footer-left {
  max-width: 350px;
  text-align: left;
}

.hero-footer-right {
  text-align: right;
}

@media (max-width: 768px) {
  .hero-container {
    padding: 0 20px;
  }
  .hero-title {
    font-size: 24vw;
  }
  .hero-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-bottom: 24px;
  }
  .hero-footer-left,
  .hero-footer-right {
    text-align: center;
    max-width: 100%;
  }
  .hero-footer-right p {
    text-align: center;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.05);
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text {
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-wrapper {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 576px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-section {
  padding: var(--section-padding);
  background-color: rgba(4, 57, 39, 0.02); /* Subtle contrast */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.menu-tab-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-tab-btn:hover {
  background-color: rgba(4, 57, 39, 0.05);
  border-color: var(--text-color);
}

.menu-tab-btn.active {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.menu-item-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.menu-item-img-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #eee;
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.menu-item-card:hover .menu-item-img {
  transform: scale(1.06);
}

/* Fallback aesthetics for tea/brunch lacking photos */
.menu-item-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tea-gradient {
  background: linear-gradient(135deg, #1b4d3e 0%, #a2c4b9 100%);
}

.tea-gradient-red {
  background: linear-gradient(135deg, #78293a 0%, #d49da6 100%);
}

.brunch-gradient {
  background: linear-gradient(135deg, #87713d 0%, #d9ccb0 100%);
}

.brunch-gradient-sweet {
  background: linear-gradient(135deg, #a66a38 0%, #e0c8b6 100%);
}

.menu-item-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.menu-item-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.menu-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.menu-item-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-accent);
}

.menu-item-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Shop Section (E-Commerce Products)
   ========================================================================== */
.shop-section {
  padding: var(--section-padding);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  position: relative;
  height: 280px;
  background-color: #eee;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(245, 239, 224, 0.4);
}

.merch-gradient {
  background: linear-gradient(135deg, #103c2e 0%, #528c7c 100%);
}

.kit-gradient {
  background: linear-gradient(135deg, #b27346 0%, #dec1a9 100%);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.product-options label {
  font-weight: 600;
  color: var(--text-color);
}

.product-select {
  flex-grow: 1;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-select:focus {
  border-color: var(--text-color);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
}

.add-to-cart-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white);
}

.add-to-cart-btn.added {
  background-color: #3b7a57 !important;
  border-color: #3b7a57 !important;
  color: var(--white) !important;
}

/* ==========================================================================
   Contact & Booking Section
   ========================================================================== */
.contact-section {
  padding: var(--section-padding);
  background-color: rgba(4, 57, 39, 0.02);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.contact-form-wrapper {
  background-color: var(--bg-card);
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-subtitle {
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(4, 57, 39, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(4, 57, 39, 0.05);
}

.form-select {
  cursor: pointer;
}

.submit-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: var(--secondary-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.submit-btn i {
  transition: transform 0.2s ease;
}

.submit-btn:hover i {
  transform: translateX(4px);
}

/* Info and Map Panel styling */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 350;
}

.hours-list li span:last-child {
  font-weight: 600;
}

.info-address {
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.info-address i {
  color: var(--secondary-accent);
}

/* Premium Map Mock */
.mock-map {
  height: 200px;
  background-color: #ebdcb2;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-image: 
    radial-gradient(rgba(4, 57, 39, 0.15) 1px, transparent 0),
    radial-gradient(rgba(4, 57, 39, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(4, 57, 39, 0.05);
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
  animation: pinFloat 2s ease-in-out infinite;
}

@keyframes pinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-icon-pin {
  width: 14px;
  height: 14px;
  color: var(--secondary-accent);
}

/* Social links styling */
.social-links-wrapper {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-4px);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ==========================================================================
   Shopping Cart Sidebar
   ========================================================================== */
.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 57, 39, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border-left: 1px solid var(--border-color);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
}

.cart-header-title h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.cart-header-title i {
  font-size: 1.3rem;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  background-color: rgba(4, 57, 39, 0.05);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px;
}

/* Empty cart state */
.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 20px;
}

.empty-icon {
  font-size: 3.5rem;
  color: rgba(4, 57, 39, 0.15);
}

.cart-empty-message p {
  font-size: 1.1rem;
  font-weight: 500;
}

.shop-now-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.shop-now-btn:hover {
  background-color: var(--secondary-accent);
  color: var(--white);
}

/* Cart Items list design */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(4, 57, 39, 0.08);
}

.cart-item-img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #eee;
  flex-shrink: 0;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.cart-item-option {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.quantity-controller {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 2px;
  background-color: var(--bg-color);
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: rgba(4, 57, 39, 0.1);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  width: 30px;
  text-align: center;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  margin-top: 4px;
  text-align: left;
  display: inline-block;
  align-self: flex-start;
}

.cart-item-remove-btn:hover {
  color: #a33b3b;
}

/* Cart Footer Details pricing */
.cart-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.price-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-line.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
}

.checkout-btn {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 16px 28px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.checkout-btn:hover {
  background-color: var(--secondary-accent);
  color: var(--white);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 57, 39, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  max-width: 480px;
  width: 90%;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #3b7a57;
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.order-summary-box {
  background-color: var(--bg-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid rgba(4, 57, 39, 0.08);
}

.summary-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(4, 57, 39, 0.1);
  padding-bottom: 4px;
}

.summary-items {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
}

.modal-close-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.modal-close-btn:hover {
  background-color: var(--secondary-accent);
  color: var(--white);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  animation: toastSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border: 1px solid var(--border-color);
  min-width: 260px;
}

@keyframes toastSlideIn {
  to { transform: translateX(0); }
}

.toast.removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes toastSlideOut {
  to { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-success .toast-icon {
  color: #a2c4b9;
}

.toast-warning .toast-icon {
  color: var(--secondary-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 40px 0;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.75;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: 80px 24px;
  background-color: var(--text-color);
  color: var(--bg-outer);
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-badge {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--secondary-accent);
  text-transform: uppercase;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--bg-section);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(245, 239, 224, 0.8);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.cta-btn.primary {
  background-color: var(--secondary-accent);
  color: var(--white);
  border: 1px solid var(--secondary-accent);
}

.cta-btn.primary:hover {
  background-color: var(--white);
  color: var(--text-color);
  border-color: var(--white);
  transform: translateY(-3px);
}

.cta-btn.secondary {
  background-color: transparent;
  color: var(--bg-section);
  border: 1.5px solid rgba(245, 239, 224, 0.4);
}

.cta-btn.secondary:hover {
  background-color: rgba(245, 239, 224, 0.1);
  border-color: var(--bg-section);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
  .cta-section {
    padding: 60px 16px;
  }
}

/* ==========================================================================
   Coffee Bean Particle Trail Canvas
   ========================================================================== */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}
