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

:root{
  --gold: #d4af37;
  --black: #111;
  --white: #fff;
}

body{
  background: #fff;
  padding-top: 80px;
}

/* =========================
   NAVBAR
========================= */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  text-transform: none;
}

.logo-script{
  font-family: 'Marck Script', cursive;
  font-size: 52px;
  font-weight: 400;
  color: #111;
  line-height: 0.9;
  letter-spacing: 0;
}

.logo-sub{
  position: relative;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 6px;
  color: #444;
  padding: 0 18px;
}

.logo-sub::before,
.logo-sub::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: #cfcfcf;
}

.logo-sub::before{
  right: 100%;
  margin-right: 10px;
}

.logo-sub::after{
  left: 100%;
  margin-left: 10px;
}

.desktop-nav{
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
}

.desktop-nav a{
  color: black;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

.desktop-nav a::after{
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: black;
  left: 0;
  bottom: -4px;
  transition: width 0.25s ease;
}

.desktop-nav a:hover::after{
  width: 100%;
}

.nav-icon{
  color: black;
  cursor: pointer;
  font-size: 18px;
}

.search-box{
  position: fixed;
  top: 88px;
  right: 20px;
  background: rgba(10,10,10,0.98);
  border: 1px solid rgba(212,175,55,0.25);
  padding: 10px;
  border-radius: 10px;
  display: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 5000;
}

.search-box.active{
  display: block;
}

.search-box input{
  width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: white;
  outline: none;
}

.search-box input::placeholder{
  color: #cfcfcf;
}

.menu-toggle{
  display: none;
  background: transparent;
  border: none;
  color: #111;
  font-size: 32px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  position: relative;
  z-index: 4005;
  flex-shrink: 0;
}

.menu-toggle:hover{
  color: #d4af37;
}


.mobile-menu{
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(10px);
  padding: 12px 20px 20px;
  z-index: 999;
  transform: translateY(-15px);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.mobile-menu.active{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a{
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  transition: 0.3s ease;
}

.mobile-menu a:hover{
  color: var(--gold);
  padding-left: 6px;
}

#cartCount,
#mobileCartCount{
  background: var(--gold);
  color: #111;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 5px;
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider{
  position: relative;
  height: 80vh;
  overflow: hidden;
  z-index: 1;
}

.slide{
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.7s ease;
}

.slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.18)
  );
  z-index: 1;
}

.slide.active{
  opacity: 1;
  z-index: 1;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text{
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 520px;
  z-index: 2;
}

.hero-text h1,
.hero-text p{
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero-text h1{
  font-size: 50px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero-text p{
  font-size: 25px;
  margin-bottom: 15px;
}

.hero-btn{
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #111;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  transition: 0.3s ease;
}

.hero-btn:hover{
  background: #333;
}

.dots{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.dot{
  height: 10px;
  width: 10px;
  margin: 5px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active{
  background: #111;
}

/* =========================
   CATEGORIES
========================= */
.categories{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.category-section h2{
  font-size: 32px;
  margin-top: 10px;
  text-align: center;
}

.cat-card{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cat-card img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.5s;
}

.cat-card:hover img{
  transform: scale(1.1);
}

.cat-card h3{
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 20px;
  background: rgba(0,0,0,0.5);
  padding: 8px 15px;
}

/* =========================
   FEATURE STRIP
========================= */
.feature-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 40px 0;
}

.feature-box{
  background: #f5f5f5;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 15px;
}

.feature-box h3{
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-box p{
  font-size: 14px;
  color: #666;
}

.feature-box:hover{
  background: #111;
  color: #fff;
}

.feature-box:hover p{
  color: #ccc;
}

.feature-box.sale{
  background: #e8d8c3;
}

.feature-box.sale:hover{
  background: #c9a96e;
  color: #fff;
}

/* =========================
   FILTERS
========================= */


/* =========================
   PRODUCTS
========================= */
.products{
  padding: 80px 60px;
  background: #f9f9f9;
  text-align: center;
}

.section-title{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  gap: 15px;
}

.section-title hr{
  flex: 1;
  border: none;
  height: 1px;
  background: #ddd;
}

.section-title h2{
  font-size: 32px;
  font-weight: 500;
  color: #333;
}

.product-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card{
  background: white;
  padding: 20px;
  text-align: left;
  transition: 0.3s;
}

.product-card:hover{
  transform: translateY(-10px);
}

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

.product-card h3{
  margin: 15px 0 5px;
  font-size: 18px;
}

.product-card p{
  font-weight: bold;
  margin-bottom: 10px;
}

.product-card button{
  padding: 10px;
  width: 100%;
  border: none;
  background: black;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.product-card button:hover{
  background: #333;
}

/* =========================
   LOGIN / PROFILE
========================= */
.login-link{
  color: black;
  text-decoration: none;
  transition: 0.3s ease;
}

.login-link:hover{
  color: var(--gold);
}

.profile-wrapper,
.mobile-profile-wrapper{
  display: flex;
  align-items: center;
  position: relative;
}

.profile-menu,
.mobile-profile-menu{
  position: relative;
  display: none;
}

.profile-trigger{
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.05);
  color: black;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: 0.3s ease;
}

.profile-trigger:hover{
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.profile-avatar{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(255,255,255,0.08));
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.profile-avatar.large{
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.profile-trigger span:nth-child(2){
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
}

.profile-caret{
  color: #666;
  font-size: 12px;
}

.profile-dropdown{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 5000;
}

.profile-dropdown.show{
  display: flex;
  animation: profileDropdownIn 0.22s ease forwards;
}

.profile-dropdown-header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.profile-label{
  margin: 0;
  color: #bdbdbd;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.profile-email{
  margin: 3px 0 0;
  color: white;
  font-size: 13px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

.profile-dropdown a,
.dropdown-logout-btn{
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.profile-dropdown a:hover,
.dropdown-logout-btn:hover{
  background: rgba(212,175,55,0.12);
  color: var(--gold);
}

#profileMenu,
#mobileProfileMenu{
  display: none;
}

.mobile-profile-wrapper{
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.mobile-profile-menu{
  width: 100%;
}

.mobile-profile-menu .profile-trigger{
  width: 100%;
  justify-content: space-between;
  color: white;
}

.mobile-profile-menu .profile-dropdown{
  position: static;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

/* =========================
   FEATURES
========================= */

.toast-container{
  position: fixed;
  top: 95px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
}

.toast{
  min-width: 220px;
  max-width: 320px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1.4;
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.7s forwards;
  border-left: 4px solid #d4af37;
}

.toast.success{
  border-left-color: #d4af37;
}

.toast.error{
  border-left-color: crimson;
}

.toast.info{
  border-left-color: #3b82f6;
}


/* =========================
   FEATURES
========================= */
.features{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.feature-item{
  text-align: center;
  padding: 25px;
  border-right: 1px solid #eee;
}

.feature-item:last-child{
  border-right: none;
}

.feature-item h4{
  font-size: 16px;
  margin-bottom: 5px;
}

.feature-item p{
  font-size: 13px;
  color: #777;
}

/* =========================
   FOOTER
========================= */
.footer{
  background: black;
  color: white;
  padding: 50px 20px 20px;
  margin-top: 40px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}

.footer-box h3{
  margin-bottom: 15px;
  color: var(--gold);
}

.footer-box p,
.footer-box a{
  display: block;
  color: #ddd;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-box a:hover{
  color: var(--gold);
}

.footer-bottom{
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 30px;
  padding-top: 15px;
  color: #ccc;
}

.footer-box p,
.footer-box a{
  display: block;
  color: #ddd;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px){
  .desktop-nav{
    gap: 14px;
  }

  .hero-text{
    left: 8%;
    max-width: 460px;
  }

  .hero-text h1{
    font-size: 38px;
  }

  .hero-text p{
    font-size: 18px;
  }

  .product-container{
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip{
    grid-template-columns: repeat(2, 1fr);
  }

  .features{
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px){
  
  .profile-wrapper{
    display: none;
  }

  .navbar{
    padding: 0 18px;
  }

  .logo{
    font-size: 18px;
    letter-spacing: 2px;
    max-width: 70%;
  }

  .mobile-menu{
    width: 100%;
    padding: 18px 20px 24px;
  }

  .search-box{
    top: 86px;
    right: 18px;
    width: 230px;
  }

  .search-box input{
    width: 100%;
  }

  .hero-slider{
    height: 75vh;
  }

  .slide img{
    height: 75vh;
  }

  .hero-text{
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 84%;
    max-width: 84%;
    text-align: left;
    padding: 0;
  }

  .hero-text h1{
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-text p{
    font-size: 16px;
    margin-bottom: 12px;
  }

  .category-section{
    padding: 0 18px;
  }

  .categories{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cat-card img{
    height: 200px;
    width: 100%;
  }

  .feature-strip{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  

  .products{
    padding: 50px 18px;
  }

  .product-container{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card{
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
  }

  .product-card img{
    height: 220px;
  }

  .product-card h3{
    font-size: 15px;
  }

  .product-card p{
    font-size: 14px;
  }

  .product-card button{
    font-size: 14px;
    padding: 10px;
    width: 100%;
  }

  .features{
  grid-template-columns: 1fr;
  gap: 0;
}

.feature-item{
  padding: 16px;
  }

  @media (max-width: 768px){
  .category-section{
    padding: 0 18px;
  }

  .feature-strip{
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 30px 0;
  }

  .feature-box{
    width: 100%;
    padding: 22px 16px;
  }
}

@media (max-width: 480px){
  .category-section{
    padding: 0 14px;
  }

  .feature-strip{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-box{
    padding: 20px 14px;
  }
}

  .footer{
    padding: 45px 18px 20px;
  }

  .footer-container{
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px){
  .desktop-nav{
    display: none !important;
  }

  .menu-toggle{
    display: block !important;
  }

  .navbar{
    padding: 0 14px;
  }

  .logo{
    font-size: 16px;
    letter-spacing: 1px;
    max-width: calc(100% - 60px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px){
  .menu-toggle{
    display: block !important;
    font-size: 32px;
    padding: 4px 6px;
  }

  .navbar{
    padding: 0 12px;
  }

  .logo{
    max-width: calc(100% - 56px);
  }
}

@media (max-width: 768px){
  .logo-script{
    font-size: 40px;
  }

  .logo-sub{
    font-size: 11px;
    letter-spacing: 4px;
    padding: 0 12px;
  }

  .logo-sub::before,
  .logo-sub::after{
    width: 22px;
  }
}

@media (max-width: 480px){
  .logo-script{
    font-size: 32px;
  }

  .logo-sub{
    font-size: 10px;
    letter-spacing: 3px;
  }

  .logo-sub::before,
  .logo-sub::after{
    width: 16px;
  }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px){
  .navbar{
    padding: 0 14px;
  }

  .logo{
    font-size: 16px;
    letter-spacing: 1px;
    max-width: 68%;
  }

  .menu-toggle{
    font-size: 30px;
    padding: 4px 6px;
  }

  .mobile-menu{
    padding: 16px 18px 22px;
  }

  .search-box{
    top: 84px;
    right: 14px;
    width: 200px;
  }

  .hero-slider{
    height: 68vh;
  }

  .slide img{
    height: 68vh;
  }

  .hero-text{
    left: 7%;
    width: 86%;
    max-width: 86%;
    text-align: left;
  }

  .hero-text h1{
    font-size: 30px;
  }

  .hero-text p{
    font-size: 18px;
  }

  .hero-text button,
  .hero-text .btn{
    padding: 10px 18px;
    font-size: 13px;
  }

  .category-section{
    padding: 0 14px;
  }

  .feature-strip{
    grid-template-columns: 1fr;
  }

  .products{
    padding: 45px 14px;
  }

  .product-container{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card{
    max-width: 280px;
    margin: 0 auto;
  }

  .product-card img{
    height: 210px;
  }

  .features{
    grid-template-columns: 1fr;
  }

  .cat-card img{
    height: 210px;
  }

  .footer{
    padding: 40px 14px 20px;
  }
}

@keyframes slideInToast{
  from{
    opacity: 0;
    transform: translateX(30px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutToast{
  to{
    opacity: 0;
    transform: translateX(20px);
  }
}

@media (max-width: 768px){
  .toast-container{
    top: 88px;
    right: 14px;
    left: 14px;
  }

  .toast{
    min-width: 100%;
    max-width: 100%;
  }
}