/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.column-main {
	margin-top: 5rem;
	margin-left: 11rem;
	margin-right: 11rem;
	margin-bottom: 2rem;
}


.main-column {
  flex: 1;
}

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

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

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

.sizeText {
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

footer {
  margin-top: auto;
}

#cartSlider {
  position: fixed;
  top: 0;
  right: -400px; /* start hidden off screen */
  width: 400px;
  height: 100%;
  background: #f9f9f9;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  transition: right 0.4s ease;
  z-index: 9999;
  padding: 20px;
}

//* Table styles */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 2rem 0; /* removed left margin */
  border: 2px solid #1aaa55;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 1200px; /* <- keep only one min-width */
  display: table;
}

.product-table th,
.product-table td {
  border: 1px solid #ccc;
  padding: 8px;
}

.product-table th {
  background-color: #00a950;
  color: #fff;
}

.product-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

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

.product-table tbody tr:hover {
  background-color: #e6f9ec;
  transition: background-color 0.2s ease;
}

.product-table button {
  background-color: #5ecf78;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.product-table button:hover {
  background-color: #4abb66;
  transform: scale(1.03);
}




  /* Hamburger Button */
  .hamburger {
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
  }

  /* The Slider */
  .side-slider {
    height: 100%;
    width: 0; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.4s;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    padding-top: 60px; /* space for header */
  }

  /* Slider Header */
  .side-slider h2 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    margin: 0;
    width: 100%;
    background-color: #232f3e; /* Amazon-like color */
    color: white;
    font-size: 20px;
    box-sizing: border-box;
  }

  /* Close Button */
  .side-slider .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  /* Links inside the slider */
  .side-slider a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s;
  }

  .side-slider a:hover {
    background-color: #f0f0f0;
  }



@media (max-width: 1024px) {
  .main-column,
  .column-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .table-wrapper {
    margin: 0 auto !important;
    padding: 1rem !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .product-table {
    display: block;
    width: 100%;
    min-width: unset; 
  }

  .product-table thead {
    display: none; 
  }

  .product-table tbody,
  .product-table tr,
  .product-table td {
    display: block;
    width: 100%;
  }

  .product-table tr {
    margin-bottom: 1rem;
    border: 2px solid #1aaa55;
    border-radius: 6px;
    background: #fff;
    padding: 0.5rem;
  }

  .product-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
  }

  .product-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 0.75rem;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
  }
}


@media (max-width: 768px) {
  .product-table {
    display: block;
    width: 100%;
  }

  .product-table thead {
    display: none;
  }

  .product-table tbody,
  .product-table tr,
  .product-table td {
    display: block;
    width: 100%;
  }

  .product-table tr {
    margin-bottom: 1rem;
    border: 2px solid #1aaa55;
    border-radius: 12px; 
    padding: 0.75rem;
    background-color: #fff;
  }

  .product-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #ccc;
  }

  .product-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 0.75rem;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
  }


  .table-wrapper {
    margin: 0.5rem !important;
    padding: 0.5rem !important;
    width: auto !important;
    box-sizing: border-box;
  }

  .main-column,
  .column-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }
}



@media (max-width: 1300px) {
  .main-column,
  .column-main,
  .column,
  .columns {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .table-wrapper {
    margin: 1rem auto !important;
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .product-table {
    width: 100% !important;
    box-sizing: border-box;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }
	.column-main {
		padding: .5rem !important;
	}
}


@media (max-width: 768px) {
  
  .product-table thead {
    display: none;
  }


  .product-table,
  .product-table tbody,
  .product-table tr,
  .product-table td {
    display: block;
    width: 100%;
  }

  .product-table tr {
    margin-bottom: 1rem;
    background-color: #fff;
    border: 2px solid #1aaa55;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .product-table td {
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 50%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .product-table td:last-child {
    border-bottom: none;
  }

 
  .product-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
    white-space: nowrap;
  }

  .cart-thumbnail {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .product-table button {
    width: 100%;
    margin-top: 0.5rem;
  }

  .table-wrapper {
    padding: 0.5rem;
    margin: 0.5rem;
  }

  .column-main {
    margin: 0 !important;
    padding: 0.5rem !important;
  }
}




