/* assets/css/style.css - Complete E-Commerce Styles */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8ef5;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #fc8181;
    --warning: #f6ad55;
    --info: #63b3ed;
    --dark: #2d3748;
    --light: #f7fafc;
    --gray: #a0aec0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--primary);
    margin-right: 8px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.08);
}

.nav-link i {
    margin-right: 5px;
}

/* Cart Badge */
.badge.bg-danger {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    transform: translate(10%, -30%);
}

/* Search Bar */
.navbar .form-control {
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 200px;
}

.navbar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.navbar .btn-outline-primary {
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 0 0 50px 50px;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-section .btn-light {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-section .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Discount Badge */
.hero-section .badge {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-footer {
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1.25rem;
}

.product-card .btn-primary {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.product-card .btn-outline-primary {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Price Styles */
.product-card .text-decoration-line-through {
    font-size: 0.85rem;
}

.product-card .text-danger {
    font-size: 1.1rem;
}

/* Rating Stars */
.product-card .text-warning {
    font-size: 0.85rem;
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-card .text-muted {
    font-size: 0.9rem;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ==================== WHY CHOOSE US ==================== */
.feature-card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
}

/* ==================== COUNTDOWN TIMER ==================== */
.countdown-timer div {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 1rem;
    min-width: 80px;
}

.countdown-timer .fs-2 {
    font-size: 2rem;
    font-weight: 700;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark) !important;
    color: var(--white);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white) !important;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

footer .social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-2px);
}

/* ==================== CART PAGE ==================== */
.cart-item {
    transition: var(--transition);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item:hover {
    background: #f8fafc;
}

.cart-item .qty-input {
    width: 60px;
    text-align: center;
}

/* ==================== CHECKOUT ==================== */
.checkout-summary {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .navbar .form-control {
        width: 100% !important;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .countdown-timer div {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-timer .fs-2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* ==================== UTILITY ==================== */
.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-custom {
    border-radius: var(--radius);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
/* Categories Page Styles */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    color: #2d3748;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #4a5568;
}

/* Category Sidebar */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f7fafc;
}

.list-group-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.list-group-item.active a {
    color: #fff !important;
}

.list-group-item a {
    display: block;
    color: #2d3748;
}

.list-group-item a:hover {
    color: #667eea;
}

/* Category Image in Sidebar */
.list-group-item img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}

/* Discount Badge */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* Stock Status */
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status .text-success {
    color: #48bb78 !important;
}

.stock-status .text-danger {
    color: #fc8181 !important;
}

/* Product Card Enhancements */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-card .card-footer {
    background: transparent;
    border-top: 1px solid #f0f2f5;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 180px !important;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
}

#cartModal .modal-content {
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#cartModal .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

#cartModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* ============================================
   MOBILE BOTTOM NAV - ADDITIONAL STYLES
   ============================================ */

/* Ensure main content has padding for bottom nav */
@media (max-width: 768px) {
    .main-content {
        padding-bottom: 85px;
        min-height: calc(100vh - 60px);
    }
    
    /* Fix for pages with fixed headers */
    .page-header {
        padding-top: 10px;
    }
    
    /* Better touch targets */
    .bottom-nav .nav-item {
        min-height: 55px;
        padding: 4px 0 6px;
    }
    
    .bottom-nav .nav-item i {
        font-size: 20px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 8px;
    }
    
    /* Hide scrollbar on mobile for cleaner look */
    ::-webkit-scrollbar {
        width: 4px;
    }
    ::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 4px;
    }
}

/* Animation for active state */
.bottom-nav .nav-item {
    transition: all 0.2s ease;
}

.bottom-nav .nav-item.active i {
    animation: navBounce 0.3s ease;
}

@keyframes navBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.05); }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

/* ============================================
   GIFTS SECTION STYLES
   ============================================ */
.gifts-section {
    background: #f8fafc;
}

.gift-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.gift-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.gift-card:hover .gift-image {
    transform: scale(1.08);
}

.gift-image-wrapper {
    position: relative;
}

.gift-icon-overlay .icon-circle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gift-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.explore-btn {
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.explore-btn:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .gift-card .gift-image {
        height: 180px !important;
    }
    
    .gift-icon-overlay .icon-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .gift-icon-overlay .icon-circle i {
        font-size: 1.2rem !important;
    }
    
    .gift-card .card-body {
        padding: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .gift-card .gift-image {
        height: 150px !important;
    }
    
    .gift-card .card-title {
        font-size: 0.95rem;
    }
    
    .explore-btn {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
}

/* ============================================
   GIFT SECTION ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gift-card:nth-child(1) { animation-delay: 0.1s; }
.gift-card:nth-child(2) { animation-delay: 0.2s; }
.gift-card:nth-child(3) { animation-delay: 0.3s; }
.gift-card:nth-child(4) { animation-delay: 0.4s; }
.gift-card:nth-child(5) { animation-delay: 0.5s; }
.gift-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   VIDEOS SECTION
   ============================================ */

.videos-section {
    background: #f8fafc;
    padding: 60px 0 50px;
}

/* Section Header */
.videos-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.videos-section .section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.videos-section .title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.videos-section .title-divider span {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.videos-section .title-divider i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Video Card */
.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #1a1a2e;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-player.playing {
    object-fit: contain;
}

/* Video Controls Overlay */
.video-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Embed Video */
.embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Content */
.video-content {
    padding: 16px 20px 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.video-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .videos-section .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 40px 0 30px;
    }
    
    .videos-section .section-title {
        font-size: 1.5rem;
    }
    
    .videos-section .title-divider span {
        width: 30px;
    }
    
    .video-content {
        padding: 12px 14px 16px;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .videos-section .section-title {
        font-size: 1.2rem;
    }
    
    .videos-section .section-subtitle {
        font-size: 0.85rem;
    }
}