/* ===== COLOR VARIABLES ===== */
:root {
  --primary-bg: #381680;
  --secondary-bg: #000000;
  --accent-color: #411ba9;
  --accent-hover: #4f39f1;

  --text-light: #f9f6f6; 
  --text-dark: #333333;
  --text-muted: #b3b3b3;
  --text-grey: #9c9b9b;
  --page-bg: #e1dfdf;
}

/* ===== GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-bg);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  letter-spacing: 2px;
}

.nav-links a {
  color: var(--text-muted);
  margin-left: 25px;
  font-size: 15px;
  transition: color 0.3s;
}

.navbar {
  background-color: var(--secondary-bg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  margin: 10px 5px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-grey);
  color: var(--text-grey);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(
    90deg,
    var(--secondary-bg) 0%,
    var(--primary-bg) 50%,
    var(--secondary-bg) 100%
  );
  color: var(--text-light);
  padding: 100px 40px;
  text-align: center;
}


.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.85;
}

/* ===== FEATURED SECTION ===== */
.featured {
  padding: 60px 40px;
  text-align: center;
}

.featured h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .card-info {
  padding: 15px;
  text-align: left;
}

.product-card .card-info h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary-bg);
}

.product-card .card-info p {
  font-size: 15px;
  color: var(--accent-color);
  font-weight: bold;
}

.product-card .card-info span {
  font-size: 13px;
  color: var(--text-grey);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(
    90deg,
    var(--secondary-bg) 0%,
    var(--primary-bg) 50%,
    var(--secondary-bg) 100%
  );
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 14px;
}
/* ===== AUTH PAGE ===== */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--page-bg);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.auth-box h2 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 14px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 1px solid var(--page-bg);
  border-radius: 8px;
  font-size: 15px;
  background: var(--page-bg);
  color: var(--text-dark);
  outline: none;
  transition: border 0.3s;
}

.auth-input:focus {
  border-color: var(--accent-color);
}

.full-width {
  width: 100%;
  text-align: center;
  margin: 5px 0;
}

.divider {
  text-align: center;
  color: var(--text-muted);
  margin: 15px 0;
  font-size: 13px;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: var(--page-bg);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-google {
  background-color: #fff;
  color: var(--text-dark);
  border: 1px solid var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background-color: var(--page-bg);
}

.auth-error {
  color: red;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
/* ===== PAGE HEADER ===== */
.page-header {
  background-color: var(--secondary-bg);
  color: var(--accent-color);
  padding: 50px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.85;
  color: #fff;
}

/* ===== SHOP SECTION ===== */
.shop-section {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--primary-bg);
  background: transparent;
  color: var(--primary-bg);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

/* ===== LOADING TEXT ===== */
.loading-text {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  padding: 40px;
}
/* ===== ADMIN PAGE ===== */
.admin-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.admin-section h2 {
  font-size: 24px;
  color: var(--secondary-bg);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.admin-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.admin-table {
 width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-table th {
  background-color: var(--secondary-bg);
  color: var(--text-muted);
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--page-bg);
  font-size: 14px;
  color: var(--text-dark);
}

#admin-orders-list .admin-table td:nth-child(4):hover {
  background-color: #f5f5f5;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.btn-delete {
  background-color: #ff4444;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.btn-delete:hover {
  background-color: #cc0000;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-delivered {
  background-color: #d4edda;
  color: #155724;
}

.status-select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--page-bg);
  font-size: 13px;
  cursor: pointer;
}
/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-section {
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-detail-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-image-wrap {
  flex: 1;
  min-width: 280px;
}

.product-image-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-info {
  flex: 1;
  min-width: 280px;
}

.product-category-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--text-light);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.product-info h1 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-price {
  font-size: 26px;
  font-weight: bold;
  color: var(--secondary-bg);
  margin-bottom: 20px;
}

.product-description {
  font-size: 15px;
  color: var(--text-grey);
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-qty-row label {
  font-size: 15px;
  color: var(--text-dark);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--page-bg);
  border-radius: 30px;
  padding: 6px 16px;
}

.qty-controls button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--secondary-bg);
  font-weight: bold;
  line-height: 1;
}

.qty-controls span {
  font-size: 16px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  color: var(--text-dark);
}

/* ===== CART PAGE ===== */
.cart-section {
  max-width: 860px;
  margin: 50px auto;
  padding: 0 40px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--text-grey);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--page-bg);
  border-radius: 20px;
  padding: 6px 14px;
}

.cart-item-controls span {
  font-size: 15px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--secondary-bg);
  font-weight: bold;
}

.cart-item-subtotal {
  font-size: 16px;
  font-weight: bold;
  color: var(--secondary-bg);
  min-width: 60px;
  text-align: right;
}

.cart-summary {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.cart-total strong {
  color: var(--secondary-bg);
  font-size: 24px;
}

.cart-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-grey);
  font-size: 18px;
}

.cart-empty p {
  margin-bottom: 20px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 40px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-form-box,
.checkout-summary-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.checkout-form-box h2,
.checkout-summary-box h2 {
  font-size: 20px;
  color: var(--secondary-bg);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.cod-badge {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #795548;
  margin-bottom: 16px;
  font-weight: 600;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--page-bg);
}

.summary-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-item-left img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.summary-item-left p {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.summary-item-left span {
  font-size: 12px;
  color: var(--text-grey);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-dark);
}

.checkout-total strong {
  font-size: 22px;
  color: var(--secondary-bg);
}

/* ===== ORDERS PAGE ===== */
.orders-section {
  max-width: 860px;
  margin: 50px auto;
  padding: 0 40px;
}

.success-banner {
  background: #d4edda;
  color: #155724;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #c3e6cb;
}

.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-date {
  font-size: 13px;
  color: var(--text-grey);
  margin-bottom: 4px;
}

.order-address {
  font-size: 14px;
  color: var(--text-dark);
}

.order-header-right {
  text-align: right;
}

.order-total {
  font-size: 18px;
  font-weight: bold;
  color: var(--secondary-bg);
  margin-top: 6px;
}

.order-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge-pending    { background: #fff3cd; color: #856404; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-shipping   { background: #e2d9f3; color: #4b3a7a; }
.badge-delivered  { background: #d4edda; color: #155724; }

.order-items {
  border-top: 1px solid var(--page-bg);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dark);
}

.order-item-row img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.order-item-row span:last-child {
  margin-left: auto;
  font-weight: bold;
  color: var(--secondary-bg);
}

.order-notes {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-grey);
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-links a { margin-left: 14px; font-size: 13px; }
  .hero { padding: 70px 20px; }
  .hero h1 { font-size: 32px; }
  .featured, .shop-section, .cart-section,
  .checkout-section, .orders-section,
  .product-detail-section { padding-left: 20px; padding-right: 20px; }
  .product-detail-container { flex-direction: column; gap: 30px; }
  .cart-item { flex-wrap: wrap; }
}
/* ===== CUSTOMIZE PAGE ===== */
.customize-section {
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.customize-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.customize-intro {
  margin-bottom: 40px;
}

.customize-intro h2 {
  font-size: 22px;
  color: var(--secondary-bg);
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 20px;
  background: var(--page-bg);
  border-radius: 12px;
}

.step-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  color: var(--secondary-bg);
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  line-height: 36px;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-dark);
}

.customize-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.whatsapp-btn {
  background-color: #25D366;
  color: #fff;
  font-size: 16px;
  padding: 15px;
  margin-top: 10px;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.customize-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
}
/* ===== PHONE INPUT ===== */
.iti {
  width: 100%;
  margin-bottom: 15px;
}

.iti input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--page-bg);
  border-radius: 8px;
  font-size: 15px;
  background: var(--page-bg);
  color: var(--text-dark);
  outline: none;
}

.iti input:focus {
  border-color: var(--accent-color);
}
/* ===================================================
   APPEND THIS BLOCK TO THE BOTTOM OF style.css
   (in addition to the previous style_additions.css)
   =================================================== */

/* ===== FULFILLMENT TOGGLE (Pickup / Delivery) ===== */
.fulfillment-toggle {
  display: flex;
  gap: 12px;
  margin: 20px 0 18px;
}

.toggle-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--primary-bg);
  background: transparent;
  color: var(--primary-bg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-btn.active {
  background-color: var(--primary-bg);
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background-color: #e8f5f6;
}

/* ===== RADIO OPTIONS (pickup locations) ===== */
.section-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--page-bg);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
  transition: background 0.2s;
}

.radio-option:hover {
  background: #dff0f1;
}

.radio-option input[type="radio"] {
  accent-color: var(--secondary-bg);
  width: 16px;
  height: 16px;
}

/* ===== FULFILLMENT NOTE ===== */
.fulfillment-note {
  font-size: 13px;
  color: var(--secondary-bg);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: 8px;
}

/* ===== ORDER SUMMARY LINES ===== */
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-grey);
  padding: 8px 0;
  border-bottom: 1px solid var(--page-bg);
}
/* ===== PRODUCT GALLERY ===== */
.gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumb.active {
  border-color: var(--accent-color);
}

.video-thumb {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-bg);
  color: var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.video-thumb.active {
  border-color: var(--accent-color);
}

.navbar .logo img {
  height: 40px;
  width: auto;
  max-height: 40px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  height: 40px; /* adjust if needed */
}

.logo-sub {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 4px;
  opacity: 0.8;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 400px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
/* ===== EDIT MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

/* ===== MODAL BOX ===== */
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* ===== MODAL HEADER ===== */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 2px solid var(--accent-color);
  background: var(--secondary-bg);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.modal-close:hover {
  opacity: 1;
}

/* ===== MODAL BODY (scrollable) ===== */
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body .auth-input {
  margin-bottom: 10px;
}

/* ===== MODAL FOOTER ===== */
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--page-bg);
  background: #fafafa;
  flex-shrink: 0;
}

.modal-footer .btn {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* ===== MEDIA BADGE IN TABLE ===== */
.media-badge {
  display: inline-block;
  background: var(--page-bg);
  color: var(--secondary-bg);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== EDIT BUTTON ===== */
.btn-edit {
  background-color: var(--primary-bg);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  margin-right: 6px;
  transition: background 0.2s;
}

.btn-edit:hover {
  background-color: var(--secondary-bg);
}
/* ===== SUCCESS BANNER ===== */
.success-banner {
  background-color: #d4edda;
  color: #155724;
  padding: 15px 30px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid #c3e6cb;
}
/* ===== PRODUCT OPTIONS ===== */
.admin-options-section {
  margin-bottom: 20px;
}

.section-label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.size-row, .color-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.option-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid var(--primary-bg);
  background: transparent;
  color: var(--primary-bg);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 5px;
}

.option-btn.active, .option-btn:hover {
  background-color: var(--primary-bg);
  color: var(--text-light);
}

.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid #ddd;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 5px;
}

.color-btn.active {
  border-color: var(--primary-bg);
  box-shadow: 0 0 0 2px var(--accent-color);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.product-options {
  margin: 20px 0;
}

.product-options h3 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}
/* ===== PRODUCT OPTION BUTTONS (IMPROVED UI) ===== */

/* Container spacing */
.product-options {
  margin: 25px 0;
}

/* Section titles (Size / Color) */
.product-options h3 {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SIZE BUTTONS ===== */
.option-btn {
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid var(--primary-bg);
  background: #fff;
  color: var(--primary-bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 6px 6px 0 0;
}

/* Hover effect */
.option-btn:hover {
  background-color: var(--primary-bg);
  color: #fff;
  transform: translateY(-1px);
}

/* Active (selected) */
.option-btn.active {
  background-color: var(--primary-bg);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== COLOR BUTTONS ===== */
.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 25px;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 6px 6px 0 0;
}

/* Color circle */
.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Hover */
.color-btn:hover {
  border-color: var(--primary-bg);
  transform: translateY(-1px);
}

/* Active (selected color) */
.color-btn.active {
  border-color: var(--primary-bg);
  background-color: #f8f7ff;
  box-shadow: 0 0 0 2px var(--accent-color);
}

/* ===== MOBILE FRIENDLY ===== */
@media (max-width: 500px) {
  .option-btn,
  .color-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}
/* ===== ORDER DATE COLUMNS ===== */
.admin-table td:nth-child(8),
.admin-table td:nth-child(9),
.admin-table td:nth-child(10),
.admin-table td:nth-child(11) {
  font-size: 12px;
  color: var(--text-grey);
  white-space: nowrap;
}
/* ===== TABLE SCROLL (VERY IMPORTANT) ===== */
#admin-orders-list {
  overflow-x: auto;
}
/* ===== ORDER STATUS DATES COLORS ===== */
.admin-table td:nth-child(9) { color: #0d6efd; }   /* Processing */
.admin-table td:nth-child(10) { color: #6f42c1; }  /* Out for delivery */
.admin-table td:nth-child(11) { color: #198754; }  /* Delivered */
.admin-table th,
.admin-table td {
  text-align: center;
}
#order-modal-body p {
  margin-bottom: 6px;
  font-size: 14px;
}
.order-item-line {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: 13px;
  margin-bottom: 4px;
}

.order-item-line strong {
  color: var(--secondary-bg);
}

.order-item-line span {
  color: var(--text-grey);
}

.admin-table {
  table-layout: auto;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  min-width: 300px;
  white-space: nowrap;
}
.admin-table td:nth-child(4) {
  font-weight: 500;
}