html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Navbar Styling */
.custom-navbar {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
}

    .custom-navbar .logo {
        font-weight: 700;
        font-size: 1.5rem;
        text-transform: uppercase;
        color: #000;
    }

        .custom-navbar .logo span {
            color: #e63946; /* red color for SHOP */
        }

    .custom-navbar .nav-link {
        font-weight: 500;
        font-size: 1rem;
        margin: 0 10px;
        color: #222;
        transition: color 0.2s ease-in-out;
    }

        .custom-navbar .nav-link:hover,
        .custom-navbar .nav-link.active {
            color: #e63946; /* red highlight */
        }

.navbar-icons {
    gap: 20px;
}

    .navbar-icons .icon {
        font-size: 1.2rem;
        color: #222;
        margin-left: 15px;
        position: relative;
        text-decoration: none;
    }

        .navbar-icons .icon:hover {
            color: #e63946;
        }

    .navbar-icons .cart {
        position: relative;
    }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* narrow cards for 4 per row */
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 230px; /* keeps them small */
    margin: auto;
}

    .product-card:hover {
        filter: brightness(0.9); /* darker on hover */
        transform: translateY(-5px);
    }

.product-image img {
    width: 100%; /* full card width */
    height: 200px; /* consistent height */
    object-fit: cover; /* crop nicely */
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    text-align: center;
}

    .product-info h3 {
        margin: 0 0 8px 0;
        font-size: 1rem;
        color: #222;
    }

    .product-info p {
        margin: 4px 0;
        color: #555;
        font-size: 0.85rem;
    }

    .product-info .category {
        font-weight: bold;
        color: #e63946;
    }

    .product-info .price {
        font-weight: bold;
        color: #000;
        margin-top: 6px;
        font-size: 0.95rem;
    }

.product-actions {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.customer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.customer-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .customer-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

/* Customer name header */
.customer-header h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}

/* Customer details text */
.customer-info p {
    margin: 4px 0;
    color: #555;
    font-size: 0.9rem;
}

.customer-info strong {
    color: #000;
}

/* Action buttons aligned neatly */
.customer-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

    .customer-actions .btn {
        flex: 1;
        font-size: 0.85rem;
    }


/* =====================
   Order Cards Styling
   ===================== */
.order-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 420px; /* narrower card width */
}

    .order-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

/* Order header with date aligned right */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .order-header h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #222;
    }

.order-date {
    font-size: 0.85rem;
    color: #777;
}

/* Order details */
.order-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.order-total {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #e63946; /* highlight total in red */
}

/* Action buttons neatly spaced */
.order-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

    .order-actions .btn {
        flex: 1;
        font-size: 0.85rem;
    }


/* Credit page styling */
.credit-intro {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

    .credit-steps h4 {
        margin-bottom: 10px;
        color: #222;
    }

    .credit-steps ol {
        padding-left: 20px;
        margin: 0;
        color: #555;
    }

    .credit-steps li {
        margin-bottom: 8px;
    }

/* Upload card */
.upload-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .upload-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .upload-card .form-control {
        width: 100%;
    }

/* Back link */
.back-link {
    text-align: center;
}

    .back-link .btn {
        font-size: 0.9rem;
    }


.credit-docs-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}