/* Store Frontend Main CSS */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
} */

.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.store-header-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    margin-bottom: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: fadeInUp 1.2s ease;
}

.search-container input {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 60px;
}

.search-container input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn {
    background: var(--gradient);
    border: none;
    padding: 15px 35px;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Banner Carousel */
.banner-carousel {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.banner-slide {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: center;
    padding: 2rem;
}

.banner-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
    cursor: pointer;
}

.product-favorite:hover,
.product-favorite.active {
    color: white;
    transform: scale(1.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 1rem;
    color: var(--secondary);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-view {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    flex: 1;
    transition: all 0.3s ease;
}

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

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 5rem 0;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: white;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary)10, var(--secondary)10);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    background: var(--gradient);
    color: white;
}

/* Reviews Section */
.reviews-section {
    background: var(--light);
    padding: 5rem 0;
}

/* Reviews Slider Styles */
.reviews-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 50px;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.review-slide {
    flex: 0 0 calc(33.333% - 13.333px);
    max-width: calc(33.333% - 13.333px);
}

@media (max-width: 992px) {
    .review-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .review-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .reviews-slider-container {
        padding: 0 40px;
    }

    .reviews-slider {
        gap: 15px;
    }
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 27px;
    right: 27px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    pointer-events: all;
    color: var(--secondary);
    position: relative;
}

.slider-btn.prev-btn {
    left: -22px;
}

.slider-btn.next-btn {
    right: -22px;
}

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

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light);
}

.slider-btn:disabled:hover {
    background: var(--light);
    color: var(--secondary);
    border-color: var(--border);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--primary);
    opacity: 0.8;
}

/* Instagram Section */
.instagram-section {
    background: white;
    padding: 5rem 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.instagram-post:hover {
    transform: translateY(-5px);
}

.instagram-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.instagram-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post:hover .instagram-image img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.instagram-stat {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.instagram-icon {
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

.instagram-icon i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(2);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.rating-stars {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    color: white;
}

/* Breadcrumb */
.breadcrumb-section {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-sidebar.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.mobile-nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    color: white;
}

.mobile-nav-logo {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-menu {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 12px;
}

.mobile-nav-link:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-actions {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-action:hover {
    background: var(--light);
    color: var(--primary);
}

.mobile-nav-action i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.mobile-nav-badge {
    background: var(--danger);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.mobile-nav-user {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-profile {
    padding: 15px 20px;
    background: var(--light);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-nav-buttons {
    padding: 20px;
    margin-top: auto;
}

/* Hide desktop navbar on mobile and tablet */
@media (max-width: 1023px) {
    .navbar-nav {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .store-header-logo {
        width: 80px;
        height: 80px;
    }

    .banner-slide {
        height: 250px;
    }

    .banner-content h3 {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-view {
        flex: 1;
    }

    .mobile-nav-sidebar {
        width: 280px;
        right: -280px;
    }
}
