/* General layout */
html {
  overflow-y: auto; /* Prevent scrollbar shift */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  padding: 0;
  /*overflow-x: hidden;*/
}

/* Header styling */
/* Site Header styling */
.site-header {
  top: 0;
  left: 0;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1000;
  background-color: #333;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
}
#Alert {
  position: fixed; /* instead of absolute */
  z-index: 99999;  /* bump it even higher */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 162px;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
input[type="submit"], .caspio-button {
  background-color: #0056b3;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover, .caspio-button:hover {
  background-color: #003d80;
}


/* Indent header content */
.header-inner {
  margin-left: 15%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Neutralize mobile wrapper on desktop */
.mobile-top-row {
  display: contents;
}

/* Navigation menu */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
  #datapage-image img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

/* Submenu wrapper */
.submenu-wrapper {
  position: relative;
  display: inline-block;
}

/* Submenu trigger link */
.submenu-trigger {
  cursor: pointer;
}

/* Submenu container */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  min-width: 180px;
}

/* Submenu links */
.submenu a {
  display: block;
  padding: 6px 16px;
  color: #333;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

/* Hover styling for submenu items */
.submenu a:hover {
  background-color: #333333; /* Charcoal gray */
  color: #fff;
  border-radius: 6px;
}

/* Show submenu on hover */
.submenu-wrapper:hover .submenu {
  display: block;
}

/* Right side of header */
.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-right: 15%;
}

/* Toggle button (hidden by default) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
}

/* Hamburger lines */
.hamburger .line {
  fill: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animated transformation */
.menu-toggle.menu-open .hamburger .top {
  transform: translateY(20px) rotate(45deg);
}

.menu-toggle.menu-open .hamburger .middle {
  opacity: 0;
}

.menu-toggle.menu-open .hamburger .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

/* Stroke-style icons */
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

/* Logout button */
.logout-button {
  background-color: #555;
  color: white;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  height: 33px;
}

/* Buffer between search and logout */
.buffer-right {
  margin-left: 2rem;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
}

.search-box input[type="text"] {
  padding: 0 0.75rem;
  border: none;
  border-radius: 4px 0 0 4px;
  height: 33px;
  font-size: 14px;
  box-sizing: border-box;
}

.search-box button {
  padding: 0;
  border: none;
  background-color: #555;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  width: 33px;
}

/* Main content */
main {
  margin: 1rem 12%;
  box-sizing: border-box;
  background-color: white;
  padding: 5px;
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 120px 20px 40px;
  box-sizing: border-box;
  overflow-x: auto;
}

.spacer-top {
  height: 40px;
}

.caspio-embed {
  width: 100%;
  overflow-x: auto;
}

.caspio-embed iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  display: block;
}

iframe {
  max-width: 100%;
  width: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .header-inner {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .menu-toggle {
    display: block;
    margin-bottom: 0;
  }

  .header-right {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1rem;
    width: auto;
    margin-top: 0;
  }

  .search-box {
    flex: 1;
    max-width: 70%;
  }

  .search-box input {
    width: 100%;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  nav.show {
    display: flex;
  }

  .logout-button {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* Caspio embeds */
.caspio-section {
  margin: 0;
  padding: 0;
  border: none;
}

iframe {
  border: none !important;
}

/* Cart Panel */
#cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 900px;
  max-width: 100%;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
}

/* Show panel */
#cart-panel.open {
  transform: translateX(0);
}

/* Backdrop */
#cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}

#cart-panel {
  will-change: transform;
}


/* Cart close button */
#close-cart {
  float: right;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive fallback for cart panel */
@media (max-width: 480px) {
  #cart-panel {
    width: 100%;
    max-width: none;
  }
}

#cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #0078D4;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  z-index: 1100;
  font-size: 14px;
}


.account-cart {
  display: flex;
  align-items: center;
  gap: 30px;
}

#account-info {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

#cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.badge {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -5px;
  right: -10px;
}

/* Make account info and cart badge text white */
#account-info,
#account-info #customer-code,
#cart-count {
  color: white;
}

/* Optional: ensure badge stays visible on dark background */
.badge {
  background: red;   /* keep the red bubble */
  color: white;      /* white text inside */
}

   .variant-pill {
      display: inline-block;
      padding: 8px 16px;
      margin: 4px;
      border: 1px solid #ccc;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      background: #f8f8f8;
      transition: all 0.15s ease;
    }
    .variant-pill:hover {
      background: #eaeaea;
    }
    .variant-pill.selected {
      background: #0078D4;
      color: white;
      border-color: #0078D4;
    }

    #dynamic-itemcode,
    #product-price,
    #dynamic-itemcode strong,
    #product-price strong,
    div strong {
      color: #666666;
    }




    .close-cart-btn {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      float: right;
    }

    .checkout-btn {
      background-color: #0078D4;
      color: white;
      border: none;
      padding: 8px 20px;
      font-size: 15px;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .qty-block {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      padding-left: 17px;
    }

    .qty-block label {
      font-weight: 600;
      color: #666666;
    }

    .qty-input {
      width: 70px;
      padding: 4px 6px;
      font-size: 14px;
    }

    .add-to-cart-btn {
      background-color: #0078D4;
      color: white;
      border: none;
      padding: 6px 16px;
      font-size: 14px;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      white-space: nowrap;
    }
	
	/* Cart Panel Layout */
#cart-panel {
  background: #fff;
  width: 900px;
  max-width: 90%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -450px;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 9999;
}

#cart-panel.open {
  right: 0;
}

#cart-content {
  margin-top: 10px;
}

/* Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cart-table th {
  text-align: left;
  font-size: 13px;
  color: #555;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
}

.cart-table td {
  padding: 8px 4px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

/* Qty input */
.qty-input {
  width: 55px;
  padding: 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons */
.update-btn {
  background: #0078D4;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.delete-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* Subtotal */
.cart-subtotal {
  margin-top: 15px;
  font-size: 16px;
  padding-top: 10px;
  border-top: 2px solid #ddd;
}

/* Ship-To section */
.shipto-section {
  margin-bottom: 15px;
}

.shipto-section label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.shipto-message {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

/* Cart panel links */
#cart-panel a {
  text-decoration: none;        /* removes underline */
  color: #0078D4;               /* your brand blue */
  font-weight: 500;             /* optional: makes it look crisp */
}

#cart-panel a:hover {
  text-decoration: underline;   /* optional: subtle hover cue */
  color: #005A9E;               /* darker hover shade */
}
/* Subtotal container */
.cart-subtotal {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 2px solid #ddd;
  display: flex;
  justify-content: flex-end;   /* pushes subtotal to the right */
  font-size: 16px;
  font-weight: 600;            /* matches "Subtotal" and value */
  color: #333;
}

/* Optional: spacing between label and value */
.cart-subtotal span {
  margin-left: 6px;
}

.stock-in {
  color: #2E8B57; /* green */
  font-weight: 600;
}

.stock-out {
  color: #C62828; /* red */
  font-weight: 600;
}

.update-all-btn {
        background-color: #0078D4;
        color: white;
        border: none;
        padding: 8px 20px;
        font-size: 15px;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.shipto-section {
  display: flex;
  flex-direction: column;
}

.update-all-btn {
  background: #0078D4;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.update-all-btn:hover {
  background: #005A9E;
}

.update-all-btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  color: transparent; /* hides text */
}

.update-all-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.add-to-cart-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.added-flash {
  background-color: #d9534f !important; /* Bootstrap red */
  color: white !important;
  transition: background-color 0.3s ease;
}



/* ============================================================
   HYBRID CART PANEL (Old Wide Layout + New Features)
   Clean, conflict-free, no injected CSS required
   ============================================================ */

/* Panel container */
#cart-panel {
  position: fixed;
  top: 0;
  right: -900px;              /* Hidden off-screen */
  width: 900px;               /* Old wide layout */
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow: hidden;
}

/* Slide-in state */
#cart-panel.open {
  right: 0;
}

/* Backdrop */
#cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}

#cart-backdrop.show {
  display: block;
}

/* Drawer content */
#cart-drawer {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
    position: relative;
  z-index: 10000; /* above backdrop */

}

/* Header row */
.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

/* Ship-To section */
.shipto-section {
  margin-bottom: 20px;
}

.shipto-section label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

#cart-shipto-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.shipto-address {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Free shipping message */
.freeship-message {
  margin: 10px 0 15px 0;
  font-size: 14px;
  color: #0078D4;
  font-weight: 600;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cart-table th {
  text-align: left;
  font-size: 13px;
  color: #555;
  padding: 8px 4px;
  border-bottom: 1px solid #ddd;
}

.cart-table td {
  padding: 8px 4px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

/* Qty input */
.cart-qty-input {
  width: 60px;
  padding: 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
}

/* Delete button */
.cart-delete-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.cart-delete-btn:hover {
  background: #c9302c;
}

/* Totals section */
.cart-subtotal {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

#cart-shipto-select {
  width: auto;
  max-width: 300px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.shipto-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shipto-address {
  margin-left: 4px;
  font-size: 0.9rem;
  color: #444;
}

.cart-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 12px 0;
}

/* Lock Price column width */
.cart-table td:nth-child(6),
.cart-table th:nth-child(6) {
  width: 9ch;        /* fits $9,999.99 */
  min-width: 9ch;
  max-width: 9ch;
  text-align: right;
}

/* Lock Ext column width */
.cart-table td:nth-child(7),
.cart-table th:nth-child(7) {
  width: 9ch;        /* fits $99,999.99 */
  min-width: 9ch;
  max-width: 9ch;
  text-align: right;
}

/* Prevent KVS column from wrapping */
.cart-table td:nth-child(1),
.cart-table th:nth-child(1) {
  white-space: nowrap;
  width: 12ch;
  min-width: 12ch;
  max-width: 12ch;
  

}


/* Center the Qty column header and cells */
.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
  text-align: center;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
  text-align: center;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
  text-align: center;
}

.btn-modern {
  background: linear-gradient(135deg, #0078d4, #005fa3);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none; /* remove underline */
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-modern:hover {
  background: linear-gradient(135deg, #006cc0, #004f8a);
  transform: translateY(-1px);
  text-decoration: none !important; /* keep underline removed on hover */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close-cart-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  color: #444;
  transition: color 0.2s ease;
}

.close-cart-btn:hover {
  color: #000;
}


.btn-shipto {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-shipto:hover {
  background: linear-gradient(135deg, #23963d, #196b2c);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-shipto:disabled {
  background: #9bbfa5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@keyframes cart-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Overlay container */
#cart-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Inner card */
.cart-loading-card {
  background: white;
  padding: 20px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-weight: 600;
  color: #333;
}

/* Spinner */
.cart-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #ccc;
  border-top-color: #0078d4;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  animation: cart-spin 0.8s linear infinite;
}

/* Spinner animation */
@keyframes cart-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Full‑screen loading overlay */
#cart-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Inner loading card */
.cart-loading-card {
  background: white;
  padding: 20px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-weight: 600;
  color: #333;
}

/* Spinner */
.cart-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #ccc;
  border-top-color: #0078d4;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  animation: cart-spin 0.8s linear infinite;
}

/* Spinner animation */
@keyframes cart-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Loading text */
#cart-loading-text {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.cart-item-link {
  color: #0078d4;
  text-decoration: none !important;
  font-weight: 600;
}

.cart-item-link:hover {
  text-decoration: none !important;
  color: #025696;
}

.update-mode {
  background-color: #ff9800; /* orange example */
  border-color: #ff9800;
  color: white;
}

.update-mode:hover {
  background-color: #e68900;
  border-color: #e68900;
}

/* ------------------------------
   CHECKOUT PAGE LAYOUT
------------------------------ */

.checkout-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.checkout-left {
  flex: 2;
}

.checkout-right {
  flex: 1;
  position: sticky;
  top: 20px;
  height: fit-content;
}


/* ------------------------------
   CART TABLE
------------------------------ */

.checkout-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.checkout-cart-table th,
.checkout-cart-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.checkout-cart-table th {
  font-weight: 600;
  color: #4b5563;
  background: #f9fafb;
}

.checkout-cart-qty-input {
  width: 60px;
}


/* ------------------------------
   ORDER SUMMARY CARD
------------------------------ */

.checkout-totals-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.checkout-totals-card h2 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin: 4px 0;
  color: #374151;
}

.checkout-totals-divider {
  border-top: 1px solid #e5e7eb;
  margin: 10px 0;
}

.checkout-totals-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
}


/* ------------------------------
   SHIP-TO SECTION
------------------------------ */

.shipto-section {
  margin-bottom: 20px;
}

.shipto-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipto-address {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #374151;
}

.btn-shipto {
  padding: 4px 10px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-shipto:hover {
  background: #1e4fcf;
}


/* ------------------------------
   FREE SHIPPING MESSAGE
------------------------------ */

.freeship-message {
  margin: 10px 0 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.checkout-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.checkout-left {
  flex: 2;
}

.checkout-right {
  flex: 1;
  position: sticky;
  top: 20px;
}

.checkout-summary-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.summary-divider {
  border-top: 1px solid #e5e7eb;
  margin: 12px 0;
}

#checkout-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.checkout-loading-card {
  background: white;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}

.checkout-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #0078D4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(2px);
}

.checkout-alert-box {
  background: #fff;
  padding: 20px 20px;
  border-radius: 10px;
  width: 440px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: fadeInScale 0.18s ease;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Success Page Layout */
.success-container {
  margin-left: 14%;
  margin-right: 10%;
  margin-top: 48px;
  max-width: 700px;
}

.success-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-message {
  font-size: 18px;
  margin-bottom: 28px;
  color: #444;
}

.order-number-box {
  background: #f7f7f7;
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 4px solid #2a7ae4;
  margin-bottom: 40px;
}

.order-number-label {
  font-size: 16px;
  font-weight: 600;
  margin-right: 6px;
}

.order-number-value {
  font-size: 18px;
  font-weight: 700;
  color: #2a7ae4;
}

/* Modern Buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #2a7ae4;
  color: white;
}

.btn-primary:hover {
  background: #1d5fb3;
}

.btn-secondary {
  background: #e9e9e9;
  color: #333;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #d5d5d5;
}

/* ============================
   HOME HERO SECTION
============================ */

.home-hero {
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.hero-search {
  display: inline-flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-search input {
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  outline: none;
  width: 280px;
}

.hero-search button {
  background: #333;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
}

.hero-search button .icon {
  width: 20px;
  height: 20px;
  stroke: white;
}

.hero-subtext {
  margin-top: 15px;
  font-size: 18px;
  color: #555;
}
