/* General body style */
body {
    background: #fafafa !important;
    font-family: "Inter", sans-serif;
}

/* Product Card */
.product-card {
    border-radius: 12px !important;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important;
}

.product-card img {
    width: 60px;
    height: auto;
    border-radius: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.1;
}

.product-mrp {
    font-size: 13px;
    color: #6d6d6d;
    margin-bottom: 10px;
}

.product-card select {
    padding: 4px 8px !important;
    font-size: 14px !important;
    height: 36px !important;
    border-radius: 8px !important;
}

.add-btn {
    border: 1px solid #f36b21 !important;
    color: #f36b21 !important;
    padding: 4px 18px !important;
    font-size: 14px !important;
    border-radius: 20px !important;
    background: #fff !important;
}

.add-btn:hover {
    background: #f36b21 !important;
    color: #fff !important;
}

.product-card-row {
    margin-bottom: 14px;
}

/* Sidebar */
.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    width: 90%;
    margin-left: 25px;
}

.search-box input {
    height: 44px;
    font-size: 14px;
}

.tag {
    padding: 6px 12px;
    background: #ffe3d4;
    border-radius: 18px;
    font-size: 13px;
    margin: 4px 4px 0 0;
    display: inline-block;
}
/* Modal and UI styles */
body {
  font-family: "Inter", sans-serif;
  background: #fafafa;
}

.product-list {
  max-width: 800px;
  margin: 2rem auto;
}

.product-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-info {
  flex: 1;
}

.product-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.product-mrp {
  color: #6d6d6d;
  font-size: 0.9rem;
}

.product-size {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.25rem;
}

.add-btn {
  border: 1.5px solid #f36b21;
  color: #f36b21;
  background: white;
  border-radius: 20px;
  padding: 0.4rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  height: 36px;
}

.add-btn:hover {
  background: #f36b21;
  color: white;
}

/* Modal product header */
.modal-header .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-header .product-size {
  font-weight: 400;
  font-size: 0.9rem;
  color: #555;
  margin-top: 2px;
}

.modal-header .product-mrp {
  font-weight: 600;
  font-size: 1rem;
  color: #444;
}

.modal-header .close-btn {
  font-weight: 600;
  font-size: 1.5rem;
  border: none;
  background: none;
}

/* Buy Once / Subscribe toggle buttons */
.btn-toggle-group {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.btn-toggle {
  flex: 1;
  border: 2px solid #f36b21;
  border-radius: 30px;
  padding: 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: #f36b21;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-toggle.active, .btn-toggle:hover {
  background: linear-gradient(90deg, #f36b21 0%, #ec7300 100%);
  color: white;
  border-color: transparent;
}

/* Quantity controls */
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1.8px solid #f36b21;
  border-radius: 24px;
  padding: 0.2rem 1rem 0.2rem 1rem;
  font-weight: 600;
  color: #2f2f2f;
  user-select: none;
  min-width: 110px;
}

.quantity-btn {
  font-size: 1.25rem;
  min-width: 22px;
  min-height: 22px;
  color: #f36b21;
  cursor: pointer;
  border: none;
  background: transparent;
}

.quantity-number {
  min-width: 20px;
  text-align: center;
}

/* Date input style */
input[type="date"] {
  margin-top: 0.8rem;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  padding-left: 0.5rem;
  height: 36px;
  font-size: 1rem;
  max-width: 220px;
}

/* Subscribe options radios */
.subscribe-options {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.subscribe-options label {
  cursor: pointer;
}

/* Subscribe info text */
.subscribe-info {
  color: #444;
  margin-bottom: 1rem;
}

/* Delivery address section */
.address-section {
  margin-top: 2rem;
}

.add-address-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #f36b21;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  user-select: none;
}

.add-address-btn:hover {
  text-decoration: underline;
}

.add-address-btn svg {
  width: 18px;
  height: 18px;
  stroke: #f36b21;
}

.selected-address-text {
  margin-top: 0.5rem;
  color: #2e2e2e;
  font-weight: 500;
}

/* Add item button */
.add-item-btn {
  margin-top: 2rem;
  background: #34c759;
  color: white;
  font-weight: 600;
  border-radius: 28px;
  height: 48px;
  font-size: 1.15rem;
  width: 100%;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.add-item-btn:hover {
  background: #27a64a;
}

/* Address modal */
#map {
  width: 320px;
  height: 280px;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.address-modal-content {
  max-width: 820px;
  padding: 2rem;
}

.address-form {
  flex-grow: 1;
  margin-left: 2rem;
}

.address-form input {
  margin-bottom: 1rem;
}

.address-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.address-tag-btn {
  border-radius: 18px;
  padding: 6px 18px;
  font-weight: 600;
  border: 1.5px solid #ddd;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.address-tag-btn.active,
.address-tag-btn:hover {
  background: #f36b21;
  color: white;
  border-color: #f36b21;
}

/* Responsive */
@media (max-width: 600px) {
  #map {
    width: 100% !important;
    height: 200px;
  }

  .address-form {
    margin-left: 0;
    margin-top: 1rem;
  }
}
.day-btn {
  border: 1px solid #dcdcdc;
  background: white;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}

.day-btn.active {
  background: #198754;
  color: white;
  border-color: #198754;
}
/* First row layout: force one line */
.modal-header > .d-flex {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
}

/* Left group: title + size in one line */
.modal-header > .d-flex > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Title */
.modal-header .modal-title {
  margin: 0 !important;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Size */
.modal-header .product-size {
  margin: 0 !important;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #777;
}

/* MRP should sit just before close button */
.modal-header .product-mrp {
  margin-left: auto !important;   /* push MRP to the right */
  margin-right: 8px;             /* small space before close */
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
}

/* Close button always last */
.modal-header .btn-close {
  margin-left: 0 !important;
  flex-shrink: 0;
}
