body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1a1c1c;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Gotham', sans-serif;
  color: #6e000c;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 40px 0;
  padding-left: 20px;
  border-left: 4px solid #6e000c;
  line-height: 1.2;
}

.cart-section {
  padding: 80px 0 40px;
}
.cart-table {
  width: 100%;
}
.cart-header {
  display: flex;
  border-bottom: 1px solid #6e000c;
  padding-bottom: 15px;
  margin-bottom: 40px;
  color: #6e000c;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}
.col-product {
  flex: 1;
}
.col-quantity {
  width: 200px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.col-price {
  width: 150px;
  text-align: right;
}
.cart-item {
  display: flex;
  align-items: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #d9d9d9;
}
.cart-item:last-child {
  border-bottom: 1px solid #1a1c1c;
  margin-bottom: 0;
}
.item-details {
  display: flex;
  gap: 25px;
  align-items: center;
}
.item-image-wrapper {
  width: 96px;
  height: 128px;
  background-color: #eeeeee;
  border: 1px solid #e1bfbb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
}
.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-title {
  font-family: 'Gotham', sans-serif;
  margin: 0;
  font-size: 16px;
  color: #1a1c1c;
  font-weight: 400;
}
.item-variant {
  margin: 0;
  font-size: 14px;
  color: #59413f;
}
.remove-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6e000c;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
  margin-top: 10px;
  align-self: flex-start;
}
.remove-btn img {
  width: 10px;
}
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #552329;
  height: 35px;
}
.qty-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e000c;
  font-size: 16px;
}
.qty-value {
  width: 73px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #552329;
  border-right: 1px solid #552329;
  font-size: 14px;
  color: #1a1c1c;
  /* Readonly input: quantity changes only via the +/- buttons */
  text-align: center;
  background: transparent;
  border-top: none;
  border-bottom: none;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Hide number input spinner arrows (WebKit) */
.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.item-price {
  font-family: 'Gotham', sans-serif;
  font-size: 16px;
  color: #1a1c1c;
  font-weight: 400;
}

@media (max-width: 768px) {
  .cart-header {
    display: none;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .col-quantity,
  .col-price {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
}

.summary-section {
  padding: 40px 0 80px;
}
.summary-content {
  max-width: 1260px;
  margin: 0 auto;
}
.summary-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #1a1c1c;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid #6e000c;
  border-bottom: 1px solid #6e000c;
  margin-bottom: 40px;
}
.total-label {
  font-family: 'Gotham', sans-serif;
  font-size: 20px;
  color: #6e000c;
  font-weight: 700;
}
.total-value {
  font-family: 'Gotham', sans-serif;
  font-size: 24px;
  color: #6e000c;
  font-weight: 700;
}
.checkout-btn {
  display: block;
  width: 100%;
  background-color: #6e000c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 24px;
  border: none;
  margin-bottom: 20px;
  transition: background-color 0.3s;
  text-align: center;
  font-family: 'Gotham', sans-serif;
}
.checkout-btn:hover {
  background-color: #552329;
}
.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #1a1c1c;
}

.recently-viewed-section {
  padding: 80px 0;
  background-color: #ffffff;
}
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.section-header-flex .section-title {
  margin-bottom: 0;
}
.view-all-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(110, 0, 12, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 400;
}
.icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background-color: #f9f9f9;
  border: 1px solid rgba(110, 0, 12, 0.7);
  display: flex;
  flex-direction: column;
}
.product-image-container {
  position: relative;
  height: 420px;
  width: 100%;
  overflow: hidden;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-new {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #6e000c;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
}
.product-info {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-grow: 1;
}
.product-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #6e000c;
  padding: 20px 10px;
}
.product-title {
  font-family: 'Gotham', sans-serif;
  margin: 0;
  font-size: 18px;
  color: #6e000c;
  font-weight: 600;
}
.product-desc {
  margin: 0;
  font-size: 14px;
  color: #552329;
}
.product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-family: 'Gotham', sans-serif;
  font-size: 16px;
  color: #6e000c;
  font-weight: 600;
}
.add-to-bag-btn {
  background-color: #1a1c1c;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  border: none;
  transition: background-color 0.3s;
  font-family: 'Gotham', sans-serif;
}
.add-to-bag-btn:hover {
  background-color: #333;
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ENHANCED RESPONSIVE STYLES
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  /* Cart Section */
  .cart-section {
    padding: 60px 0 30px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
    padding-left: 16px;
  }

  .cart-header {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .col-quantity {
    width: 150px;
  }

  .col-price {
    width: 120px;
  }

  .item-details {
    gap: 20px;
  }

  .item-image-wrapper {
    width: 80px;
    height: 110px;
  }

  .item-title {
    font-size: 15px;
  }

  .item-variant {
    font-size: 13px;
  }

  .quantity-selector {
    height: 32px;
  }

  .qty-btn {
    width: 32px;
    font-size: 14px;
  }

  .qty-value {
    width: 60px;
    font-size: 13px;
  }

  .item-price {
    font-size: 15px;
  }

  /* Summary Section */
  .summary-section {
    padding: 30px 0 60px;
  }

  .summary-details {
    gap: 15px;
    margin-bottom: 30px;
  }

  .summary-row {
    font-size: 13px;
  }

  .summary-total {
    padding: 25px 0;
    margin-bottom: 30px;
  }

  .total-label {
    font-size: 18px;
  }

  .total-value {
    font-size: 22px;
  }

  .checkout-btn {
    font-size: 15px;
    padding: 20px;
  }

  /* Recently Viewed */
  .recently-viewed-section {
    padding: 60px 0;
  }

  .section-header-flex {
    margin-bottom: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-image-container {
    height: 350px;
  }

  .product-info {
    padding: 30px 15px;
    gap: 20px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-desc {
    font-size: 13px;
  }

  .product-price {
    font-size: 15px;
  }

  .add-to-bag-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  /* Cart Section */
  .cart-section {
    padding: 40px 0 20px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 25px;
    padding-left: 12px;
  }

  .cart-header {
    display: none;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .item-details {
    width: 100%;
    gap: 15px;
  }

  .item-image-wrapper {
    width: 70px;
    height: 95px;
  }

  .item-info {
    flex: 1;
    gap: 8px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-variant {
    font-size: 12px;
  }

  .remove-btn {
    font-size: 11px;
    margin-top: 5px;
  }

  .col-quantity,
  .col-price {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .col-quantity {
    margin-bottom: 10px;
  }

  .quantity-selector {
    width: fit-content;
  }

  .item-price {
    font-size: 14px;
    font-weight: 400;
    color: #6e000c;
  }

  /* Summary Section */
  .summary-section {
    padding: 20px 0 40px;
  }

  .summary-content {
    padding: 0 12px;
  }

  .summary-details {
    gap: 12px;
    margin-bottom: 20px;
  }

  .summary-row {
    font-size: 12px;
  }

  .summary-total {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .total-label {
    font-size: 16px;
  }

  .total-value {
    font-size: 18px;
  }

  .checkout-btn {
    font-size: 14px;
    padding: 16px;
    margin-bottom: 15px;
  }

  .secure-checkout {
    font-size: 11px;
  }

  /* Recently Viewed */
  .recently-viewed-section {
    padding: 40px 0;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
  }

  .section-header-flex .section-title {
    margin-bottom: 0;
  }

  .view-all-link {
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    border-width: 1px;
  }

  .product-image-container {
    height: 280px;
  }

  .badge-new {
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 3px 8px;
  }

  .product-info {
    padding: 20px 12px;
    gap: 15px;
  }

  .product-text {
    padding: 15px 8px;
    gap: 8px;
  }

  .product-title {
    font-size: 14px;
  }

  .product-desc {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }

  .add-to-bag-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .copyright {
    font-size: 10px;
  }

  .social-links {
    font-size: 10px;
    gap: 8px;
  }

  .social-links a {
    width: 14px;
    height: 14px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  /* Cart Section */
  .cart-section {
    padding: 30px 0 15px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left-width: 3px;
  }

  .cart-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    gap: 12px;
  }

  .item-details {
    gap: 12px;
  }

  .item-image-wrapper {
    width: 60px;
    height: 85px;
  }

  .item-title {
    font-size: 13px;
  }

  .item-variant {
    font-size: 11px;
  }

  .remove-btn {
    font-size: 10px;
  }

  .quantity-selector {
    height: 30px;
  }

  .qty-btn {
    width: 28px;
    font-size: 13px;
  }

  .qty-value {
    width: 50px;
    font-size: 12px;
  }

  /* Summary Section */
  .summary-section {
    padding: 15px 0 30px;
  }

  .summary-row {
    font-size: 11px;
  }

  .summary-total {
    padding: 15px 0;
  }

  .total-label {
    font-size: 14px;
  }

  .total-value {
    font-size: 16px;
  }

  .checkout-btn {
    font-size: 13px;
    padding: 14px;
  }

  .secure-checkout {
    font-size: 10px;
  }

  /* Recently Viewed - Show 1 per row */
  .recently-viewed-section {
    padding: 30px 0;
  }

  .section-header-flex .section-title {
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-image-container {
    height: 300px;
  }

  .product-info {
    padding: 20px 10px;
  }

  .product-title {
    font-size: 15px;
  }
}