/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================
   BODY
===================================================== */

body {
  font-family: 'Poppins', sans-serif;
  background: #F5F3EF;
  color: #222;
  overflow-x: hidden;
}

/* =====================================================
   CONTAINER
===================================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
}

/* =====================================================
   LINKS
===================================================== */

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   IMAGES
===================================================== */

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   BUTTONS
===================================================== */

button {
  font-family: 'Poppins', sans-serif;
}


/* PRIMARY BUTTON */

.primary-btn,
.nav-btn,
.add-cart-btn {

  display: inline-flex;
  justify-content: center;
  align-items: center;

  height: 58px;

  padding: 0 34px;

  border: none;
  cursor: pointer;

  color: white;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;

  border-radius: 14px;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );

  transition: 0.25s ease;
}

/* HOVER */

.primary-btn:hover,
.nav-btn:hover,
.add-cart-btn:hover {

  transform: translateY(-2px);
  opacity: 0.95;

}

/* HOVER */
.primary-btn:hover,
.nav-btn:hover,
.add-cart-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* SECONDARY BUTTON */

.secondary-btn {

  display: inline-flex;
  justify-content: center;
  align-items: center;

  height: 58px;

  padding: 0 34px;

  border-radius: 14px;

  border: 1px solid #222;

  background: transparent;

  color: #111;

  font-size: 15px;
  font-weight: 500;

  cursor: pointer;

  transition: 0.25s ease;
}

.secondary-btn:hover {
  background: #f2f2f2;
}

/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
  height: 42px;
  background: black;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  font-size: 13px;
  letter-spacing: 0.5px;

  position: relative;
}

.top-icons {
  position: absolute;
  right: 40px;

  display: flex;
  gap: 18px;
}

.top-icons img {
  width: 16px;
  height: 16px;

  object-fit: contain;

  filter: brightness(0) invert(1);

  cursor: pointer;

  transition: 0.2s ease;
}

.top-icons img:hover {
  opacity: 0.7;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
  height: 110px;
  background: #f8f5f2;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 70px;

  border-bottom: 1px solid #ececec;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo a {
  text-decoration: none;
  color: black;
}

.logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 600;

  line-height: 0.82;
  letter-spacing: 0;

  text-align: center;
}

.logo span {
  display: block;

  margin-top: 8px;

  font-size: 12px;
  letter-spacing: 5px;

  text-align: center;

  color: #444;
}

/* =====================================================
   NAV LINKS
===================================================== */

.nav-links {
  display: flex;
  gap: 45px;
}

.nav-links a {
  text-decoration: none;
  color: #111;

  font-size: 15px;
  font-weight: 500;

  position: relative;

  transition: 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ACTIVE LINK */
.active-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -10px;

  width: 100%;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );
}

/* =====================================================
   NAV BUTTON
===================================================== */

.nav-btn {
  padding: 16px 34px;
}

/* =====================================================
   CART ICON
===================================================== */

.cart-icon {
  position: relative;

  font-size: 28px;
  margin-right: 25px;

  color: black;
}

/* CART BADGE */
#cart-count {
  position: absolute;

  top: -10px;
  right: -12px;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );

  color: white;

  font-size: 12px;
  font-weight: 600;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================================================
   NEWSLETTER
===================================================== */

.newsletter {
  background: black;
  padding: 70px 40px;
}

.newsletter-content {
  max-width: 1400px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

/* LEFT */
.newsletter-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;

  color: white;

  margin-bottom: 14px;
}

.newsletter-left p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
}

/* RIGHT */
.newsletter-right {
  display: flex;
  width: 550px;
}

.newsletter-right input {
  flex: 1;

  height: 62px;

  border: none;
  outline: none;

  padding: 0 24px;

  background: #111;
  color: white;

  font-size: 16px;

  border-radius: 12px 0 0 12px;
}

.newsletter-right button {
  width: 200px;

  border: none;
  cursor: pointer;

  color: white;

  font-size: 15px;
  font-weight: 500;

  border-radius: 0 12px 12px 0;

  background: linear-gradient(
    90deg,
    #4facfe,
    #8e6cff,
    #ff4e8d
  );
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
  background: #f7f7f7;
  padding-top: 80px;
}

/* GRID */
.footer-container {
  max-width: 1400px;
  margin: auto;

  display: grid;
  grid-template-columns:
    2fr
    1fr
    1fr
    1.5fr;

  gap: 50px;

  padding:
    0 40px
    50px;
}

/* BRAND */
.footer-brand h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;

  margin-bottom: 10px;
}

.footer-brand span {
  display: block;

  font-size: 12px;
  letter-spacing: 3px;

  margin-bottom: 18px;

  color: #555;
}

.footer-brand p {
  color: #666;

  line-height: 1.7;
  font-size: 15px;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  letter-spacing: 1px;

  margin-bottom: 20px;
}

.footer-links a {
  display: block;

  margin-bottom: 12px;

  color: #444;

  font-size: 14px;

  transition: 0.2s ease;
}

.footer-links a:hover {
  color: black;
}

/* CONTACT */
.footer-contact p {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 14px;

  color: #444;
  font-size: 14px;

  transition: 0.2s ease;
}

.footer-contact p:hover {
  transform: translateX(3px);
  color: black;
}

/* ICON */
.contact-icon {
  width: 18px;
  height: 18px;

  stroke: url(#iconGradient);
  stroke-width: 1.6;

  fill: none;

  flex-shrink: 0;
}

/* BOTTOM */
.footer-bottom {
  background: black;

  color: white;

  padding: 18px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 14px;
  color: white;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

  .navbar {
    padding: 0 30px;
  }

  .nav-links {
    gap: 25px;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-right {
    width: 100%;
  }

  .footer-container {
    grid-template-columns:
      1fr
      1fr;
  }

}

@media (max-width: 700px) {

  .navbar {
    flex-direction: column;
    height: auto;

    padding:
      25px
      20px;

    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .newsletter-right {
    flex-direction: column;
  }

  .newsletter-right input {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .newsletter-right button {
    width: 100%;
    height: 60px;

    border-radius: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  
}