.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global theme */
:root {
    --primary: #00d4ff; /* cyan */
    --primary-dark: #0099cc;
    --primary-light: #33e0ff;
    --accent: #16213e; /* deep indigo */
    --accent-light: #1f2f4e;
    --bg: #f6f8fa;
    --bg-dark: #f0f2f5;
    --muted: #6c757d;
    --danger: #ff4757;
    --danger-dark: #ee3d3d;
    --success: #2ed573;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #212529;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease;
}

/* Header / navbar */
.transparent-header {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.transparent-header:hover {
    background: rgba(26, 26, 46, 0.85);
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    padding: 10px;
    transition: transform 0.3s ease;
}

.brand-title:hover {
    transform: scale(1.02);
}

nav a.nav-btn {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

nav a.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

nav a.nav-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
    border-color: var(--primary);
}

nav a.nav-btn:hover::before {
    left: 0;
}

nav a.primary-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
}

nav a.primary-cta:hover {
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.profile-img {
    height: 20px;
    width: 20px;
    color: #ddd;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
}

.home-img, .cart-img, .order-img {
    height: 20px;
    width: 20px;
    transition: transform 0.3s ease;
}

.jdm-img {
    height: 40px;
    width: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.index-img {
    height: 70px;
    width: 70px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

aside nav a.nav-btn {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

aside nav a.nav-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
    border-color: var(--primary);
}

/* Containers and layout helpers */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 16px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #111;
    position: relative;
    padding-bottom: 12px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-radius: 2px;
}

/* Cards */
.card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card.card-img-top:hover {
    transform: scale(1.05);
}

.card .card-body {
    padding: 18px;
    transition: all 0.3s ease;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: var(--primary);
}

.form-control {
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: none;
    border: 1.5px solid #e6e9ee;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.4);
    color: #000;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 71, 87, 0.4);
    color: #fff;
}

/* Footer */
footer.site-footer {
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all 0.3s ease;
}

.transparent-footer {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    color: #fff;
    padding: 30px 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.transparent-footer:hover {
    background: rgba(26, 26, 46, 0.95);
}

.footer-grid {
    display: flex;
    justify-content: flex-start;
    gap: 160px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-col {
    transition: all 0.3s ease;
}

.footer-col:hover {
    transform: translateY(-3px);
}

.footer-col a {
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-left: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.05) 100%);
    border-left: 4px solid var(--danger);
    color: #c92a2a;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1) 0%, rgba(46, 213, 115, 0.05) 100%);
    border-left: 4px solid var(--success);
    color: #2ed573;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small helpers */
.muted {
    color: var(--muted);
}

.product-img {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-img:hover {
    transform: scale(1.05);
}

.card .price {
    font-weight: 800;
    color: var(--danger);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.card:hover .price {
    color: var(--primary);
}

/* Utility Classes */
.text-white {
    color: #fff !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Tables */
.table {
    border-collapse: collapse;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
}

.table thead th {
    border: none;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e6e9ee;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(2px);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Modal */
.modal-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
}

.modal-title {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e6e9ee;
    padding: 16px 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        padding: 20px;
    }

    .transparent-header {
        padding: 15px 20px !important;
    }

    .brand-title {
        font-size: 1.4rem;
    }

    nav a.nav-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .col-lg-4 {
        flex: 0 0 calc(33.333% - 12px) !important;
        width: calc(33.333% - 12px) !important;
    }

    .footer-grid {
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .app-container {
        padding: 15px;
    }

    nav {
        flex-direction: column;
        gap: 8px !important;
    }

    nav a.nav-btn {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
    }

    .card {
        margin-bottom: 12px;
    }

    .product-img {
        height: 150px;
    }

    .row.g-3 {
        gap: 12px !important;
    }

    .row.g-4 {
        gap: 12px !important;
    }

    .col-md-3, .col-md-9, .col-md-6 {
        width: 100% !important;
    }

    .col-lg-4 {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .brand-title {
        font-size: 0.95rem;
        letter-spacing: 0px;
    }

    .transparent-header {
        padding: 8px 10px !important;
    }

    nav {
        display: flex !important;
        flex-wrap: wrap;
        gap: 3px !important;
        width: auto;
        justify-content: flex-end;
    }

    nav a.nav-btn {
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    .page-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .app-container {
        padding: 10px;
    }

    .card .card-body {
        padding: 12px;
    }

    .form-control {
        padding: 8px 10px;
        font-size: 14px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .product-img {
        height: 120px;
    }

    .display-6 {
        font-size: 1.3rem !important;
    }

    .row row-cols-md-3 {
        flex-direction: column;
    }

    .col-lg-4 {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .col {
        flex: 0 0 100% !important;
    }

    .table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 6px 4px !important;
    }

    .alert {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    footer.site-footer {
        padding: 12px 8px;
    }

    .card p {
        margin-bottom: 8px;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 8px;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem !important;
    }

    .form-control {
        margin-bottom: 8px;
    }

    .modal-dialog {
        margin: 0 8px;
    }

    .footer-grid {
        gap: 20px;
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .brand-title {
        font-size: 0.8rem;
        letter-spacing: 0px;
    }

    .transparent-header {
        padding: 6px 8px !important;
    }

    body {
        font-size: 13px;
    }

    nav a.nav-btn {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    .page-title {
        font-size: 1rem;
    }

    .card .card-body {
        padding: 10px;
    }

    .form-control {
        padding: 6px 8px;
        font-size: 12px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .product-img {
        height: 100px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .display-6 {
        font-size: 1.2rem !important;
    }

    footer.site-footer {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .d-md-none .col-4 img {
        height: 90px;
        object-fit: cover;
    }
}