* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: Roboto, sans-serif;
}

/* Headers (global header and category header) */
.GlobalHeader{
    top: 0;
    z-index: 100;
    background:  #f9f9fc;
    margin-bottom: 0;
}
.GlobalNav {
    max-width: 1090px;
    margin: 0 auto;
    padding-left: clamp(8px, 4vw, 40px);
    padding-right: clamp(16px, 5vw, 60px);
    height: 44px;
    column-gap: 0px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.navleft{
    display: flex;
    align-items: center;
}
.navleft img{
    height: 16px;
    cursor: pointer;
}
.navmenu{
    display: flex;
    gap: 36px;
    list-style: none;
    justify-self: center;
}
.navmenu a{
    text-decoration: none;
    color: #848486;
    font-size: 12px;
    font-weight: 450;
    cursor: pointer;
}
.navmenu a:hover{
    color: black;
}
.navright{
    display: flex;
    gap: 35px;
    justify-self: end;
}
.fa-solid{
    font-size: 13px;
    color: #1d1d1f;
    cursor: pointer;
}
.CategoryHeader{
    position: sticky;
    top: 0;
    background: rgba(249, 249, 252, 0.7);
    border-bottom: 1px solid #e5e5e5;
    z-index: 50;
    margin-top: 0;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: background 0.2s ease, backdrop-filter 0.2s ease;
}
.CategoryInner{
    max-width: 1090px;
    margin: 0 auto;
    padding-left: clamp(8px, 4vw, 40px);
    padding-right: clamp(16px, 5vw, 60px);
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between ;
}
.CategoryHeader h1{
    font-weight: 600;
    font-size: 20px;
    color: #1d1d1f;
    cursor: pointer; 
}
.browse-container{
    display: flex;
    align-items: center;
    gap: 4px;
}
.CategoryHeader h2{
    font-weight: 400;
    font-size: 12px;
    color: #6e6e73;
    cursor: pointer;
    line-height: 1;;
}
.CategoryHeader .icon2{
    font-size: 10px;
    color: #6e6e73;
    cursor: pointer;
    line-height: 1;
}

.navleft img,
.CategoryInner h1 {
    margin-left: 0;
}
.CategoryHeader:hover h2,
.CategoryHeader .icon2:hover {
    color: black;
}

/* Main Banner */
.MainBanner {
  background-color: #f5f5f7;
  width: 100%;
  padding-top: 35px;
  padding-left: clamp(16px, 5vw, 60px);
  padding-right: clamp(16px, 5vw, 60px);
  padding-bottom: 0px; 
}


.MainBannerInner {
  max-width: 1090px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto; 
  align-items: flex-end; 
  gap: 20px;
}

.BannerText {
  grid-column: 1;      
  padding-left: clamp(8px, 4vw, 40px);  
  padding-bottom: 45px;
}

.BannerImage {
  grid-column: 3;      
  padding-right: clamp(16px, 5vw, 60px); 
}
.BannerText h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.BannerText p {
  font-size: 19px;
  font-weight: 400;
  color: #1d1d1f;
  margin-bottom: 24px;
}
.BannerButtons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.BannerButtons a {
  text-decoration: none;
  font-weight: 400;
  font-size: 19px;
  color: #0071e3;
}
.BannerButtons a:hover {
  text-decoration: underline;
}

.BannerButtons i {
  margin-left: 6px;
  color: #0071e3;
}

.BannerImage img {
  max-width: 620px;
  height: auto;
  display: block;
}

.GlobalNav, .CategoryInner, .BannerText {
    padding-left: clamp(8px, 4vw, 40px);
    padding-right: clamp(16px, 5vw, 60px);
}

.FeaturedText {
  max-width: 1090px;
  margin: 0 auto;
  padding: 60px 0px 27px;
  text-align: center;
}
.FeaturedText h1 {
  font-size: 40px;
  font-weight: 550;
}

.BentoContent {
    display: grid;
    gap: 15px;
    max-width: 1090px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    cursor: pointer;
}
.AccessoryCard {
  background-color: #f5f5f7;
  border-radius: 18px;
  padding: 40px 40px 37px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  text-decoration: none;

  transition: transform 0.4s cubic-bezier(0.4, 0, 0.25, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.25, 1),
              background-color 0.4s ease;
}
.AccessoryCard:hover {
    transform: scale(1.015);
    background-color: #ffffff; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    z-index: 10; 
}

.card-info h3:hover{
    text-decoration: underline;
    color: #0071e3;
}

.FeaturedCase {
  grid-column: span 2;
  grid-row: span 1.5;
  height: 650px;
}
.CrossbodyStrap {
  grid-column: span 1;
  grid-row: span 1.5;
  height: 650px;
}

.SiliconeCase, .AirCase, .AirBumper {
  grid-column: span 1;
  grid-row: span 1;
  height: 530px;
  padding-top: 50px;
}

.product-img {
    height: 240px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}
.FeaturedCase .product-img {
    height: 400px;
  }
.CrossbodyStrap .product-img {
    height: 320px;
  }
  .AirBumper .product-img {
    height: 250px;
  }
  .SiliconeCase .product-img {
    height: 250px;
  }
  .AirCase .product-img {
    height: 250px;
  }

  .FeaturedCase .swatches{
    margin-bottom: 25px;
  }

  .swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 40px; 
    margin-top: 20px;
  }

.CrossbodyStrap .swatches i {
    font-size: 7px; 
    color: #1d1d1f; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.brown { background-color: #a36e51; }
.black { background-color: #000000; }
.white { background-color: #ffffff; }
.grey { background-color: #8e8e93; }
.orange { background-color: #ff9f0a; }
.green { background-color: darkgreen; }
.blue { background-color: darkblue; }
.sienna { background-color: #c1440e; }
.greyblue { background-color: #4a6fa5; }
.lightbrown { background-color: #d2b48c; }
.lightorange { background-color: #ffcc99; }

.card-info h3 {
  font-size: 14px;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 15px;
  line-height: 1.4;
}
.FeaturedCase .card-info p {
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 400;
  padding-top: 20px;
}
.CrossbodyStrap .card-info p{
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 400;
  padding-top: 20px;
}
.SiliconeCase .card-info p{
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 400;
  padding-top: 10px;
}
.card-info p {
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 400;
}
.AirBumper .card-info p , .AirCase .card-info p{
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 400;
  padding-top: 30px;
}

.CrossbodyStrap .swatches{
  padding-top: 35px;
}

.CrossbodyStrap{
  justify-content: center;
  padding-top: 50px;
}
.ShopMore {
  max-width: 1090px;
  margin: 40px auto 40px;
  text-align: center;
}

.ShopMore a {
  font-weight: 400;
  font-size: 16px;
  color: #0071e3;
  text-decoration: none;
}

.ShopMore a:hover {
  text-decoration: underline;
}
.ShopMore i {
  margin-left: 6px;
  color: #0071e3;
}

/*Footer*/
.GlobalFooter {
    background-color: #f5f5f7;
    padding: 40px clamp(16px, 5vw, 60px);
    margin-top: 60px;
}
.FooterContent {
    max-width: 1090px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    color: #6e6e73;
    font-size: 12px;
}
.leftalign {
    color: #8e8e93;
}
.FooterLinks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.FooterLinks li, .FooterLinks p {
    margin: 0;
}

.FooterLinks a {
    color: #6e6e73;
    text-decoration: none;
}

.FooterLinks a:hover {
    text-decoration: underline;
}

.rightalign {
    text-align: right;
}
/*Shop for Category part*/
.ShopByCategory{
  max-width: 1090px;
  margin: 100px auto;
  padding: 0 10px;
}
.CategoryContent{
  text-align: center;
  margin-bottom: 60px;
}
.CategoryContent h1{
  font-size: 25px;
  font-weight: 550;
  margin-bottom: 18px;
  font-family: Roboto, sans-serif;
}
.CategoryContent p{
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
}
.CategoryGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  column-gap: 120px;
  row-gap: 30px;
  max-width: 1090px;
  margin: 0 auto;
  cursor: pointer;
}
.CategoryItem{
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  color: #1d1d1f;
}
.CategoryItem i{
  font-size: 35px;
  color: #1d1d1f;
  width: 40px;
  display: flex;
  justify-content: center;
}
.CategoryItem span{
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}
.CategoryItem:hover span{
  color: #0071e3;
}

/* Product Detail Page */
.ProductPage {
    max-width: 1090px;
    margin: 60px auto;
    padding: 0 40px;
}

.DetailContainer {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 200px;
}

.ProductTitle {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 15px;
}

.ProductPrice {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
}

.InstallmentInfo {
  padding-top: 15px;
    font-size: 16px;
}

.AppleCardLink {
    display: inline-block;
    color: #0071e3;
    text-decoration: none;
    font-size: 16px;
    margin: 15px 0 30px;
    padding-bottom: 20px;
}
.AppleCardLink i {
    color: #0071e3;
}
.AppleCardLink:hover {
    text-decoration: underline;
  }

.SelectionGroup {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

.SizeDropdown {
    width: 100%;
    border: none;
    font-size: 17px;
    outline: none;
    background: transparent;
}
.ColorSection p {
    font-size: 18px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 40px;
}
.SwatchGroup {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.swatch-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d2d2d7;
    cursor: pointer;
}

.swatch-circle.active {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

.InfoItem {
    margin-top: 30px;
    margin-bottom: 30px;
}
.MonthlyNote {
    font-size: 15px;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 40px;
}
.InfoItem {
    display: flex;       
    align-items: flex-start; 
    gap: 15px;         
    margin-bottom: 20px;
}

.InfoItem i {
    font-size: 18px;   
    color: #1d1d1f;    
    margin-top: 2px;   
}

.ItemContent {
    display: flex;
    flex-direction: column; 
    gap: 2px;              
}

.ItemContent strong {
    font-size: 14px;
    color: #1d1d1f;
}

.ItemContent p{
    font-size: 14px;
    color: #6e6e73;
    text-decoration: none;
    margin: 0; 
}
.ItemContent a {
    font-size: 14px;
    color: #0071e3;
    text-decoration: none;
}

.ItemContent a:hover {
    text-decoration: underline;
}

.ActionButtons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.BtnPay, .BtnBag {
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;

    text-align: center; 
    display: block;
}
.ActionButtons a {
    text-decoration: none;
}

.BtnPay { background: #000; color: #fff; }
.BtnBag { background: #0071e3; color: #fff; }

.ProductGallery {
    position: sticky;
    top: 100px;
    align-self: start;
    text-align: center;
}

.MainImage img {
    width: 280px;
    height: auto;
}

.Thumbnails {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.Thumbnails img {
    width: 25px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding-bottom: 13px;

}

.Thumbnails img.active {
    border-bottom: 2px solid #1d1d1f;
}

.divider-line {
  width: 100%; 
  height: 0; 
  border-top: 1px solid #ccc; 
  margin: 2em 0; 
}



/* responsive code part */
@media (max-width: 1011px) {
    .navmenu {
        display: none;
    }

    .BentoContent {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 12px;
        width: 96%;
        max-width: none; 
        margin: 0 auto;
    }

    .FeaturedCase {
        grid-column: span 2;
        min-height: 580px;
        justify-content: center;
        padding: 60px 40px 40px; 
    }

    .CrossbodyStrap, .SiliconeCase, .AirCase, .AirBumper {
        grid-column: span 1;
        grid-row: span 1;
        height: auto;
        min-height: 420px;
        padding: 30px 20px;
    }

    .product-img {
        height: 150px;
    }
    .CrossbodyStrap .product-img {
        height: 245px;
    }
    .FeaturedCase .product-img {
        height: 350px;
    }
    .CrossbodyStrap { order: 2; }
    .FeaturedCase    { order: 1; }
    .SiliconeCase    { order: 3; }
    .AirCase         { order: 4; }
    .AirBumper       { order: 5; }

    .swatches {
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .CrossbodyStrap .swatches {
        padding-top: 2px; 
    }
    .CrossbodyStrap .card-info p{
      padding-top: 15px;
    }
}
@media (max-width: 600px) {
    .GlobalNav {
        padding: 0 16px;
    }
    .icon {
        font-size: 14px;
    }
     .CategoryHeader h2 {
        font-size: 10px;
    }
    .CategoryHeader .icon {
        font-size: 8px;
    }
    .CategoryContent {
        padding: 0 24px;   
        margin: 40px auto; 
    }

    .CategoryContent h1 {
        font-size: 28px;   
    }

    .CategoryContent p {
        font-size: 17px;
    }

    .CategoryGrid {
        grid-template-columns: 1fr; 
        row-gap: 15px;              
    }

    .CategoryItem {
        gap: 16px;                 
        padding: 10px 0;            
    }

    .CategoryItem i {
        font-size: 30px;           
        width: 30px;               
    }

    .CategoryItem span {
        font-size: 16px;          
    }
}
@media (max-width: 900px) {
  .MainBannerInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

  }
  .BannerImage img {
    max-width: 100%;
  }
   .BannerText, .BannerImage {
    padding: 0;
  }

  .BannerButtons a {
    display: inline-block;
    margin: 8px 8px 0 0;
  }
}
@media (max-width: 834px) {
    .BentoGrid {
        grid-template-columns: 1fr; 
    }

    .featured-case {
        grid-column: span 1; 
    }
    .FooterContent {
        grid-template-columns: 1fr auto;
        row-gap: 6px;
    }

    .leftalign {
        grid-column: 1;
        grid-row: 1;
    }

    .rightalign {
        grid-column: 2;
        grid-row: 1;
    }

    .FooterLinks {
        grid-column: 1 / span 2;
        grid-row: 2;
        padding-top: 2px;
    }
        .DetailContainer {
        grid-template-columns: 1fr; 
    }
    
    .ProductGallery {
        position: static;
        order: -1;
    }
}

