/* ========================================================================
   WooCommerce Modern Styling
   ======================================================================== */

:root {
  --wc-primary: #557255;
  --wc-primary-hover: #445b44;
  --wc-secondary: #edf0e5;
  --wc-success: #28a745;
  --wc-info: #17a2b8;
  --wc-warning: #ffc107;
  --wc-danger: #dc3545;
  --wc-light: #f8f9fa;
  --wc-dark: #212529;
  --wc-gray-100: #f8f9fa;
  --wc-gray-200: #e9ecef;
  --wc-gray-300: #dee2e6;
  --wc-gray-400: #ced4da;
  --wc-gray-500: #adb5bd;
  --wc-gray-600: #6c757d;
  --wc-gray-700: #495057;
  --wc-gray-800: #343a40;
  --wc-gray-900: #212529;
  --wc-border-radius: 8px;
  --wc-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --wc-transition: all 0.2s ease-in-out;
  --wc-font-family: 'Montserrat', sans-serif;
}

/* ========================================================================
   General Styles
   ======================================================================== */

.woocommerce {
  position: relative;
  max-width: var(--container-7xl);
  margin: 0 auto;
  padding-block: calc(var(--spacing) * 15) /* 3.75rem = 60px */;
  padding-inline: calc(var(--spacing) * 7);
  font-family: var(--wc-font-family);
  line-height: 1.6;
  color: var(--wc-gray-800);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.woocommerce a {
  color: var(--wc-primary);
  text-decoration: none;
  transition: var(--wc-transition);
}

.woocommerce a:hover {
  color: var(--wc-primary-hover);
}

.woocommerce img {
  max-width: 100%;
  height: auto;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--wc-border-radius);
  transition: var(--wc-transition);
  background-color: var(--wc-primary);
  color: white;
  cursor: pointer;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  background-color: var(--wc-primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--wc-box-shadow);
}

.woocommerce .button:focus,
.woocommerce button.button:focus,
.woocommerce input.button:focus,
.woocommerce a.button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
}

.woocommerce .button.alt {
  background-color: var(--wc-secondary);
}

.woocommerce .button.alt:hover {
  background-color: var(--wc-gray-700);
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.875rem;
  color: var(--wc-gray-600);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--wc-gray-700);
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--wc-primary);
}

/* ========================================================================
   Notices
   ======================================================================== */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 1rem 1.5rem;
  margin: 0 0 2rem;
  border-radius: var(--wc-border-radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  justify-content: space-between;
  gap: 1rem;
}
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  content: '';
}

.woocommerce-message {
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 4px solid var(--wc-success);
  color: var(--wc-success);
}

.woocommerce-error {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid var(--wc-danger);
  color: var(--wc-danger);
  list-style: none;
  padding-left: 1.5rem;
}

.woocommerce-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-left: 4px solid var(--wc-info);
  color: var(--wc-info);
}

.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  float: right;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  margin-left: 1rem;
}

/* ========================================================================
   Product Loop (Shop/Archive Pages)
   ======================================================================== */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.woocommerce ul.products li.product {
  position: relative;
  margin: 0;
  padding: 0;
  transition: var(--wc-transition);
  border-radius: var(--wc-border-radius);
  overflow: hidden;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product a img {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: var(--wc-border-radius) var(--wc-border-radius) 0 0;
  transition: var(--wc-transition);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.75rem 1rem 0;
  margin: 0;
  color: var(--wc-gray-800);
  transition: var(--wc-transition);
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--wc-primary);
}

.woocommerce ul.products li.product .price {
  color: var(--wc-gray-700);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0.5rem 1rem;
  display: block;
}

.woocommerce ul.products li.product .price del {
  color: var(--wc-gray-500);
  font-weight: normal;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  text-decoration: line-through;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  font-weight: 600;
}

.woocommerce ul.products li.product .button {
  margin: 0 1rem 1rem;
  display: block;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--wc-transition);
}

.woocommerce ul.products li.product:hover .button {
  opacity: 1;
  transform: translateY(0);
}

.woocommerce ul.products li.product .star-rating {
  margin: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--wc-warning);
}

.woocommerce span.onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--wc-danger);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  border-radius: 2rem;
  box-shadow: var(--wc-box-shadow);
}

.woocommerce nav.woocommerce-pagination {
  margin: 2rem 0;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
  overflow: hidden;
}

.woocommerce nav.woocommerce-pagination ul li {
  border-right: 1px solid var(--wc-gray-300);
}

.woocommerce nav.woocommerce-pagination ul li:last-child {
  border-right: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 0.5rem 1rem;
  display: block;
  color: var(--wc-gray-700);
  transition: var(--wc-transition);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background-color: var(--wc-gray-200);
  color: var(--wc-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--wc-primary);
  color: white;
}

/* ========================================================================
   Single Product Page
   ======================================================================== */

.woocommerce div.product {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.woocommerce div.product .product_title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--wc-gray-900);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--wc-gray-800);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--wc-gray-500);
  font-weight: normal;
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
  font-weight: 600;
}

.woocommerce div.product .stock {
  color: var(--wc-success);
  font-weight: 500;
  margin-bottom: 1rem;
}

.woocommerce div.product .out-of-stock {
  color: var(--wc-danger);
}

.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image {
  border-radius: var(--wc-border-radius);
  overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wc-border-radius);
}

.woocommerce div.product .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 9;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wc-box-shadow);
  transition: var(--wc-transition);
}

.woocommerce div.product .woocommerce-product-gallery__trigger:hover {
  background: var(--wc-primary);
  color: white;
}

.woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li {
  margin: 0;
  padding: 0;
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li
  img {
  cursor: pointer;
  opacity: 0.5;
  transition: var(--wc-transition);
  border-radius: var(--wc-border-radius);
}

.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li
  img.flex-active,
.woocommerce
  div.product
  .woocommerce-product-gallery
  ol.flex-control-thumbs
  li
  img:hover {
  opacity: 1;
}

.woocommerce div.product .summary {
  margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  margin-bottom: 2rem;
}

.woocommerce div.product form.cart {
  margin-bottom: 2rem;
}

.woocommerce div.product form.cart div.quantity {
  float: left;
  margin-right: 1rem;
}

.woocommerce div.product form.cart .button {
  float: left;
  vertical-align: middle;
}

.woocommerce div.product form.cart .variations {
  margin-bottom: 1rem;
  border: 0;
  width: 100%;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  border: 0;
  vertical-align: top;
  line-height: 2.5;
  padding: 0;
}

.woocommerce div.product form.cart .variations label {
  font-weight: 600;
}

.woocommerce div.product form.cart .variations select {
  max-width: 100%;
  min-width: 75%;
  display: inline-block;
  margin-right: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
}

.woocommerce div.product form.cart .variations .reset_variations {
  font-size: 0.875rem;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  border-bottom: 1px solid var(--wc-gray-300);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0 1rem 0 0;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 1rem 0;
  display: block;
  font-weight: 600;
  color: var(--wc-gray-600);
  text-decoration: none;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--wc-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--wc-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
  background-color: var(--wc-primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0 0 2rem;
}

.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.woocommerce div.product .related.products > h2::after,
.woocommerce div.product .upsells.products > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--wc-primary);
}

.woocommerce .quantity .qty {
  width: 4rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
  text-align: center;
}

.woocommerce #reviews #comments h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce #reviews #comments ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce #reviews #comments ol.commentlist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment_container {
  display: flex;
  gap: 1.5rem;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce #reviews #comments ol.commentlist li .meta {
  margin-bottom: 0.5rem;
  color: var(--wc-gray-600);
  font-size: 0.875rem;
}

.woocommerce #reviews #comments ol.commentlist li .star-rating {
  margin-bottom: 0.5rem;
}

.woocommerce #review_form #respond {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wc-gray-200);
}

.woocommerce #review_form #respond .comment-reply-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.woocommerce #review_form #respond p {
  margin-bottom: 1.5rem;
}

.woocommerce #review_form #respond .comment-form-rating {
  margin-bottom: 1.5rem;
}

.woocommerce #review_form #respond .comment-form-rating label {
  margin-bottom: 0.5rem;
  display: block;
}

.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 0.25rem;
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: WooCommerce;
  content: '\e021';
  text-indent: 0;
  color: var(--wc-gray-400);
}

.woocommerce p.stars a:hover ~ a::before {
  color: var(--wc-gray-400);
}

.woocommerce p.stars:hover a::before {
  color: var(--wc-warning);
}

.woocommerce p.stars.selected a.active::before {
  color: var(--wc-warning);
}

.woocommerce p.stars.selected a.active ~ a::before {
  color: var(--wc-gray-400);
}

.woocommerce p.stars.selected a:not(.active)::before {
  color: var(--wc-warning);
}

/* ========================================================================
   Cart Page
   ======================================================================== */

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-border-radius);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--wc-gray-200);
  font-weight: 600;
  background-color: var(--wc-gray-100);
}

.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--wc-gray-200);
  vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child td {
  border-bottom: none;
}

.woocommerce table.shop_table td.product-remove {
  text-align: center;
}

.woocommerce table.shop_table td.product-remove a.remove {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.3rem;
  font-size: 1.25rem;
  text-align: center;
  border-radius: 50%;
  color: var(--wc-danger) !important;
  border: 1px solid var(--wc-danger);
  transition: var(--wc-transition);
}

.woocommerce table.shop_table td.product-remove a.remove:hover {
  background-color: var(--wc-danger);
  color: white !important;
}

.woocommerce table.shop_table td.product-thumbnail {
  width: 80px;
}

.woocommerce table.shop_table td.product-thumbnail img {
  width: 60px;
  height: auto;
  border-radius: var(--wc-border-radius);
}

.woocommerce table.shop_table td.product-name a {
  font-weight: 500;
  color: var(--wc-gray-800);
}

.woocommerce table.shop_table td.product-name a:hover {
  color: var(--wc-primary);
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
  font-weight: 500;
}

.woocommerce table.shop_table td.actions {
  padding: 1.5rem;
  background-color: var(--wc-gray-100);
}

.woocommerce table.shop_table td.actions .coupon {
  display: flex;
  gap: 0.5rem;
  float: left;
}

.woocommerce table.shop_table td.actions .coupon label {
  display: none;
}

.woocommerce table.shop_table td.actions .coupon .input-text {
  width: 150px;
  padding: 0.75rem;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
}

.woocommerce table.shop_table td.actions button[name='update_cart'] {
  float: right;
}

.woocommerce .cart-collaterals .cart_totals {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-border-radius);
  background-color: var(--wc-gray-100);
}

.woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce .cart-collaterals .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce .cart-collaterals .cart_totals table th {
  text-align: left;
  padding: 0.75rem 0;
  font-weight: normal;
  width: 40%;
}

.woocommerce .cart-collaterals .cart_totals table td {
  text-align: right;
  padding: 0.75rem 0;
  font-weight: 500;
}

.woocommerce .cart-collaterals .cart_totals table tr.order-total th,
.woocommerce .cart-collaterals .cart_totals table tr.order-total td {
  font-weight: 600;
  font-size: 1.125rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wc-gray-200);
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout {
  margin-top: 1.5rem;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout .button {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 600;
}

.woocommerce .cart-collaterals .shipping-calculator-button {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.woocommerce .cart-collaterals .shipping-calculator-form {
  margin-top: 1rem;
}

.woocommerce .cart-collaterals .shipping-calculator-form p {
  margin-bottom: 1rem;
}

.woocommerce .cart-collaterals .shipping-calculator-form .button {
  width: 100%;
}

.woocommerce .cart-empty.woocommerce-info {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.woocommerce .return-to-shop {
  text-align: center;
  margin-bottom: 3rem;
}

/* ========================================================================
   Checkout Page
   ======================================================================== */

.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
  grid-column: 1 / -1;
}

.woocommerce-checkout .col2-set {
  grid-column: 1;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  grid-column: 2;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin-bottom: 2rem;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce form .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.woocommerce form .form-row .required {
  color: var(--wc-danger);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
  transition: var(--wc-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--wc-primary);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
}

.woocommerce form .form-row .select2-container {
  width: 100% !important;
}

.woocommerce form .form-row .select2-container .select2-selection--single {
  height: auto;
  padding: 0.75rem;
  border: 1px solid var(--wc-gray-300);
  border-radius: var(--wc-border-radius);
}

.woocommerce
  form
  .form-row
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0;
  line-height: 1.5;
}

.woocommerce
  form
  .form-row
  .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
}

.woocommerce-checkout-review-order-table {
  margin-bottom: 2rem !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 1rem !important;
}

.woocommerce-checkout-review-order-table thead th {
  background-color: var(--wc-gray-100);
}

.woocommerce-checkout-review-order-table tfoot th {
  text-align: left;
  font-weight: normal;
}

.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
  font-weight: 500;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-weight: 600;
  font-size: 1.125rem;
}

.woocommerce #payment {
  background-color: var(--wc-gray-100);
  border-radius: var(--wc-border-radius);
  padding: 1.5rem;
}

.woocommerce #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--wc-gray-200);
  padding-bottom: 1.5rem;
}

.woocommerce #payment ul.payment_methods li {
  margin-bottom: 0.75rem;
}

.woocommerce #payment ul.payment_methods li:last-child {
  margin-bottom: 0;
}

.woocommerce #payment ul.payment_methods li input {
  margin-right: 0.5rem;
}

.woocommerce #payment ul.payment_methods li label {
  font-weight: 500;
}

.woocommerce #payment ul.payment_methods li .payment_box {
  background-color: white;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: var(--wc-border-radius);
  font-size: 0.875rem;
}

.woocommerce #payment div.form-row {
  padding: 1.5rem 0 0;
  margin-bottom: 0;
}

.woocommerce #payment #place_order {
  float: right;
  width: 100%;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem;
}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 1.5rem;
}

.woocommerce-privacy-policy-text {
  font-size: 0.875rem;
  color: var(--wc-gray-600);
  margin-bottom: 1.5rem;
}

/* ========================================================================
   My Account Page
   ======================================================================== */

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.woocommerce-account .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-column: 1;
}

.woocommerce-account .woocommerce-MyAccount-content {
  grid-column: 2;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-border-radius);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--wc-gray-700);
  transition: var(--wc-transition);
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background-color: var(--wc-gray-100);
  color: var(--wc-primary);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: var(--wc-primary);
  color: white;
  font-weight: 500;
}

.woocommerce-MyAccount-content {
  padding: 1.5rem;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-border-radius);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce-MyAccount-content .woocommerce-Address {
  margin-bottom: 2rem;
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
  font-style: normal;
  line-height: 1.6;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  margin-top: 2rem;
  padding: 0;
  border: none;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wc-gray-200);
  width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .woocommerce-table--order-details th {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--wc-gray-200);
  font-weight: 600;
  background-color: var(--wc-gray-100);
}

.woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-MyAccount-content .woocommerce-table--order-details td {
  padding: 1rem;
  border-bottom: 1px solid var(--wc-gray-200);
}

.woocommerce-MyAccount-content .woocommerce-orders-table .button,
.woocommerce-MyAccount-content .woocommerce-table--order-details .button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ========================================================================
   Order Received / Thank You Page
   ======================================================================== */

.woocommerce-order-received .woocommerce-order {
  max-width: 800px;
  margin: 0 auto;
}

.woocommerce-order-received .woocommerce-notice--success {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--wc-success);
}

.woocommerce-order-received .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 1.5rem;
  margin: 0 0 2rem;
  background-color: var(--wc-gray-100);
  border-radius: var(--wc-border-radius);
}

.woocommerce-order-received .woocommerce-order-overview li {
  flex: 1 1 auto;
  margin-bottom: 1rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--wc-gray-600);
}

.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  font-size: 1rem;
  text-transform: none;
  color: var(--wc-gray-800);
  margin-top: 0.25rem;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-customer-details h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1;
  }

  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout #order_review {
    margin-top: 2rem;
  }

  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    display: block;
  }

  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    display: block;
    text-align: right !important;
  }

  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    content: attr(data-title) ': ';
    float: left;
    font-weight: 600;
  }

  .woocommerce table.shop_table_responsive tr td.product-remove::before,
  .woocommerce-page table.shop_table_responsive tr td.product-remove::before,
  .woocommerce table.shop_table_responsive tr td.actions::before,
  .woocommerce-page table.shop_table_responsive tr td.actions::before {
    display: none;
  }

  .woocommerce table.shop_table_responsive tr td.product-thumbnail,
  .woocommerce-page table.shop_table_responsive tr td.product-thumbnail {
    text-align: center !important;
  }

  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce-page
    table.shop_table_responsive
    tr
    td.product-thumbnail::before {
    display: none;
  }

  .woocommerce table.shop_table_responsive tr td.actions .coupon,
  .woocommerce-page table.shop_table_responsive tr td.actions .coupon {
    float: none;
    margin-bottom: 1rem;
  }

  .woocommerce table.shop_table_responsive tr td.actions .button,
  .woocommerce-page table.shop_table_responsive tr td.actions .button {
    width: 100%;
    float: none;
  }
}

@media (max-width: 576px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce-order-received .woocommerce-order-overview {
    flex-direction: column;
  }

  .woocommerce-order-received .woocommerce-order-overview li {
    padding-right: 0;
    border-right: none;
  }
}
