/* ======================================
   JOURNAL — Global Layout
   ====================================== */

.journal-hero {
  padding: 80px 0 60px;
  background: #f8f4ef;
  text-align: center;
}

.journal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  color: #3f2b1f;
  margin-bottom: 14px;
}

.journal-hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: #6d5747;
  font-size: 20px;
  line-height: 1.6;
}

/* ======================================
   Search Bar
   ====================================== */

.journal-search-wrap {
  margin-top: 32px;
  margin-bottom: 14px;
}

.journal-search-box {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

#journalSearchInput {
  width: 100%;
  padding: 14px 50px 14px 18px;
  border: 1px solid #e4dcd2;
  border-radius: 8px;
  font-size: 16px;
  color: #3f2b1f;
  background: #fffdf9;
  font-family: 'Poppins', sans-serif;
}

#journalSearchInput::placeholder {
  color: #9b897c;
}

#journalSearchInput:focus {
  outline: none;
  border-color: #c8b39c;
  box-shadow: 0 0 0 2px rgba(200, 179, 156, 0.2);
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.75;
}

/* ======================================
   Category Filters
   ====================================== */

.journal-filters {
  margin: 30px auto 36px;
  text-align: center;
}

.filter-btn {
  font-family: 'Poppins', sans-serif;
  background: #f6f0ea;
  border: 1px solid #e1d6ca;
  padding: 7px 16px;
  border-radius: 20px;
  margin: 4px 6px;
  cursor: pointer;
  color: #6d5747;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  background: #ecdccf;
}

.filter-btn.active {
  background: #d1b79a;
  border-color: #d1b79a;
  color: #fff;
}

/* ======================================
   Featured Article List
   ====================================== */

.journal-featured {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 60px;
  align-items: center;
}

.featured-image {
  flex: 1 1 520px;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  background-color: #e6ded4;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1 1 420px;
}

.featured-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #3f2b1f;
  margin: 8px 0 16px;
  line-height: 1.25;
}

.featured-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: #6d5747;
  margin-bottom: 18px;
}

.featured-content .article-meta {
  font-size: 14px;
  color: #9b897c;
  letter-spacing: 0.3px;
}

.featured-content a {
  font-size: 16px;
  color: #b89245;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.featured-content a:hover {
  opacity: 0.8;
}

/* ======================================
   No Results Message
   ====================================== */

.no-results-message {
  text-align: center;
  padding: 8px 0 56px;
}

.no-results-message p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  color: #6d5747;
  opacity: 0.9;
  margin: 0;
}

/* ======================================
   Optional Journal Grid
   Kept only if reused later
   ====================================== */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  padding-bottom: 80px;
}

.journal-card {
  background: #fff;
  border: 1px solid #eee5db;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.journal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.card-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  background-color: #efe7dd;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  padding: 14px 18px 0 18px;
  font-size: 13px;
  color: #9b897c;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #3f2b1f;
  padding: 6px 18px;
  line-height: 1.3;
}

.card-excerpt {
  padding: 0 18px 20px 18px;
  color: #6d5747;
  font-size: 15px;
  line-height: 1.55;
}

/* ======================================
   ARTICLE PAGE (journal/{slug}.html)
   ====================================== */

.article-hero {
  height: 380px;
  background-size: cover;
  background-position: center;
  background-color: #e8dfd5;
  border-radius: 14px;
  margin-bottom: 40px;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  color: #3f2b1f;
  font-size: 42px;
  margin-bottom: 14px;
}

.article-header .article-meta {
  font-size: 15px;
  color: #9b897c;
  margin-bottom: 10px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: #4e392b;
  padding-bottom: 80px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2,
.article-body h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #3f2b1f;
}

/* ======================================
   CTA at bottom of article
   ====================================== */

.article-cta {
  margin-top: 60px;
  padding: 40px;
  text-align: center;
  background: #f8f4ef;
  border-radius: 14px;
}

.article-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 14px;
  color: #3f2b1f;
}

.article-cta p {
  color: #6d5747;
  font-size: 17px;
  margin-bottom: 18px;
}

.article-cta a {
  display: inline-block;
  padding: 12px 22px;
  background: #b89245;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

/* ======================================
   Responsive
   ====================================== */

@media (max-width: 900px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journal-featured {
    flex-direction: column;
    gap: 22px;
  }

  .featured-image {
    width: 100%;
    height: 260px;
  }

  .journal-hero h1 {
    font-size: 44px;
  }

  .featured-title {
    font-size: 28px;
  }

  .journal-hero-subtitle {
    font-size: 18px;
  }
}

/* ======================================
   JOURNAL CART DRAWER
   ====================================== */

.df-cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:10000;
}

.df-cart-drawer{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  max-width:480px;
  height:100%;
  background:#f8f4ef;
  box-shadow:0 0 40px rgba(0,0,0,0.16);
  transform:translateX(-100%);
  transition:transform .25s ease;
  z-index:10001;
  display:flex;
  flex-direction:column;
}

.df-cart-drawer-header{
  padding:18px 20px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:"Cormorant Garamond", Georgia, serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:14px;
  color:#3a2e26;
}

.df-cart-drawer-close{
  background:none;
  border:0;
  font-size:20px;
  cursor:pointer;
}

.df-cart-drawer-body{
  padding:26px 22px;
  flex:1;
  overflow-y:auto;
  font-family:Georgia, "Times New Roman", serif;
  color:#3a2e26;
}

.df-cart-empty{
  text-align:center;
  margin-top:40px;
}

.df-cart-empty-title{
  font-size:18px;
  margin-bottom:40px;
}

.df-cart-empty-circle{
  width:90px;
  height:90px;
  border-radius:999px;
  margin:0 auto 18px;
  background:#f0e7dc;
  display:flex;
  align-items:center;
  justify-content:center;
}

.df-cart-empty-circle svg{
  width:26px;
  height:26px;
  opacity:.5;
}

.df-cart-empty-cta{
  font-family:"Poppins", sans-serif;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#3a2e26;
}

.df-cart-items{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.df-cart-item{
  padding:16px 0;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.df-cart-item-main{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:8px;
}

.df-cart-item-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.df-cart-item-title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:20px;
  color:#2d231a;
  margin:0;
}

.df-cart-item-price{
  font-family:"Poppins", sans-serif;
  font-size:14px;
  color:rgba(45,35,26,0.82);
}

.df-cart-item-remove{
  background:none;
  border:0;
  cursor:pointer;
  padding:4px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.df-trash-icon{
  width:18px;
  height:18px;
  display:block;
  flex-shrink:0;
}

.df-cart-item-controls{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:"Poppins", sans-serif;
  font-size:14px;
}

.df-cart-qty-box{
  display:inline-flex;
  align-items:center;
  border-radius:6px;
  border:1px solid rgba(148,122,92,0.45);
  background:#f7f4ee;
  overflow:hidden;
}

.df-cart-qty-btn{
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  color:#2d231a;
}

.df-cart-qty{
  min-width:32px;
  text-align:center;
  font-weight:600;
  font-family:"Poppins", sans-serif;
}

.df-cart-item-line{
  margin-left:auto;
  font-weight:600;
  color:#2d231a;
  font-family:"Poppins", sans-serif;
}

.df-cart-drawer-footer{
  padding:14px 18px 18px;
  border-top:1px solid rgba(0,0,0,0.06);
}

.df-cart-summary-line{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  font-family:"Poppins", sans-serif;
  font-size:14px;
}

.df-cart-checkout-btn{
  width:100%;
  border-radius:999px;
  border:0;
  padding:12px 18px;
  background:#b89245;
  color:#fff;
  font-family:"Poppins", sans-serif;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
}

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

body.df-cart-open .df-cart-drawer{
  transform:translateX(0);
}

body.df-cart-open{
  overflow:hidden;
}

@media (max-width: 900px){
  header .nav{
    position:relative;
  }

  header .df-cart-trigger{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid rgba(184,146,69,0.35);
    background:rgba(248,244,238,0.92);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    cursor:pointer;
    z-index:20;
  }

  header .df-cart-trigger svg{
    width:20px;
    height:20px;
  }
}

@media (min-width: 901px){
  header .nav{
    position:relative;
  }

  header .df-cart-trigger{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:38px;
    height:38px;
    padding:0;
    margin-left:10px;
    border:1px solid rgba(184,146,69,0.35);
    border-radius:999px;
    background:rgba(248,244,238,0.92);
    cursor:pointer;
  }

  header .df-cart-trigger svg{
    width:20px;
    height:20px;
    display:block;
  }

  .df-cart-drawer{
    left:auto;
    right:0;
    transform:translateX(100%);
    max-width:420px;
  }

  body.df-cart-open .df-cart-drawer{
    transform:translateX(0);
  }
}


/* =========================================================
   JOURNAL MENU CLOSE — COMPLETE FIX
   ========================================================= */
.menu-close{
  display:none;
}

.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(46,36,29,0.16);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9997;
}

.menu-overlay.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 900px){
  #primary-nav{
    position: fixed !important;
    padding-top: 72px !important;
    z-index: 9998 !important;
  }

  body > header{
    z-index: 9999 !important;
  }

  #primary-nav .menu-close{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(184,146,69,0.28) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.42) !important;
    color: #b89245 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10000 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
}


/* =========================================================
   JOURNAL CART CLOSE — MATCH GLOBAL MENU CLOSE
   ========================================================= */
.df-cart-drawer-close{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:40px !important;
  height:40px !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(184,146,69,0.35) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,0.42) !important;
  color:#b89245 !important;
  font-family:"Cormorant Garamond", Georgia, serif !important;
  font-size:28px !important;
  line-height:1 !important;
  cursor:pointer !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

.df-cart-drawer-close:hover{
  background:rgba(255,255,255,0.62) !important;
}

.df-cart-drawer-close:active{
  transform:scale(0.96) !important;
}
