/* 
==================================================
PREMIUM ECOMMERCE UI - STYLE.CSS
==================================================
*/

:root {
    /* Primary Brand Colors */
    --primary-color: #ff4da6;
    --primary-dark: #e60073;
    --secondary-color: #a64dff;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Background & Text Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-soft-gray: #f4f5f9;
    --text-dark: #1f1f1f;
    --text-muted: #6c757d;
    --border-color: #eaeaea;
    --light-pink: #fff0f6;
    
    /* Utility Colors */
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(255, 77, 166, 0.15);
    
    /* Spacing & Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Typography */
    --font-primary: 'Outfit', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-soft-gray);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

a:hover {
    color: var(--primary-color);
}

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

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 77, 166, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 166, 0.4);
    color: white;
}

/* Button Ripple Animation */
.btn-primary-gradient::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-primary-gradient:active::after {
    width: 200px;
    height: 200px;
    transition: 0s;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-full);
}

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

/* Header & Mega Menu */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.top-bar {
    background: var(--primary-gradient);
    color: white;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}

.header-inner {
    padding: 15px 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.search-bar input {
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    padding: 12px 20px 12px 45px;
    background: var(--bg-light);
    transition: var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--light-pink);
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-icons .icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    margin-left: 25px;
    position: relative;
}

.header-icons .icon-box i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.header-icons .icon-box:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

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

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .header-search-desktop, .header-icons-desktop {
        display: none !important;
    }
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    flex: 1;
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

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

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 15px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-light);
}

.product-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

/* Category Images */
.category-img-wrapper {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--light-pink);
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition-fast);
}

.wishlist-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.product-title {
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.delivery-badge {
    display: inline-block;
    background: var(--bg-soft-gray);
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 8px;
}

.delivery-badge i {
    color: var(--success);
    margin-right: 4px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Skeleton Loading */
.skeleton {
    background: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shine 1s ease infinite;
}

@keyframes shine {
    to { background-position: right -40px top 0; }
}

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

.footer-heading {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-soft-gray);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--text-dark);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Product Details Page - Premium Upgrade */
.trust-badge-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: var(--transition-fast);
    height: 100%;
}
.trust-badge-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.trust-badge-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.trust-badge-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

/* Reviews Section */
.review-summary-box {
    background: var(--bg-soft-gray);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
}
.rating-progress-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.rating-progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}
.rating-progress-bar {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}
.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}
.review-card:hover {
    box-shadow: var(--shadow-sm);
}
.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.verified-badge {
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.review-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-top: 10px;
}
.star-rating i {
    color: #ffb400;
    font-size: 12px;
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 10;
}
.product-card:hover .quick-view-btn {
    bottom: 15px;
    opacity: 1;
}
.quick-view-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
