* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    /* 1 rem now = 10 pixels*/
    font-size: 62.5%;
    scroll-behavior: smooth;
   
}

body{
    -webkit-animation: opening 1s ease-in-out;
    animation: opening 1s ease-in-out;
    background: -webkit-gradient(linear, left top, left bottom, from(black), to(transparent)), url("../img/hero-img.jpg");
    background: linear-gradient(black, transparent), url("../img/hero-img.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

@-webkit-keyframes opening {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes opening {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*------------------NAVIGATION BAR------------------*/
.main-head {
    background: rgba(0, 0, 0, 0.1);
    position: static;
    top: 0;
    z-index: 9999;
}

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    min-height: 10vh;
    width: 90%;
    padding-top: 4rem;
}

.logo a {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    font-size: 2rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
    font-weight: 800;
    overflow: hidden;
    background: linear-gradient(to right, #E3B23C, #E3B23C 50%, #fff 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100%;
    transition: background-position 275ms ease;
    &:hover {
        background-position: 0 100%;
    }
}


.nav-links {
    display: flex;
    justify-content: space-around;
    width: 30%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.3rem;
    font-weight: bold;
    font-size: 1.8rem;
    font-weight: 800;
    overflow: hidden;
    background: linear-gradient(to right, #E3B23C, #E3B23C 50%, #fff 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100%;
    transition: background-position 275ms ease;
    
    &:hover {
        background-position: 0 100%;
    }
}

.nav-links a:hover {
    border-bottom: solid 2px #E3B23C;
    padding-bottom: 0.2rem;
}

.nav-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border: 3px solid #E3B23C;
    background-color: transparent;
    color: #fff;
}
.nav-btn:hover{
    background-color: #E3B23C;
    transition: 0.2s ease-in;
}
.nav-btn a{
    text-decoration: none;
    color: #fff;
}

/*------------------Homepage Hero------------------*/
.hero-section {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    min-height: 90vh;
}

.hero-content{
    margin-left: 10rem;
}

.hero-content h2 {
    font-size: 9rem;
}

.hero-content p {
    font-size: 2.5rem;
    margin-bottom: 5rem;
}

.hero-content span{
    color: #E3B23C;
}

.hero-btn {
    background: #E3B23C;
    color: #fff;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 2rem;
    transition: background 0.5s ease-in-out;
    text-decoration: none;
}

.hero-btn:hover {
    background: #6E675F;
}

.hero-btn:focus {
    background: #6E675F;
}

/*------------------Break------------------*/
.break{
    min-height: 1px;
    background-color: #E3B23C;
}

/*------------------Homepage Carousel------------------*/
.carousel-item{
    font-size: 2rem;
    height: 90vh;
}

.carousel-btn{
    background: #E3B23C;
    color: #fff;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 1.8rem;
    transition: background 0.5s ease-in-out;
    text-decoration: none;
    width: 15rem;
}
.carousel-btn:hover{
    background: #6E675F;
}
.card-btn:focus{
    background: #6E675F;
}

.carousel1{
    background: url(../img/accessories.jpg);
    background-position: center center;
    background-attachment:local;
    background-size: cover;
    background-repeat: no-repeat;
}
.carousel2 {
    background: url(../img/roasted-beans.jpg);
    background-position: center center;
    background-attachment: local;
    background-size: cover;
    background-repeat: no-repeat;
}
.carousel3 {
    background: url(../img/store.jpg);
    background-position: center center;
    background-attachment: local;
    background-size: cover;
    background-repeat: no-repeat;
}

/*------------------Homepage Product Overview------------------*/
.featured-container{
    background-color: #fff;
    min-height: 90vh;
}
.card-head {
    text-align: center;
    padding: 2rem 0;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.card-head h1 {
    font-size: 5rem;
    color: #6E675F;
    margin: 0;
}

.cards {
    min-height: 60vh;
    margin: auto;
    padding: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.card {
    text-align: center;
    width: 40rem;
    min-height: 30rem;
    margin: 2rem 5rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(227, 178, 60, 0.8);
}

.card-img img {
    height: 300px;
    max-width: 100%;
    border-radius: 2rem 2rem 0 0;
}

.card h2 {
    font-size: 2rem;
    padding-top: 2rem;
}

.card p {
    font-size: 2rem;
}

.card-btn{
    background: #e3b23c;
    color: #fff;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    padding: 1rem 1rem;
    font-size: 1.6rem;
    transition: background 0.5s ease-in-out;
    text-decoration: none;
    width: 30%;
    margin-left: 35%;
    margin-bottom: 2rem;

}
.card-btn:hover, .card-btn:focus {
    background: #6E675F;
}

/*------------------Footer------------------*/
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Creates three equal-width columns */
    gap: 20px;
    /* Adds space between columns */
    padding: 20px;
    background-color: #423E37;
    color: white;
}

.footer-grid p{
    font-size: 1.6rem;
    margin: auto;
    
}

.footer-col {
    list-style: none;
    /* Removes default bullet points */
    padding: 0;
    margin: 0;
}

.footer-col h3{
    color: rgb(227, 178, 60);
    text-decoration: underline;
}

.footer-col li {
    margin-bottom: 5px;
    font-size: 1.6rem;
}

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

.footer-col a:hover {
    text-decoration: underline;
}

/*------------------Shop Page------------------*/
.product-container{
    background-color: #fff;
    min-height: 90vh;
    padding-bottom: 5rem;
}
.product-head {
    text-align: center;
    padding: 2rem 0;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5rem;
}

.product-head h1 {
    font-size: 5rem;
    color: #6E675F;
    margin: 0;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #e3b23c;
    color: #fff;
    font-size: 1.5rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #6E675F;
}

.sort-select {
    padding: 1rem 1rem;
    border-radius: 2rem;
    border: 1px solid #ccc;
    font-size: 1.5rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.search-bar {
  padding: 0.5rem 1rem;
  border: 2px solid #E3B23C;
  border-radius: 50px; 
  font-size: 1rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  background-color: #fff;
}

.search-bar:focus {
  outline: none;
  border-color: #cfa030;
  box-shadow: 0 0 8px rgba(227, 178, 60, 0.6);
}

.search-btn {
  background-color: #E3B23C;
  border: none;
  color: #fff;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #cfa030;
  transform: scale(1.05);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    grid-template-rows: repeat(3, 1fr);
    gap: 5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(227, 178, 60, 0.8);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
}

.product-info h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #000;
}

.product-info p {
    color: #777;
    font-size: 1.8rem;
    margin: 0.5rem 0 1rem;
}

.price {
    font-weight: bold;
    color: #423E37;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-btn {
    display: inline-block;
    background: #E3B23C;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.5s ease-in-out;
    text-decoration: none;
    cursor: pointer;


}

.product-btn:hover {
    background-color: #423E37;
}

/*------------------Cart Page------------------*/
.cart-container{
    min-height: 90vh;
    background-color: #fff;
}

#checkout-btn{
    margin-bottom: 2rem;
    
}


@media (max-width: 870px) {
/* Styles applied when the viewport width is 768px or wider */
    .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}