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;
}

/* =========================
   CARTIFY THEME SYSTEM
========================= */

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 10px rgba(15,23,42,0.05);
    --shadow-md: 0 10px 25px rgba(15,23,42,0.08);
    --shadow-lg: 0 18px 40px rgba(15,23,42,0.12);
    --radius-lg: 18px;
}

/* =========================
   GLOBAL
========================= */

body {
    background: linear-gradient( to bottom, #f8fafc, #eef2ff );
    color: var(--text-dark);
    font-family: "Segoe UI", sans-serif;
}

.page-title {
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: 0.25s;
}

    .nav-link:hover {
        color: var(--primary) !important;
    }

    .nav-link.active {
        color: var(--primary) !important;
    }

/* =========================
   HERO SECTION
========================= */

.hero-section {
    background: linear-gradient( 135deg, #0f172a, #1e293b );
    color: white;
    border-radius: 28px;
    padding: 70px 40px;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* =========================
   CARDS
========================= */

.cartify-card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .cartify-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.product-img {
    height: 240px;
    object-fit: cover;
}

/* =========================
   PRICE
========================= */

.product-price {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 800;
}

/* =========================
   BUTTONS
========================= */

.btn-cartify {
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    border: none;
    color: white;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-cartify:hover {
        transform: scale(1.03);
        color: white;
        opacity: 0.95;
    }

/* Outline Buttons */

.btn-outline-primary {
    border-radius: 12px;
    border-width: 2px;
}

/* =========================
   FORMS
========================= */

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 12px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(6,182,212,0.15);
    }

/* =========================
   TABLES
========================= */

.table {
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

    .table thead {
        background: var(--secondary);
        color: white;
    }

/* =========================
   BADGES
========================= */

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* =========================
   DASHBOARD CARDS
========================= */

.dashboard-card {
    padding: 25px;
    border-radius: 22px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

    .dashboard-card h3 {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .dashboard-card p {
        margin: 0;
        opacity: 0.9;
    }

/* COLORS */

.dashboard-primary {
    background: linear-gradient(135deg,#06b6d4,#0891b2);
}

.dashboard-success {
    background: linear-gradient(135deg,#22c55e,#15803d);
}

.dashboard-warning {
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

.dashboard-dark {
    background: linear-gradient(135deg,#0f172a,#334155);
}

/* =========================
   GLOBAL BUTTON SYSTEM
========================= */

.btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
}

/* PRIMARY */

.btn-primary {
    background: linear-gradient( 135deg, #06b6d4, #0891b2 ) !important;
    box-shadow: 0 8px 18px rgba(6,182,212,0.25);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        opacity: 0.95;
    }

/* SUCCESS */

.btn-success {
    background: linear-gradient( 135deg, #22c55e, #15803d ) !important;
    box-shadow: 0 8px 18px rgba(34,197,94,0.25);
}

/* DANGER */

.btn-danger {
    background: linear-gradient( 135deg, #ef4444, #b91c1c ) !important;
    box-shadow: 0 8px 18px rgba(239,68,68,0.25);
}

/* WARNING */

.btn-warning {
    background: linear-gradient( 135deg, #f59e0b, #d97706 ) !important;
    color: white !important;
}

/* DARK */

.btn-dark {
    background: linear-gradient( 135deg, #0f172a, #1e293b ) !important;
}

/* OUTLINE PRIMARY */

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
    }

/* SMALL BUTTONS */

.btn-sm {
    border-radius: 10px;
    padding: 8px 14px;
}

/* BUTTON HOVER EFFECT */

.btn:hover {
    transform: translateY(-2px);
    transition: 0.25s ease;
}

/* =========================
   PRODUCT DETAILS PAGE
========================= */

.details-wrapper {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.details-image {
    max-height: 500px;
    object-fit: contain;
    transition: 0.35s ease;
}

    .details-image:hover {
        transform: scale(1.04);
    }

.details-category {
    background: linear-gradient( 135deg, #06b6d4, #0891b2 );
    color: white;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.details-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.details-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.details-description {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* =========================
   CART PAGE
========================= */

.cart-item-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: 0.3s ease;
}

    .cart-item-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.cart-product-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.cart-summary-card {
    background: linear-gradient( 135deg, #0f172a, #1e293b );
    color: white;
    border-radius: 28px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

    .cart-summary-card .product-price {
        color: #67e8f9;
    }

.empty-cart {
    background: white;
    border-radius: 28px;
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* =========================
   CHECKOUT PAGE
========================= */

.checkout-wrapper {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.checkout-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.checkout-summary {
    background: linear-gradient( 135deg, #0f172a, #1e293b );
    color: white;
    border-radius: 28px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.checkout-info {
    color: #cbd5e1;
    line-height: 1.8;
}

.checkout-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    background: rgba(255,255,255,0.08);
    padding: 14px 18px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

/* =========================
   ORDER SUCCESS PAGE
========================= */

.success-wrapper {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border-radius: 36px;
    padding: 70px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    background: linear-gradient( 135deg, #22c55e, #15803d );
    box-shadow: 0 15px 35px rgba(34,197,94,0.3);
}

.success-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.success-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 650px;
    margin-inline: auto;
}

/* =========================
   ADMIN SYSTEM (CORE)
========================= */

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.admin-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.admin-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: #0f172a;
        color: white;
    }

    .admin-table th,
    .admin-table td {
        padding: 15px;
        text-align: left;
    }

    .admin-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
    }

        .admin-table tbody tr:hover {
            background: rgba(6,182,212,0.05);
        }

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-form-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: auto;
}

.admin-form-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #0f172a;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #06b6d4;
        box-shadow: 0 0 0 0.2rem rgba(6,182,212,0.15);
    }

/* =========================
   AUTH PAGES (LOGIN / REGISTER)
========================= */

.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
/*    background: rgba(255,255,255,0.9);*/
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient( 135deg, #0f172a, #1e293b);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 25px;
}

.auth-input {
    border-radius: 12px;
    padding: 12px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg,#06b6d4,#0891b2);
    color: white;
    font-weight: 600;
    border: none;
}

    .auth-btn:hover {
        opacity: 0.9;
    }

/* =========================
   REMOVE BOOTSTRAP BLUE
========================= */

/* LINKS */

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: #06b6d4;
    }

/* BUTTON FOCUS */

.btn:focus,
.btn:active,
.btn-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* FORM INPUT FOCUS */

.form-control:focus,
.form-select:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 0.2rem rgba(6,182,212,0.15) !important;
}

/* NAVBAR LINKS */

.nav-link:hover {
    color: #06b6d4 !important;
}

/* DROPDOWNS */

.dropdown-item:hover {
    background-color: rgba(6,182,212,0.08) !important;
    color: #06b6d4 !important;
}

/* PRIMARY BUTTONS */

.btn-primary {
    background: linear-gradient( 135deg, #06b6d4, #0891b2 ) !important;
    border: none !important;
}

    .btn-primary:hover {
        opacity: 0.9;
    }

/* OUTLINE BUTTON */

.btn-outline-primary {
    border-color: #06b6d4 !important;
    color: #06b6d4 !important;
}

    .btn-outline-primary:hover {
        background: #06b6d4 !important;
        color: white !important;
    }

/* PAGINATION / ACTIVE STATES */

.page-item.active .page-link {
    background-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

/* CHECKBOX/RADIO */

.form-check-input:checked {
    background-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

/* USER DASHBOARD ICON */

.user-dashboard-link {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white;
    transition: 0.2s ease;
}

    .user-dashboard-link:hover {
        color: #06b6d4 !important;
        transform: scale(1.08);
    }

/* USER PROFILE */

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #06b6d4, #0891b2 );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(6,182,212,0.25);
}

