body{
    margin: 0;
    padding: 0;
    font-family: "Kumbh Sans", sans-serif;
}

header{
    margin: 0;
    padding: 0;
}

.navbar{
    display: flex;
    flex-direction: row;
    margin: 25px 20px;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.nav{
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    align-items: center;
}

.img-x{
    display: block;
    height: 15px;
    max-width: 100%;
    width: 15px;
    margin: 0;
    margin-top: 4px;
    padding: 0;
    cursor: pointer;
}

.logo{
    display: block;
    height: 20px;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.nav-2{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    align-items: center;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .cart-count-mobile {
    position: absolute;
    top: -6px;
    right: -6px;
    background: hsl(26, 100%, 55%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: none; /* hidden until item added */
  }
  

.cart{
    display: block;
    height: auto;
    max-width: 100%;
    width: 22px;
}

.avatar{
    display: block;
    height: auto;
    max-width: 100%;
    width: 25px;
    border-radius: 50%;
}

.avatar:hover {
    opacity: 0.7;
    border: 2px solid hsl(26, 100%, 55%);
}

.description{
    margin: 0 20px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.description h4{
    font-size: 12px;
    letter-spacing: 2px;
    color:  hsl(219, 9%, 45%);
    padding-top: 13px;
}

.description h2{
    font-size: 30px;
    margin-top: 0;
}

.description p{
    font-size: 15px;
    color: hsl(219, 9%, 45%);
    line-height: 1.6;
    margin-top: 0;
}

.product-x{
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.price{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 28px 0;
    padding: 0;
}

.price-percent{
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    gap: 18px;
}

.price-percent h3{
    font-size: 28px;
    margin: 0;
    padding: 0;
}

.price-percent p{
    color: hsl(0, 0%, 100%);
    margin-top: 6px;
}

.value{
    border: 1px solid transparent;
    padding: 1px 10px 5px 10px;
    background-color: hsl(0, 0%, 0%);
    height: 18px;
    width: 30px;
    border-radius: 4px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.price span{
    margin-top: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: line-through;
    color: hsl(219, 9%, 45%);
}

.btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 10px;
    border: 1px solid transparent;
    background-color: hsl(223, 64%, 98%);
    border-radius: 8px;
    margin: 0 auto 15px auto;
}

.btn button{
    border: 1px solid transparent;
    background-color: hsl(223, 64%, 98%);
    color: hsl(26, 100%, 55%);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 1;
    text-align: center;
}

.btn button:hover {
    opacity: 0.7;
}

.btn span {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.butt{
    border: 1px solid transparent;
    background-color: hsl(26, 100%, 55%);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 50px;
    box-shadow: 0px 10px 25px hsl(26, 100%, 55%);
}

.butt:hover {
    opacity: 0.8;
    color: hsl(25, 100, 94);
}

.svg{
    height: 16px;
    max-width: 100%;
    width: 16px;
    margin-right: 13px;
}

.butt span{
    color: hsl(0, 0%, 0%);
    font-size: 16px;
    font-weight: 700;
}



/* ─────────────────────────────────────────────
   ADDED STYLES — DOES NOT MODIFY YOUR LAYOUT
   ───────────────────────────────────────────── */

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100vh;
    background: white;
    padding: 20px;
    transform: translateX(-100%);
    transition: 0.3s ease-in-out;
    z-index: 2000;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-menu {
    width: 18px;
    margin-bottom: 30px;
    cursor: pointer;
}

.mobile-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
}


/* DARK OVERLAY BEHIND MENU */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 1500;
}

.overlay.show {
    display: block;
}



/* MOBILE LEFT/RIGHT IMAGE BUTTONS */
.mobile-gallery {
    position: relative;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.prev-btn img,
.next-btn img {
    width: 12px;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}



/* CART DROPDOWN */
.cart-dropdown {
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 380px; /* optional: keeps it neat */
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: none;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cart-dropdown h4 {
    margin: 0;
    border-bottom: 1px solid hsl(220, 14%, 75%);
    padding-bottom: 15px;
    font-size: 16px;
}

.cart-content {
    padding-top: 20px;
}

.empty-msg {
    text-align: center;
    color: hsl(219, 9%, 45%);
    font-size: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-thumb {
    width: 50px;
    border-radius: 5px;
}

.cart-text {
    font-size: 14px;
    color: hsl(219, 9%, 45%);
}

.cart-total {
    font-weight: 700;
    color: black;
}

.delete-icon {
    width: 15px;
    cursor: pointer;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    background: hsl(26, 100%, 55%);
    border: none;
    padding: 15px 0;
    border-radius: 8px;
    color: black;
    font-weight: 700;
    cursor: pointer;
}

.mobile-version {
    display: block;
}

.desktop-version {
    display: none;
}


@media (min-width: 768px){
    .cart-dropdown{
        right: 55px;
        left: auto;
    }
}



@media (min-width: 1024px){

    .mobile-version {
        display: none;
    }
    
    .desktop-version {
        display: block;
    }

    .avatar{
        width: 60px;
    }

    .cart-icon-wrapper img{
        cursor: pointer;
    }

    .line{
        border: 0.1px solid hsl(220, 14%, 75%);
        margin: 0px 20px 0 20px;
    }

    .list{
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
        align-items: center;
        position: relative;
    }

    .list a{
        text-decoration: none;
        color:  hsl(219, 9%, 45%);
        font-size: 14px;
        margin-left: 35px;
        position: relative;
    }

    .list a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -46px; /* distance from text down toward .line */
        height: 3px;
        background: hsl(26, 100%, 55%);
        opacity: 0;
        transform: scaleX(0);
        transition: opacity 0.25s ease, transform 0.25s ease;
        border-radius: 2px;
      }
      
      /* Hover effect = show the orange bar */
      .list a:hover::after {
        opacity: 1;
        transform: scaleX(1);
      }
  

    .product-x{
        width: 100%;
        height: 100%;
        margin: 0 23px;
        border-radius: 20px;
        cursor: pointer;
    }

    .product-section{
        display: flex;
        flex-direction: row;
        margin: 0 35px 0 35px;
        padding: 0;
        gap: 50px;
    }

    .desktop-gallery{
        display: flex;
        flex-direction: column;
        margin: 100px 30px 0 30px;
        padding: 0;
        align-items: center;
        justify-items: center;
    }

    .thumbs{
        display: flex;
        flex-direction: row;
        gap: 22px;
        width: 100%;
        margin: 30px auto 0 auto;
        padding: 0;
    }

    .thumbs .lb-thumb {
        cursor: pointer;
        opacity: .7;
        transition: all 0.18s ease;
      }

    /* ACTIVE thumbnail state */
    .thumbs .thumb.active{
        opacity: 0.3 !important;
        box-shadow: 0 0 0 3px rgba(255,140,0,0.15), 0 0 0 2px hsl(26,100%,55%);
        background: rgba(255,255,255,0.7);
        transform: translateY(-3px);
        border-radius: 10px;
    }

    .thumbs .thumb:hover {
        opacity: 0.4;
        transform: translateY(-3px);
    }


    .thumbs img{
        max-width: 100px;
        height: auto;
        width: 21%;
        border-radius: 10px;
        cursor: pointer;
    }

    .description{
        margin: 125px 30px 0 30px;
    }

    .description h2{
        font-size: 40px;
    }

    .price{
        display: flex;
        flex-direction: column;
    }

    .switch{
        display: flex;
        flex-direction: row;
        gap: 5%;
    }
    .btn{
        width: 35%;
        height: 55px;
        padding: 0;
        margin: 0;
    }

    .butt{
        width: 60%;
    }

    .cart-count-desktop{
        position: absolute;
        top: -6px;
        right: -6px;
        background: hsl(26, 100%, 55%);
        color: white;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 700;
        display: none; /* hidden until item added */        
    }

    .cart-dropdown{
        right: 95px;
        left: auto;
    }

      
/* LIGHTBOX OVERLAY */
.lightbox-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .lightbox-overlay.show {
    display: flex;
  }
  
  /* LIGHTBOX CONTENT WRAPPER */
  .lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* MAIN IMAGE */
  #lightboxMain {
    max-width: 520px;
    width: 100%;
    border-radius: 14px;
    display: block;
  }
  
  /* CLOSE BUTTON sits on top-right of image */
  .lightbox-close {
    position: absolute;
    top: -50px;
    right: -1px;
    background: rgba(90, 90, 90, 0.72);
    color: hsl(0, 0%, 100%);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 45px;
    font-weight: bold;
    display: flex;
    align-items:center;
    justify-content:center;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .lightbox-close:hover {
    color: hsl(26,100%,55%);
  }
  
  /* PREV / NEXT */
  .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items:center;
    justify-content:center;
    transition: background 0.2s ease;
  }
  
  .lightbox-prev:hover, .lightbox-next:hover {
    background: hsl(26,100%,55%);
    color: white;
  }
  
  .lightbox-prev { left: -24px; }
  .lightbox-next { right: -24px; }
  
  /* THUMBNAILS */
  .lightbox-thumbs {
    margin-top: 20px;
    display: flex;
    gap: 18px;
  }
  
  .lightbox-thumbs .lb-thumb {
    width: 78px;
    border-radius: 10px;
    cursor: pointer;
    opacity: .7;
    transition: all 0.18s ease;
  }
  
  .lightbox-thumbs .lb-thumb.active {
    opacity: 0.5;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.15),  0 0 0 2px hsl(26,100%,55%);
    background: rgba(255,255,255,0.7);
    transform: translateY(-3px);
  }

  
}