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

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.15), 0 1px 5px rgba(99, 102, 241, 0.05);
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphic Navigation Bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    z-index: 1030;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #4f46e5 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Search Bar Styling */
.search-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 1px solid #e2e8f0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: var(--transition-smooth);
}

.search-form .form-control:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-form .btn-search {
    border-radius: 0 50px 50px 0;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    transition: var(--transition-smooth);
}

.search-form .btn-search:hover {
    opacity: 0.9;
}

/* Badges and Icons */
.icon-badge-container {
    position: relative;
    display: inline-block;
}

.icon-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* E-commerce Card Styling */
.product-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-card-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8fafc;
    overflow: hidden;
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.product-badge-sale {
    background: var(--accent-gradient);
    color: #fff;
}

.product-badge-new {
    background: var(--primary-gradient);
    color: #fff;
}

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

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
    transition: var(--transition-smooth);
}

.product-title:hover {
    color: #4f46e5;
}

.rating-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.product-price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.product-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-discount-label {
    font-size: 0.7rem;
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

/* Premium Buttons */
.btn-primary-premium {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    color: #fff;
    opacity: 0.95;
}

.btn-outline-premium {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #6366f1;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    transition: var(--transition-smooth);
}

.btn-outline-premium:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Premium Footer */
.footer-custom {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-custom h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    background: #0b0f19;
    padding: 1.5rem 0;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}

/* Alert notifications banner */
.alert-premium {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* Responsive grid padding customizer */
.ecommerce-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media(min-width: 768px) {
    .ecommerce-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media(min-width: 992px) {
    .ecommerce-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}
