:root {
    --tl-primary: #2563eb;
    --tl-primary-dark: #1d4ed8;
    --tl-accent: #14b8a6;
    --tl-ink: #101828;
    --tl-muted: #667085;
    --tl-soft: #f5f7fb;
    --tl-line: #e5e7eb;
    --tl-radius: 8px;
    --tl-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --tl-admin-sidebar: 236px;
    --tl-admin-topbar: 58px;
}

body {
    letter-spacing: 0;
}

/* Global Premium Utilities */
.hover-shadow { transition: box-shadow 0.3s ease; }
.hover-shadow:hover { box-shadow: 0 1rem 3rem rgba(0,0,0,.08) !important; background-color: #fff !important; }
.hover-scale-sm { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hover-scale-sm:hover { transform: scale(1.02); }
.transition-all { transition: all 0.3s ease; }
.hover-lift-lg { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift-lg:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; }

.cursor-pointer { cursor: pointer; }
.hover-opacity:hover { opacity: 0.8; }

.admin-shell {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--tl-ink);
    font-size: 0.82rem;
}

.admin-shell .navbar-top {
    height: var(--tl-admin-topbar);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.admin-shell .navbar-brand {
    height: var(--tl-admin-topbar);
    line-height: 36px;
    min-width: var(--tl-admin-sidebar);
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--tl-ink);
    font-size: 1rem;
}

.admin-shell .sidebar {
    top: var(--tl-admin-topbar);
    width: var(--tl-admin-sidebar);
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.14);
}

.admin-shell .sidebar .nav-link {
    height: auto;
    min-height: 38px;
    margin: 1px 10px;
    padding: 9px 12px;
    border-radius: var(--tl-radius);
    color: #cbd5e1;
    border-left: 0;
}

.admin-shell .sidebar .nav-link i {
    font-size: 0.95rem;
    margin-right: 9px;
    width: 17px;
}

.admin-shell .sidebar .nav-link:hover,
.admin-shell .sidebar .nav-link.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.16);
    border-left: 0;
    padding-left: 12px;
}

.admin-shell .sidebar .nav-link[data-bs-toggle="collapse"],
.admin-shell .sidebar .nav-link[data-bs-toggle="collapse"]:hover {
    padding-left: 12px !important;
}

.admin-shell .sidebar .collapse .nav-link {
    padding-left: 32px;
    font-size: 0.78rem;
}

.admin-shell .sidebar .collapse .nav-link.active {
    padding-left: 32px;
}

.admin-shell .sidebar .collapse .nav-link.active::before {
    left: 18px;
    background: var(--tl-accent);
}

.admin-shell main {
    margin-left: var(--tl-admin-sidebar);
    padding-top: 76px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.admin-shell .card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--tl-radius);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: none;
}

.admin-shell .card:hover {
    transform: none;
}

.admin-shell .card-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    color: var(--tl-ink);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.admin-shell .card-header h5,
.admin-shell .card-header .h5,
.admin-shell h5 {
    font-size: 0.95rem;
}

.admin-shell .card-body {
    padding: 1rem;
}

.admin-shell .btn,
.site-shell .btn,
.auth-shell .btn {
    border-radius: var(--tl-radius);
    font-weight: 600;
}

.admin-shell .btn {
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    line-height: 1.25;
}

.admin-shell .btn-sm,
.admin-shell .btn-group-sm>.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.74rem;
}

.admin-shell .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.admin-shell .form-control,
.admin-shell .form-select,
.admin-shell .select2-container--bootstrap-5 .select2-selection {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border-radius: var(--tl-radius);
    font-size: 0.82rem !important;
}

.admin-shell .select2-container--bootstrap-5 .select2-dropdown,
.admin-shell .select2-container--bootstrap-5 .select2-results__option,
.admin-shell .select2-container--bootstrap-5 .select2-selection__rendered {
    font-size: 0.82rem !important;
}

.admin-shell textarea.form-control {
    min-height: auto;
}

.admin-shell .form-check-input {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.2rem;
}

.admin-shell .form-switch .form-check-input {
    width: 1.85rem;
}

.admin-shell .form-check-label,
.admin-shell small,
.admin-shell .small {
    font-size: 0.75rem;
}

.admin-shell .mb-4 {
    margin-bottom: 1rem !important;
}

.admin-shell .mb-3 {
    margin-bottom: 0.75rem !important;
}

.admin-shell .mt-4 {
    margin-top: 1rem !important;
}

.admin-shell .p-4 {
    padding: 1rem !important;
}

.admin-shell .p-3 {
    padding: 0.75rem !important;
}

.admin-shell .btn-primary,
.admin-shell .btn-success {
    background: var(--tl-primary);
    border-color: var(--tl-primary);
}

.admin-shell .btn-primary:hover,
.admin-shell .btn-success:hover {
    background: var(--tl-primary-dark);
    border-color: var(--tl-primary-dark);
}

.admin-shell .table {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.admin-shell .table thead th {
    background: #f8fafc;
    color: #64748b;
    letter-spacing: 0.04em;
    padding: 0.62rem 0.7rem;
}

.admin-shell .table tbody td {
    padding: 0.6rem 0.7rem;
}

.admin-shell .badge {
    border-radius: 999px;
    padding: 0.32rem 0.55rem;
    font-size: 0.7rem;
}

.dashboard-stat {
    min-height: 132px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--tl-radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    inset: auto -28px -38px auto;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
}

.dashboard-stat .stat-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tl-radius);
    background: rgba(37, 99, 235, 0.12);
    color: var(--tl-primary);
}

.admin-shell .dashboard-stat h2 {
    font-size: 1.55rem;
}

.admin-shell .navbar-top h5 {
    font-size: 0.92rem;
}

.admin-shell .dropdown-menu {
    font-size: 0.82rem;
    border-radius: var(--tl-radius);
}

.admin-shell .dataTables_wrapper .dataTables_length,
.admin-shell .dataTables_wrapper .dataTables_filter,
.admin-shell .dataTables_wrapper .dataTables_info,
.admin-shell .dataTables_wrapper .dataTables_paginate {
    font-size: 0.78rem;
}

.admin-shell .dataTables_wrapper .form-control {
    min-height: 30px;
    padding: 0.25rem 0.45rem;
}

.admin-shell .dataTables_wrapper .form-select {
    min-height: 30px;
    padding: 0.25rem 1.8rem 0.25rem 0.45rem;
}

.admin-shell .dropify-wrapper {
    min-height: 110px;
    height: 110px !important;
    border-radius: var(--tl-radius);
    border-color: var(--tl-line);
}

.admin-shell .dropify-wrapper .dropify-message p {
    font-size: 0.9rem !important;
}

.admin-shell .ck-editor__editable_inline {
    min-height: 150px !important;
    font-size: 0.86rem;
}

.admin-shell .modal-content {
    border-radius: var(--tl-radius);
}

.admin-shell .modal-header,
.admin-shell .modal-footer {
    padding: 0.85rem 1rem;
}

.admin-shell .modal-body {
    padding: 1rem;
}

.admin-shell .list-group-item {
    border-radius: var(--tl-radius) !important;
}

.admin-shell img.rounded,
.admin-shell .rounded,
.admin-shell .rounded-3,
.admin-shell .rounded-4,
.admin-shell .rounded-5,
.admin-shell .rounded-pill,
.site-shell .rounded-4,
.site-shell .rounded-5,
.site-shell .rounded-pill {
    border-radius: var(--tl-radius) !important;
}

.admin-shell .hover-lift:hover {
    transform: translateY(-2px) !important;
}

.admin-shell .sticky-top {
    top: 76px !important;
}

.site-shell {
    background: #ffffff;
    color: var(--tl-ink);
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell main {
    overflow: visible;
}

.site-shell .navbar-premium {
    padding: 0.7rem 0 !important;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-shell .navbar-brand span {
    letter-spacing: 0 !important;
}

.site-shell .navbar-premium .nav-link {
    border-radius: var(--tl-radius);
    color: #334155;
    margin: 0 0.15rem;
    opacity: 1;
}

.site-shell .navbar-premium .nav-link:hover,
.site-shell .navbar-premium .nav-link.active {
    color: var(--tl-primary);
    background: rgba(37, 99, 235, 0.08);
}

.site-shell .dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: var(--tl-radius);
}

.site-hero {
    min-height: clamp(460px, 72vh, 680px);
}

.site-hero .carousel-inner {
    border-radius: 0;
}

.site-hero .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
}

.site-hero .hero-content {
    z-index: 2;
    min-height: clamp(460px, 72vh, 680px);
}

.site-shell .display-1,
.site-shell .display-2 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.site-shell .display-3,
.site-shell .display-4,
.site-shell .display-5 {
    font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.site-shell section,
.site-shell .container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.site-shell .lead,
.site-shell .fs-5 {
    font-size: 1rem !important;
}

.site-hero .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 999px;
}

.section-eyebrow {
    color: var(--tl-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-premium,
.site-shell .btn-dark {
    background: var(--tl-ink) !important;
    border-color: var(--tl-ink) !important;
    color: #fff !important;
}

.site-shell .btn {
    padding: 0.62rem 1rem;
}

.btn-premium:hover,
.site-shell .btn-dark:hover {
    background: var(--tl-primary) !important;
    border-color: var(--tl-primary) !important;
}

.btn-premium-outline {
    border-color: var(--tl-line);
    border-radius: var(--tl-radius);
}

.product-card-shell .card-image-container {
    border-radius: var(--tl-radius) !important;
    background: #f8fafc !important;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.site-shell .card {
    border-radius: var(--tl-radius) !important;
}

.site-shell .form-control,
.site-shell .form-select {
    border-radius: var(--tl-radius) !important;
}

.product-card-shell .product-title {
    letter-spacing: 0 !important;
}

.product-card-shell a:hover .product-title {
    color: var(--tl-primary) !important;
    text-decoration: none !important;
}

.modern-filter {
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.category-link {
    border-radius: var(--tl-radius);
    padding: 0.65rem 0.75rem;
}

.category-link.active {
    background: rgba(37, 99, 235, 0.08);
}

.category-tile {
    border-radius: var(--tl-radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-detail-page {
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 34rem);
}

.product-detail-container {
    max-width: 100%;
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--tl-muted);
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: var(--tl-primary);
}

.product-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
}

.product-hero-shell,
.product-content-card {
    border-radius: var(--tl-radius);
}

.product-detail-strip {
    max-width: 100%;
}

.product-media-panel {
    height: clamp(250px, 26vw, 360px);
    min-height: 0;
    background: #f1f5f9;
    border-radius: var(--tl-radius);
    overflow: hidden;
}

.product-summary-panel {
    min-height: 0;
    max-width: 900px;
}

.product-detail-title {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--tl-ink);
}

.product-price {
    font-size: clamp(1.18rem, 1.45vw, 1.5rem);
    line-height: 1;
    font-weight: 800;
    color: var(--tl-ink);
}

.product-fact {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 32px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    background: #fff;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 600;
}

.product-fact i {
    font-size: 0.9rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.62;
    max-width: 980px;
}

.product-description-inline {
    max-height: 112px;
    overflow: auto;
    padding-right: 0.35rem;
}

.product-description-inline::-webkit-scrollbar {
    width: 4px;
}

.product-description-inline::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.product-description :is(p, ul, ol) {
    margin-bottom: 1rem;
}

.product-description :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.related-products-section {
    border-color: var(--tl-line) !important;
}

.product-hero-compact .lead {
    font-size: 0.86rem !important;
    line-height: 1.45;
}

.product-hero-compact .badge {
    font-size: 0.75rem;
    padding: 0.32rem 0.55rem;
}

.product-hero-compact .btn {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    font-size: 0.84rem;
}

@media (min-width: 1400px) {
    .product-detail-container {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }

    .product-media-panel {
        height: 360px;
    }
}

.inner-banner {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-modern {
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

@media (max-width: 767.98px) {
    .admin-shell .navbar-brand {
        min-width: auto;
    }

    .admin-shell .sidebar {
        width: var(--tl-admin-sidebar);
    }

    .admin-shell main {
        margin-left: 0;
        padding-inline: 1rem;
    }

    .site-hero,
    .site-hero .hero-content {
        min-height: 540px;
    }

    .site-shell .navbar-brand img {
        height: 38px;
    }

    .site-shell section,
    .site-shell .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .site-shell .display-2 {
        font-size: 2.35rem;
    }

    .product-media-panel,
    .product-summary-panel {
        min-height: 0;
    }

    .product-media-panel {
        height: auto;
        aspect-ratio: 1 / 1.05;
    }

    .product-summary-panel {
        padding: 1.25rem !important;
    }

    .product-detail-title {
        font-size: 1.85rem;
    }

}