/* General Reset */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}
:root {
    --primary: #2563eb;
    --primary-dark: #041541;
    --primary-color: #051b53; 
    --secondary: #64748b;
    --dark: #0f172a;
    --light-bg: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.95);
}

.logo-img {
    width: 280px;
    height: 75px;
    object-fit: contain; /* prevents distortion */

}

/* Header Tweaks */
.top-bar {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background: var(--primary-color);
}
/* Fix navbar height & alignment */
.navbar {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar > .container {
  display: flex;
  align-items: center;
}
/* Fix oversized navbar toggler */
.navbar-toggler {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1;
}

.navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Search Bar Focus */
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Custom Buttons */
.btn1-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    color: #fff;
}

.btn1-primary i {
    color: #fff;
}
.btn1-outline-dark:hover {
    background-color: #1a1a1a;
}

/* Main Content Area */
main {
    min-height: 70vh;
}

/* Smooth transitions for dropdowns */
.dropdown-menu {
    border-radius: 12px;
    margin-top: 10px;
}

header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
/* Custom styles for full-width sections */
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
        
/* Ensure content inside full-width sections is centered */
.full-width-section .container {
    max-width: 1320px; /* Bootstrap's xxl breakpoint */
}
/* Container & Grid Setup */
.product-section {
  padding: 10px 10px;
  background-color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ exactly 3 cards per row */
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* =============================
   PRODUCT CARD (BIGGER)
============================= */
.product-card {
  background: #ffffff;
  width: 400px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* =============================
   IMAGE (SLIGHTLY TALLER)
============================= */
.product-img {
  width: 100%;
  height: 260px;               /* increased */
  overflow: hidden;
  background-color: #fff;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* better for products */
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

/* =============================
   CONTENT
============================= */
.product-content {
  padding: 22px;
  text-align: center;
  flex-grow: 1;
}

.product-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.sale-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2a9d8f;
  margin-right: 70px;
}

.original-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #aa1414;
  margin-left: 8px;
}

/* =============================
   BUTTON CONTAINER
============================= */
.product-buttons {
  padding: 0 22px 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* =============================
   SMALL ROUNDED WHITE BUTTONS
============================= */
.product-buttons .btn-primary{
  background: var(--primary-color);
  color: #ffffff;
  border: 1.5px solid var(--primary-color);
  padding: 7px 18px;          /* smaller buttons */
  border-radius: 999px;       /* pill shape */
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  width: auto;
}
.product-buttons .btn-outline {
  background: #ffffff;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 7px 18px;          /* smaller buttons */
  border-radius: 999px;       /* pill shape */
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  width: auto;
}

/* Hover effect */
.product-buttons .btn-primary:hover{
  background: #ffffff;
  color: var(--primary-color);
  transform: translateY(-2px);
}
.product-buttons .btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Remove default form spacing */
.product-buttons form {
  margin: 0;
}

/* =============================
   MODAL SIZE (SMALLER CARD)
============================= */
.modal-dialog {
    max-width: 600px;   /* compact, product-focused */
}

/* =============================
   MODAL CONTAINER
============================= */
.modal-content {
    border-radius: 15px;
    border: none;
}

/* Header: only close button */
.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* =============================
   MODAL IMAGE
============================= */
.modal-product-img,
.modal-body img {
    max-width: 180px;
    max-height: 180px;
    display: block;
    margin: 0 auto 10px;
    object-fit: contain;
}

/* =============================
   PRODUCT TITLE
============================= */
.modal-product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2px;
}

/* =============================
   DESCRIPTION (BULLET STYLE)
   Admin enters paragraph ✔
============================= */
.modal-product-desc {
    font-size: 1.0rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
    padding-left: 22px;
    position: relative;
    white-space: pre-line;
}

/* =============================
   FOOTER BUTTONS
============================= */
.modal-footer {
    border-top: none;
    justify-content: center;
    gap: 10px;
}
.modal-footer .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 7px 18px;          /* smaller buttons */
  border-radius: 999px;       /* pill shape */
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  width: auto;
}

/* Hover effect */
.modal-footer .btn-primary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}
footer{
  background-color: var(--primary-color);
}

/* CART STYLING */
.cart-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.cart-table th,
.cart-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.cart-table thead {
  background: #f8f9fa;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.product-info .product-name {
  font-weight: 600;
  color: #333;
}

.product-info .product-sku {
  font-size: 0.85rem;
  color: #777;
}

.qty-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap; /* Prevents wrapping */
}

.qty-btn {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-count {
  font-weight: 600;
}


.qty-btn:hover {
  background: #f0f0f0;
}

.qty-count {
  font-weight: 600;
}

.remove-link {
  color: #d9534f;
  font-weight: 600;
  text-decoration: none;
}

.remove-link:hover {
  text-decoration: underline;
}

.total-row {
  background: #f8f9fa;
  font-weight: 700;
}

.total-label {
  text-align: right;
  padding-right: 20px;
}

.cart-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cart-actions .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 7px 18px;          /* smaller buttons */
  border-radius: 999px;       /* pill shape */
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  width: auto;
}

/* Hover effect */
.cart-actions .btn-primary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===============================
   MOBILE PHONES
================================ */
@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  /* ---------- NAVBAR ---------- */
  .navbar-brand .logo-img {
    width: 140px;          /* 180px was too large for phones */
    height: auto;
  }

  /* ---------- PRODUCT GRID ---------- */
  .product-grid {
    grid-template-columns: 1fr; /* 1 product per row */
  }

  .product-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .sale-price {
    margin-right: 10px;
  }

  /* ---------- CART TABLE (STACKED) ---------- */
  .cart-table thead {
    display: none;
  }

  .cart-table{
    overflow-x: hidden;
  }
  .cart-table,
  .cart-table tbody,
  .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
  }

  /* Reset td behavior */
  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
    text-align: left;
  }

  .cart-table td:last-child {
    border-bottom: none;
  }

  /* ---------- PRODUCT CELL ---------- */
  .product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .product-img{
    height: 150px;
  }
  .product-img img {
    object-fit: contain;
  }

  /* ---------- QUANTITY ---------- */
  .qty-cell {
    justify-content: flex-end;
    gap: 8px;
  }

  /* ---------- TOTAL ROW ---------- */
  .total-label {
    text-align: center;
    padding: 0;
  }

  /* ---------- CART ACTIONS ---------- */
  .cart-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cart-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* ---------- MODAL ---------- */
  .modal-dialog {
    margin: 10px;
  }
}

/* ===============================
   EXTRA SMALL PHONES
================================ */
@media (max-width: 480px) {

  .product-content h3 {
    font-size: 1.05rem;
  }

  .product-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .product-buttons .btn-primary,
  .product-buttons .btn-outline {
    width: 100%;
  }
}

.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form is wider than summary */
    gap: 50px;
    max-width: 1200px;
    margin: 40px auto;
    font-family: sans-serif;
}

/* Headers with the underline effect */
h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background: #333; /* Dark underline for the active section */
}

/* Form Styling */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.modern-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Matching the rounded style in your image */
    background: #fff;
}

/* Order Summary Box */
.order-box {
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
}

.table-header, .table-row, .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.table-header {
    font-weight: bold;
}

.product-info {
    max-width: 70%;
    color: #666;
}

.summary-line.total {
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.total-price {
    color: #000;
}

/* Payment Section */
.payment-methods {
    margin-top: 20px;
    background: #eeeeee;
    padding: 15px;
    font-size: 0.85rem;
}

.btn-place-order {
    width: 100%;
    background: #ffffff;
    color: var(--primary-color);
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}
.btn-place-order:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}
/* Mobile Responsiveness */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }
}

/* --- Order History Container --- */
.order-history-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
    font-size: 1.8rem;
    color: #051b53; /* Your Navy Brand Color */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #051b53;
}

/* --- Table Core Styling --- */
.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* Creates the "card" separation between rows */
}

.order-table thead th {
    background-color: transparent;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: none;
}

.order-table tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.order-table td {
    padding: 20px;
    color: #334155;
    vertical-align: middle;
}

/* --- Column Specifics --- */
.order-id {
    font-weight: 700;
    color: #051b53;
}

/* Product List Styling */
.order-products {
    min-width: 250px;
}

.product-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item-list li {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}

.product-item-list li::before {
    content: "•";
    color: #051b53;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.order-total {
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

/* --- Status & Buttons --- */
.status-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.view-details {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    padding: 6px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.view-details:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

/* --- Responsive Layout (Mobile Stack) --- */
@media (max-width: 992px) {
    .order-table thead {
        display: none; /* Hide header on tablets/phones */
    }

    .order-table, 
    .order-table tbody, 
    .order-table tr, 
    .order-table td {
        display: block;
        width: 100%;
    }

    .order-table tr {
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #f1f5f9;
    }

    .order-table td {
        text-align: right;
        padding: 10px 5px;
        position: relative;
        border-bottom: 1px solid #f8fafc;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-table td::before {
        content: attr(data-label); /* Pulls text from HTML data-label */
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: #94a3b8;
        padding-right: 20px;
        text-align: left;
    }

    .order-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 15px;
    }

    .product-item-list li {
        text-align: right;
        justify-content: flex-end;
    }
    
    .product-item-list li::before {
        display: none; /* Hide bullet on mobile for cleaner right-align */
    }
}

/* Container to center the card on the screen */
.error-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The central card */
.error-card {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f1f5f9;
}

/* Icon styling (assuming FontAwesome is used, or just a red circle) */
.error-icon {
    font-size: 3rem;
    color: #ef4444; /* Clean modern red */
    margin-bottom: 20px;
}

.error-card h1 {
    color: #0f172a; /* Dark navy */
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.error-subtext {
    color: #64748b; /* Muted slate */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* The actual error message box */
.error-detail-box {
    background: #ffffff; /* Very light red */;
    padding: 15px;
    text-align: left;
    margin-bottom: 30px;
    border-radius: 8px;
}

.error-detail-box small {
    display: block;
    color: #991b1b;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.error-detail-box p {
    margin: 0;
    color: #b91c1c;
    font-family: monospace; /* Makes technical errors easier to read */
    font-size: 0.9rem;
}

/* The Button */
.btn-retry {
    display: inline-block;
    background: var(--primary-color); /* Your Brand Navy */
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 999px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 27, 83, 0.2);
}

.btn-retry:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 27, 83, 0.3);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .error-card {
        padding: 25px;
    }
    
    .error-card h1 {
        font-size: 1.3rem;
    }
}

/* Container to center the processing state */
.processing-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
    background-color: #f8fafc;
}

/* The Card */
.processing-card {
    background: #ffffff;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* M-Pesa Brand Colors for the Header */
.mpesa-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.m-text { color: #43a047; } /* M-Pesa Green */
.p-text { color: #e53935; } /* M-Pesa Red */

.processing-card h1 {
    color: #051b53; /* Your Brand Navy */
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.instruction-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Sophisticated Loader */
.loader-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #051b53; /* Navy loader */
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Order Info Details */
.order-info-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 5px 0;
}

.info-row span {
    color: #64748b;
}

.status-row {
    border-top: 1px solid #e2e8f0;
    margin-top: 5px;
    padding-top: 10px;
}

#status-text {
    color: #2563eb; /* Blue to indicate active status */
}

.timeout-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .processing-card {
        padding: 30px 20px;
    }
}

/* Allow full-width dropdowns */
.navbar .nav-item.position-static {
    position: static;
}
/* Full-width mega menu */
.dropdown-menu.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 30px 0;
    border-radius: 0;
    border: none;
    background: var(--glass);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: none;
}

/* Show on hover (desktop) */
@media (min-width: 992px) {
    .nav-item:hover > .dropdown-menu.mega-menu {
        display: block;
    }
}
/* Grid layout inside mega menu */
.mega-menu .mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

/* Category title */
.mega-menu h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Subcategory links */
.mega-menu a {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    padding: 6px 0;
    text-decoration: none;
}

.mega-menu a:hover {
    color: var(--primary-color);
    padding-left: 6px;
    transition: 0.2s ease;
}
/* Grid layout inside mega menu */
.mega-menu .mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

/* Category title */
.mega-menu h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 12px;
}

/* Subcategory links */
.mega-menu a {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    padding: 6px 0;
    text-decoration: none;
}

.mega-menu a:hover {
    color: var(--primary-color);
    padding-left: 6px;
    transition: 0.2s ease;
}

/* ===============================
   MOBILE NAVBAR: LEFT ALIGN
================================ */
@media (max-width: 991px) {

  /* Make collapsed menu full width */
  .navbar-collapse {
    width: 100%;
  }

  /* Force left alignment of nav items */
  .navbar-nav {
    align-items: flex-start !important;
    text-align: left;
    width: 100%;
  }

  /* Ensure links align left */
  .navbar-nav .nav-link {
    text-align: left;
    padding-left: 0;
  }

  /* Fix dropdown toggle arrow position */
  .navbar-nav .dropdown-toggle::after {
    margin-left: auto;
  }

  /* Ensure dropdown menus align left */
  .dropdown-menu {
    text-align: left;
  }

  /* User menu alignment */
  .navbar-nav.ms-auto {
    align-items: flex-start;
  }
}


/* Remove the old .rating-card styles and use these */
/* --- Centering Wrapper --- */
.rating-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Centers vertically on the screen */
    padding: 20px;
}

.rating-content {
    width: 100%;
    max-width: 600px; /* Limits width on large screens */
    text-align: center;
}

/* --- Responsive Stars --- */
.star-rating {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 15px;
    margin-bottom: 30px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Default size for mobile/small screens */
    font-size: 3rem; 
}

/* --- LARGE SCREEN STYLES --- */
@media (min-width: 992px) {
    .star-rating label {
        font-size: 6rem; /* Big stars on desktop */
    }
    .star-rating {
        gap: 25px;
    }
}

/* Hover & Selected Effects */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5b301;
}

.star-rating label:hover {
    transform: scale(1.2);
}

/* --- Form Elements Consistency --- */
.comment-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 999px; /* Pill shape from your other forms */
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.rating-submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.rating-submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}