/* =========================
   1. RESET / GLOBAL
========================= */

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

html {
  scroll-behavior: smooth;
}

/* =========================
   FADE-IN AFTER SCROLL RESTORE
========================= */

.page-fade {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-fade.visible {
  opacity: 1;
}

/* =========================
   BASE STYLES
======================== */
body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* =========================
   2. NAVIGATION BAR
========================= */

/* NAVBAR BASE */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8%;
  background: #ffffff;
}

/* LOGO */
.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
  color: #111;
}

.nav-logo a {
  text-decoration: none;
  color: inherit;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a,
.nav-cart a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #111;
}

/* CART */
.nav-cart a {
  font-weight: 500;
}

/* MOBILE TOGGLE */
.nav-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 3.5%;
    left: auto;

    width: 90px;              /* ✅ narrower box */

    background: #ffffff;
    flex-direction: column;
    gap: 8px;

    padding: 22px 20px 22px 16px; /* ✅ less left padding */

    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.07);

    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 14px;
    color: #111;
    padding: 4px 0;
  }

  .nav-links a:not(:last-child) {
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: block;
  }
}

/* =========================
   3. HERO SECTION
========================= */

/* BASE */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
  padding: 0 8%;
  background: #ffffff;
  gap: 60px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #111;
}

.hero-content p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
  max-width: 420px;
}

.btn-primary {
  font-family: "Inter", sans-serif;
  text-decoration: none;
  background: #111;
  color: #fff;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
}

/* IMAGE */
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 8% 80px;
    gap: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 16px 0;
  }
}

/* =========================
   4. SHOP GRID
========================= */

/* SHOP SECTION */
.shop {
  padding: 120px 8%;
  background: #ffffff;
}

/* TITLE */
.shop-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 80px;
  color: #111;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* DESKTOP */
  gap: 80px;
}

/* PRODUCT CARD */
.product-card {
  text-decoration: none;
  color: #111;
}

.product-card img {
  width: 100%;
  display: block;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.product-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-card span {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #666;
}

/* HOVER (SUBTLE) */
.product-card:hover img {
  transform: scale(1.03);
}

/* TABLET */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .shop {
    padding: 80px 6%;
  }

  .shop-title {
    font-size: 32px;
    margin-bottom: 50px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* =========================
   HOME – CATEGORY GRID
========================= */

.categories {
  padding: 120px 8%;
}

.categories-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 40px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.categories-card {
 /* min-width: 300px;
  min-height: 500px;
  max-height: 500px; */
  text-decoration: none;
  color: #111;
  display: block; /* Make the entire card clickable */
}

.categories-card img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.categories-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Hover interaction */
.categories-card:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Tablet */
@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .categories {
    padding: 80px 6%;
  }

  .categories-title {
    font-size: 32px;
    margin-bottom: 50px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* =========================
   CATEGORY LISTING PAGES
========================= */

.category-grid {
  margin-top: 2rem;
}

.category-page {
  padding: 120px 8%;
}

.category-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Fixed columns, flexible rows */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* FIXED columns */
  gap: 60px;                             /* generous spacing */
}

.category-product {
  min-width: 300px; 
  max-width: 350px;
  text-decoration: none;
  color: #111;
}

.category-product img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-product h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.category-product .price {
  font-size: 14px;
  color: #666;
}

/* Hover */
.category-product:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

/* Tablet */
@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .category-page {
    padding: 80px 6%;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .category-title {
    font-size: 32px;
    margin-bottom: 50px;
  }
}

/* =========================
   COLLECTION PAGE
========================= */

.collection-page {
  padding: 100px 8%;
}

/* Section spacing */
.collection-section {
  margin-bottom: 60px;  /* space between sections */ 
}

.collection-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Horizontal row */
.collection-row {
  display: flex;
  gap: 60px;                 /* MORE SPACE than Netflix */
  overflow-x: auto;
  overflow-y: hidden;        /* CRITICAL */
  padding-bottom: 0px;
  align-items: flex-start;   /* gap fix for vertical alignment */
  scrollbar-gutter: stable;  /* prevents layout jump */
}

/* Hide scrollbar (optional, clean look) */
.collection-row::-webkit-scrollbar {
  display: none;
}

/* Product card */
.collection-card {
  display: inline-flex;
  flex-direction: column;
  min-width: 300px; 
  max-width: 350px; 
  text-decoration: none;
  color: #111;
  flex-shrink: 0;
}

.collection-card img {
  /* aspect-ratio: 4.5 / 6;
  object-fit: cover; */
  width: 100%;  /* card sizes, very important */
  display: block;
  margin-bottom: 12px; /* spacing very important */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Meta text */
.collection-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
}

.product-price {
  font-size: 14px;
  color: #666;
}

/* Hover */
.collection-card:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 700px) {
  .collection-page {
    padding: 80px 6%;
  }

  .collection-row {
    gap: 40px;
  }

  .collection-title {
    font-size: 28px;
  }
}

/* =========================
   5. PRODUCT PAGE
========================= */

.product {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: 120px 8%;
  background: #ffffff;
}

.product-gallery img {
  width: 100%;
  margin-bottom: 16px;
}

.thumbnails {
  display: flex;
  gap: 12px;
}

.thumbnails img {
  width: 80px;
  cursor: pointer;
}

.product-info h1 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 12px;
}

.price {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #666;
  display: block;
  margin-bottom: 24px;
}

.description {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 420px;
}

.product-info label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  margin-top: 16px;
  display: block;
}

.product-info select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

/* =========================
   PRODUCT FORMAT (matches cart style)
========================= */

.product-format {
  font-size: 14px;
  color: #666;
  margin: 8px 0 18px;
  letter-spacing: 0.2px;
}

/*
.size-dimensions {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #666;
  margin: -8px 0 16px;
}
*/

/* =========================
   SIZE DIMENSIONS (PRODUCT)
========================= */

.size-dimensions {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #777;

  margin-top: 0px;
  margin-bottom: 8px;

  letter-spacing: 0.02em;
}

/* Highlight the dimensions */
.size-dimensions strong {
  font-weight: 500;
  color: #111;
}

/* =========================
   SUBTLE BUTTON
========================= */

.btn-subtle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 5px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #777;

  cursor: pointer;
  text-align: left;
}

.btn-subtle:hover {
  color: #111;
  text-decoration: underline;
}

/* =========================
   SECONDARY BUTTON
========================= */

.btn-secondary {
  display: inline-block;
  margin-top: 5px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;

  color: #111;
  text-decoration: none;
}

.btn-secondary:hover {
  text-decoration: underline;
}

/* =========================
   PRODUCT ACTION LINKS
========================= */

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

/* Ensure View Cart sits bottom-right */
.product-actions .btn-secondary {
  margin-left: auto;
}

/* =========================
   PRODUCT ACTIONS — MOBILE
========================= */

@media (max-width: 600px) {
  .product-actions {
    margin-top: 16px;
    font-size: 13px;
  }

  .product-actions .btn-subtle,
  .product-actions .btn-secondary {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .product-actions button,
  .product-actions a {
    padding: 6px 0;
  }
}

/* =========================
   VIEW CART SLIDE-IN
========================= */

#view-cart-btn {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#view-cart-btn.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   6. CART PAGE
========================= */

.cart {
  padding: 120px 8%;
  background: #ffffff;
}

.cart h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 60px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.cart-item img {
  width: 100%;
}

.cart-details h3 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}

.cart-details span {
  font-size: 14px;
  color: #666;
}

.cart-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.cart-actions input {
  width: 60px;
  padding: 8px;
}

.cart-actions .remove {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.cart-total {
  font-size: 16px;
}

/* EDIT BUTTON */
.cart-actions .edit-item {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.cart-actions .edit-item:hover {
  color: #111;
}

/* Ensure Edit matches Remove exactly */
.cart-info .edit-item {
  margin-left: 6px;
}

/* SUMMARY */
.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  font-size: 18px;
}

/* CHECKOUT */
.checkout {
  margin-top: 40px;
  width: 100%;
  max-width: 300px;
}

/* MOBILE */
@media (max-width: 700px) {
  .cart {
    padding: 80px 6%;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-total {
    display: none;
  }
}

.cart-meta {
  font-size: 13px;
  color: #666;
  margin: 4px 0 6px;
}

/* =========================
   CUSTOM ART PAGE
========================= */

.custom-art {
  padding: 120px 8%;
  background: #ffffff;
}

.custom-art-container {
  max-width: 700px;
}

.custom-art h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #111;
}

.custom-art-intro {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #555;
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.6;
}

/* FORM */
.custom-art-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.custom-art-form label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* INPUTS */
.custom-art-form select,
.custom-art-form textarea,
.custom-art-form input[type="file"] {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 14px;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
}

.custom-art-form textarea {
  resize: vertical;
  min-height: 120px;
}

.custom-art-form select:focus,
.custom-art-form textarea:focus,
.custom-art-form input[type="file"]:focus {
  border-color: #111;
}

/* SUBMIT BUTTON */
.custom-art-form .btn-primary {
  align-self: flex-start;
  margin-top: 16px;
  padding: 14px 36px;
}

/* PREVIEW */
.custom-preview {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.custom-preview h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}

#preview-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #555;
  white-space: pre-line;
  margin-bottom: 24px;
}

#preview-image {
  max-width: 100%;
  border: 1px solid #eee;
}

/* MOBILE */
@media (max-width: 700px) {
  .custom-art {
    padding: 80px 6%;
  }

  .custom-art h1 {
    font-size: 32px;
  }

  .custom-art-intro {
    font-size: 15px;
  }

  .custom-art-form .btn-primary {
    width: 100%;
    max-width: 280px;
  }
}

/* payment */

/* ==============================
   CHECKOUT CONTAINER
================================ */
.checkout-container {
  min-height: 100vh;
  padding: 80px 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ==============================
   TYPOGRAPHY
================================ */
.checkout-container h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 16px;
}

.checkout-container p {
  font-size: 16px;
  color: #666;
  max-width: 420px;
  margin-bottom: 40px;
}

/* ==============================
   BUTTON
================================ */
.btn-primary {
  background: #111;
  color: #ffffff;
  border: none;
  padding: 16px 42px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ==============================
   MOBILE RESPONSIVE
================================ */

/* mobile response products */

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
    padding: 80px 6%;
  }

  .product-info h1 {
    font-size: 32px;
  }

  .thumbnails img {
    width: 60px;
  }
}

/* checkout */

@media (max-width: 600px) {
  .checkout-container {
    padding: 60px 8%;
  }

  .checkout-container h1 {
    font-size: 36px;
  }

  .checkout-container p {
    font-size: 15px;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 16px 0;
  }
}

/* =========================
   ABOUT PAGE
========================= */
.about {
  padding: 120px 8%;
  background: #ffffff;
}

.about-content {
  max-width: 700px;
}

.about h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 24px;
}

.about p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* =========================
   CONTACT PAGE
========================= */
.contact {
  padding: 120px 8%;
  max-width: 700px;
}

.contact h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 16px;
}

.contact p {
  margin-bottom: 32px;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  font-family: "Inter", sans-serif;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

/* qulity control */

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-controls button {
  padding: 5px 10px;
  cursor: pointer;
}

/* payment success page */

.success-container {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
}

.success-container h1 {
  margin-bottom: 20px;
}

.success-container p {
  margin-bottom: 15px;
}

/* order summary overlay */

#order-summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.order-summary-box {
  background: #fff;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

.order-summary-box ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.order-summary-box li {
  margin-bottom: 8px;
}

/* ===== CHECKOUT PAGE ===== */

.checkout-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.checkout-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 40px 30px;
}

.checkout-box h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.checkout-note {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.checkout-total {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Email input */
#customer-email {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  margin-bottom: 25px;
  outline: none;
}

#customer-email:focus {
  border-color: #000;
}

/* Checkout button */
.checkout-btn {
  width: auto;              /* NOT full width */
  padding: 12px 40px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Subtle hover effect for checkout button */
.checkout-btn:hover {
  opacity: 0.85;
}

/* Smooth transition */
.checkout-btn {
  transition: opacity 0.2s ease;
}

/* Disabled checkout button */
.checkout:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* =========================
   ADD TO CART BUTTON (MATCH CHECKOUT)
========================= */

.add-to-cart {
  width: 100%;
  margin-top: 24px;

  background: #111;
  color: #ffffff;
  border: none;

  padding: 16px 42px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  font-family: "Inter", sans-serif;
  cursor: pointer;

  transition: opacity 0.2s ease;
}

.add-to-cart:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .add-to-cart {
    padding: 16px 0;
  }
}

/* ================= ADMIN ORDERS ================= */

.admin-container {
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

.admin-container h1 {
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
}

#orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

#orders-table th,
#orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

#orders-table th {
  background: #111;
  color: #fff;
  font-weight: 600;
}

#orders-table tr:hover {
  background: #f5f5f5;
}

/* ===== BADGES ===== */

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  text-transform: capitalize;
}

/* Payment status */
.badge.paid {
  background: #d4edda;
  color: #155724;
}

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

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

/* Order lifecycle */
.badge.status-new {
  background: #e2e3e5;
  color: #383d41;
}

.badge.status-processing {
  background: #cce5ff;
  color: #004085;
}

.badge.status-completed {
  background: #d4edda;
  color: #155724;
}

.badge.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
  border: 1px solid #ccc; /* subtle outline */
  border-radius: 4px;
  overflow-x: auto;
}

/* ===== STATUS BADGES ===== */
.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.payment-paid {
  background: #e6f7ec;
  color: #1e7f43;
}

.payment-pending {
  background: #fff4e5;
  color: #a65b00;
}

.payment-failed {
  background: #fdecea;
  color: #a61d24;
}

/* ===== ACTION BUTTONS ===== */
.edit-btn {
  padding: 4px 8px;
  cursor: pointer;
}

.save-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== CSV BUTTON ===== */
.export-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* ===== ORDER MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 6px;
}

.modal-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* Subtle view order button */
.view-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  text-decoration: underline;
}

.view-link:hover {
  color: #000;
}

/* Keep edit button visually stronger */
.edit-btn {
  padding: 6px 10px;
  font-size: 13px;
}

.resend-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  font-size: 13px;
  color: #777;
  cursor: pointer;
  text-decoration: underline;
}

.resend-link:hover {
  color: #000;
}

.resend-link:disabled {
  color: #bbb;
  cursor: not-allowed;
  text-decoration: none;
}

/* =========================
   SHIPPING PAGE LAYOUT
========================= */

.shipping-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .shipping-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BACK TO CART
========================= */

.back-to-cart {
  display: inline-block;
  margin: 30px 20px 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.back-to-cart:hover {
  text-decoration: underline;
}

/* =========================
   BOXES
========================= */

.receipt-box,
.shipping-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 30px;
}

.receipt-box h2,
.shipping-box h2 {
  margin-bottom: 24px;
}

/* =========================
   RECEIPT
========================= */

.receipt-row,
.receipt-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.receipt-row.total {
  font-size: 1.1rem;
}

/* =========================
   INPUTS (GLOBAL)
========================= */

.shipping-box input[type="text"],
.shipping-box input[type="email"],
.shipping-box input[type="tel"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* =========================
   CONSISTENT SPACING
========================= */

/* Every form block gets identical spacing */
.shipping-box > input,
.verify-group {
  margin-bottom: 22px;
}

/* =========================
   LABELS & RADIOS
========================= */

.shipping-box label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.shipping-box input[type="radio"] {
  margin-right: 8px;
}

/* =========================
   VISIBILITY
========================= */

.hidden {
  display: none;
}

/* =========================
   CONTINUE BUTTON
========================= */

#continue-to-checkout {
  grid-column: 1 / -1;
  margin-top: 30px;
  width: 100%;
}

/* =========================
   VERIFICATION GROUP
========================= */

.verify-group {
  width: 100%;
}

/* Input + button perfectly aligned */
.verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Inputs stretch evenly */
.verify-row input {
  flex: 1;
  height: 44px;
}

/* =========================
   VERIFY BUTTON
========================= */

.btn-verify {
  height: 44px;
  padding: 0 18px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
}

.btn-verify:hover {
  opacity: 0.85;
}

/* =========================
   VERIFY FEEDBACK
========================= */

.verify-feedback {
  font-size: 0.85rem;
  margin-top: -20px;
  line-height: 1.3;
}

.verify-feedback.success {
  color: #2e7d32;
}

.verify-feedback.error {
  color: #c62828;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 600px) {
  .verify-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-verify {
    width: 100%;
  }
}

/* =========================
   FIX: VERIFY INPUT SPACING
========================= */

/* Force spacing under verify inputs */
.verify-group input {
  margin-bottom: 25px;
}

/* =========================
   FIX: COURIER FIELD SPACING
========================= */

#courier-fields input {
  margin-bottom: 18px;
}

/* Remove extra space after last field */
#courier-fields input:last-child {
  margin-bottom: 0;
}

/* =========================
   FIX: POSTNET FIELD SPACING
========================= */

#postnet-fields input {
  margin-bottom: 18px;
}

/* Remove extra space after last field */
#postnet-fields input:last-child {
  margin-bottom: 0;
}

.out-of-stock {
  opacity: 0.5;
  pointer-events: none;
}

.stock-label {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  top: 10px;
  left: 10px;
}

/* =========================
   success page
========================= */

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.success-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 48px 40px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 24px;
}

.success-card h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.success-subtext {
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
}

.success-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Success icon color */
.success-icon--success {
  border-color: #1f9d55;
  color: #1f9d55;
}

.success-main-text {
  margin-bottom: 24px;
}

.success-ref {
  font-size: 13px;
  color: #777;
  margin-bottom: 28px;
}


/* Button styles */

.btn-primary {
  background: #000;
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.btn-secondary {
  border: 1px solid #000;
  color: #000;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
}
