*{
    margin: 0;
    padding: 0;
    
}
html,body{
    scroll-behavior: smooth;
}
body{
    background:linear-gradient(rgb(212, 255, 212),white,rgb(212, 255, 212));
    background-attachment: fixed;
    color: rgb(47, 100, 47);
    text-align: justify;

}
.navbar{
    display: flex;
    background-color: rgb(212, 255, 212);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
nav{
    flex: 1;
    text-align: right;
    height: 50px;
    
    /* height: 50px;
    width: 100%;
    
    display: flex; */
    /* padding: 5px 0px 0px 20px; */
    /* position: fixed; */
    /* border: 2px solid red; */
}
nav ul{
    width: 100%;
    height: 100%;
    background-color: rgb(212, 255, 212);
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 2;
    border: none;
    /* border: 2px solid red; */
    text-align: center;
    font-size: 40px;
    /* display: none; */
}
nav ul li{
    list-style: none;
    display: block;
    margin: 20px 0px 20px 0px;
    /* border: 2px solid blue; */
}
nav ul li a{
    text-decoration: none;
    color: rgb(47, 100, 47);
    font-size: 30px;
}
#menu_list{
    overflow: hidden;
    transition: 2s;
}
.menu_icon{
    height: 52px;
    width: 52px; 
    /* margin: 5px 0px 0px 1260px; */
    cursor: pointer;
    padding: 15px;
}
.menu_icon:hover{
    transition: 0.7s;
    background-color: rgb(98, 122, 56);
}
.hmf_logo{
    /* height: 50%; */
    width: 9%;
    padding: 5px 15px 5px 60px;
}
p{
    font-size: 15px;
    text-align: center;
    margin: 250px;
}


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --green-dark: #2d4a2d;
      --green-mid: #4a7c4a;
      --green-light: #7aab6a;
      --brown-dark: #3e2a1a;
      --brown-mid: #7a5c3a;
      --brown-light: #c4a882;
      --cream: #f5f0e8;
      --cream-dark: #ede5d5;
      --gold: #c8922a;
      --text-dark: #2a1f14;
      --text-mid: #5a4a35;
      --white: #fff;
      --radius: 12px;
      --shadow: 0 4px 24px rgba(45,74,45,0.13);
    }

    /* body {
      font-family: 'Lato', sans-serif;
      background:linear-gradient(rgb(212, 255, 212),white,rgb(212, 255, 212));
      color: var(--text-dark);
      min-height: 100vh;
    } */

    /* ── HEADER ── */
    header {
      background: var(--green-dark);
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 70px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }
    .logo {
      font-family: 'Playfair Display', serif;
      color: var(--brown-light);
      font-size: 1.6rem;
      letter-spacing: 1px;
    }
    .logo span { color: var(--green-light); font-style: italic; }
    /* .cart-btn {
      background: var(--gold);
      color: var(--white);
      border: none;
      border-radius: 30px;
      padding: 0.55rem 1.3rem;
      font-family: 'Lato', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.2s;
    } */
     .cart-btn{
      background: var(--gold);
      color: var(--white);
      border: none;
      border-radius: 30px;
      padding: 0.55rem 1.00rem;
      font-family: 'Lato', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      position: fixed;
      z-index: 2;
      top: 550px;
      right: 10px;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.2s;
     }
    .cart-btn:hover { background: #a87520; }
    .cart-count {
      background: var(--cream);
      color: var(--gold);
      border-radius: 50%;
      width: 22px; height: 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem;
      font-weight: 700;
    }



    /* ── SEARCH & FILTERS ── */
    .controls {
      /* border-bottom: 2px solid rgb(47, 100, 47); */
      padding: 1.2rem 2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
      justify-content: center;
      top: 50px;
      z-index: 90;
    }
    .search-wrap {
      position: relative;
      flex: 1 1 260px;
      max-width: 360px;
    }
    .search-wrap input {
      width: 100%;
      padding: 0.65rem 1rem 0.65rem 2.5rem;
      border: 2px solid rgb(47, 100, 47);
      border-radius: 30px;
      background: white;
      font-family: 'Lato', sans-serif;
      font-size: 0.95rem;
      color: var(--text-dark);
      outline: none;
      transition: border 0.2s;
    }
    .search-wrap input:focus { border-color: var(--green-mid); }
    .search-wrap .s-icon {
      position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
      color: var(--brown-mid); font-size: 1rem;
    }
    .filters {
      display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
    }
    .filter-btn {
      padding: 0.45rem 1rem;
      border-radius: 20px;
      border: 2px solid rgb(47, 100, 47);
      background: transparent;
      color: var(--text-mid);
      font-family: 'Lato', sans-serif;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--green-dark);
      border-color: var(--green-dark);
      color: var(--cream);
    }

    /* ── RESULTS COUNT ── */
    .results-bar {
      padding: 1rem 2rem 0.2rem;
      color: var(--text-mid);
      font-size: 0.9rem;
      max-width: 1300px;
      margin: 0 auto;
    }

    /* ── PRODUCT GRID ── */
    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.6rem;
      padding: 1.2rem 2rem 3rem;
      max-width: 1300px;
      margin: 0 auto;
    }
    .product-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      transition: transform 0.22s, box-shadow 0.22s;
      animation: fadeUp 0.4s ease both;
    }
    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 32px rgba(45,74,45,0.2);
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .card-img {
      height: 170px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      position: relative;
      overflow: hidden;
    }
    .card-badge {
      position: absolute;
      top: 10px; right: 10px;
      background: var(--gold);
      color: var(--white);
      font-size: 0.7rem;
      font-weight: 700;
      padding: 0.25rem 0.55rem;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .card-body {
      padding: 1rem 1.1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .card-category {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--green-mid);
      margin-bottom: 0.3rem;
    }
    .card-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      margin-bottom: 0.3rem;
      color: var(--text-dark);
    }
    .card-desc {
      font-size: 0.83rem;
      color: var(--text-mid);
      line-height: 1.5;
      flex: 1;
      margin-bottom: 0.8rem;
    }
    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }
    .card-price {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--brown-dark);
    }
    .add-btn {
      background: var(--green-dark);
      color: var(--cream);
      border: none;
      border-radius: 20px;
      padding: 0.45rem 1rem;
      font-family: 'Lato', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
    }
    .add-btn:hover { background: var(--green-mid); }
    .add-btn.added {
      background: var(--gold);
    }

    /* ── NO RESULTS ── */
    .no-results {
      text-align: center;
      padding: 4rem 2rem;
      grid-column: 1/-1;
      color: var(--text-mid);
    }
    .no-results .icon { font-size: 3rem; margin-bottom: 1rem; }

    /* ── CART SIDEBAR ── */
    .cart-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 200;
    }
    .cart-overlay.open { display: block; }
    .cart-sidebar {
      position: fixed;
      right: -420px; top: 0; bottom: 0;
      width: min(420px, 100vw);
      background: var(--cream);
      z-index: 201;
      display: flex;
      flex-direction: column;
      transition: right 0.3s cubic-bezier(.4,0,.2,1);
      box-shadow: -4px 0 32px rgba(0,0,0,0.18);
    }
    .cart-sidebar.open { right: 0; }
    .cart-header {
      background: var(--green-dark);
      color: var(--cream);
      padding: 1.2rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .cart-header h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
    }
    .close-cart {
      background: none; border: none;
      color: var(--cream); font-size: 1.4rem;
      cursor: pointer; line-height: 1;
    }
    .cart-items {
      flex: 1; overflow-y: auto;
      padding: 1rem 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }
    .cart-empty {
      text-align: center;
      color: var(--text-mid);
      margin-top: 3rem;
      font-size: 1rem;
    }
    .cart-item {
      background: var(--white);
      border-radius: 10px;
      padding: 0.85rem;
      display: flex;
      gap: 0.8rem;
      align-items: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
    .ci-emoji { font-size: 2rem; min-width: 2.5rem; text-align: center; }
    .ci-info { flex: 1; }
    .ci-name { font-weight: 700; font-size: 0.9rem; }
    .ci-price { color: var(--gold); font-size: 0.85rem; font-weight: 700; }
    .ci-controls { display: flex; align-items: center; gap: 0.4rem; }
    .qty-btn {
      width: 26px; height: 26px;
      border-radius: 50%;
      border: 2px solid var(--brown-light);
      background: none;
      cursor: pointer;
      font-size: 1rem;
      line-height: 1;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-dark);
      transition: all 0.15s;
    }
    .qty-btn:hover { background: var(--green-dark); color: var(--cream); border-color: var(--green-dark); }
    .qty-num { font-weight: 700; min-width: 20px; text-align: center; font-size: 0.9rem; }
    .remove-item {
      background: none; border: none;
      color: #c0392b; font-size: 1.1rem;
      cursor: pointer; margin-left: 0.3rem;
    }
    .cart-footer {
      padding: 1.2rem 1.5rem;
      border-top: 2px solid var(--cream-dark);
      background: var(--white);
    }
    .cart-total {
      display: flex; justify-content: space-between;
      font-weight: 700; font-size: 1.1rem;
      margin-bottom: 1rem;
      color: var(--text-dark);
    }
    .checkout-btn {
      width: 100%;
      padding: 0.9rem;
      background: var(--gold);
      color: var(--white);
      border: none;
      border-radius: 30px;
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
    }
    .checkout-btn:hover { background: #a87520; }

    /* ── CHECKOUT MODAL ── */
    .modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 300;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--cream);
      border-radius: var(--radius);
      width: min(560px, 100%);
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 8px 48px rgba(0,0,0,0.25);
      animation: modalIn 0.25s ease;
    }
    @keyframes modalIn {
      from { opacity: 0; transform: scale(0.95); }
      to   { opacity: 1; transform: scale(1); }
    }
    .modal-head {
      background: var(--green-dark);
      color: var(--cream);
      padding: 1.2rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: var(--radius) var(--radius) 0 0;
    }
    .modal-head h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
    .close-modal {
      background: none; border: none;
      color: var(--cream); font-size: 1.4rem;
      cursor: pointer;
    }
    .modal-body { padding: 1.5rem; }
    .order-summary {
      background: var(--cream-dark);
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
    }
    .order-summary h3 {
      font-family: 'Playfair Display', serif;
      margin-bottom: 0.6rem;
      color: var(--green-dark);
    }
    .order-row {
      display: flex; justify-content: space-between;
      padding: 0.25rem 0;
      border-bottom: 1px solid var(--brown-light);
      color: var(--text-mid);
    }
    .order-row:last-child { border-bottom: none; font-weight: 700; color: var(--text-dark); }
    .form-group {
      margin-bottom: 1rem;
    }
    .form-group label {
      display: block;
      font-weight: 700;
      font-size: 0.88rem;
      margin-bottom: 0.35rem;
      color: var(--text-mid);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 0.7rem 1rem;
      border: 2px solid var(--brown-light);
      border-radius: 8px;
      background: var(--white);
      font-family: 'Lato', sans-serif;
      font-size: 0.95rem;
      color: var(--text-dark);
      outline: none;
      transition: border 0.2s;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus { border-color: var(--green-mid); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .place-order-btn {
      width: 100%;
      padding: 1rem;
      background: var(--green-dark);
      color: var(--cream);
      border: none;
      border-radius: 30px;
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 0.5rem;
      transition: background 0.2s;
    }
    .place-order-btn:hover { background: var(--green-mid); }

    /* ── SUCCESS ── */
    .success-screen {
      display: none;
      text-align: center;
      padding: 2rem;
    }
    .success-screen.show { display: block; }
    .success-icon { font-size: 4rem; margin-bottom: 1rem; }
    .success-screen h2 {
      font-family: 'Playfair Display', serif;
      color: var(--green-dark);
      font-size: 1.6rem;
      margin-bottom: 0.5rem;
    }
    .success-screen p { 
      color: var(--text-mid); 
      margin-bottom: 5rem; 
      margin-top: 5rem;
      width: 20.0rem;
      justify-self: center;
      
    }
    .continue-btn {
      background: var(--gold);
      color: var(--white);
      border: none;
      border-radius: 30px;
      padding: 0.75rem 2rem;
      font-family: 'Lato', sans-serif;
      font-weight: 700;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.2s;
    }
    .continue-btn:hover { background: #a87520; }

    /* ── TOAST ── */
    .toast {
      position: fixed;
      bottom: 2rem; left: 50%;
      transform: translateX(-50%) translateY(80px);
      background: var(--green-dark);
      color: var(--cream);
      padding: 0.75rem 1.5rem;
      border-radius: 30px;
      font-weight: 700;
      font-size: 0.9rem;
      z-index: 500;
      transition: transform 0.35s cubic-bezier(.4,0,.2,1);
      white-space: nowrap;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
    .toast.show { transform: translateX(-50%) translateY(0); }

    /* ── RESPONSIVE ── */
    @media (max-width: 600px) {
      .controls { padding: 1rem; }
      .shop-grid { padding: 1rem; gap: 1rem; }
      .form-row { grid-template-columns: 1fr; }
    }
  




/* 
===================responsiveness====================================== */


@media only screen and (max-width:1265px) {
nav ul{
    font-size: 35px;
    transition: 2S;
    
}
.hmf_logo{
    height: 47px;
    width: 95px;
    padding: 8px 15px 0px 10px;
    
}



}


@media only screen and (max-width:700px){
nav ul{
    font-size: 30px;
    transition: 2S;
    
}
.hmf_logo{
    height: 47px;
    width: 87px;
    padding: 8px 15px 0px 10px;
    
}
p{
    font-size: 30px;
    transition: 2s;
    margin: 350px 0px 0px 0px;
}
.cart-btn{
  margin-right: 10px;
  margin-top: -30px;
}
.success-screen p { 
      font-size: 15px;
      
    }

}