/* =============================================================
* Project Name: Fremido Stores website
* Project URL: https://fremidostores.com/
* Author: Silvabizhub | Afribrainy | Dynatech Hub 4 Creativity
* License: GNU/
============================================================== */

:root {
  --blue:#e6ffe7;
  --green:#328c3f;
  --gold: rgb(229, 159, 55);
  --white: #fff;
  --black: rgb(0, 0, 0);
  --gray-light: #e9e9e9;
  --gray-darker: #444444;
  --gray-dark: #e0e0e0;
   --animationSpeed: 0.25s;
}

html {
  overflow:auto;
  scrollbar-width:none;
  overflow-x:hidden;
  font-size:clamp(8px, 6vw, 14px);
  font-family: "Lato", sans-serif;
  font-weight: 200;
  font-style: normal;
  background-color: var(--white);
}

* {
  box-sizing:border-box;
  margin:0;
}

::-webkit-scrollbar {
  display:none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* background-color:#b4a3a3; */
  background-color: #e3e3e3;
  overflow-x:hidden;
  line-height:1.3;
  background-repeat:repeat;
  background-size:auto;
  max-width:100%;
}

.container {
  max-width: 80%;
  margin: 0 auto;
  overflow: auto;
  padding: 0;
  overflow-x: hidden;
}

/* =================== TOP BAR =================== */
.top_bar {
  width: 100%;
  background-color: var(--green);
  text-decoration: none;
}

.top_bar .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: var(--green);
  padding-top: 3px; 
  padding-bottom: 3px;
}

.top_bar p {
  color: var(--white);
  text-decoration: none;
  font-size:clamp(8px, 6vw, 10px);
}

.top_bar a {
  text-decoration: none;
  color: var(--white);
}

.top_bar_socials {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin-left: 10px;
}

.fa-brands {
  margin-left: 10px;
}

/* =================== NAVIGATION STRIP =================== */
.nav_strip {
  background-color: var(--blue);
}

.nav_strip .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* =================== LOGO & LEFT NAV =================== */
.logo_left {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  margin-left: 0;
}

.logo_left img {
  width: clamp(15px, 6vw, 30px);
  height: auto;
  display: block;
  margin-left: 0;
  align-content: left;
}


.logo_left h4 {
  font-family: "Gurmukhi MN", serif;
  font-size: clamp(15px, 6vw, 30px);
  color: var(--black);
  margin-right: 20px;
  font-size: 1.4rem;
  text-decoration: none;
  padding-left: 15px;
}

.logo_left h4 a {
  text-decoration: none;  
  color: var(--green);    
}


.logo_left li {
  list-style-type: none;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.logo_left li a {
  text-decoration: none;
  color: var(--black);
  padding-right: 13px;
  padding-left: 0;
  display: flex;          /* flex so it can fill parent height */
  align-items: center;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.logo_left li a:hover {
  background-color: var(--blue);
  color: var(--green);
  border-radius: 0px;
}

/* =================== RIGHT NAV =================== */
.right_nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.right_nav a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 2px;
  text-decoration: none;
}

/* =================== DROPDOWN MENU =================== */
.dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 2000;
}

/* Show dropdown on hover (PC) */
.logo_left li:hover > .dropdown {
  max-height: 500px;
  opacity: 1;
}

/* Dropdown items stacked vertically */
.dropdown li {
  display: block;
  width: 100%;
}

.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: var(--black);
  font-size: 0.95rem;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: var(--green);
  color: var(--white);
}

/* Dropdown show class for JS toggle (mobile/tablet) */
.dropdown.show {
  max-height: 500px;
  opacity: 1;
}

/* Top-level nav horizontal */
.logo_left > ul {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Fix dropdown stacking */
.nav_strip,
.logo_left {
  position: relative;
  z-index: 1000;
}

.nav_strip,
.logo_left,
.container {
  overflow: visible !important;
}

/* =================== MAIN =================== */
main {
  flex: 1;
  background-color: var(--white);
}

.search_bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  margin-left: 0;
  margin-top: 10px;
}

.search-box {
    position: relative;
    width: 145px;                /* default width */
    transition: width 0.3s ease; /* smooth animation */
}

.search-box.expanded {
    width: 210px; /* expanded size */
}

.search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size:clamp(8px, 6vw, 16px);
    color: var(--green);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 3px 0px 3px 20px; /* space for icon */
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.search-box input:focus {
    border-color: var(--green);    /* our green theme */
    background: #f7fff8;
}


/* =================== FOOTER =================== */
.bottom_bar {
  background-color: var(--green);
  color: white;
  font-size: 14px;
  padding: 10px 0;
}

.bottom_bar p {
  font-size: 12px;
}

.bottom_bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom_left, .bottom_right {
  margin: 0;
}

.bottom_right a {
  color: white;
  text-decoration: none;
}

.bottom_right a:hover {
  text-decoration: underline;
}

.scroll-top-btn {
  display: none;
    }

/* ========= CARD PRODUCTS SHOWCASE ==============*/
/* BASE GRID — MOBILE FIRST (1 COLUMN) */
.cards-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
}

/* CARD STYLE */
.card {
  width: 100%;             
  max-width: 360px;       
  min-width: 0;           
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
  transition: .3s;
  margin: 20px auto;      
  overflow: hidden;
  position: relative;
  cursor: pointer;
  pointer-events: auto; /* ensure card itself is NOT blocking children */
}

.card:hover .img img{ transform:scale(1.05) }
.info{ padding:20px }
.cat{ font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:#71717A; margin-bottom:5px }
.title{ font-size:18px; font-weight:500; color:#18181B; margin:0 0 10px; letter-spacing:-.5px }
.desc{ font-size:13px; color:#52525B; line-height:1.4; margin-bottom:12px }
.feats{ display:flex; gap:6px; margin-bottom:15px }
.feat{ font-size:10px; background:#F4F4F5; color:#71717A; padding:3px 8px; border-radius:10px; font-weight:500 }
.bottom{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px }
.price{ display:flex; flex-direction:column }
.old{ font-size:13px; text-decoration:line-through; color:#A1A1AA; margin-bottom:2px }
.new{ font-size:20px; font-weight:400; color:#18181B }
.btn{ background:var(--green); color:#fff; border:none; border-radius:10px; padding:8px 15px; font-size:13px; font-weight:400; cursor:pointer; display:flex; align-items:center; gap:6px; transition:.3s; box-shadow:0 3px 10px rgba(0,0,0,.1); position:relative; overflow:hidden }
.btn:hover{ background:linear-gradient(45deg,#27272A,#3F3F46); transform:translateY(-2px); box-shadow:0 5px 15px rgba(0,0,0,.15) }
.btn:before{ content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent); transition:.5s }
.btn:hover:before{ left:100% }
.icon{ transition:transform .3s }
.btn:hover .icon{ transform:rotate(-10deg) scale(1.1) }
.meta{ display:flex; justify-content:space-between; align-items:center; border-top:1px solid #F4F4F5; padding-top:12px }
.rating{ display:flex; align-items:center; gap:2px }
.rcount{ margin-left:6px; font-size:11px; color:#71717A }
.stock{ font-size:11px; font-weight:600; color:#22C55E }
.img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block }
.card:hover .img img{ transform:scale(1.05) }

.action {
    color: var(--green);      /* your green color */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    padding: 5px 0;
}

.bottom {
    display: flex;
    align-items: center;
    gap: 5px;      /* space between items */
}

.stock a {
  text-decoration: none;
  font-size: 14px;
  color: #22C55E;
  padding: 0;
  margin: 0;
  list-style: none;
}


.card .btn,
.card .stock a {
    pointer-events: auto; /* make sure buttons/links respond */
}


@media (max-width:600px){
  .card{ width:100% }      /* keeps internal spacing on tiny phones */
  .title{ font-size:16px }
  .img{ height:180px }
  .bottom{ flex-direction:column; align-items:flex-start; gap:10px }
  .price{ margin-bottom:5px }
  .btn{ width:100%; justify-content:center }
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    color: #555;
}

/* TABLET — 2 COLUMNS (600px+) */
@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MID SCREEN — 3 COLUMNS (900px+) */
@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* LARGE SCREEN — 4 COLUMNS (1200px+) */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============== END OF PRODUCTS CARDS =================*/

/* ON very LARGE screens */
@media only screen and (max-width: 10000px) and (min-width: 675px) {
  .topbar_mobo {
  display: none;
}

.menu {
  display: none;
}
}

/* ON VERY SMALL SCREENS  -  HEY, BUDDY LET'S HELP THEM SEE NICELY */
@media only screen and (max-width: 674px) and (min-width: 20px) {
/* Navigation menu */
  .nav_strip {
    display: none;
  }

  .logo_left {
    display: none;
  }

  .right_nav {
    display: none;
  }

.topbar_mobo {
    width: 100%;
    height: 60px; /* FIX: consistent height */
    background: var(--blue);
    color: var(--green);
    display: flex;
    align-items: center; /* vertically center items */
    justify-content: space-between; /* left + right */
    padding: 0 0;
    position: static;
    top: 19px;
    left: 0;
    z-index: 600;
    white-space: nowrap; /* prevent wrapping */
}

.topbar_mobo .container {
    width: 80% !important;
    margin: 0 auto;
    position: relative; /* IMPORTANT */
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, hamburger right */
    height: 60px; /* optional but recommended */
}

.topbar_mobo .container a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
        text-decoration: none; /* removes underline */
}

.donati {
    position: relative;
}

.topbar_mobo img {
  height: 35px;
}

.top_bar p {
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
}

main {
  padding-top: 10px;
  width: 100%;
}

main ,.container {
  width: 100%;
}


.top_bar .container {
  width: 100%;
}

main .container {
  width: 100%;
}

.bottom_bar .container {
  width: 100%;
}

.bottom_bar p {
  font-size: 10px;
}

/* Menu container */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    background: none;
    transform: translateX(-100%);
    transition: 0.3s ease;
    z-index: 999;
}

/* Each link becomes a full-width sliding block */
.menu-item {
    display: block;
    width: 100%;
    padding: 11px 10px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    background: var(--green);
    border-bottom: 1px solid var(--blue);
    transform: translateX(-120%);
    opacity: 0;
    position: relative;
}

/* When sliding in */
.menu-item.show {
    transform: translateX(0);
    opacity: 1;
    transition: 0.55s ease;
}

/* Sub-links (hidden by default) */
.sub-links {
    display: none;
    background: rgb(63, 106, 63);
    padding-left: 30px;
}

/* Each sub-link styling */
.sub-links a {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--blue);
}

/* Show sub-links */
.sub-links.show {
  display: block;
}

/* NEW MODERN HAMBURGER */
.hamburger {
  position: relative;
  width: 15px;
  height: 13px;
  cursor: pointer;
  color: #000;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 1px;
  background: currentColor;
  border-radius: 1px;
  transition: 0.3s ease;
}

/* OPEN STATE (X) */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Make bottom line shorter */
.hamburger-line:nth-child(3) {
  width: 70%;
  align-self: flex-end;
}

/* When open (X) → restore to full width */
.hamburger.active .hamburger-line:nth-child(1),
.hamburger.active .hamburger-line:nth-child(3) {
  width: 100%;
}

/* SCROLL to TOP */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--blue);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--green);  
    border: none;         
    outline: none;        
    cursor: pointer;
}




  }
