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

body {
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,*/
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    sans-serif;
  background-color: #f5f5f5;
  color: #333;
  /*max-width: 400px;*/
  margin: 0 auto;
  user-select: none;
}

.container {
  background: white;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #A80000;
  padding: 12px 16px;
  color: white;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

   .calendar-icon img {
      width: 46px;
      height: 36px;
      border-radius: 6px;
    }


.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
}

.home-icon {
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Main Content */
.main-content {
  background: linear-gradient(135deg, #f8f0f0 0%, #ffffff 100%);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  background-image: url('https://omtamilcalendar.b-cdn.net/OSS_Products_images/spillbox/bg.png');
    background-repeat: no-repeat;      /* avoid tiling */
  background-size: cover;           /* make it fill container */
  background-position: center; 
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  color: #A80000;
  margin-bottom: 12px;
  margin-top: -10px;
}

.subtitle {
  background: #A80000;
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(196, 30, 58, 0.3);
}

.presented-by {
  font-size: 14px;
  color: #A80000;
  font-weight: 600;
  margin-bottom: 10px;
}

.calendar-widget {
  /*background: #fff;*/
  border-radius: 12px;
  display: inline-block;
  /*padding: 12px;*/

  margin-bottom: 10px;
}

.calendar-img {
  max-width: 260px;   /* adjust size */
  height: auto;
  display: block;
  margin: 0 auto;
}


.calendar-header {
  background: #A80000;
  color: white;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
}

.calendar-flags {
  background: linear-gradient(
    to right,
    #ff6b6b 0%,
    #ffd93d 16.66%,
    #6bcf7f 33.33%,
    #4d96ff 50%,
    #9c88ff 66.66%,
    #ff6b6b 83.33%,
    #ffd93d 100%
  );
  height: 8px;
}

.calendar-date {
  padding: 16px;
  background: white;
}

.date-number {
  font-size: 36px;
  font-weight: 900;
  color: #333;
  line-height: 1;
}

.date-year {
  font-size: 18px;
  font-weight: 600;
  color: #A80000;
  margin-top: 4px;
}

.description-line1 {
  font-size: 16px;
  color: #A80000;
  font-weight: 400;
  margin-bottom: 8px;
}

.description-line2 {
  font-size: 18px;
  color: #A80000;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.nav-tab {
  flex: 1;
  text-align: center;   /* Center align text */
  padding: 12px 8px;
  background: #b81530;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;   /* Fix vertical alignment */
  justify-content: center;
  transition: background 0.3s ease;
  text-decoration: none;
}

.nav-tab.active {
  background: #A80000;
  color: white;
}


.nav-tab:last-child {
  border-right: none;
}

.nav-tab:hover {
  background: #A80000;
}



.section-header {
  /*padding: 12px 16px;*/
  color: #A80000;
  font-size: 25px;
  font-weight: 700;
}
/* Product List */
/* Product List */
.product-list {
  background: white;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #A80000;
}

/* Product Row (Horizontal Card) */
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #A80000;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Product Image */
.product-image {
  width: 70px;
  height: 100px;
  object-fit: contain;
  margin-right: 16px;
  flex-shrink: 0;
}

/* Middle Info Section */
.product-info {
  flex: 1;
  text-align: left;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #A80000;
}

.product-weight {
  font-size: 13px;
  color: #555;
}

/* Right Side Controls */
.product-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 16px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border-radius: 4px;
  border: 2px solid #A80000;
  background: #fff;

}

.qty-btn {
  width: 35px;
  height: 31px;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #666;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #f5f5f5;
  color: #A80000;
}

.qty-display {
  width: 32px;
  height: 31px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: white;
}

.add-to-cart {
  background: #A80000;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.add-to-cart:hover {
  background: #8b1538;
  transform: translateY(-1px);
}

/* === Cart Proceed Section === */
.proceed-section {
  position: fixed;
  bottom: 0;
  
  width: 100%;
  background: #A80000; /* Red background */
  color: #fff; /* White text */
  padding: 12px 16px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
/*  justify-content: center;
  text-align: center;*/
  margin-top: 10px;
  flex-direction: column;
  gap: 8px;
}
.proceed-section button {
  width: 100%;
}

.proceed-section .total-section {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}

.proceed-section .proceed-btn {
  background: #fff;
  color: #A80000;
  border: none;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
    margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.proceed-section .proceed-btn:hover {
  background: #f5f5f5;
}

/* Footer */
.footer {
  background: white;
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-address {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.footer-phone {
  font-size: 12px;
  color: #A80000;
  font-weight: 600;
}

.footer-copyright {
  background: #A80000;
  color: white;
  padding: 8px 16px;
  font-size: 11px;
  text-align: center;
  margin: -16px;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 375px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 401px) {
  body {

    background: #f0f0f0;
  }

  .container {
    /*border-radius: 12px;*/
    overflow: hidden;
  }
}
/* Desktop View */
@media (min-width: 768px) {
  body {
    max-width: 100%;
    background: #f0f0f0; /* light gray around the container */
  }

  .container {
    width: 800px;              /* center 50% width */
    margin: 0 auto;          /* center horizontally */
    /*border-radius: 12px;*/
    overflow: hidden;
  }
    .proceed-section {
    width: 800px;              /* center 50% width */


  display: flex;
  justify-content: center;
  text-align: center;

  }
  .main-content {
    background: url('https://omtamilcalendar.b-cdn.net/OSS_Products_images/spillbox/bg.png') no-repeat center center;
    background-size: 100% 100%; 
    /*min-height: 70vh;*/
  }
  /* Scale up fonts and paddings for desktop */
  .header-title {
    font-size: 30px;
  }

  .main-title {
    font-size: 44px;
    margin-top: 10px;
  }

  .subtitle {
    font-size: 24px;
    padding: 12px 32px;
    margin-top: 20px;
  }

  .presented-by {
    font-size: 20px;
    margin-top: 20px;
  }

  .description-line1 {
    font-size: 28px;
    margin-top: 10px;
  }

  .description-line2 {
    font-size: 34px;
    margin-top: 10px;
  }
    .product-info {
      flex: 1;
      padding-left:20px;
    }
.section-header {
  /*padding: 12px 16px;*/
  color: #A80000;
  font-size: 20px;
  font-weight: 700;
}
  .calendar-img {
    max-width: 450px; /* larger calendar image */
  }

  .nav-tab {
    font-size: 16px;
    padding: 14px 10px;
  }

  .product-item {
    padding: 20px;
  }

  .product-image {
    width: 150px;
    height: 150px;
  }

  .product-name {
    font-size: 18px;
  }

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

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

  .summary-label,
  .summary-value {
    font-size: 18px;
  }

  .proceed-btn {
    font-size: 18px;
    padding: 14px 40px;
  }

  .footer-address,
  .footer-phone,
  .footer-copyright {
    font-size: 14px;
  }
}


/* =====================
   Cart List Page Styles
   ===================== */
.cart-items-list {
  padding: 15px 15px 150px 15px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  /*background: #f1e5d5;*/
  border: 1px solid #A80000;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Left image */
.cart-left {
  flex: 0 0 80px;
}

.cart-left img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
}

/* Center text */
.cart-center {
  flex: 1;
  padding: 0 12px;
}

.cart-center .product-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px; /* 🔥 adds gap between name & qty */
}

.cart-center .product-qty {
  font-size: 14px;
  color: #444;
}

/* Right price */
.cart-right {
  background: #b50000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  min-width: 70px;
}

/* 🔥 Desktop View Enhancements */
@media (min-width: 768px) {
  .cart-item-row {
    padding: 18px;
    border-radius: 12px;
  }

  .cart-left {
    flex: 0 0 120px;
  }

  .cart-left img {
    width: 110px;
    height: 110px;
  }

  .cart-center .product-name {
    font-size: 18px;
  }

  .cart-center .product-qty {
    font-size: 16px;
  }

  .cart-right {
    font-size: 18px;
    padding: 10px 18px;
    min-width: 90px;
  }
}


.header-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #b00020;
  padding: 28px 16px;
  color: white;
  position: relative;
}
