/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: #333;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid #e9ecef;
}

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

/* Delivery Location Selector */
.deliver-box {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.deliver-box:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.deliver-box .icon {
  margin-right: 5px;
  font-size: 16px;
}

.deliver-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.deliver-text small {
  font-size: 10px;
  opacity: 0.9;
}

.deliver-text strong {
  font-size: 12px;
  font-weight: 600;
}

/* Delivery Dropdown */
/* dropdown directly below trigger */
.deliver-selector {
  position: relative;
  display: inline-block;
}

.deliver-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  padding: 18px;
  z-index: 2000;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  display: none;
}

.deliver-dropdown.is-open,
.deliver-dropdown[aria-hidden="false"] {
  display: block;
}

.deliver-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 32px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.deliver-dropdown .dd-header {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #0f172a;
}

.deliver-dropdown .dd-section {
  margin-bottom: 12px;
}

.deliver-dropdown label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #555;
}

.deliver-dropdown select,
.deliver-dropdown input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.deliver-dropdown .dd-save {
  width: 100%;
  background: #f0c14b;
  border: 1px solid #a88734;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.deliver-dropdown[aria-hidden="false"],
.deliver-dropdown.is-open {
  display: block;
}

.deliver-dropdown .dd-save:hover {
  background: #f7ca00;
  border-color: #e4b429;
}

/* Location Modal */
/* inline dropdown form mirrors modal styling */
.deliver-dropdown .dd-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.deliver-dropdown label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.deliver-dropdown input,
.deliver-dropdown select {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.9rem;
  transition: border 0.2s ease;
}

.deliver-dropdown input {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

#ddCity,
#ddZip {
  width: calc(100% - 20px);
}

.deliver-dropdown input:focus,
.deliver-dropdown select:focus {
  outline: none;
  border-color: #ff6b35;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.12);
}

.deliver-dropdown .dd-save {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #fff;
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.deliver-dropdown .dd-save:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.navbar .logo {
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.navbar nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

/* Search Bar Styles */
.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 15px;
  position: relative;
}

#searchDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d5d9d9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 2147483647; /* Maximum z-index */
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
  margin-top: 0;
}
.sr-section-title {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  color: #6b7280;
  background: #f8fafc;
  border-bottom: 1px solid #eee;
}
.sr-suggest-list {
  display: block;
}
.sr-suggest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
}
.sr-suggest-row:hover {
  background: #f5f7fa;
}
.sr-suggest-icon {
  color: #9aa0a6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sr-suggest-text {
  color: #111827;
  font-size: 14px;
}
#searchDropdown mark {
  background: #fff3bf;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
#searchDropdown .sr-empty {
  padding: 16px 12px;
  color: #6b7280;
  font-size: 14px;
}
.search-bar, .search-container {
  overflow: visible !important;
}

.search-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  border: 2px solid #ff6b35;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-dropdown {
  padding: 0 24px 0 10px;
  border: none;
  border-right: 1px solid #ddd;
  background: #ff6b35;
  color: white;
  font-size: 13px;
  width: auto;
  max-width: 220px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px;
  min-width: 60px;
  height: 100%;
  line-height: 1;
  text-overflow: ellipsis;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: #111;
}

.search-button {
  width: 45px;
  background: #667eea;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-button:hover {
  background: #0062d1;
}

.search-button svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* Delivery selector */
.deliver-selector {
  position: relative;
  margin-left: 1.25rem;
  flex-shrink: 0;
}

.deliver-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.deliver-box:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.deliver-text small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deliver-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  width: 300px;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  display: none;
  z-index: 1000;
}

.deliver-dropdown.is-open {
  display: block;
}

.deliver-dropdown .dd-header {
  font-weight: 600;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #111827;
}

.deliver-dropdown .dd-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.deliver-dropdown label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.deliver-dropdown input,
.deliver-dropdown select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 0.9rem;
  background: #f9fafb;
  transition: border 0.2s ease;
}

.deliver-dropdown input:focus,
.deliver-dropdown select:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.dd-save {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #fff;
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.dd-save:hover {
  filter: brightness(1.05);
}

/* Auth Section */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  padding: 20px 16px 60px;
  box-sizing: border-box;
  background: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
}

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-container h2 {
  margin-bottom: 8px;
  color: #222;
  font-size: 1.5rem;
}

.auth-container .subtext {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.auth-form label {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-form input {
  padding: 8px;
  margin-bottom: 12px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.auth-form input::placeholder {
  color: #999;
  font-style: italic;
}

@media (max-width: 600px) {
  .auth-section {
    padding: 20px 12px 50px;
  }
  .auth-container {
    padding: 16px 12px;
    max-width: 100%;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.switch-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.switch-text a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 10px 20px 20px;
  background: #ffffff;
  color: white;
  margin-top: 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 0.9rem;
  color: #dbe6ff;
}

/* Cart Layout */
.cart-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px 80px;
}

.cart-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

/* Cart Items */
.cart-items {
  flex: 2;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

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

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-right: 15px;
  background: #f4f4f4;
}

.item-details {
  flex: 2;
}

.item-details h3 {
  margin: 0;
  font-size: 0.9rem;
}

.item-details p {
  color: #777;
  font-size: 0.85rem;
}

.item-qty input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.item-price {
  width: 80px;
  text-align: right;
  font-weight: 600;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

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

/* Summary */
.cart-summary {
  flex: 1;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: fit-content;
  margin-top: 20px;
}

.cart-summary h2 {
  margin-bottom: 20px;
  color: #222;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 0.9rem;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}

/* Coupons and Offers */
.coupons-section {
  margin-top: 25px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #edf2f7;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.coupons-section h3 {
  margin: 0 0 15px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}

.coupon-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.coupon-input input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.coupon-input button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.coupon-input button:hover {
  background: #1d4ed8;
}

.available-coupons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.coupon-details h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.coupon-details p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.btn-apply {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-apply:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .coupon-input {
    flex-direction: column;
  }

  .coupon-input button {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
  }
}

/* Profile Section */
.profile-section {
  padding: 50px 20px 100px;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.profile-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* Sidebar */
.profile-sidebar {
  flex: 1;
  max-width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
}

.profile-sidebar .image-upload {
  margin-top: 8px;
}

.profile-sidebar .image-upload label,
.profile-sidebar #delete-image {
  display: inline-block;
  margin: 8px auto 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #e6e9f0;
}

.profile-sidebar h3 {
  margin: 5px 0;
  font-size: 1.1rem;
}

.profile-sidebar .email {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.profile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-nav li {
  background: #f5f7fa;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}

.profile-nav li:hover {
  background: var(--accent-soft);
}

.profile-nav li.active {
  background: var(--accent-color);
  color: white;
}

/* Main Content */
.profile-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Cards */
.profile-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.quotation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quotation-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  background: #f9fafb;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.quotation-card:hover {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.quotation-card.collapsible {
  padding: 0;
  overflow: visible;
}

.quotation-card.collapsible.is-open {
  grid-column: 1 / -1;
}

.quotation-card-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.quotation-card-toggle:hover {
  background: rgba(11, 77, 166, 0.04);
}

.quotation-card-toggle h2 {
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.card-meta-text h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.card-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-pill.success {
  background: #ecfdf5;
  color: #047857;
}

.meta-pill.warning {
  background: #fff7ed;
  color: #c2410c;
}

.meta-pill.muted {
  background: #e2e8f0;
  color: #475569;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  background: #1f2937;
  border-radius: 999px;
}

.toggle-icon::before {
  width: 12px;
  height: 2px;
}

.toggle-icon::after {
  width: 2px;
  height: 12px;
}

.quotation-card-toggle[aria-expanded="true"] .toggle-icon::after {
  display: none;
}

.quotation-card-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
}

.quotation-card-body {
  border-top: 1px solid #e5e7eb;
  padding: 0 20px 20px;
  animation: slideDown 0.25s ease;
  overflow: visible;
  background: #fff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quotation-card h2 {
  margin-top: 0;
}

.quotation-card .subtext {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.profile-card h2 {
  margin-bottom: 20px;
}

/* Profile Form */
.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
}

.profile-form label {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.profile-form .btn-primary {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: fit-content;
  justify-self: end;
  padding: 12px 25px;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.orders-table th, .orders-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.orders-table th {
  background: #f5f7fa;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.orders-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-toggle {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.action-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 10px 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.action-menu-list[hidden] {
  display: none;
}

.action-menu-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.action-menu-link:hover {
  background: rgba(102, 126, 234, 0.08);
  color: #5a6fd8;
}

.status {
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.status.delivered {
  background: #d4edda;
  color: #155724;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.failed {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-container {
    flex-direction: column;
  }

  .profile-sidebar {
    max-width: 100%;
  }
}

.hidden {
  display: none;
}

.success {
  color: #1b7e2b;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

#verificationSection {
  margin-top: 15px;
  background: #f4f7ff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0e3ff;
}

#verificationSection label {
  font-weight: 500;
}

#verificationSection input {
  margin-bottom: 10px;
}

#verifyBtn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 5px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#verifyBtn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.phone-group {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.phone-group select {
  padding: 8px;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  width: 30%;
  height: auto;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.phone-group input {
  width: 70%;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  font-size: 0.85rem;
  height: auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.phone-group select:focus,
.phone-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 3px rgba(102, 126, 234, 0.4);
}

.login-username {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.login-username select {
  width: 30%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.login-username input {
  width: 70%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-username select:focus,
.login-username input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 3px rgba(102, 126, 234, 0.4);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.auth-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}
/* Address Cards */
.address-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.address-card {
  background: #f9fbff;
  border: 1px solid #dce6ff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.address-card h4 {
  margin-bottom: 5px;
  color: #222;
}

.address-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Table improvement */
.orders-table button {
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.orders-table button:hover {
  background: #5a6fd8;
}

/* Center search bar in header */
.navbar .search-container { display: flex; justify-content: center; }
.search-container { margin-left: auto; margin-right: auto; }
.search-bar { margin: 0 auto; }


/* Responsive Utilities & Header Layout */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }
.section-container { width: 100%; padding-left: 16px; padding-right: 16px; }

@media (max-width: 992px) {
  .navbar { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .header-left { width: 100%; justify-content: space-between; }
  .search-container { order: 3; width: 100%; max-width: none; margin: 8px 0 0; }
  .search-bar { width: 100%; }
  .search-input { flex: 1; }
  .navbar nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .navbar nav a { padding: 6px 10px; font-size: 14px; border-radius: 6px; }
}

@media (max-width: 820px) {
  .navbar { flex-direction: column; align-items: stretch; padding: 8px 12px; }
  .header-left { margin-bottom: 6px; gap: 10px; justify-content: space-between; }
  .logo { font-size: 1rem; }

  /* Show mobile menu toggle */
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; }
  .menu-toggle:focus { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

  /* Collapse nav by default on mobile; open when toggled */
  .navbar nav { width: 100%; display: none; }
  .navbar nav.open { display: flex; flex-direction: column; gap: 8px; }
  .navbar nav a { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }

  /* Search tweaks */
  .search-container { margin-top: 6px; }
  .search-bar { border-radius: 10px; }
  .category-dropdown { flex: 0 0 110px; min-width: 110px; font-size: 12px; }
  .search-input { font-size: 14px; }
  .search-button { width: 40px; }
}
/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg,#0b4da6 0,#063a8a 100%);
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

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

/* Delivery Location Selector */
.deliver-box {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.deliver-box:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.deliver-box .icon {
  margin-right: 5px;
  font-size: 16px;
}

.deliver-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.deliver-text small {
  font-size: 10px;
  opacity: 0.9;
}

.deliver-text strong {
  font-size: 12px;
  font-weight: 600;
}

/* Delivery Dropdown */
/* dropdown directly below trigger */
.deliver-selector {
  position: relative;
  display: inline-block;
}

.deliver-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  padding: 18px;
  z-index: 2000;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  display: none;
}

.deliver-dropdown.is-open,
.deliver-dropdown[aria-hidden="false"] {
  display: block;
}

.deliver-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 32px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.deliver-dropdown .dd-header {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #0f172a;
}

.deliver-dropdown .dd-section {
  margin-bottom: 12px;
}

.deliver-dropdown label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #555;
}

.deliver-dropdown select,
.deliver-dropdown input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.deliver-dropdown .dd-save {
  width: 100%;
  background: #f0c14b;
  border: 1px solid #a88734;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.deliver-dropdown[aria-hidden="false"],
.deliver-dropdown.is-open {
  display: block;
}

.deliver-dropdown .dd-save:hover {
  background: #f7ca00;
  border-color: #e4b429;
}

/* Location Modal */
/* inline dropdown form mirrors modal styling */
.deliver-dropdown .dd-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.deliver-dropdown label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.deliver-dropdown input,
.deliver-dropdown select {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.9rem;
  transition: border 0.2s ease;
}

.deliver-dropdown input {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

#ddCity,
#ddZip {
  width: calc(100% - 20px);
}

.deliver-dropdown input:focus,
.deliver-dropdown select:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.deliver-dropdown .dd-save {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #fff;
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.deliver-dropdown .dd-save:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.navbar .logo {
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.navbar nav a:hover {
  text-decoration: underline;
}

/* Search Bar Styles */
.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 15px;
  position: relative;
}

#searchDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d5d9d9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 2147483647; /* Maximum z-index */
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
  margin-top: 0;
}
.sr-section-title {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  color: #6b7280;
  background: #f8fafc;
  border-bottom: 1px solid #eee;
}
.sr-suggest-list {
  display: block;
}
.sr-suggest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
}
.sr-suggest-row:hover {
  background: #f5f7fa;
}
.sr-suggest-icon {
  color: #9aa0a6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sr-suggest-text {
  color: #111827;
  font-size: 14px;
}
#searchDropdown mark {
  background: #fff3bf;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
#searchDropdown .sr-empty {
  padding: 16px 12px;
  color: #6b7280;
  font-size: 14px;
}
.search-bar, .search-container {
  overflow: visible !important;
}

.search-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  border: 2px solid #ff6b35;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-dropdown {
  padding: 0 24px 0 10px;
  border: none;
  border-right: 1px solid #ddd;
  background: #ff6b35;
  color: white;
  font-size: 13px;
  width: auto;
  max-width: 220px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px;
  min-width: 60px;
  height: 100%;
  line-height: 1;
  text-overflow: ellipsis;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: #111;
}

.search-button {
  width: 45px;
  background: #667eea;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-button:hover {
  background: #0062d1;
}

.search-button svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* Delivery selector */
.deliver-selector {
  position: relative;
  margin-left: 1.25rem;
  flex-shrink: 0;
}

.deliver-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.deliver-box:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.deliver-text small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deliver-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  width: 300px;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  display: none;
  z-index: 1000;
}

.deliver-dropdown.is-open {
  display: block;
}

.deliver-dropdown .dd-header {
  font-weight: 600;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #111827;
}

.deliver-dropdown .dd-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.deliver-dropdown label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.deliver-dropdown input,
.deliver-dropdown select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 0.9rem;
  background: #f9fafb;
  transition: border 0.2s ease;
}

.deliver-dropdown input:focus,
.deliver-dropdown select:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.dd-save {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #fff;
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.dd-save:hover {
  filter: brightness(1.05);
}

/* Auth Section */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  padding: 20px 16px 60px;
  box-sizing: border-box;
  background: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
}

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-container h2 {
  margin-bottom: 8px;
  color: #222;
  font-size: 1.5rem;
}

.auth-container .subtext {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.auth-form label {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-form input {
  padding: 8px;
  margin-bottom: 12px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.auth-form input::placeholder {
  color: #999;
  font-style: italic;
}

@media (max-width: 600px) {
  .auth-section {
    padding: 20px 12px 50px;
  }
  .auth-container {
    padding: 16px 12px;
    max-width: 100%;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.switch-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.switch-text a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 10px 20px 20px;
  background: #ffffff;
  color: white;
  margin-top: 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 0.9rem;
  color: #dbe6ff;
}

/* Cart Layout */
.cart-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px 80px;
}

.cart-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

/* Cart Items */
.cart-items {
  flex: 2;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

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

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-right: 15px;
  background: #f4f4f4;
}

.item-details {
  flex: 2;
}

.item-details h3 {
  margin: 0;
  font-size: 0.9rem;
}

.item-details p {
  color: #777;
  font-size: 0.85rem;
}

.item-qty input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.item-price {
  width: 80px;
  text-align: right;
  font-weight: 600;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

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

/* Summary */
.cart-summary {
  flex: 1;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: fit-content;
  margin-top: 20px;
}

.cart-summary h2 {
  margin-bottom: 20px;
  color: #222;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 0.9rem;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}

/* Coupons and Offers */
.coupons-section {
  margin-top: 25px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #edf2f7;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.coupons-section h3 {
  margin: 0 0 15px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}

.coupon-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.coupon-input input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.coupon-input button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.coupon-input button:hover {
  background: #1d4ed8;
}

.available-coupons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.coupon-details h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.coupon-details p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.btn-apply {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-apply:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .coupon-input {
    flex-direction: column;
  }

  .coupon-input button {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
  }
}

/* Profile Section */
.profile-section {
  padding: 50px 20px 100px;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.profile-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* Sidebar */
.profile-sidebar {
  flex: 1;
  max-width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
}

.profile-sidebar .image-upload {
  margin-top: 8px;
}

.profile-sidebar .image-upload label,
.profile-sidebar #delete-image {
  display: inline-block;
  margin: 8px auto 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #e6e9f0;
}

.profile-sidebar h3 {
  margin: 5px 0;
  font-size: 1.1rem;
}

.profile-sidebar .email {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.profile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-nav li {
  background: #f5f7fa;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}

.profile-nav li:hover {
  background: var(--accent-soft);
}

.profile-nav li.active {
  background: var(--accent-color);
  color: white;
}

/* Main Content */
.profile-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Cards */
.profile-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.quotation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quotation-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  background: #f9fafb;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.quotation-card:hover {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.quotation-card.collapsible {
  padding: 0;
  overflow: visible;
}

.quotation-card.collapsible.is-open {
  grid-column: 1 / -1;
}

.quotation-card-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.quotation-card-toggle:hover {
  background: rgba(11, 77, 166, 0.04);
}

.quotation-card-toggle h2 {
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.card-meta-text h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.card-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-pill.success {
  background: #ecfdf5;
  color: #047857;
}

.meta-pill.warning {
  background: #fff7ed;
  color: #c2410c;
}

.meta-pill.muted {
  background: #e2e8f0;
  color: #475569;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  background: #1f2937;
  border-radius: 999px;
}

.toggle-icon::before {
  width: 12px;
  height: 2px;
}

.toggle-icon::after {
  width: 2px;
  height: 12px;
}

.quotation-card-toggle[aria-expanded="true"] .toggle-icon::after {
  display: none;
}

.quotation-card-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
}

.quotation-card-body {
  border-top: 1px solid #e5e7eb;
  padding: 0 20px 20px;
  animation: slideDown 0.25s ease;
  overflow: visible;
  background: #fff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quotation-card h2 {
  margin-top: 0;
}

.quotation-card .subtext {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.profile-card h2 {
  margin-bottom: 20px;
}

/* Profile Form */
.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
}

.profile-form label {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.profile-form .btn-primary {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: fit-content;
  justify-self: end;
  padding: 12px 25px;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.orders-table th, .orders-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.orders-table th {
  background: #f5f7fa;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.orders-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-toggle {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.action-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 10px 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.action-menu-list[hidden] {
  display: none;
}

.action-menu-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.action-menu-link:hover {
  background: rgba(102, 126, 234, 0.08);
  color: #5a6fd8;
}

.status {
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.status.delivered {
  background: #d4edda;
  color: #155724;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-container {
    flex-direction: column;
  }

  .profile-sidebar {
    max-width: 100%;
  }
}

.hidden {
  display: none;
}

.success {
  color: #1b7e2b;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

#verificationSection {
  margin-top: 15px;
  background: #f4f7ff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0e3ff;
}

#verificationSection label {
  font-weight: 500;
}

#verificationSection input {
  margin-bottom: 10px;
}

#verifyBtn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 5px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#verifyBtn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.phone-group {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.phone-group select {
  padding: 8px;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  width: 30%;
  height: auto;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.phone-group input {
  width: 70%;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  font-size: 0.85rem;
  height: auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.phone-group select:focus,
.phone-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 3px rgba(102, 126, 234, 0.4);
}

.login-username {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.login-username select {
  width: 30%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.login-username input {
  width: 70%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-username select:focus,
.login-username input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 3px rgba(102, 126, 234, 0.4);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.auth-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}
/* Address Cards */
.address-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.address-card {
  background: #f9fbff;
  border: 1px solid #dce6ff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.address-card h4 {
  margin-bottom: 5px;
  color: #222;
}

.address-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Table improvement */
.orders-table button {
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.orders-table button:hover {
  background: #5a6fd8;
}
