@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bs-primary: #DC143C;
  --bs-primary-rgb: 220, 20, 60;
  --bs-secondary: #B87333;
  --bs-secondary-rgb: 184, 115, 51;
  --bs-body-bg: #121212;
  --bs-body-color: #f8f9fa;
  --bs-font-sans-serif: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
    color: #f8f9fa;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.navbar {
    background-color: rgba(26, 26, 26, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.2);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff !important;
}

.navbar-brand span {
    color: #DC143C;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #B87333 !important;
}

.card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

.card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B87333;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.btn {
    border-radius: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #DC143C 0%, #a80f2d 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    background: linear-gradient(135deg, #e82a4f 0%, #DC143C 100%);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-link {
    color: #B87333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #e59954;
    text-decoration: underline;
}

.form-control {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #ffffff;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #333333;
    border-color: #B87333;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(184, 115, 51, 0.25);
}

.form-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #DC143C;
    border-color: #DC143C;
}

.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.dropdown-item {
    color: #f8f9fa;
}
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
/* Extracted from layouts/admin.blade.php */
.admin-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    background-color: rgba(26, 26, 26, 0.95);
    border-right: 1px solid rgba(184, 115, 51, 0.2);
}
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(220, 20, 60, 0.1);
    border-left: 3px solid #DC143C;
}
.admin-content {
    background-color: #121212;
    min-height: 100vh;
}
.admin-topbar {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-crimson {
    background-color: #DC143C;
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-crimson:hover {
    background-color: #b01030;
    color: white;
    transform: translateY(-1px);
}
.text-crimson {
    color: #DC143C !important;
}

/* Extracted from product/show.blade.php */
.product-details-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.product-img-large {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
}
.img-container {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
}
.product-price {
    color: #DC143C;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.add-to-cart-lg {
    background: #B87333;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.add-to-cart-lg:hover {
    background: #A05E24;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 115, 51, 0.3);
    color: #fff;
}

/* Admin Custom Card */
.admin-card-custom {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 0;
}

.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Dropdown */
.custom-dropdown {
    background-color: #1e1e1e;
}
.custom-dropdown .dropdown-item {
    color: #f8f9fa;
}

/* Light Mode Overrides */
[data-bs-theme="light"] body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    --bs-body-color: #212529;
}

[data-bs-theme="light"] .text-muted {
    color: #6c757d !important;
}

[data-bs-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .navbar-brand {
    color: #212529 !important;
}

[data-bs-theme="light"] .nav-link {
    color: #495057 !important;
}

[data-bs-theme="light"] .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .form-control {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

[data-bs-theme="light"] .form-control:focus {
    background-color: #ffffff;
    color: #212529;
}

[data-bs-theme="light"] .form-label {
    color: #495057;
}

[data-bs-theme="light"] .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dropdown-item {
    color: #212529;
}

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .table-dark {
    --bs-table-bg: #ffffff;
    --bs-table-color: #212529;
    --bs-table-border-color: #dee2e6;
    --bs-table-hover-bg: rgba(220, 20, 60, 0.06);
    --bs-table-hover-color: #212529;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.025);
    --bs-table-striped-color: #212529;
    --bs-table-active-bg: rgba(220, 20, 60, 0.1);
    --bs-table-active-color: #212529;
}

/* Ensure table-dark rows render correctly in light mode */
[data-bs-theme="light"] .table-dark > :not(caption) > * > * {
    background-color: var(--bs-table-bg) !important;
    color: var(--bs-table-color) !important;
    border-bottom-color: var(--bs-table-border-color) !important;
}

[data-bs-theme="light"] .table-dark.table-hover > tbody > tr:hover > * {
    background-color: var(--bs-table-hover-bg) !important;
    color: var(--bs-table-hover-color) !important;
}

[data-bs-theme="light"] .bg-dark {
    background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .bg-black {
    background-color: #e9ecef !important;
}

[data-bs-theme="light"] .border-secondary {
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .text-white:not(.btn *, .btn, .bg-primary *, .bg-primary, .bg-danger *, .bg-danger, .bg-success *, .bg-success, .bg-warning *, .bg-warning, .bg-info *, .bg-info, .badge *, .badge, .side-banner *, .side-banner, .overlay-dark *, .overlay-dark) {
    color: #212529 !important;
}

[data-bs-theme="light"] .text-white-50 {
    color: #6c757d !important;
}

[data-bs-theme="light"] .text-light {
    color: #495057 !important;
}

[data-bs-theme="light"] .product-card {
    background: #ffffff;
}

[data-bs-theme="light"] .category-menu {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .category-menu .nav-link {
    color: #495057;
}

[data-bs-theme="light"] .admin-sidebar {
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .admin-sidebar .nav-link {
    color: #495057;
}

[data-bs-theme="light"] .admin-sidebar .nav-link:hover,
[data-bs-theme="light"] .admin-sidebar .nav-link.active {
    color: #DC143C !important;
    background: rgba(220, 20, 60, 0.08) !important;
    border-left: 3px solid #DC143C;
}

/* Admin topbar text in light mode */
[data-bs-theme="light"] .admin-topbar h5,
[data-bs-theme="light"] .admin-topbar .nav-link {
    color: #212529 !important;
}

/* Admin topbar theme-toggle icon in light mode */
[data-bs-theme="light"] .admin-topbar #themeToggle {
    color: #495057 !important;
}

[data-bs-theme="light"] .admin-content {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .admin-topbar {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] footer {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Global Responsiveness Tweaks */
@media (max-width: 767.98px) {
    body {
        font-size: 0.9rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar-brand img {
        height: 32px !important;
    }
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.1rem; }
}

@media (max-width: 575.98px) {
    .row-cols-2 > * {
        padding-left: 5px;
        padding-right: 5px;
    }
    .product-card .card-body {
        padding: 0.75rem !important;
    }
    .product-title-hover {
        font-size: 0.85rem;
    }
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Extracted from welcome */
.category-menu {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}
.category-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}
.category-menu .nav-link:hover {
    color: #DC143C;
    background: rgba(220, 20, 60, 0.1);
    padding-left: 1.5rem;
}
.hero-carousel {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@media (max-width: 991.98px) {
    .hero-carousel { height: 350px; }
}
@media (max-width: 767.98px) {
    .hero-carousel { height: 250px; }
}
.side-banner {
    border-radius: 0.5rem;
    overflow: hidden;
    height: calc(50% - 0.5rem);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.side-banner:hover {
    transform: scale(1.02);
}
.product-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.3);
}
.product-img-wrapper {
    height: 200px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.add-to-cart-btn {
    background: transparent;
    color: #B87333;
    border: 1px solid #B87333;
    transition: all 0.3s ease;
}
.add-to-cart-btn:hover {
    background: #B87333;
    color: #fff;
    transform: scale(1.05);
}
.section-title {
    border-left: 4px solid #DC143C;
    padding-left: 10px;
    letter-spacing: 1px;
}
.flash-sale-container {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}
.category-container {
    background-color: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="light"] .navbar-toggler-icon {
    filter: invert(1);
}

[data-bs-theme="light"] .flash-sale-container {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(220, 20, 60, 0.1);
}
[data-bs-theme="light"] .category-container {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .product-img-wrapper {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.promo-strip-container {
    background: linear-gradient(45deg, #1a1a1a, #DC143C);
}

[data-bs-theme="light"] .promo-strip-container {
    background: linear-gradient(45deg, #e9ecef, #ffb3c1);
}

[data-bs-theme="light"] .product-details-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
[data-bs-theme="light"] .img-container {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
}
[data-bs-theme="light"] .admin-card-custom {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
[data-bs-theme="light"] .custom-dropdown {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
}
[data-bs-theme="light"] .custom-dropdown .dropdown-item {
    color: #212529;
}
[data-bs-theme="light"] .custom-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .btn-outline-light {
    color: #212529 !important;
    border-color: #ced4da !important;
}
[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #e9ecef !important;
    color: #212529 !important;
}
[data-bs-theme="light"] tr, [data-bs-theme="light"] thead {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}
[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #DC143C !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25) !important;
}

/* Custom micro-animations and styling for the Start Shopping button */
.start-shopping-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.start-shopping-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.5) !important;
}

.start-shopping-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* Floating Messages Button */
.btn-floating-messages {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #DC143C; /* Crimson primary theme color */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-floating-messages:hover {
    background-color: #b81030;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
    color: #ffffff;
}

.btn-floating-messages:active {
    transform: scale(0.95);
}

/* Light theme overrides */
[data-bs-theme="light"] .btn-floating-messages {
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

