/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #FFF5F7;
  color: #333;
}

/* Page Title */
h1 {
  font-size: 28px;
  color: #4A403A;
  margin-bottom: 20px;
}

/* Cart Message */
#cart-message {
  font-size: 18px;
  color: #2A2B2D;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

/* Cart Container */
#cart-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

/* Cart Items */
.cart-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  width: 250px;
  background-color: #fff8f3;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out;
}

.cart-item:hover {
  transform: scale(1.02);
}

.cart-product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

.remove-button {
  background-color: crimson;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: background 0.3s;
}

.remove-button:hover {
  background-color: darkred;
}



/* Navbar */
.navbar {
    background-color:  #2A2B2D;
    display: flex;
    width: 100%;
    max-width: 1520px;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 90px;
    box-shadow: 0 2px 5px rgba(42, 43, 45, 0.1);
    margin: 0 auto;
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar-title {
    font-size: 32px;
    font-weight: bold;
    color:  #FFF5F7;
    flex-grow: 1;
    text-align: center;
}

.footer {
    background-color:  #2A2B2D;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: 40px;
    color: #FFF5F7;
    font-size: 16px;
    font-weight: bold;
}

/* Logo Styling */
.logo-container {
    width: 60px;
    height: 60px;
    background-color: #FFF5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 50px;
    font-weight: 600;
    color:  #2A2B2D;
    font-family: 'Times New Roman';
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

/* --- Custom Animated Back Button --- */
/* --- Custom Animated Back Button --- */
.back-button {
    display: block;
    position: absolute;
    top: 100px;
    left: 20px;
    width: 56px;
    height: 56px;
    background-color: transparent;
    cursor: pointer;
    border: 0;
    overflow: hidden;
    outline: none;
}

.back-button:before,
.back-button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
}

.back-button:before {
    border: 4px solid #2A2B2D;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:after {
    border: 4px solid #2A2B2D;
    transform: scale(1.3);
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:hover:before {
    opacity: 0;
    transform: scale(0.7);
}

.back-button:hover:after {
    opacity: 1;
    transform: scale(1);
}

.button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #4A403A;
}

.back-button:hover .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
}


/* Centered Sign-In Message (Empty Cart View) */
.center-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
}

.center-message h2 {
  font-size: 22px;
  color: #2A2B2D;
  margin-bottom: 15px;
}

.center-message button {
  padding: 12px 20px;
  font-size: 16px;
  background: #2A2B2D;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.center-message button:hover {
  background: #520101;
}

/* ================= Responsive Design ================= */

/* Tablet View */
@media (max-width: 1024px) {
  .navbar-title {
      font-size: 24px;
  }

  .cart-item {
      width: calc(50% - 20px);
  }

  #go-to-store {
      font-size: 14px;
      padding: 12px 18px;
  }
}

/* Mobile View */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .logo-container {
    width: 45px;
    height: 45px;
  }

  .logo-text {
    font-size: 26px;
  }

  .navbar-title {
    font-size: 20px;
    margin-top: 8px;
  }



  .cart-item {
    margin-top: 100px;
      width: 70%;
      margin: 15px 0;
  }

  #cart-container {
      padding: 15px;
  }

  .remove-button {
      padding: 10px;
      font-size: 15px;
  }

  #go-to-store {
      right: 15px;
      top: 75px;
      font-size: 14px;
      padding: 10px 14px;
  }

  .footer {
      padding: 20px;
      font-size: 13px;
  }

  .back-button {
    display: block;
    position: absolute;
    top: 70px;
    left: 20px;
    width: 56px;
    height: 56px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 0;
  }
  
  .back-button:before,
  .back-button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
  }
  
  .back-button:before {
    border: 4px solid #4A403A;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
  }
  
  .back-button:after {
    border: 4px solid #8C4A32;
    transform: scale(1.3);
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
  }
  
  .back-button:hover:before {
    opacity: 0;
    transform: scale(0.7);
  }
  
  .back-button:hover:after {
    opacity: 1;
    transform: scale(1);
  }
  
  .button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #4A403A;
  }
  
  .back-button:hover .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
  }
  
}
