/* 
 * QikGifts Custom Styles
 * Modern, Mobile-first, Premium eCommerce Design
 */

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

:root {
    --primary-color: #ff3366; /* Vibrant pink/red like Flamingo */
    --primary-gradient: linear-gradient(135deg, #ff3366, #ff6b6b);
    --secondary-color: #2b2d42;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for mobile nav */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #e62e5c;
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

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

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Header & Navbar */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-bar input {
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 45px;
    border: 1px solid var(--border-color);
    background: #f4f6f8;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icons .icon-btn {
    position: relative;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-left: 15px;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-icons .icon-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-icons .badge {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--primary-color);
    font-size: 0.65rem;
    border-radius: 50%;
    padding: 3px 6px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1030;
    padding: 10px 0;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: var(--transition);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

.hero-slide {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-sale {
    background: var(--primary-gradient);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    z-index: 2;
    padding-bottom: 15px;
}

.product-card:hover .product-action {
    bottom: 0;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--secondary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

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

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-top: auto;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 8px;
}

/* Categories Section */
.category-card {
    display: block;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-light);
}

.category-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 80px; /* Above mobile nav */
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 65px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .hero-slide {
        height: 250px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 85px;
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 15px;
    }
}

/* Custom Utilities */
.section-title {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h3 {
    margin: 0;
    font-size: 1.5rem;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
}
