* {
    box-sizing: border-box;
    font-family: Calibri, 'Gill Sans MT', 'Gill Sans', 'Trebuchet MS', sans-serif;
    font-weight: 1000;
}


/* NAVIGATION BAR */

.shoppingcart {
    position: relative;  /* Makes the box shrink to fit the image size */
    display: flex;
     align-items: center;
     justify-content: left;
     margin-right: 0px;
     margin-left: auto;
}
.shoppingcart:hover {
    cursor: pointer;
}

.shoppingcartimage {
    display: block;
    position: relative;
    height: 100px;
    width: auto;
}

.cartnumber {
    position: absolute;
    /* Styling to look like a badge */
    right: 35px;
    top: 30px;
    color: white;
}

.cartnumber:hover {
 color: #efefef;
}

.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #181818;
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
z-index: 1000000;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: left;
}
.toppages {
   gap: 20px;
   text-decoration: none;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: right;
    padding: 10px 20px;
}
.topbutton {
    color: #efefef;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}
.topbutton:hover {
    color: grey;
}
.topbutton:active {
    color: rgba(255, 255, 255, 0.112);
}

/* SEARCH BAR */
.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    pointer-events: all;
}

#search-input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
    background-color: #333;
}

#search-input::placeholder {
    color: #888;
}


/* Promotional */
.promotional {
  display: flex;
  margin-top: 100px;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 600px;
  overflow: hidden;
  opacity: 1;
}

.promotional.searching {
    opacity: 0;
    max-height: 0;
    margin-top: 60px; /* Reduced margin when hidden */
    pointer-events: none;
}

.slider-container {
  position: relative;
  width: fit-content;
}

.window {
  width: 1502px;
  height: 526px;
  overflow: hidden;
  position: relative; 
}

.track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
}

.slidebtn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  z-index: 10; 

  cursor: pointer;
  padding: 15px; 
  font-size: 30px; 
  background: transparent;
  color: white;
  border: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.slidebtn.prev {
  left: 10px;
}

.slidebtn.next {
  right: 10px;
}

/* Ensures the wrapper holds the button and image together */
.slide-wrapper {
  position: relative;
  padding: 0;
  margin: 0;
}

/* Forces the image inside the wrapper to fill the slide area */
.slide-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Styles the specific "Shop Sale" button */
.promo-btn {
  position: absolute;
  bottom: 240px;        
  left: 1325px; 
  padding-left: 100px;
  padding-right: 60px;
  padding-top: 50px;
  padding-bottom: 50px;
  font-size: 24px;
  background-color: transparent;
  cursor: pointer;
    border: 2px solid transparent;
  
}





/* MAIN ITEM PAGE LAYOUT*/
.mainitempage {
    display: grid; 
    
    /* 2. This keeps your responsive columns */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    
    /* 3. Centers the actual grid columns in the middle of the page if they don't fill the width */
    justify-content: center; 

    gap: 20px; 
    padding: 20px; 
    max-width: 1200px; 
    
    /* margin: top right bottom left */
    /* "auto" on left/right centers the whole container */
    margin: 20px auto 0 auto; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mainitempage.searching {
    transform: translateY(0);
    margin-top: 80px; /* Ensures products stay below the fixed navbar when promo is hidden */
}

.itemcontainer {
    /* This aligns the image and text inside the card */
    display: flex;
    flex-direction: column; /* Stacks image on top of text */
    align-items: center;    /* Centers them horizontally */
    text-align: center;     /* Ensures text is centered */
    
    /* Optional: Makes it look like a card */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background-color: white;
}

.productimage {
    width: auto;
    height: 200px;
    border-radius: 10px;
}

.addtocartbutton {
    background: linear-gradient(to bottom, #ffc107, #ff9800); /* Shiny gold/orange */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    box-shadow: 0 5px 0 #c66900; /* The 3D "side" of the button */
    transition: all 0.1s; /* Instant snap for clicking */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover Effect: Slightly brighter */
.addtocartbutton:hover {
    background: linear-gradient(to bottom, #ffcf40, #ffa000);
    transform: translateY(-2px); /* Moves up slightly */
    box-shadow: 0 7px 0 #c66900; /* Shadow grows */
}

/* Click Effect: Squishes down */
.addtocartbutton:active {
    transform: translateY(5px); /* Moves down to cover the shadow */
    box-shadow: 0 0 0 #c66900; /* Shadow disappears */
}



.logo {
width: 150px;
height: auto;
}

.productpagecontainer {
margin-top: 150px;
}

.productdetailpanel {
color: white;
display: absolute;
}

.productimagedetail {
    width: 400px;
    height: auto;
}

/* FOOTER */

.footer {
    display: flex;    
    flex-direction: column; 
    background-color: #181818;
    color: white;
    padding-top: 20px;      /* Increased space from items */
    padding-bottom: 40px;   
    backdrop-filter: blur(10px);
    opacity: 0.5;
    gap: 10px;
    text-align: center;
    margin-top: 50px;       /* Pushes away from content */
    flex-grow: 1;           /* Expands all the way to the bottom of the page */
}




body {
    background-color: #23272A;
    color: #000000;
    margin: 0; /* skibidi */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Makes it the same color as the surrounding text */
}

/* MOBILE RESCUE - MEDIA QUERY */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 10px;
        position: fixed; /* Keeps it stuck even on mobile */
    }

    .logo {
        margin-bottom: 10px;
        width: 100px;
    }

    .toppages {
        display: none; /* Hides About/Sales on tiny screens to save space */
    }

    .search-container {
        position: static; 
        transform: none;
        left: auto;
        padding: 5px 0;
        width: 100%;
    }

    #search-input {
        max-width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .shoppingcart {
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .shoppingcartimage {
        height: 50px;
    }

    .cartnumber {
        right: 15px;
        top: 15px;
        font-size: 12px;
    }

    .promotional {
        margin-top: 160px; /* Space for the taller mobile navbar */
    }

    .window {
        width: 100vw;
        height: auto;
        aspect-ratio: 16/9;
    }

    .mainitempage {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 10px;
        padding: 10px;
    }

    .itemcontainer {
        padding: 8px;
    }

    .productimage {
        height: 120px;
    }

    .addtocartbutton {
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 20px;
    }
}
