/* Header Section */
.bgc-cart-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bgc-cart-header .left {
    line-height: 50px;
    margin-bottom: 20px;
}

.bgc-cart-header .title {
    font-family: 'Poppins';
    font-size: 40px;
    font-weight: 500;
    color: #E86900;
}

.bgc-cart-header .subtitle {
    font-family: 'Darker Grotesque';
    font-size: 60px;
    font-weight: 700;
    color: #000;
}

.bgc-cart-header a.btn-outline.btn-gradient {
    background: linear-gradient(45deg, #FFC392, #FF7300);
    font-size: 16px;
    font-family: 'Poppins' !important;
    font-weight: 600 !important;
    width: 200px;
    height: 50px;
    border: none;
    border-radius: 100px;
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.bgc-cart-header .actions {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.bgc-cart-header .actions i {
    font-size: 25px;
    transform: rotate(314deg);
    border: 3px solid #ff8c2e;
    border-radius: 100%;
    padding: 10px;
    color: #ff8c2e;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.cart-title h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--orange-primary);
  margin-bottom: 0.25rem;
}

.cart-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.continue-shopping {
  background-color: var(--orange-primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.continue-shopping:hover {
  background-color: var(--orange-light);
}

.continue-shopping::after {
  content: "→";
  font-size: 1.25rem;
}

/* Main Container */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

/* .bgc-cart-table Styles */
.bgc-cart-table {
  width: 100%;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  border-collapse: separate;
  border-spacing: 0;
}

.bgc-cart-table thead tr {
  background-color: var(--white);
  border-bottom: 2px solid var(--gray-border);
}

.bgc-cart-table tbody tr.head {
    border: 2px solid #E8690040;
    background: linear-gradient(45deg, #ffffff, #FFF0E4);
}

.bgc-cart-table th {
    border: 0;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 25px;
    color: #351500;
    font-family: 'Darker Grotesque';
}

.bgc-cart-table th.qty {
  text-align: center;
}

.bgc-cart-table th.price {
  text-align: left;
}

.bgc-cart-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background-color 0.2s ease;
}

.bgc-cart-table tbody tr:last-child {
  border-bottom: none;
}

.bgc-cart-table tbody tr:hover {
  background-color: var(--gray-light);
}

.bgc-cart-table td {
    width: 400px;
    border: 0;
    border-bottom: 1px solid;
}

/* Product Cell */
.bgc-cart-table td.prod {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meta {
  flex: 1;
}

.meta .name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.meta .name a {
    color: #FF7300;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Darker Grotesque';
    font-size: 20px;
}

.meta .name a:hover {
  color: var(--orange-light);
}

.meta .attrs {
  font-size: 0.875rem;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
}

.meta .unit-price {
  font-size: 0.875rem;
  color: var(--gray-text);
}

/* Quantity Cell */
.bgc-cart-table td.qty {
  padding: 1.5rem;
  text-align: center;
}

.input-group.bgc-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.25rem;
    border: 1px solid #E8690040;
    border-radius: 30px;
    height: 50px;
    background: linear-gradient(45deg, #ffffff, #FFF0E4);
    box-shadow: 0px 0px 5px #00000059;
}

.input-group.bgc-qty button {
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  color: var(--orange-primary);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.input-group.bgc-qty button:hover {
  background-color: var(--white);
}

.input-group.bgc-qty input {
  width: 40px;
  height: 32px;
  border: none;
  background-color: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #E86900;
  padding: 0;
}

.input-group.bgc-qty input::-webkit-outer-spin-button,
.input-group.bgc-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-group.bgc-qty input:focus {
  outline: none;
}

/* Price Cell */
.bgc-cart-table td.price {
  padding: 1.5rem;
  text-align: left;
  position: relative;
}

span.bgc-price-with-sale {
    font-family: 'Poppins';
    font-size: 20px;
}

.line-total {
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.line-total del {
  color: var(--gray-text);
  font-weight: 400;
  margin-right: 0.5rem;
}

.remove {
    position: absolute;
    top: 35px;
    right: 1rem;
    width: 24px;
    height: 24px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    color: #000;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.remove:hover {
  background-color: var(--red-discount);
  color: var(--white);
}

/* Order Summary */
.order-summary {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
  position: sticky;
  top: 2rem;
}

.order-summary h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.125rem;
}

.summary-row.discount {
  color: rgba(255, 255, 255, 0.95);
}

.summary-row.delivery {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
}

.summary-row.subtotal {
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
  background-color: var(--brown-dark);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.checkout-btn:active {
  transform: translateY(0);
}


/* Summary Box */
.summary .box {
    width: 40%;
    background: linear-gradient(45deg, #FF7300, #FFC392);
    border-radius: 20px;
    padding: 10px 20px;
}

.summary .box .box-title {
    font-family: 'Darker Grotesque';
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 15px;
}

.summary .box .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: 'Poppins';
    font-weight: 400;
    color: #fff;
    font-size: 20px;
}

.summary .box .divider {
    width: 100%;
    background: #fff;
    height: 2px;
    margin: 15px 0px;
    opacity: 0.5;
}

.summary .box .grand-amount span.woocommerce-Price-amount.amount {
    font-size: 30px;
}

.summary .box a {
    background: #351500;
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-radius: 20px;
    margin: 10px;
    font-family: 'Darker Grotesque';
    font-weight: 700;
    font-size: 30px;
}
aside.summary {
    display: flex;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .cart-header {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-title h1,
  .cart-title h2 {
    font-size: 1.5rem;
  }

  .bgc-cart-table th,
  .bgc-cart-table td {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .bgc-cart-table td.prod {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb {
    width: 50px;
    height: 50px;
  }

  .order-summary {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .bgc-cart-table {
    font-size: 0.75rem;
  }

  .input-group.bgc-qty button {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .input-group.bgc-qty input {
    width: 32px;
    height: 28px;
    font-size: 0.875rem;
  }
}


/*Responsive*/
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
.bgc-cart-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.bgc-cart-header .title {
    font-size: 30px;
}
.bgc-cart-header .subtitle {
    font-size: 40px;
}

  /* Hide table headers on mobile */
  .bgc-cart-table .head {
    display: none;
  }

  /* Stack table rows as full-width blocks */
  .bgc-cart-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
  }

  /* Style table cells as block elements */
  .bgc-cart-table td {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    text-align: left;
  }

  .bgc-cart-table td:last-child {
    margin-bottom: 0;
  }

  /* Product cell layout */
  .bgc-cart-table td.prod {
    display: flex;
    gap: 12px;
  }

  .bgc-cart-table .thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

  .bgc-cart-table .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .bgc-cart-table .meta {
    flex: 1;
    min-width: 0;
  }

  .bgc-cart-table .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
  }

  .bgc-cart-table .name a {
    text-decoration: none;
    color: inherit;
  }

  .bgc-cart-table .attrs {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
  }

  /* Quantity controls */
  .bgc-cart-table td.qty {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .bgc-cart-table td.qty::before {
    content: 'Quantity:';
    font-weight: 600;
    font-size: 13px;
    display: block;
  }

  .bgc-qty {
    width: auto;
  }

  .bgc-qty button {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
  }

  .bgc-qty input {
    width: 50px;
    padding: 6px 4px;
    text-align: center;
    font-size: 13px;
  }

  /* Price cell layout */
  .bgc-cart-table td.price {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
  }

  .bgc-cart-table td.price::before {
    content: 'Total:';
    font-weight: 600;
    font-size: 13px;
  }

  .bgc-cart-table .line-total {
    text-align: right;
  }

  .bgc-price-with-sale {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .bgc-price-with-sale .regular {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
  }

  .bgc-price-with-sale .sale {
    font-weight: 600;
    color: #d32f2f;
    text-decoration: none;
  }

  /* Remove button */
  .bgc-cart-table .remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #d32f2f;
    transition: all 0.2s ease;
  }

  .bgc-cart-table .remove:active {
    background: #f5f5f5;
  }

  /* Hide table structure visual separators */
  .bgc-cart-table {
    margin-top: 50px;
    border-collapse: collapse;
  }

aside.summary {
    display: flex;
    justify-content: center;
}

.summary .box {
    width: 100%;
}
.summary .box .grand-amount span {
    font-size: 22px !important;
}

.summary .box a {
    font-size: 20px;
}
}
@media only screen and (min-device-width : 481px) and (max-device-width : 787px) {
}