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

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Elegant Modern HSL Color Palette */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-accent: #1e293b;
    
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    
    --accent: #f97316;
    --accent-light: #ffedd5;
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    
    --rating-color: #f97316;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 35px -5px rgba(37, 99, 235, 0.12), 0 10px 15px -10px rgba(249, 115, 22, 0.08);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    margin-bottom: 0 !important; /* Overriding default MVC footer layout */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-dark);
}

/* Header & Navigation Bar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    margin: 0 0.2rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(79, 70, 229, 0.08);
}

/* Main Container spacing */
.main-wrapper {
    flex: 1 0 auto;
    padding: 2.5rem 0;
}

/* Custom premium buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: var(--text-light) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    opacity: 0.95;
}

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

.btn-outline-custom {
    background: transparent;
    color: var(--text-main) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background-color: rgba(79, 70, 229, 0.04);
    transform: translateY(-2px);
}

/* Category Filter Badges */
.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-badge {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-badge:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-badge.active {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Product Cards Grid & Design */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 90%; /* Aspect ratio 10:9 */
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-light);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.product-title a {
    color: var(--bg-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--rating-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-rating span {
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

.product-description-short {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bg-dark);
    font-family: var(--font-heading);
}

.btn-add-cart-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.08);
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-add-cart-icon:hover {
    background: var(--primary-gradient);
    color: var(--text-light);
    transform: rotate(90deg);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Sliding Cart Drawer Panel */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 440px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background-color: #f1f5f9;
    color: var(--bg-dark);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty-state svg {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    background-color: #f1f5f9;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--bg-dark);
}

.cart-item-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.qty-control {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    background-color: #f8fafc;
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background-color: #e2e8f0;
}

.qty-val {
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.25rem;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-summary-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bg-dark);
}

.cart-checkout-btn {
    width: 100%;
}

/* Nav Cart Icon Badge styling */
.nav-cart-btn-wrapper {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    transition: var(--transition-smooth);
    transform: scale(0);
}

.cart-count-badge.active {
    transform: scale(1);
}

/* Product Detail Page Styles */
.details-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.details-image-container {
    background-color: #f8fafc;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    padding-bottom: 85%;
}

.details-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.details-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.details-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--rating-color);
    font-weight: 700;
}

.details-rating span {
    color: var(--text-muted);
    font-weight: 500;
}

.details-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 2rem;
}

.stock-in {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.stock-out {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.details-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.details-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #f8fafc;
    height: 52px;
    overflow: hidden;
}

.details-qty-btn {
    border: none;
    background: transparent;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    height: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.details-qty-btn:hover {
    background-color: #e2e8f0;
}

.details-qty-input {
    border: none;
    background: transparent;
    width: 50px;
    height: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    border-left: 1.5px solid var(--border-color);
    border-right: 1.5px solid var(--border-color);
}

/* Checkout Page Styles */
.checkout-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    height: auto;
}

.checkout-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-group-custom label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bg-dark-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    outline: none;
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: block;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkout-summary-item.total {
    border-top: 1.5px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-dark);
}

/* Order Confirmation Success Page */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.success-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.receipt-box {
    background-color: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.receipt-header {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Admin Dashboard CSS */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th {
    background-color: #f8fafc;
    color: var(--bg-dark-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background-color: #f1f5f9;
}

.admin-badge-category {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-btn-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-right: 0.25rem;
}

.admin-btn-edit {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.admin-btn-edit:hover {
    background-color: var(--primary);
    color: white;
}

.admin-btn-delete {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.admin-btn-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Modal Custom Styling */
.modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-custom.active {
    display: flex;
}

.modal-custom-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 500px;
    max-width: 90%;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-custom-title {
    font-size: 1.35rem;
    font-weight: 700;
}

/* Premium Footer */
.premium-footer {
    position: relative;
    z-index: 10;
    clear: both;
    flex-shrink: 0;
    background-color: #f1f5f9; /* Light slate gray */
    color: #475569;            /* Crisp readable body text */
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem; /* Ensure a healthy gap between content and footer */
}

.footer-heading {
    color: #0f172a;            /* Deep dark slate */
    font-weight: 700;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-brand svg {
    color: var(--primary);     /* Branding primary blue color */
}

.footer-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary);     /* Vibrant blue on hover */
}

.premium-footer .text-muted {
    color: #475569 !important; /* Perfect contrast ratio on light background */
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.hero-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ==============================================
   DARK MODE VARIABLE OVERRIDES
   ============================================== */
[data-theme="dark"] {
    --bg-main: #0b0f19;       /* Deep Slate luxurious black background */
    --bg-card: #141a29;       /* Sleek custom dark card background */
    --border-color: #1e293b;  /* Dark Slate border borders */
    --text-main: #f8fafc;     /* High contrast luxury white text */
    --text-muted: #94a3b8;    /* Muted silver gray text */
    --bg-dark: #f8fafc;       /* Inverts main typography color */
    --bg-dark-accent: #e2e8f0;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .premium-footer {
    background-color: #080c14; /* Premium deep slate-black footer background */
    color: var(--text-muted);
}

[data-theme="dark"] .footer-heading {
    color: var(--text-main);   /* Clean high-contrast white */
}

[data-theme="dark"] .footer-link {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--primary-light); /* Sleek light blue accent on hover */
}

[data-theme="dark"] .premium-footer .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .navbar {
    background: rgba(11, 15, 25, 0.8) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
    color: var(--primary-light) !important;
    background-color: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .product-card {
    border-color: rgba(30, 41, 59, 0.6);
}

[data-theme="dark"] .product-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .product-price {
    color: var(--text-main);
}

[data-theme="dark"] .qty-control, [data-theme="dark"] .qty-btn:hover {
    background-color: #0f172a;
}

[data-theme="dark"] .qty-val {
    border-color: var(--border-color);
}

[data-theme="dark"] .cart-footer {
    background-color: #0b0f19;
}

[data-theme="dark"] .cart-summary-total {
    color: var(--text-main);
}

[data-theme="dark"] .details-container {
    background-color: var(--bg-card);
}

[data-theme="dark"] .details-image-container, [data-theme="dark"] .details-qty-wrapper {
    background-color: #0b0f19;
}

[data-theme="dark"] .details-price {
    color: var(--text-main);
}

[data-theme="dark"] .form-control-custom {
    background-color: #0b0f19;
    color: white;
}

[data-theme="dark"] .form-control-custom:focus {
    background-color: #0b0f19;
}

[data-theme="dark"] .admin-table th {
    background-color: #0b0f19;
}

/* ==============================================
   DARK MODE TOGGLE BUTTON
   ============================================== */
.theme-switch-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(249, 115, 22, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-switch-btn:hover {
    background-color: var(--accent);
    color: white;
    transform: rotate(30deg);
}

.theme-switch-btn .sun-icon {
    display: none;
}

.theme-switch-btn .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-switch-btn .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-switch-btn .moon-icon {
    display: none;
}

/* ==============================================
   WISHLIST HEART INTERACTIVE STYLING
   ============================================== */
.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    z-index: 12;
}

.wishlist-btn:hover {
    transform: scale(1.15);
    color: #ef4444;
}

.wishlist-btn.active {
    background: #ffffff;
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .wishlist-btn {
    background: rgba(20, 26, 41, 0.95);
    color: #475569;
}

[data-theme="dark"] .wishlist-btn.active {
    background: #1e293b;
    color: #ef4444;
}

/* ==============================================
   REVIEWS FEED & SYSTEM LAYOUT
   ============================================== */
.reviews-section {
    margin-top: 4rem;
    border-top: 1.5px solid var(--border-color);
    padding-top: 3rem;
}

.review-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--bg-dark);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent);
    font-size: 0.85rem;
    display: flex;
    gap: 0.15rem;
}

.review-comment {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==============================================
   PROMO CODES CONTAINER DETAILS
   ============================================== */
.promo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.promo-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.promo-badge.active {
    display: flex;
}

/* ==============================================
   MANHWA SYSTEM PORTAL / RPG THEME STYLES
   ============================================= */
.rarity-badge {
    position: absolute;
    top: 3.2rem;
    left: 1rem;
    right: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rarity-legendary {
    background: var(--accent-gradient);
    color: white !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.rarity-epic {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.rarity-rare {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.rarity-common {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.25);
}

/* Card custom borders on hover based on Rarity (System Window style) */
.product-card {
    transition: var(--transition-smooth);
}

.product-card.rarity-border-legendary:hover {
    box-shadow: 0 20px 35px -5px rgba(249, 115, 22, 0.22), 0 10px 15px -10px rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
}

.product-card.rarity-border-epic:hover {
    box-shadow: 0 20px 35px -5px rgba(168, 85, 247, 0.22), 0 10px 15px -10px rgba(168, 85, 247, 0.15) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.product-card.rarity-border-rare:hover {
    box-shadow: 0 20px 35px -5px rgba(37, 99, 235, 0.22), 0 10px 15px -10px rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}

.product-card.rarity-border-common:hover {
    box-shadow: 0 20px 35px -5px rgba(100, 116, 139, 0.18), 0 10px 15px -10px rgba(100, 116, 139, 0.12) !important;
    border-color: rgba(100, 116, 139, 0.3) !important;
}

/* Req. Level Indicator */
.req-level-tag {
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .req-level-tag {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light) !important;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

/* System Alerts styling */
.system-alert-window {
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.system-alert-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}