/* Fullscreen Background Image */
body {
    margin: 0;
    padding: 0;
    background-image: url("/static/images/bg-candy.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}


/* popup for unlogged users */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); 
  justify-content: center;
  align-items: center;
}

/* Modal box */
.modal-content {
  background: linear-gradient(135deg, #ffe6f2, #ffffff);
  padding: 25px;
  width: 420px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.25);
  animation: popIn 0.3s ease;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, #ffe6f2, #ffffff), 
                    linear-gradient(135deg, #ff99cc, #ffffff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}


/* Close button */
.close-btn-pop {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #ff69b4;
  font-weight: bold;
  transition: 0.3s ease;
}

.close-btn-pop:hover {
  color: #d63384;
  transform: scale(1.2);
}

/* Login button */
.login-btn {
  background:#ff99cc;
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background:linear-gradient(135deg, #fc73b5, #ffffff), 
             linear-gradient(135deg, #ff99cc, #ffffff);
  transform: scale(1.05);
}

/* Popup animation */
@keyframes popup {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tt-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: #fffaf3;
  position: relative;
}

/* LEFT */
.tt-navbar .nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CENTER LINKS (true visual center) */
.tt-navbar .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
}

.tt-navbar .nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #3b2a1a;
}

/* RIGHT */
.tt-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ICON BUTTONS */
.tt-navbar .icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ORDER BUTTON */
.tt-navbar .order-btn {
  background: #f7931e;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #FAF7F2;
}

.logo {
    height: 50px;
    width: auto;
    margin-left: -20px;
}

.brand-name {
    font-weight: 600;
    color: #E67E22;
    margin-left: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #4A3A2A;
    font-weight: 500;
}

.order-btn {
    background: #E67E22;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
}

.hero {
    position: relative;
    height: 85vh;
    width: 88%;
    background: 
        linear-gradient(
            to right,
            #fffaf3 0,
            #fffaf3 25%,
            rgba(255,250,243,0.7) 45%,
            rgba(255,250,243,0.2) 50%,
            rgba(255,250,243,0) 100%
        ),
        url("/static/images/hero_edited.png");
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
    
}

.hero-content {
    max-width: 500px;
    z-index: 2;
}

.hero-overlay h1{
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    color: #2b1b0e;
}

.hero-overlay span {
    color: #f28c28;
}

.hero-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #5c4a3a;
    line-height: 1.7;
    margin-top: 16px;
}


.hero-btn {
    display: inline-block;
    background-color: #f28c28;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(242, 140, 40, 0.3);
    transition: transform 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

/* BEST SELLER SECTION */
.best-seller {
  margin-top: 70px;
}

/* Grid aligned with category cards */
.best-seller-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px;
}

/* Card style same as category */
.best-seller-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  min-width: 240px;
}

.best-seller-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Image */
.best-seller-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Content */
.bs-content {
  padding: 14px 16px;
  text-align: center;
}

.bs-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: -6px;
}

.bs-price {
  font-size: 15px;
  font-weight: 600;
  color: #d35400;
  margin-bottom: 6px;
}

.bs-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* Button */
.bs-content button {
  background: #ff8c00;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.bs-content button:hover {
  background: #e67600;
}

.nav-btn {
    position: absolute;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    bottom: -50%;
}

.nav-btn.left { left: 0px; }
.nav-btn.right { right: 0px; }

/* Right icons spacing */
.nav-icons-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Left icon */
.nav-icons-left i {
    margin-right: 10px;
}

/* Soft overlay to make navbar icons clear */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    z-index: -1;
}


/* Search bar */
.search-bar {
  position: fixed;
  top: 72px;          /* adjust to match navbar */
  right: 20px;
  width: 0;
  overflow: hidden;
  display: flex;
  gap: 10px;
  align-items: center;
  /* background: #fff; */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  opacity: 0;
  transform-origin: right center;
  transition: width 0.42s cubic-bezier(.2,.9,.2,1), opacity 0.25s ease;
  z-index: 1200;
}
.search-bar.active {
  width: calc(100% - 40px); /* full width minus margins */
  right: 20px;
  opacity: 1;
}
#search-input { flex:1; padding:10px 14px; border-radius:8px; border:1px solid #e6e6e6; font-size:15px; }
#search-btn { padding:10px 12px; border-radius:8px; background:#8E24AA; color:#fff; border:none; cursor:pointer; }

/* --- Search Results Layout --- */

.search-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-results-container {
  display: flex;
  overflow-x: auto; /* important */
  scroll-behavior: smooth; /* smooth scrolling */
  gap: 10px; /* space between items */
  padding: 10px 0;
}

.search-results-container::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #ff8c00;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.search-result-card {
  width: 180px;
  background: #fff !important;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  flex: 0 0 auto;
  margin-right: 10px;
}


.search-result-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.search-result-price {
  font-size: 15px;
  font-weight: bold;
  color: #ff8c00;
}

.search-buy-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #ff8c00;
  color: #fff;
  cursor: pointer;
}


                                                /* Cart sidebar style */

/* ================================
   CART SIDEBAR STYLING (FINAL)
   ================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px; /* Hidden initially */
    width: 360px;
    height: 100%;
    background: #ffffff;
    padding: 25px;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.25);
    transition: right 0.35s ease;
    z-index: 999999;
    overflow-y: auto;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.cart-sidebar.open {
    right: 0;
}

/* Close Button */
.close-btn {
    text-align: right;
    margin: 0;
    padding: 0;
}

.close-btn i {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn i:hover {
    transform: rotate(180deg);
}

/* Cart Header */
.cart-sidebar h1 {
    margin: 10px 0 20px 0;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Scrollable Items */
.contents-10 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* EACH ITEM */
.item-container {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: 0.3s;
}

.item-container:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

/* Product Image */
.cart-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

/* Item Details */
.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Name + Type */
/* .name-type {
    display: flex;
    flex-direction: column;
    gap: 2px;
} */

.name-10 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
    color: #333;
}

.type-10 {
    font-size: 13px;
    color: #777;
    margin-top: -5px;
}

/* Quantity + Price Row */
.quantity-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    padding: 4px 8px;
    border-radius: 6px;
    gap: 8px;
    margin-top: -15px;
    
}

.minus-btn,
.plus-btn {
    width: 22px;
    height: 22px;
    background: #ddd;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.minus-btn:hover,
.plus-btn:hover {
    background: #c4c4c4;
}

.quantity {
    width: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
}

/* Price */
.price-10 {
    font-size: 15px;
    font-weight: 600;
    margin-right: -60px;
    margin-top: 0;
    color: #444;
}

/* Total */
.total {
    margin-top: 5px;
}

.total-10 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Remove Button */
.remove-btn {
    color: red;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.remove-btn:hover {
    text-decoration: underline;
}

/* Place Order Button */
.place-button-10 {
    margin-top: 18px;
}

.place-button-10 button {
    width: 100%;
    padding: 12px;
    background: #ff4081;
    border: none;
    color: white;
    font-size: 17px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.place-button-10 button:hover {
    background: #e3356f;
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    left: -400px;                /* Hidden initially */
    width: 250px;
    height: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    transition: left 0.4s ease;
    padding: 20px;
    z-index: 100000;
}

/* Open state */
.side-menu.open {
    left: 0;
}

/* CLOSE BUTTON */
.close-menu {
    text-align: right;
    font-size: 28px;
    margin-bottom: 20px;
    cursor: pointer;
}

.close-menu i:hover {
    color: #ff4444;
    transform: rotate(90deg);
    transition: 0.3s;
}


/* LOGIN LINK */
.side-menu .login-link {
  background: rgba(247, 147, 30, 0.12);
  color: #f7931e;
  font-weight: 600;
}

/* LOGOUT LINK */
.side-menu .logout-link {
  color: #c0392b;
  font-weight: 600;
}

.side-menu .logout-link:hover {
  background: rgba(192, 57, 43, 0.12);
}

/* ACTIVE STATE */
.side-menu.active {
  left: 0;
}

/* SIDE MENU LINKS */
.side-menu a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #3b2a1a;
  padding: 12px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

/* HOVER EFFECT */
.side-menu a:hover {
  background: rgba(247, 147, 30, 0.12);
  color: #f7931e;
  padding-left: 18px;
}

.side-menu .logout-link {
  /* margin-top: auto; */
  color: #c0392b;
  font-weight: 600;
}

.side-menu .logout-link:hover {
  background: rgba(192, 57, 43, 0.12);
}

/* SIDE MENU HEADER */
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 26px;
}

.menu-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

/* LOGO */
.menu-logo {
  height: 62px;
  width: auto;
  margin-bottom: -35px;
  margin-left: -30px;
}

/* LOGO LINK */
.menu-logo-link {
  display: flex;
  align-items: center;
}

/* CLOSE BUTTON */
.side-menu .close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #3b2a1a;
  cursor: pointer;
}


/* -------------------------
   Timely Treats - Desktop Hero + Sections
   Append this to the end of home-style.css
   ------------------------- */

.tt-hero {
  position: relative;
  padding-top: 90px; /* leaves space for fixed navbar */
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(255,215,235,0.12), rgba(255,250,240,0.06));
  /* don't set full-screen height; allows page scroll */
}

.tt-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px 24px;
}

/* left text block */
.hero-left {
  flex: 1;
  max-width: 52%;
}

.hero-title {
  font-size: 48px;
  line-height: 1.05;
  color: #4a2c2a;
  margin: 8px 0 12px 0;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.hero-sub {
  color: #5b4a49;
  margin-bottom: 18px;
  font-size: 16px;
}

/* CTAs */
.hero-ctas { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.btn { text-decoration:none; padding:12px 20px; border-radius:24px; font-weight:700; display:inline-block; }
.btn-primary { background:#ff6b6b; color:#fff; box-shadow: 0 6px 18px rgba(255,107,107,0.18); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-outline { background: transparent; border: 2px solid rgba(74,44,42,0.08); color:#4a2c2a; }

/* small hero badges */
.hero-badges { display:flex; gap:10px; margin-top:12px; font-size:14px; color:#6b5b59; }
.hero-badges span { background: rgba(255,255,255,0.7); padding:8px 12px; border-radius:14px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }

/* right image block */
.hero-right { flex: 1; position: relative; display:flex; justify-content:center; align-items:center; }
.hero-image { width: 420px; max-width:100%; border-radius:18px; box-shadow: 0 12px 30px rgba(0,0,0,0.12); transform-origin:center; animation: heroFloat 6s ease-in-out infinite; }

/* floating decorative candies */
.float-candy {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0.95;
  pointer-events: none;
}
.float-candy.c1 { top: 8%; right: 18%; background-image: url('/static/images/rasu_float.jpg'); background-size: cover; animation: float1 6s ease-in-out infinite; }
.float-candy.c2 { top: 48%; right: -2%; background-image: url('/static/images/julab_float.jpg'); background-size: cover; animation: float2 5s ease-in-out infinite; }
.float-candy.c3 { top: 18%; right: 46%; background-image: url('/static/images/rasa_float.jpg'); background-size: cover; animation: float3 7s ease-in-out infinite; }

/* Featured products */
.tt-section { max-width: 1200px; margin: 34px auto; padding: 0 24px; }
.section-title-cat { text-align: left; font-size: 28px; color: #4a2c2a; margin-bottom: 16px; font-weight:700; }

/* grid */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; align-items:stretch; }

.product-card {
  background: rgba(255,255,255,0.98);
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }

.product-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom:10px; }
.product-card h3 { margin:6px 0; color:#4a2c2a; font-size:18px; }
.product-card .price { color:#6b5b59; font-weight:700; margin-bottom:10px; }
.product-card .add-cart { background:#ff6b6b; color:#fff; border: none; padding:8px 14px; border-radius:12px; cursor:pointer; font-weight:700; }


/* Categories */
.tt-categories {
  margin-top: 60px;
}

.section-title-cat {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  font-size: 15px;
  margin-bottom: 35px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.cat-content {
  padding: 14px 16px;
}

.cat-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-content p {
  font-size: 13px;
  color: #666;
}


/* Featured Items------------------------------------------------------------------ */


/* SECTION */
.featured-section {
  padding: 40px 5%;
  background: #fffaf6;
}

/* CAROUSEL */
.featured-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

/* CARD */
.featured-card {
  min-width: 270px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

/* INFO */
.featured-info {
  padding: 16px;
  text-align: center;
}

.featured-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: -8px;
}

.featured-info .price {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 12px;
}

/* WRAPPER */
.featured-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* NAV BUTTONS */
.feature-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.feature-nav:hover {
  background: #c0392b;
  color: #fff;
}

/* LEFT / RIGHT */
.feature-nav.left {
  left: -20px;
}

.feature-nav.right {
  right: -20px;
}

/* MOBILE HIDE BUTTONS */
@media (max-width: 768px) {
  .feature-nav {
    display: none;
  }
}


/* BUTTON */
.primary-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.primary-btn:hover {
  background: #a93226;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .featured-card {
    min-width: 220px;
  }

  .featured-card img {
    height: 160px;
  }
}


/* Base Footer Styles */

.tt-footer::before {
    content: "";
    display: block;
    position: absolute;
    top: -60px; /* height of the wave */
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="60" viewBox="0 0 1200 60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 C300 60 900 0 1200 60 L1200 0 L0 0 Z" fill="%23fff2e6"/></svg>') no-repeat top;
    background-size: cover;
}

/* Ensure footer padding to accommodate wave */
.tt-footer {
    padding-top: 80px; /* add extra space for wave */
    position: relative;
}


.tt-footer {
    background: linear-gradient(135deg, #fbfbfa, #faf4cb);
    color: #5a3e36;
    font-family: "Poppins", sans-serif;
    padding: 60px 20px 30px 20px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Footer Container */
.tt-footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Footer Sections */
.tt-footer .footer-section {
    flex: 1 1 220px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tt-footer .footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #7a4a2d;
    position: relative;
}

.tt-footer .footer-section h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #d88c45;
    margin-top: 5px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tt-footer .footer-section h3:hover::after {
    width: 60px;
}

/* Contact Section */
.tt-footer .footer-contact p {
    line-height: 1.6;
    color: #6b4c3b;
    font-size: 14px;
}

/* Links Section */
.tt-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-footer .footer-links li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.tt-footer .footer-links li a {
    text-decoration: none;
    color: #5a3e36;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tt-footer .footer-links li a:hover {
    color: #d88c45;
    transform: translateX(5px);
}

/* Social Media */
.tt-footer .footer-social a {
    margin: 0 10px;
    color: #5a3e36;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tt-footer .footer-social a:hover {
    color: #d88c45;
    transform: scale(1.2) rotate(10deg);
}

/* Footer Bottom */
.tt-footer .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #8e5a3b;
    border-top: 1px solid rgba(136, 92, 55, 0.2);
    padding-top: 15px;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Us Hidden Section */
.tt-footer .about-us {
    background: #fff3e8;
    color: #5a3e36;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    line-height: 1.6;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

/* Back Button */
.tt-footer .about-us .back-to-footer {
    cursor: pointer;
    color: #d88c45;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tt-footer .about-us .back-to-footer:hover {
    transform: scale(1.1);
}

/* Hover Animations on Footer Sections */
.tt-footer .footer-section:hover {
    transform: translateY(-5px);
    opacity: 0.95;
}

.cart-count { position:absolute; top:4px; right:4px; background:#d32f2f; color:white; border-radius:50%; padding:2px 6px; font-size:12px; }
.icon-btn { background:transparent; size: 15px; border:1px solid transparent; padding:8px; border-radius:10px; cursor:pointer; color:#555; position:relative; }
.icon-btn:hover { background:#f3f3f3; }

/* Banner Style */

/* Banner Section Wrapper */
.tt-banner {
    padding: 60px 8%;
    background-color: #ffff;
}

/* Slider Container */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

/* Track */
.banner-track {
    display: flex;
    transition: transform 0.6s ease;
}

/* Slide */
.banner-slide {
    min-width: 100%;
}

.banner-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 28px;
}

/* Navigation Buttons */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #2d2d2d;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    z-index: 10;
}

.banner-nav:hover {
    background: #f28c28;
    color: #fff;
}

/* Button Positions */
.banner-nav.left {
    left: 18px;
}

.banner-nav.right {
    right: 18px;
}

/* Our Story Popup */
.about-us {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 700px;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #5b4a49;
  padding: 30px;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
  border-radius: 12px;
  z-index: 999;
  overflow-y: auto;
  max-height: 80%;
}

.back-to-footer {
  cursor: pointer;
  color: #d35400;
  margin-bottom: 15px;
  text-align: right;
}


/* animations */
@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
@keyframes float1 { 0% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-14px) rotate(8deg);} 100% { transform: translateY(0) rotate(0deg);} }
@keyframes float2 { 0% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-8px) rotate(-6deg);} 100% { transform: translateY(0) rotate(0deg);} }
@keyframes float3 { 0% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-12px) rotate(10deg);} 100% { transform: translateY(0) rotate(0deg);} }


@media (max-width: 1100px) {
  .tt-hero-inner { flex-direction: column-reverse; gap: 20px; }
  .hero-left { max-width: 100%; text-align:center; }
  .hero-title { font-size: 38px; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-image { width: 90%; }
  .float-candy { display:none; }
}

@media (max-width: 600px) {
    .tt-banner {
        padding: 40px 5%;
    }

    .banner-slide img {
        height: 260px;
    }

    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 600px) {
  .best-seller-grid {
    grid-auto-columns: minmax(200px, 1fr);
  }

  .best-seller-card img {
    height: 150px;
  }
}

/* =========================
   MOBILE NAVBAR FIX
   ========================= */
@media (max-width: 768px) {

  /* RESET DESKTOP INFLUENCE */
  .tt-navbar * {
    box-sizing: border-box;
  }

  /* NAVBAR WRAPPER */
  .tt-navbar {
    height: 68px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffaf3;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  }

  /* LEFT AREA */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* LOGO */
  .logo {
    height: 44px;
    width: auto;
    object-fit: contain;
  }

  /* HIDE DESKTOP LINKS */
  .nav-links {
    display: none !important;
  }

  /* RIGHT AREA */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* ICON BUTTONS */
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(247,147,30,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  /* CART BADGE */
  .cart-count {
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 2px 6px;
  }

  /* HIDE TEXT ITEMS */
  .welcome-text,
  .order-btn,
  .login-btn {
    display: none !important;
  }

  /* SHOW MENU BUTTON */
  .menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {

  .side-menu {
    width: 280px;
    background: #fffaf3;
    padding: 20px;
    box-shadow: 6px 0 24px rgba(0,0,0,0.1);
  }

  /* HEADER */
  .side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }

  /* LOGO */
  .menu-logo {
    height: 56px;
    width: auto;
  }

  /* LINKS */
  .side-menu a {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #3b2a1a;
    font-weight: 500;
  }

  .side-menu a:hover {
    background: rgba(247,147,30,0.12);
    color: #f7931e;
  }

  /* LOGIN / LOGOUT */
  .login-link {
    background: rgba(247,147,30,0.12);
    color: #f7931e;
    font-weight: 600;
  }

  .logout-link {
    color: #c0392b;
    font-weight: 600;
  }

  .logout-link:hover {
    background: rgba(192,57,43,0.12);
  }
}

@media (max-width: 768px) {

  .hero {
    height: auto;
    min-height: 85vh;
    width: 92%;
    padding: 60px 20px 40px;
    background:
      linear-gradient(
        to bottom,
        rgba(255,250,243,0.95) 0%,
        rgba(255,250,243,0.85) 40%,
        rgba(255,250,243,0.6) 60%,
        rgba(255,250,243,0.3) 75%,
        rgba(255,250,243,0) 100%
      ),
      url("/static/images/hero_edited.png");

    background-position: center bottom;
    background-size: 100% auto; 
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  .hero-overlay {
    max-width: 100%;
    padding-top: 20px;
  }

  .hero-overlay h1 {
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
  }

  .hero-overlay p {
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.6;
  }

  .hero-btn {
    margin-top: 22px;
    padding: 14px 28px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  .best-seller{
    margin-top: -2px;
    padding-top: 20px;
    }

  .section-title-cat {
    font-size: 26px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 14px;
    /* padding: 0 10px; */
    text-align: center;
  }

  /* Slider wrapper */
  .slider-wrapper {
    position: relative;
    padding: 0 16px;
  }

  /* Grid becomes horizontal slider */
  .best-seller-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
  }

  .best-seller-grid::-webkit-scrollbar {
    display: none;
  }

  /* Card */
  .best-seller-card {
    width: 30%;
    flex-shrink: 0;
    border-radius: 18px;
  }

  .best-seller-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
  }

  .bs-content {
    padding: 16px;
    text-align: center;
  }

  .bs-content h3 {
    font-size: 18px;
  }

  .bs-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
  }

  .bs-content button {
    margin-top: 10px;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 24px;
  }

  /* Navigation buttons */
  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  }

  .nav-btn.left {
    left: 6px;
  }

  .nav-btn.right {
    right: 6px;
  }
}


@media (max-width: 768px) {

  .featured-section {
    margin-top: -2px;
    padding-top: 20px;
  }

  .section-title-one {
    font-size: 26px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 14px;
    padding: 0 18px;
    text-align: center;
    line-height: 1.6;
  }

  /* Wrapper */
  .featured-wrapper {
    position: relative;
    padding: 0 16px;
  }

  /* Carousel becomes horizontal slider */
  .featured-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 0;
    scrollbar-width: none;
  }

  .featured-carousel::-webkit-scrollbar {
    display: none;
  }

  /* Card */
  .featured-card {
    min-width: 180px;
    flex-shrink: 0;
    border-radius: 18px;
  }

  .featured-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
  }

  .featured-info {
    padding: 14px;
    text-align: center;
  }

  .featured-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .featured-info .price {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .primary-btn {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 22px;
  }

  .feature-nav.mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    color: #2b1b0e;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 10;
  }

  .feature-nav.mobile.left {
    left: 6px;
  }

  .feature-nav.mobile.right {
    right: 6px;
  }

  .feature-nav.mobile:active {
    transform: translateY(-50%) scale(0.95);
  }
}

@media (max-width: 768px) {

  .tt-categories {
    margin-top: -5px;
    padding: 0px 16px;
  }

  .categories-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  /* hide scrollbar */
  .categories-grid::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    width: 180px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 18px;
  }

  .category-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
  }

  .cat-content {
    padding: 14px 14px 18px;
  }

  .cat-content h3 {
    font-size: 17px;
  }

  .cat-content p {
    font-size: 13px;
  }
}



