/* Modern Homepage Styles - Cleaned & Optimized */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-darker: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Modern Header Styles */

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar a:hover {
    color: var(--primary-color) !important;
}

.social-links-header a {
    transition: all 0.3s;
    display: inline-block;
}

.social-links-header a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Main Navigation */
.main-navbar {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.main-navbar.sticky-nav {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Logo */
.logo-wrapper {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-wrapper i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: #333;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Form */
.search-form .btn {
    height: 60px;
    padding: 0 40px;
    font-weight: 600;
}

/* Search Tags */
.search-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Quick Category Links */
.quick-cat-link {
    display: block;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quick-cat-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .mega-menu-content {
        padding: 20px;
        box-shadow: none;
    }
    
    .brand-pill {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .search-toggle-mobile {
        font-size: 1.2rem;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .logo-wrapper {
        font-size: 1.2rem;
    }
    
    .logo-wrapper i {
        font-size: 1.5rem;
    }
    
    .close-search {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
    
    .search-form .form-control,
    .search-form .btn {
        height: 50px;
        font-size: 1rem;
    }
    
    .search-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
}

.hero-shape-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 20px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-image-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

.floating-animation {
    animation: floatImage 6s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 5s ease-in-out infinite;
}

.floating-card i {
    font-size: 20px;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: block;
    position: relative;
    cursor: pointer;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Trust Badges */
.trust-item {
    padding: 15px;
    transition: transform 0.3s;
}

.trust-item:hover {
    transform: translateY(-5px);
}

/* ===== PRODUCT CARD STYLES FOR SHOP PAGE ===== */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #bfbfbfb2;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    object-fit: contain;
    transition: transform 0.7s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.product-card .btn {
    margin-top: auto;
    border-radius: 25px;
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.product-card .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.product-card .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Modern Category Cards */
.category-card-modern {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.category-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.category-card-modern:hover .category-icon-wrapper {
    transform: scale(1.1);
    background: var(--primary-color);
}

.category-card-modern:hover .category-icon-wrapper i {
    color: white !important;
}

.category-icon-wrapper i {
    font-size: 40px;
    color: var(--primary-color);
    transition: all 0.3s;
}

/* Modern Product Cards (Alternate Style) */
.product-card-modern {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    gap: 5px;
}

.product-badge .badge {
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-wrapper-modern {
    position: relative;
    height: 334px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 24px;
}

.product-image-wrapper-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s;
}

.product-card-modern:hover .product-image-wrapper-modern img {
    transform: scale(1.1);
}

.price-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Brand Cards Modern */
.brand-card-modern {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.1);
}

.brand-card-modern img {
    max-height: 80px;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.brand-card-modern:hover img {
    filter: grayscale(0%);
}

.brand-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

/* Features Section */
.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
}

.newsletter-form .btn {
    padding: 15px 30px;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Filter Sidebar */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.list-group-item {
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: #e9ecef;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--dark-color);
    color: white;
}

footer a {
    transition: color 0.3s;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    line-height: 50px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 1000px 100%;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0 2px;
}

.pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-image-wrapper {
        height: 240px;
    }
    
    .product-image-wrapper-modern {
        height: 260px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    .hero-shape-1, .hero-shape-2 {
        display: none;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-image-wrapper-modern {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }
    
    .floating-card {
        display: none;
    }
    
    .experience-badge {
        position: static;
        margin-top: 20px;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-image-wrapper-modern {
        height: 220px;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-image-wrapper-modern {
        height: 200px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .price {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .trust-item {
        padding: 10px;
    }
    
    .trust-item h6 {
        font-size: 0.9rem;
    }
    
    .trust-item small {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .no-print,
    .back-to-top,
    .social-links,
    .newsletter-section {
        display: none !important;
    }
}