*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nav{
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.nav__logo {
    display: flex;
    background: #bb8116;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.nav__logo a {
    font-size: 4rem;
    font-family: "Lobster", sans-serif;
    text-decoration: none;
    color: black;
}
.nav__list {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 2px dashed rgb(167, 126, 72);
    padding: 5px; 
    border-radius: 8px; 
}
.nav__item a {
    font-size: 17px;
    font-family: "Lobster", sans-serif;
    text-decoration: none;
    color: black;
    display: inline-block;
    padding: 5px 10px;
    transition: color 0.3s;
}
.nav__item a:hover {
    color: #bb8116;
}
.info{
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.info__title{
    font-family: "Exo 2", italic;
    color: black;
}
.info__list {
    display: flex;
    gap: 1rem;
    margin: 1rem;
    
}
.info__item {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid rgb(167, 126, 72);
    padding: 5px; 
    border-radius: 8px; 
}
.info__item-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.info__item-text {
    font-family: "Exo 2", italic;
    color: black;
}
.coffeePick{
    display: grid;
    gap: 1rem;
}
.coffeePick__text{
    text-align: center;
    text-decoration: none;
}
.coffeePick__list{
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem;
}
.coffeePick__item{
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}
.coffeePick__item:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.coffeePick__item-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.coffeePick__item-button {
    padding: 0.5rem 1rem;
    background: #bb8116;
    color: white;
    border: none;
    border-radius: 4px;
}
.coffeePick__item-button:hover:not(:disabled) {
    background: #a67012;
}
.coffeePick__item-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
.giftFriend__title {
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    color: black;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.giftFriend__container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 2rem auto;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.giftFriend__container-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.giftFriend__container-text {
    max-width: 600px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
}

.giftFriend__container-button {
    padding: 0.8rem 2rem;
    background: #bb8116;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: "Exo 2", sans-serif;
    font-size: 1rem;
}
.bestSelling{
    display: flex;
    gap: 5px;
    flex-direction: column;
}
.bestSelling__title{
    font-family: "Exo 2", italic;
    color: black;
}
.bestSelling__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    
}
.bestSelling__item {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid rgb(167, 126, 72);
    padding: 5px; 
    border-radius: 8px; 
}
.bestSelling__item-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.bestSelling__item-content {
    font-family: "Exo 2", italic;
    color: black;
}
.scroll-top {
 position: fixed;
 bottom: 30px;
 right: 30px;
 width: 56px;
 height: 56px;
 background: rgb(167, 126, 72);
 color: white;
 border: none;
 border-radius: 50%;
 font-size: 24px;
 cursor: pointer;
 box-shadow: 0 4px 12px rgba(0,0,0,0.3);
 opacity: 0;
 visibility: hidden;
 transition: all 0.3s ease;
 z-index: 999;
 display: flex;
 align-items: center;
 justify-content: center;
}
.scroll-top.visible {
 opacity: 1;
 visibility: visible;
}
.scroll-top:hover {
 background: #1e3a23;
 transform: scale(1.1);
}
.scroll-top:active {
 transform: scale(0.95);
}
.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle__line {
  width: 100%;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active .menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s ease;
}


@media (min-width: 1280px) {
    .coffeePick__list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bestSelling__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (769px <= width <= 1279px) {
    p {
    font-size: 20px;
    }
    .coffeePick__list{
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
    .bestSelling__list {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1rem;
}
}

@media (481px <= width <= 768px) {
    .header {
        position: sticky;
        top: 0;
    }
    p {
    font-size: 16px;
    }
    .coffeePick__list{
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    .bestSelling__list {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 0.8rem;
    }
    .giftFriend__container {
    display: flex;
    flex-direction: column;
    }
    .scroll-top {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }
}

@media (0px <= width <= 480px) {
    header {
        position: sticky;
        top: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .nav__list {
           display: none;
    }
     .nav__list.active {
    display: flex;
    }
    .nav__list{
        background-color: #bb8116;
    }
    p {
    font-size: 16px;
    }
    .info{
        align-items: center;
    }
    .info__list{
        flex-direction: column;
    }
    .coffeePick{
    display: grid;
    gap: 1rem;
    justify-items: center;
    justify-content: center;
    }
    .coffeePick__list{
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
    .bestSelling{
        align-items: center;
    }
    .bestSelling__list {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0.8rem;
    }
    .giftFriend__container {
    display: flex;
    flex-direction: column;
    }
    .scroll-top {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
 }
}