/* ============================================
   CUSTOM CSS FOR PDF STORE
   ============================================ */

:root {
    --primary: #6C63FF;
    --primary-dark: #5a52d5;
    --secondary: #FF6B6B;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6B6B 100%);
    --shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
    --shadow-hover: 0 20px 50px rgba(108, 99, 255, 0.25);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f8;
    color: #2d3436;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--dark);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary) !important;
}

.nav-link.btn-primary {
    background: var(--primary) !important;
    border: none;
    padding: 8px 22px !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    min-width: 20px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient);
    padding: 80px 0;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-btn {
    background: white;
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card .card-img-top {
    height: 240px;
    object-fit: cover;
    background: #f0f2f8;
    padding: 20px;
}

.product-card .card-body {
    padding: 20px 24px;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.product-card .card-text {
    color: #636e72;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card .old-price {
    font-size: 0.9rem;
    color: #b2bec3;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card .btn-add-cart {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.product-card .btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.product-card .stock-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 50px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: #636e72;
    font-size: 1.1rem;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-item {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-hover);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item .item-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.cart-item .item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-total {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.cart-total .total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-form {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.checkout-form .form-control,
.checkout-form .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.checkout-form label {
    font-weight: 500;
    margin-bottom: 6px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    margin-top: auto;
}

.footer a:hover {
    color: var(--primary) !important;
}

.social-links a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 24px 16px;
    border-radius: 0 20px 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(108, 99, 255, 0.2);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 24px;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.admin-card .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.admin-card .stat-label {
    color: #636e72;
    font-size: 0.9rem;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-info {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--primary);
}

.payment-info .bank-details {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .admin-sidebar {
        min-height: auto;
        border-radius: 0 0 20px 20px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: start !important;
    }
    
    .cart-item img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .checkout-form {
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}
.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}
.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}