/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/* COLORS */
:root {
  --black: #000000;
  --charcoal: #1c1c1c;
  --pink: #f5b7d2;
  --brown: rgb(187, 125, 66);
  --white: #f1f1e9;
}

html,
body {
  font-family: 'allura';
  background: var(--black);
  width: 100%;
  cursor: pointer;
  scroll-behavior:smooth;
  overflow-x:hidden;
  color: var(--white);
}

/* TOP NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--black);
  display: flex; 
  align-items: center;
  padding: 15px 15px;
  z-index: 200;
  border-bottom: 1px solid #222;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

/* Dropdown container */
.line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  margin: 30px 0;
}
.menu-dropdown {
  position: relative;
}

.menu-dropdown a {
  text-decoration: none;
  color: var(--pink);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: black;
  padding: 0;
  margin: 0;
  min-width: 180px;
  z-index: 999;
  list-style: none;
}

.dropdown li a:hover{
  text-decoration: underline;
}
 
.menu-dropdown:hover .dropdown {
  display: block;
}

/* Dropdown links */
.dropdown li a {
  color: var(--pink);
  text-decoration: none;
  display: block;
  padding: 10px;
}

.dropdown li.brown a {
  color: var(--brown);
  text-decoration: none;
  display: block;
  padding: 10px;
}

.dropdown li.brown a:hover{
  text-decoration: underline;
}
 
/* Show dropdown on hover */
.menu-dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger lines + text */
.menu-icon {
  display: flex;
  /* horizontal layout */
  align-items: center;
  /* vertically center lines and text */
  gap: 6px;
  /* space between lines and text */
  cursor: pointer;
}

/* Hamburger lines stacked vertically */
.hamburger span {
  /* first 3 spans */
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--pink);
  border-radius: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Menu text */
.menu-icon .menu-text {
  font-size: 20px;
  color: var(--pink);
  font-weight: 600;
  white-space: nowrap;
  /* prevents wrapping */
}

a {
  text-decoration: none;
}

h1.brand {
  font-family: 'Allura';
  font-size: 40px;
  align-items: center;
  color: var(--white);
  text-align: center;
  width: 300px;
  max-width: 90%;
  margin-left: 400px;
  cursor: pointer;
}

h1.brand span {
  font-size: 40px;
  font-family: 'Allura';
  align-items: center;
  color: var(--pink);
}

.nav-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left:auto;
  font-weight: 500;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}

nav a:hover {
  color: var(--pink);
}

.search-bar, .cart, .heart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px var(--pink);
  border-radius: 25px;
  width: auto;
  margin: 0;
  background-color: var(--black);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}
.search-bar i, .heart i, .cart i{
  font-size: 19px;
  cursor: pointer;
  margin: 0;
  color: var(--pink);
  align-items: center;
}
.cart:hover, .heart:hover, .search-bar:hover {
  box-shadow: 0 0 10px var(--white);
}
/* ================= CART BADGE ================= */

.cart{
    position:relative;
}

.cart-link{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-count{

    position:absolute;

    top:-8px;
    right:-10px;

    width:20px;
    height:20px;

    border-radius:50%;

    background:var(--pink);
    color:var(--black);

    font-size:11px;
    font-weight:700;

    display:none;

    align-items:center;
    justify-content:center;

    line-height:1;

    z-index:100;
}

/* =========================================
   MOBILE HEADER
========================================= */

@media screen and (max-width:768px){

.site-header{

display:flex;
align-items:center;
justify-content:space-between;

padding:12px 18px;

height:70px;

}

.menu-icon .menu-text{

display:none;

}

.hamburger span{

width:22px;

}

h1.brand{

margin:0;

width:auto;

max-width:none;

font-size:28px;

text-align:center;

}

h1.brand span{

font-size:28px;

}

.nav-icons{

gap:8px;

margin-left:0;

}

.search-bar,
.heart,
.cart{

padding:8px;

}

.search-bar i,
.heart i,
.cart i{

font-size:17px;

}

.cart-count{

width:18px;
height:18px;

font-size:10px;

top:-5px;
right:-5px;

}

.dropdown{

left:0;

width:220px;

}

}

/* EXTRA SMALL PHONES */

@media screen and (max-width:420px){

.site-header{

padding:10px 12px;

}

h1.brand{

font-size:22px;

}

h1.brand span{

font-size:22px;

}

.search-bar,
.heart,
.cart{

padding:7px;

}

.search-bar i,
.heart i,
.cart i{

font-size:15px;

}

}