/* ========== Base Layout Styles ========== */
.container_1 {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  border: 0;
}

.mainheader_1 {
  grid-area: header;
  padding: 3rem 0 2rem;
}

.maincontent_1 {
  grid-area: main;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  border: 0;
}

.left_1 {
  grid-area: sidebar;
  list-style: none;
  justify-content: left;
}

/* ========== Typography & Utility ========== */
.header_1 {
  margin-bottom: 0;
}

.header_text {
  text-align: left;
}

.auto-style2 {
  text-align: center;
}

.test {
  border: 0;
}

.hr-curious-blue {
  border-color: #24a3d8;
  width: 80%;
}

.image_1 {
  justify-content: center;
}

img.roundedImg {
  border-radius: 5%;
  display: block;
  margin: 0 auto;
}

/* ========== Columns & Responsive Grid ========== */
.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 11rem 4rem;
}

.column {
  flex: 4 1;
  margin: 0;
  padding: 0;
}

/* ========== Cart Table ========== */
.cart-header {
  color: #333;
  padding: 15px 0;
  margin-bottom: 20px;
  font-size: 1.625rem;
  border-bottom: 2px solid #28a745;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  box-sizing: border-box;
}

.cart-table th,
.cart-table td {
  text-align: center;
  padding: 15px;
  border: none;
}

.cart-table th {
  background-color: #28a745;
  color: white;
}

.cart-table tr {
  border: 1px solid #ddd;
  transition: opacity 0.5s ease, height 0.3s ease;
}

.cart-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.cart-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.cart-table img {
  border-radius: 5px;
}

td.delete-cell {
  vertical-align: middle;
  text-align: center;
}


.delete-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #c0392b;
  line-height: 1;
  padding: 0;
}


/* ========== Cart Actions ========== */
.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  width: 100%;
}

.cart-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.2s ease;
}

.cart-button.delete {
  background-color: #dc3545;
}

.cart-button.delete:hover {
  background-color: #b02a37;
}

.cart-button.checkout {
  background-color: #28a745;
}

.cart-button.checkout:hover {
  background-color: #218838;
}

/* ========== Hover Image ========== */
.hover-image-container {
  position: relative;
  display: inline-block;
}

.hover-large-image {
  display: none;
  position: absolute;
  top: 0;
  left: 105%;
  z-index: 100;
  border: 1px solid #ddd;
  background: white;
  padding: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.hover-image-container:hover .hover-large-image {
  display: block;
}

.cart-thumbnail {
  width: 80px;
  height: auto;
}

.hover-large-image img {
  width: 300px;
  height: auto;
}

/* ========== Delete Button ========== */
.delete-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
}

.delete-btn:hover {
  color: darkred;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .columns {
    margin: .5rem !important;
    flex-direction: column;
  }

  .column {
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box;
}


  .cart-table {
    width: 100% !important;
    display: table;
    border-collapse: collapse;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .cart-table thead th {
    font-size: 14px;
    padding: 10px;
    white-space: nowrap;
  }

  .cart-table td {
    padding: 10px;
    font-size: 13px;
    word-break: break-word;
    white-space: normal;
    max-width: 1px; /* trick to let the content wrap */
  }

  .cart-table img {
    max-width: 60px;
    height: auto;
  }

  .cart-actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
  }

  .cart-button {
    width: 100%;
    font-size: 16px;
	text-align: center;

  }

  .hover-large-image {
    display: none !important;
  }

  input.qty-input {
    width: 50px;
  }

  .delete-btn {
    font-size: 18px;
    padding: 5px;
  }
	
}


