/* ==========================================================================
   ESHADE SHOP - Custom Modern Sporty Fitness Theme (Red & Black Aesthetic)
   ========================================================================== */

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

:root {
    --eshade-red: #E50914;
    --eshade-red-hover: #ff1e27;
    --eshade-red-glow: rgba(229, 9, 20, 0.4);
    --eshade-dark-bg: #0c0d12;
    --eshade-card-bg: #14161e;
    --eshade-card-hover: #1c202b;
    --eshade-border: rgba(255, 255, 255, 0.08);
    --eshade-border-light: rgba(255, 255, 255, 0.15);
    --eshade-text-main: #FFFFFF;
    --eshade-text-muted: #9BA3AF;
    --eshade-gold: #FFB800;
    --eshade-gradient: linear-gradient(135deg, #E50914 0%, #990008 100%);
    --eshade-gradient-dark: linear-gradient(180deg, #14161e 0%, #0c0d12 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--eshade-dark-bg);
    color: var(--eshade-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--eshade-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--eshade-red-hover);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0d12;
}
::-webkit-scrollbar-thumb {
    background: #262a38;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--eshade-red);
}

/* Navigation Bar */
.eshade-navbar {
    background: rgba(12, 13, 18, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--eshade-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition-smooth);
}

.eshade-brand {
    font-size: 1.65rem;
    font-weight: 900;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eshade-brand span {
    color: var(--eshade-red);
}

.eshade-brand i {
    color: var(--eshade-red);
    filter: drop-shadow(0 0 8px var(--eshade-red-glow));
}

.nav-link {
    color: #D1D5DB !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF !important;
    background: rgba(229, 9, 20, 0.12);
}

.search-input-group {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-input-group input {
    background-color: #1a1d27 !important;
    border: 1px solid var(--eshade-border) !important;
    color: #FFFFFF !important;
    border-radius: 30px !important;
    padding-left: 42px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-input-group input:focus {
    border-color: var(--eshade-red) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25) !important;
}

.search-input-group .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--eshade-text-muted);
    z-index: 5;
}

/* Action Icons (Cart, Profile) */
.nav-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #181b24;
    border: 1px solid var(--eshade-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.nav-action-btn:hover {
    background: var(--eshade-red);
    color: #FFFFFF;
    border-color: var(--eshade-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--eshade-red-glow);
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--eshade-red);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0c0d12;
}

/* Custom Buttons */
.btn-eshade-primary {
    background: var(--eshade-gradient);
    color: #FFFFFF !important;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 22px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--eshade-red-glow);
}

.btn-eshade-primary:hover {
    background: linear-gradient(135deg, #ff1e27 0%, #b80009 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.55);
}

.btn-eshade-outline {
    background: transparent;
    color: #FFFFFF !important;
    border: 1px solid var(--eshade-border-light);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 22px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-eshade-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FFFFFF;
    color: #FFFFFF !important;
}

/* Card Styling */
.eshade-card {
    background-color: var(--eshade-card-bg);
    border: 1px solid var(--eshade-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.eshade-card:hover {
    border-color: rgba(229, 9, 20, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Product Card */
.product-card {
    background-color: var(--eshade-card-bg);
    border: 1px solid var(--eshade-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%; /* 4:3 Aspect Ratio */
    background-color: #1a1d26;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--eshade-red);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    color: var(--eshade-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--eshade-red);
    font-family: var(--font-heading);
}

.product-meta {
    font-size: 0.8rem;
    color: var(--eshade-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--eshade-border);
}

/* Category Card */
.category-card {
    background: #181b24;
    border: 1px solid var(--eshade-border);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: var(--transition-smooth);
    display: block;
    color: #FFFFFF;
}

.category-card:hover {
    background: #202430;
    border-color: var(--eshade-red);
    transform: translateY(-4px);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.2);
}

.category-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(229, 9, 20, 0.12);
    color: var(--eshade-red);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon-box {
    background: var(--eshade-red);
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(229, 9, 20, 0.15) 0%, rgba(12, 13, 18, 0) 60%), #0c0d12;
    padding: 80px 0 60px;
    position: relative;
    border-bottom: 1px solid var(--eshade-border);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff4a52;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--eshade-red);
    background: linear-gradient(135deg, #ff333c 0%, #e50914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--eshade-text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 540px;
}

/* Form Controls Dark */
.form-control, .form-select {
    background-color: #171922 !important;
    border: 1px solid var(--eshade-border-light) !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--eshade-red) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25) !important;
}

.form-control::placeholder {
    color: #6B7280;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #D1D5DB;
    margin-bottom: 6px;
}

/* Authentication Container */
.auth-container {
    max-width: 480px;
    margin: 50px auto;
    padding: 36px 32px;
    background: #14161f;
    border: 1px solid var(--eshade-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

/* Footer */
.eshade-footer {
    background-color: #08090c;
    border-top: 1px solid var(--eshade-border);
    padding: 60px 0 25px;
    margin-top: 80px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--eshade-text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--eshade-red);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--eshade-border);
    color: #6B7280;
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .search-input-group {
        max-width: 100%;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}
