/*
Theme Name: TrueMonk Coffee
Theme URI: https://truemonk.example
Author: TrueMonk
Author URI: https://truemonk.example
Description: WooCommerce-ready theme for TrueMonk Coffee, converted from the original static HTML/Bootstrap storefront design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: truemonk
Tags: e-commerce, woo-commerce, custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

:root{
  --coffee:#2b1810;
  --coffee-2:#4a2b1c;
  --cream:#f7efe4;
  --latte:#d6ad7b;
  --gold:#d99b45;
  --ink:#1f1713;
  --soft:#fbf7f2;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden;max-width:100%}
body{font-family:"DM Sans",sans-serif;color:var(--ink);background:#fff}
h1,h2,h3,.navbar-brand{font-family:"Playfair Display",serif}

/* ---------- Nav ---------- */
.tm-nav{background:rgba(32,18,12,.94);backdrop-filter:blur(12px);box-shadow:0 8px 30px rgba(0,0,0,.08)}
.tm-nav .navbar-brand{font-size:1.7rem}
.tm-nav .navbar-brand span,.accent{color:var(--gold)}
.custom-logo{max-height:44px;width:auto;display:block}
.nav-link{color:rgba(255,255,255,.82)!important}
.nav-link:hover{color:#fff!important}
.static-nav{position:static!important}

/* ---------- Hero ---------- */
.hero-section{
  min-height:100vh;
  position:relative;
  background:url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&w=1800&q=85") center/cover no-repeat;
}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,13,8,.94) 0%,rgba(25,13,8,.72) 48%,rgba(25,13,8,.18) 100%)}
.hero-section h1{line-height:1.02}
.hero-section h1 span{color:#f2bd72}
.eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.18em}
.eyebrow.dark{color:#8a5b34}
.btn-accent{background:var(--gold);border-color:var(--gold);color:#1c120d;font-weight:700}
.btn-accent:hover{background:#efb55f;border-color:#efb55f;color:#1c120d}
.hero-points>div{display:flex;flex-direction:column}
.hero-points strong{font-size:1.2rem}
.hero-points small{opacity:.65}
.trust-strip{background:var(--coffee);color:#f6e8d5;font-weight:600}
.bg-soft{background:var(--soft)}
.section-heading{max-width:650px}

/* Sparkle "burst" effect: particles fly in from both sides when the
   products section scrolls into view, then fade away — see js/app.js */
.sparkle-bg{position:relative;overflow:hidden}
.sparkle-bg>.container{position:relative;z-index:1}
.sparkle-burst-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.sparkle-burst-layer .spark{
  position:absolute;font-size:1.2rem;color:var(--gold);opacity:0;
  text-shadow:0 0 8px rgba(255,255,255,.6);
  animation:tm-spark-burst 2.4s ease-out forwards;
}
@keyframes tm-spark-burst{
  0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0deg)}
  18%{opacity:1}
  65%{opacity:1;transform:translate(var(--dx,0),var(--dy,0)) scale(1.15) rotate(200deg)}
  100%{opacity:0;transform:translate(var(--dx,0),var(--dy,0)) scale(.6) rotate(260deg)}
}
.section-heading h2{font-size:clamp(2rem,4vw,3.2rem);margin-top:.4rem}

/* ---------- Product cards (WooCommerce loop) ---------- */
.woocommerce ul.products{display:flex!important;flex-wrap:wrap;margin:0 -.75rem!important;list-style:none;padding:0}
.woocommerce ul.products li.product{
  width:calc(25% - 1.5rem)!important;margin:0 .75rem 2rem!important;float:none;
  border:0;border-radius:24px;overflow:hidden;box-shadow:0 12px 35px rgba(55,32,21,.08);
  transition:.3s;background:#fff;padding:0;position:relative;
}
.woocommerce ul.products li.product:hover{transform:translateY(-7px);box-shadow:0 20px 50px rgba(55,32,21,.14)}



/*@media (max-width:991px){.woocommerce ul.products li.product{width:calc(50% - 1.5rem)!important}} */
/* @media (max-width:575px){.woocommerce ul.products li.product{width:calc(100% - 1.5rem)!important}} */


@media (max-width:991px){
  .woocommerce ul.products li.product{width:calc(50% - 1.5rem)!important}
}

/* Mobile: horizontal swipeable product row instead of stacked cards */
@media (max-width:767.98px){
  .woocommerce ul.products{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    scroll-padding-left:1rem;
    margin:0!important;
    padding:.25rem 1rem 1rem!important;
    gap:0;
    scrollbar-width:none;
  }
  .woocommerce ul.products::-webkit-scrollbar{display:none}
  .woocommerce ul.products li.product{
    flex:0 0 auto!important;
    width:75vw!important;
    max-width:300px;
    margin:0 .9rem 0 0!important;
    scroll-snap-align:start;
  }
  .woocommerce ul.products li.product:last-child{margin-right:0!important}
}



.woocommerce ul.products li.product .product-img-wrap{position:relative;background:#f2e8dc;overflow:hidden}

/* Scroll-in twinkling sparkles on product card images (see content-product.php) */
.card-sparkle{
  position:absolute;z-index:3;pointer-events:none;font-size:1.05rem;line-height:1;
  color:var(--gold);text-shadow:0 0 6px rgba(255,255,255,.7);
  animation:tm-sparkle-twinkle 2.4s ease-in-out infinite;
}
.spark-1{top:16px;right:18px;animation-delay:.1s}
.spark-2{bottom:16px;left:16px;font-size:.8rem;animation-delay:.9s}
.spark-3{top:40%;right:14%;font-size:.7rem;animation-delay:1.5s}

@keyframes tm-sparkle-twinkle{
  0%,100%{opacity:.2;transform:scale(.6) rotate(0deg)}
  50%{opacity:1;transform:scale(1.2) rotate(20deg)}
}
.woocommerce ul.products li.product img{width:100%;height:280px;object-fit:cover;transition:.4s;display:block}
.woocommerce ul.products li.product:hover img{transform:scale(1.04)}
.woocommerce ul.products li.product .card-body{padding:1.4rem}
.woocommerce ul.products li.product h5,
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.2rem;font-weight:700;margin:.6rem 0 .3rem}

.woocommerce span.onsale,
.product-badge{
  position:absolute;top:16px;left:16px;background:var(--coffee);color:#fff;
  padding:7px 12px;border-radius:999px;font-size:.72rem;font-weight:700;
  min-height:0;min-width:0;line-height:1;margin:0;z-index:2;text-transform:uppercase;
}

.woocommerce ul.products li.product .price{font-size:1.25rem;font-weight:800;color:var(--coffee)}
.woocommerce ul.products li.product .price del{text-decoration:line-through;color:#999;font-size:.9rem;font-weight:400;opacity:1}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.rating{color:#db9d3b;font-size:.9rem}
.woocommerce .star-rating{color:#db9d3b;font-size:.9rem}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button{
  background:var(--ink);color:#fff;border:0;border-radius:999px;width:100%;
  padding:.85rem 1.25rem;font-weight:600; text-align: center;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{background:var(--coffee);color:#fff}

/* ---------- Offer section ---------- */
.offer-section{background:#fff}
.offer-card{background:var(--cream);border:1px dashed #c79864}
.coupon{background:#fff;border:1px solid #d7c0a7;border-radius:12px;padding:10px 14px;font-weight:800;letter-spacing:.08em}

/* ---------- Story / feature boxes ---------- */
.story-section{background:linear-gradient(135deg,#23130d,#4a291a)}
.feature-box{height:100%;padding:1.4rem;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}
.feature-box:first-letter{font-size:1.7rem}
.feature-box h5{margin-top:.65rem}
.feature-box p{font-size:.9rem;opacity:.65;margin:0}

/* ---------- Testimonials ---------- */
.review-card{padding:1.8rem;border-radius:20px;background:#fff;border:1px solid #eee2d5;box-shadow:0 10px 30px rgba(0,0,0,.04);height:100%}
.stars{color:#d79534;letter-spacing:.08em;margin-bottom:1rem}

/* ---------- Watch & Shop video panel ---------- */
.video-shop-section{background:linear-gradient(135deg,#23130d,#4a291a)}
.video-card{
  background:rgba(247,239,228,.06);border:1px solid rgba(217,155,69,.22);
  border-radius:22px;overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  transition:transform .3s ease, box-shadow .3s ease;
}
.video-card:hover{transform:translateY(-6px);box-shadow:0 24px 55px rgba(0,0,0,.4)}
.video-card-media{position:relative;width:100%;aspect-ratio:9/16;background:#000;overflow:hidden}
.tm-reel-video{width:100%;height:100%;object-fit:cover;display:block}
.video-mute-btn{
  position:absolute;top:12px;right:12px;z-index:2;width:34px;height:34px;
  border:none;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;
  font-size:.95rem;display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.video-card-product{padding:1rem}
.video-product-row{display:flex;align-items:center;gap:.6rem;margin-bottom:.85rem}
.video-product-row img{width:42px;height:42px;border-radius:10px;object-fit:cover;flex:none}
.video-product-info{display:flex;flex-direction:column;min-width:0;flex:1}
.video-product-name{color:#fff;font-size:.86rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-product-price{color:var(--gold);font-size:.82rem;font-weight:700}
.video-add-btn{
  flex:none;width:32px;height:32px;border-radius:50%;background:var(--gold);color:#1c120d;
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800;
  text-decoration:none;line-height:1;
}
.video-add-btn:hover{background:#efb55f;color:#1c120d}
.video-add-btn.loading{opacity:.6;pointer-events:none}
.video-add-btn.added::after{content:"✓";font-size:1rem}
.video-buy-btn{
  display:block;text-align:center;background:#fff;color:var(--ink);
  border-radius:999px;padding:.6rem 1rem;font-weight:700;font-size:.88rem;
  text-decoration:none;transition:background .2s ease, color .2s ease;
}
.video-buy-btn:hover{background:var(--gold);color:#1c120d}

/* Mobile: horizontal swipeable video row, same pattern as the product grid */
@media (max-width:767.98px){
  .video-shop-row{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    scroll-padding-left:1rem;
    margin:0!important;
    padding:.25rem 1rem 1rem!important;
    gap:0;
    scrollbar-width:none;
  }
  .video-shop-row::-webkit-scrollbar{display:none}
  .video-shop-row>[class*="col-"]{
    flex:0 0 auto!important;
    width:62vw!important;
    max-width:250px;
    margin:0 .9rem 0 0!important;
    scroll-snap-align:start;
  }
  .video-shop-row>[class*="col-"]:last-child{margin-right:0!important}
}

/* ---------- Contact ---------- */
.contact-section{background:var(--cream)}
.form-control{border-radius:12px;padding:.85rem 1rem;border:1px solid #dfd7ce}
.form-control:focus{border-color:#b7824b;box-shadow:0 0 0 .2rem rgba(183,130,75,.12)}

/* ---------- Footer ---------- */
.footer{background:#170d09}
.footer a{display:block;color:rgba(255,255,255,.65);text-decoration:none;margin:.55rem 0}
.footer a:hover{color:#fff}
.footer-widget ul{list-style:none;padding:0;margin:0}
.footer-widget a{display:block;color:rgba(255,255,255,.65);text-decoration:none;margin:.55rem 0}

/* ---------- Cart bubble + mini-cart offcanvas ---------- */
.cart-count{position:absolute;top:-8px;right:-8px}
.toast-box{position:fixed;right:20px;bottom:20px;z-index:2000}
.tm-toast{background:#20110b;color:#fff;padding:12px 18px;border-radius:14px;margin-top:8px;box-shadow:0 15px 40px rgba(0,0,0,.25)}

.widget_shopping_cart .cart_list{list-style:none;margin:0;padding:0}
.widget_shopping_cart .cart_list li{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}
.widget_shopping_cart .cart_list img{width:64px;height:64px;object-fit:cover;border-radius:12px}
.widget_shopping_cart .total{display:flex;justify-content:space-between;font-size:1.15rem;font-weight:800;margin:1rem 0}
.widget_shopping_cart .buttons a{display:block;text-align:center;border-radius:999px;padding:.75rem 1rem;margin-top:.5rem;text-decoration:none;font-weight:700}
.widget_shopping_cart .buttons a.wc-forward:first-child{background:#eee;color:var(--ink)}
.widget_shopping_cart .buttons a.checkout{background:var(--gold);color:#1c120d}

/* ---------- Checkout / cart page baseline polish ---------- */
.checkout-body,
.woocommerce-cart,
.woocommerce-checkout{background:var(--soft)}
.woocommerce table.shop_table,
.woocommerce-checkout .checkout,
.woocommerce #order_review,
.woocommerce-cart-form{background:#fff;border:1px solid #eee2d7;border-radius:24px;padding:1.5rem;box-shadow:0 12px 35px rgba(0,0,0,.05)}
.woocommerce a.button.checkout,
.woocommerce a.checkout-button,
.woocommerce #place_order,
.woocommerce input.button{background:var(--gold);border-color:var(--gold);color:#1c120d;border-radius:999px;font-weight:700;padding:.85rem 1.25rem}
.woocommerce a.button.checkout:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover{background:#efb55f;border-color:#efb55f;color:#1c120d}

/* ---------- Cart page (table, thumbnails, qty, totals, coupon) ---------- */
.woocommerce table.cart{border-collapse:collapse}
.woocommerce table.cart thead th{
  border:0;border-bottom:2px solid #eee2d7;color:var(--coffee);
  text-transform:uppercase;font-size:.78rem;letter-spacing:.04em;padding-bottom:1rem;
}
.woocommerce table.cart td{border:0;border-bottom:1px solid #f1e9dd;padding:1.1rem .6rem;vertical-align:middle}
.woocommerce table.cart tr:last-child td{border-bottom:0}
.woocommerce table.cart td.product-thumbnail img{
  width:76px;height:76px;object-fit:cover;border-radius:14px;
  box-shadow:0 6px 16px rgba(43,24,16,.12);
}
.woocommerce table.cart td.product-name a{color:var(--ink);font-weight:700;text-decoration:none}
.woocommerce table.cart td.product-name a:hover{color:var(--coffee)}
.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal{font-weight:700;color:var(--coffee)}
.woocommerce table.cart td.product-remove a{
  color:#b5473a;font-size:1.3rem;text-decoration:none;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;transition:background .2s ease;
}
.woocommerce table.cart td.product-remove a:hover{background:#fbeae7;color:#8f2f24}

.woocommerce .quantity .qty{
  width:64px;padding:.5rem;border:1px solid #e2d8c9;border-radius:10px;
  text-align:center;font-weight:700;color:var(--ink);
}
.woocommerce table.cart td.actions .button{
  background:var(--ink);color:#fff;border-radius:999px;font-weight:700;
  padding:.7rem 1.4rem;border:0;
}
.woocommerce table.cart td.actions .button:hover{background:var(--coffee)}
.woocommerce table.cart td.actions .coupon{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;background:none;border:0;padding:0;font-weight:400}
.woocommerce table.cart td.actions .coupon #coupon_code{
  border:1px solid #e2d8c9;border-radius:999px;padding:.65rem 1.1rem;min-width:180px;
}
.woocommerce table.cart td.actions .coupon .button{background:#fff;color:var(--coffee);border:1px solid var(--coffee)}
.woocommerce table.cart td.actions .coupon .button:hover{background:var(--coffee);color:#fff}

.woocommerce-cart .cart-collaterals{margin-top:2rem}
.woocommerce-cart .cart_totals h2{font-family:"Playfair Display",serif;margin-bottom:1rem}
.woocommerce-cart .cart_totals table.shop_table{border:0;padding:0;box-shadow:none;background:none}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td{
  border:0;border-bottom:1px solid #f1e9dd;padding:.85rem 0;
}
.woocommerce-cart .cart_totals table.shop_table tr:last-child th,
.woocommerce-cart .cart_totals table.shop_table tr:last-child td{border-bottom:0}
.woocommerce-cart .cart_totals .order-total .amount{color:var(--coffee);font-size:1.3rem;font-weight:800}

@media (max-width:767.98px){
  .woocommerce table.cart thead{display:none}
  .woocommerce table.cart,
  .woocommerce table.cart tbody,
  .woocommerce table.cart tr,
  .woocommerce table.cart td{display:block;width:100%}
  .woocommerce table.cart tr{
    border:1px solid #f1e9dd;border-radius:16px;padding:1rem;margin-bottom:1rem;
    position:relative;
  }
  .woocommerce table.cart td{border-bottom:0;padding:.35rem 0}
  .woocommerce table.cart td.product-thumbnail{display:inline-block;vertical-align:top;width:76px!important}
  .woocommerce table.cart td.product-name{display:inline-block;width:calc(100% - 90px)!important;padding-left:.75rem}
  .woocommerce table.cart td.product-price::before,
  .woocommerce table.cart td.product-subtotal::before,
  .woocommerce table.cart td.qty::before{content:attr(data-title) ": ";font-weight:700;color:var(--coffee);text-transform:uppercase;font-size:.72rem}
  .woocommerce table.cart td.product-remove{position:absolute;top:.75rem;right:.75rem;width:auto!important}
  .woocommerce table.cart td.actions .coupon{width:100%}
  .woocommerce table.cart td.actions .coupon #coupon_code{flex:1}
}

/* ---------- Single product ---------- */
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ink)}
.woocommerce div.product p.price,
.woocommerce div.product span.price{color:var(--coffee);font-weight:800}
.woocommerce div.product form.cart .button{width:auto;border-radius:999px;padding:.85rem 1.75rem;background:var(--gold);color:#1c120d}

/* ---------- Ashwagandha / Shilajit benefits (two separate panels) ---------- */
.benefits-panel-coffee{background:linear-gradient(135deg,#23130d,#4a291a)}
.benefits-panel-cream{background:var(--cream)}

.feature-box-light{
  height:100%;padding:1.4rem;border-radius:20px;
  background:#fff;color:var(--ink);
  border:1px solid #eee2d5;
  box-shadow:0 10px 30px rgba(55,32,21,.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.feature-box-light:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(55,32,21,.14)}
.feature-box-light:first-letter{font-size:1.7rem}
.feature-box-light h5{margin-top:.65rem;color:var(--coffee)}
.feature-box-light p{font-size:.9rem;color:#6b5d52;margin:0}

/* ---------- Blog ---------- */
.blog-hero{background:linear-gradient(135deg,#23130d,#4a291a);padding:170px 0 70px}
.blog-section{background:var(--soft)}
.blog-featured-fallback{
  width:100%;min-height:340px;display:flex;align-items:center;justify-content:center;
  font-size:3.5rem;background:linear-gradient(135deg,var(--cream),#eddbc2);color:var(--coffee);
}

.blog-meta{font-size:.78rem;color:#a0876f;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.blog-badge-static{position:static;display:inline-block;background:var(--coffee);color:#fff;padding:6px 12px;border-radius:999px;font-size:.72rem;font-weight:700;text-transform:uppercase}

/* Every article — same panel style as the homepage offer section. */
.blog-article-panel{border-bottom:1px solid #e7ddd1;padding-bottom:2.5rem;margin-bottom:1rem}
.blog-article-panel:last-of-type{border-bottom:0;margin-bottom:0}
.blog-article-panel h2 a:hover{color:var(--coffee)}
.blog-article-panel img,
.blog-article-panel .blog-featured-fallback{transition:transform .4s ease}
.blog-article-panel a:hover img{transform:scale(1.015)}

.tm-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;
  margin:0 4px;border-radius:999px;background:#fff;color:var(--ink);text-decoration:none;
  font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.06);padding:0 12px;
}
.tm-pagination .page-numbers.current{background:var(--coffee);color:#fff}
.tm-pagination .page-numbers:hover{background:var(--gold);color:#1c120d}

.single-post-page{background:var(--soft)}
.single-post-article{max-width:780px}
.single-post-article h1{font-size:clamp(1.9rem,4vw,2.8rem)}
.single-post-thumb img{width:100%;border-radius:24px;box-shadow:0 15px 40px rgba(0,0,0,.1)}
.single-post-article .entry-content{font-size:1.08rem;line-height:1.85;color:#3a2c22}
.single-post-article .entry-content h2,
.single-post-article .entry-content h3{font-family:"Playfair Display",serif;margin-top:1.8rem}
.single-post-article .entry-content img{max-width:100%;height:auto;border-radius:16px;margin:1.2rem 0}
.single-post-article .entry-content a{color:var(--coffee);font-weight:600}
.single-post-article .entry-content blockquote{
  border-left:4px solid var(--gold);margin:1.5rem 0;padding:.5rem 1.2rem;font-style:italic;color:#5b4a3d;
}

@media (max-width:991px){
  .hero-section{background-position:65% center}
  .hero-overlay{background:rgba(25,13,8,.76)}
  .hero-section .display-3{font-size:clamp(2.7rem,10vw,4.7rem)}
}
@media (max-width:575px){
  .woocommerce ul.products li.product img{height:230px}
  .trust-strip{font-size:.88rem}
}

/* ---------- Mobile Header / Nav ---------- */
.navbar-toggler{
  border:1px solid rgba(255,255,255,.35);
  padding:.4rem .6rem;
  border-radius:8px;
}
.navbar-toggler:focus{box-shadow:0 0 0 .2rem rgba(217,155,69,.35)}
.navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px){
  .tm-nav{padding-top:.6rem;padding-bottom:.6rem}
  .tm-nav .navbar-brand{font-size:1.4rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}
  .custom-logo{max-height:34px;max-width:38vw;width:auto}

  .tm-nav>.container>.d-flex{flex-shrink:0}
  .tm-cart-btn{padding-left:.65rem;padding-right:.65rem;white-space:nowrap}

  .navbar-collapse{
    background:#1c110b;
    margin-top:.75rem;
    padding:1rem 1.1rem 1.25rem;
    border-radius:16px;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.08);
  }
  .navbar-collapse .navbar-nav{
    width:100%;
    gap:.15rem;
  }
  .navbar-collapse .nav-item{
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .navbar-collapse .nav-item:last-of-type{border-bottom:0}
  .navbar-collapse .nav-link{
    padding:.7rem .25rem;
    font-size:1.02rem;
  }

  /* Cart button + hamburger, always visible in the top bar */
  .tm-cart-btn{
    font-size:.92rem;
    padding-left:.9rem;
    padding-right:.9rem;
  }
  .tm-cart-btn .cart-count{
    top:-6px;
    right:6px;
  }
}

@media (max-width: 420px){
  .tm-nav .navbar-brand{font-size:1.2rem;max-width:45vw}
  .custom-logo{max-height:28px;max-width:34vw}
  .tm-cart-btn{padding-left:.55rem;padding-right:.55rem}
  .tm-cart-btn .cart-label{display:none}
}

/* Mini-cart offcanvas: near full-width on phones */
@media (max-width: 575.98px){
  .offcanvas.offcanvas-end{width:88vw}
}
