* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #212529;
  --hero-bg: #ededed;
  --card-bg: #f8f9fa;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ============================= */
/* CART HERO */
/* ============================= */

.inner-hero {
  background: #ededed;
  min-height: 30vh;
  padding: 25px 0;
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 30px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #6c757d;
  max-width: 500px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Mobile */
@media (max-width: 991px) {
  .inner-hero {
    padding: 25px 0;
    text-align: center;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    margin: auto;
  }

  .hero-image {
    height: 150px;
    margin-bottom: 20px;
  }
}

/* ============================= */
/* CART PAGE */
/* ============================= */

.cart-page {
  max-width: 1100px;
}

.cart-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 25px;
}

.continue-shopping {
  font-size: 14px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.continue-shopping:hover {
  color: #000;
}

/* ============================= */
/* CART HEADER */
/* ============================= */

.cart-header {
  display: grid;
  grid-template-columns: 90px 140px 1fr 130px 150px 130px;
  align-items: center;
  background-color: #f5f5f5;
  padding: 16px 20px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

/* ============================= */
/* CART ITEM */
/* ============================= */

.cart-item {
  display: grid;
  grid-template-columns: 90px 140px 1fr 130px 150px 130px;
  align-items: center;
  min-height: 130px;
  padding: 20px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.cart-item:hover {
  background-color: #fafafa;
}

.cart-item:last-child {
  border-bottom: none;
}

/* ============================= */
/* REMOVE BUTTON */
/* ============================= */

.remove-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: fit-content;
  transition: color 0.3s ease;
  padding: 5px 10px;
  line-height: 1;
}

.remove-btn:hover {
  color: #e74c3c;
}

/* ============================= */
/* PRODUCT IMAGE */
/* ============================= */

.cart-product-image {
  width: 75px;
  height: 75px;
  object-fit: cover;
  background-color: #f5f5f5;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.cart-product-image:hover {
  transform: scale(1.05);
}

/* ============================= */
/* PRODUCT NAME */
/* ============================= */

.cart-product-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  padding-right: 10px;
}

/* ============================= */
/* PRICE */
/* ============================= */

.cart-product-price {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* ============================= */
/* QUANTITY CONTROL */
/* ============================= */

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(33, 37, 41, 0.06);
}

.quantity-btn {
  width: 34px;
  height: 36px;
  border: none;
  background-color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  color: #333;
}

.quantity-btn:hover {
  background-color: #333;
  color: #fff;
}

.quantity-value {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* ============================= */
/* ITEM TOTAL */
/* ============================= */

.cart-item-total {
  font-size: 15px;
  color: #dc3545;
  font-weight: 600;
}

/* ============================= */
/* EMPTY CART */
/* ============================= */

.empty-cart {
  text-align: center;
  padding: 80px 0;
  color: #777;
}

.empty-cart h4 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 15px;
  color: #999;
  margin-bottom: 25px;
}

.empty-cart .shop-now-btn {
  display: inline-block;
  padding: 12px 40px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.empty-cart .shop-now-btn:hover {
  background-color: #555;
}

/* ============================= */
/* CART TOTALS */
/* ============================= */

.cart-total-wrapper {
  width: 380px;
  margin-left: auto;
  margin-top: 45px;
}

.cart-total-wrapper h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 15px;
}

.cart-total-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(33, 37, 41, 0.06);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  background-color: #fff;
}

.total-row:last-child {
  border-bottom: none;
}

.total-row span {
  color: #666;
}

.total-row strong {
  font-weight: 600;
  color: #333;
}

.total-row.total-final {
  background-color: #f9f9f9;
  font-size: 16px;
}

.total-row.total-final strong {
  font-size: 18px;
  color: #dc3545;
}

.checkout-btn {
  margin-top: 20px;
  width: 100%;
  height: 48px;
  border: none;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  letter-spacing: 0.5px;
}

.checkout-btn:hover {
  background-color: #555;
}

.checkout-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ============================= */
/* RESPONSIVE DESIGN - CART */
/* ============================= */

@media (max-width: 992px) {
  .cart-header {
    grid-template-columns: 80px 120px 1fr 110px 130px 110px;
    font-size: 11px;
    padding: 14px 15px;
  }

  .cart-item {
    grid-template-columns: 80px 120px 1fr 110px 130px 110px;
    padding: 15px;
    font-size: 13px;
  }

  .cart-product-image {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 768px) {
  .cart-header {
    display: none;
  }

  .cart-item {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 15px;
    position: relative;
    min-height: auto;
  }

  .cart-item > div:first-child {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .cart-item > div:nth-child(2) {
    flex: 0 0 80px;
  }

  .cart-item > div:nth-child(3) {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding-right: 40px;
  }

  .cart-item > div:nth-child(4),
  .cart-item > div:nth-child(5),
  .cart-item > div:nth-child(6) {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cart-item > div:nth-child(4)::before {
    content: "Price: ";
    font-weight: 600;
    font-size: 12px;
    color: #888;
  }

  .cart-item > div:nth-child(5)::before {
    content: "Qty: ";
    font-weight: 600;
    font-size: 12px;
    color: #888;
  }

  .cart-item > div:nth-child(6)::before {
    content: "Total: ";
    font-weight: 600;
    font-size: 12px;
    color: #888;
  }

  .cart-product-image {
    width: 80px;
    height: 80px;
  }

  .quantity-control {
    width: auto;
  }

  .quantity-btn {
    width: 36px;
    height: 38px;
    font-size: 18px;
  }

  .quantity-value {
    width: 40px;
    height: 38px;
  }

  .cart-total-wrapper {
    width: 100%;
    margin-top: 30px;
  }

  .total-row {
    padding: 14px 18px;
    font-size: 13px;
  }

  .empty-cart {
    padding: 50px 0;
  }

  .empty-cart h4 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cart-item > div:nth-child(4),
  .cart-item > div:nth-child(5),
  .cart-item > div:nth-child(6) {
    min-width: 60px;
    font-size: 13px;
  }

  .cart-item > div:nth-child(3) {
    font-size: 13px;
    min-width: 100px;
  }

  .cart-product-image {
    width: 65px;
    height: 65px;
  }

  .checkout-btn {
    height: 44px;
    font-size: 13px;
  }

  .continue-shopping {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ============================= */
/* CHECKOUT PAGE */
/* ============================= */

.checkout-page {
  max-width: 1200px;
}

.checkout-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
}

/* ============================= */
/* BILLING FORM */
/* ============================= */

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.form-control,
.form-select {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #333;
  box-shadow: none;
}

textarea.form-control {
  height: auto;
}

/* ============================= */
/* ORDER SUMMARY */
/* ============================= */

.order-summary-wrapper {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item .item-name {
  color: #333;
}

.order-item .item-total {
  font-weight: 500;
  color: #333;
}

.order-total-box {
  border-top: 2px solid #ddd;
  padding-top: 15px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.order-row span {
  color: #666;
}

.order-row strong {
  font-weight: 600;
  color: #333;
}

.order-row.order-total-final {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 5px;
  font-size: 16px;
}

.order-row.order-total-final strong {
  font-size: 18px;
  color: #000;
}

/* ============================= */
/* PAYMENT METHOD */
/* ============================= */

.payment-option {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.payment-option:hover {
  border-color: #999;
}

.payment-option input[type="radio"] {
  margin-right: 10px;
  accent-color: #333;
  cursor: pointer;
}

.payment-option label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.payment-desc {
  margin-top: 8px;
  margin-left: 28px;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* ============================= */
/* PLACE ORDER BUTTON */
/* ============================= */

.place-order-btn {
  width: 100%;
  height: 48px;
  border: none;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  letter-spacing: 0.5px;
  margin-top: 15px;
}

.place-order-btn:hover {
  background-color: #555;
}

.place-order-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ============================= */
/* EMPTY ORDER (CHECKOUT) */
/* ============================= */

.empty-order {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

.empty-order a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.empty-order a:hover {
  text-decoration: underline;
}

/* ============================= */
/* CONFIRMATION POPUP */
/* ============================= */

.confirmation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.confirmation-popup {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  position: relative;
}

.confirmation-popup .checkmark-circle {
  width: 80px;
  height: 80px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.confirmation-popup .checkmark-circle svg {
  width: 40px;
  height: 40px;
}

.confirmation-popup h2 {
  margin: 0 0 10px;
  color: #2d2d2d;
  font-size: 24px;
  font-weight: 600;
}

.confirmation-popup p {
  margin: 5px 0;
  color: #666;
  font-size: 16px;
}

.confirmation-popup .popup-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.confirmation-popup .popup-btn:hover {
  background: #45a049;
}

/* ============================= */
/* POPUP ANIMATIONS */
/* ============================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================= */
/* RESPONSIVE - CHECKOUT */
/* ============================= */

@media (max-width: 768px) {
  .order-summary-wrapper {
    margin-top: 30px;
  }

  .checkout-title {
    font-size: 18px;
  }

  .payment-option {
    padding: 10px;
  }

  .payment-desc {
    font-size: 12px;
    margin-left: 24px;
  }

  .place-order-btn {
    height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .order-summary-wrapper {
    padding: 15px;
  }

  .order-row {
    font-size: 13px;
    padding: 8px 0;
  }

  .order-row.order-total-final strong {
    font-size: 16px;
  }

  .confirmation-popup {
    padding: 30px 20px;
  }

  .confirmation-popup h2 {
    font-size: 20px;
  }

  .confirmation-popup p {
    font-size: 14px;
  }

  .confirmation-popup .popup-btn {
    padding: 10px 30px;
    font-size: 14px;
  }

  .confirmation-popup .checkmark-circle {
    width: 60px;
    height: 60px;
  }

  .confirmation-popup .checkmark-circle svg {
    width: 30px;
    height: 30px;
  }
}

/*//////// FOOTER ////// */

.social-icon {
  width: 35px;
  height: 35px;
  border: 1px solid #ced4da;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.footer-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav .nav-link:hover {
  color: #dc3545 !important;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  display: none;
  z-index: 1000;
}
