/* ================================
   NX STORE - Custom Styles
   Bootstrap 5 E-Commerce Website
   ================================ */

/* ============ CSS Variables ============ */
:root {
    --nx-primary: #0d6efd;
    --nx-primary-dark: #0a58ca;
    --nx-secondary: #6c757d;
    --nx-success: #198754;
    --nx-warning: #ffc107;
    --nx-danger: #dc3545;
    --nx-dark: #1a1a2e;
    --nx-darker: #16213e;
    --nx-light: #f8f9fa;
    --nx-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --nx-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --nx-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --nx-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --nx-transition: all 0.3s ease;
}

/* ============ Global Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--nx-transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--nx-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nx-primary-dark);
}

/* ============ Navbar ============ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: var(--nx-transition);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--nx-primary) !important;
}

.navbar-brand span {
    color: var(--nx-dark);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nx-primary);
    transition: var(--nx-transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--nx-primary) !important;
}

/* ============ Hero Section ============ */
.hero-section {
    background: var(--nx-gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    background: var(--nx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============ Buttons ============ */
.btn-nx-primary {
    background: var(--nx-gradient);
    border: none;
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--nx-transition);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-nx-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
    color: #fff;
}

.btn-nx-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--nx-transition);
}

.btn-nx-outline:hover {
    background: #fff;
    color: var(--nx-dark);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    border: none;
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--nx-transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ============ Section Styles ============ */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title span {
    color: var(--nx-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--nx-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

/* ============ Product Cards ============ */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nx-shadow);
    transition: var(--nx-transition);
    height: 100%;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--nx-shadow-lg);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--nx-transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.product-card .card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--nx-dark);
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    color: var(--nx-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nx-primary);
    margin-bottom: 1rem;
}

.product-card .price small {
    font-weight: 400;
    color: var(--nx-secondary);
}

/* ============ Feature Cards ============ */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--nx-shadow);
    transition: var(--nx-transition);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--nx-primary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--nx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.feature-card h4 {
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--nx-secondary);
    margin-bottom: 0;
}

/* ============ CTA Section ============ */
.cta-section {
    background: var(--nx-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ============ About Section ============ */
.about-section {
    background: var(--nx-light);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nx-shadow-lg);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--nx-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 0.5rem 0;
    color: var(--nx-dark);
    font-weight: 500;
}

.about-list li i {
    color: var(--nx-success);
    margin-right: 10px;
}

/* ============ Vision Mission ============ */
.vision-mission-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--nx-shadow);
    border-left: 5px solid var(--nx-primary);
}

.vision-mission-card h3 {
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-mission-card h3 i {
    color: var(--nx-primary);
}

.vision-mission-card p,
.vision-mission-card li {
    color: var(--nx-secondary);
    line-height: 1.8;
}

.vision-mission-card ul {
    padding-left: 1.5rem;
}

.vision-mission-card li {
    margin-bottom: 0.5rem;
}

/* ============ FAQ Accordion ============ */
.faq-section {
    background: var(--nx-light);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--nx-shadow);
}

.accordion-button {
    font-weight: 600;
    color: var(--nx-dark);
    padding: 1.25rem 1.5rem;
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: var(--nx-gradient);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    transition: var(--nx-transition);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--nx-secondary);
    line-height: 1.8;
}

/* ============ Testimonials ============ */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--nx-shadow);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--nx-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    color: var(--nx-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nx-primary);
}

.testimonial-info h5 {
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    font-size: 0.9rem;
    color: var(--nx-secondary);
}

.testimonial-rating {
    color: var(--nx-warning);
    margin-bottom: 1rem;
}

/* ============ Contact Section ============ */
.contact-section {
    background: var(--nx-light);
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--nx-shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--nx-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-weight: 600;
    color: var(--nx-dark);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--nx-secondary);
    margin-bottom: 0;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: var(--nx-transition);
}

.contact-form .form-control:focus {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--nx-dark);
}

.map-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-secondary);
    margin-top: 2rem;
}

/* ============ Footer ============ */
.footer {
    background: var(--nx-dark);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--nx-primary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: var(--nx-transition);
}

.footer-social a:hover {
    background: var(--nx-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--nx-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--nx-transition);
}

.footer-links a:hover {
    color: var(--nx-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--nx-primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ============ WhatsApp Floating Button ============ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--nx-transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ Page Header ============ */
.page-header {
    background: var(--nx-gradient-dark);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--nx-primary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============ Product Detail ============ */
.product-detail-section {
    padding: 80px 0;
}

.product-detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nx-shadow-lg);
}

.product-detail-image img {
    width: 100%;
    height: auto;
}

.product-detail-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1rem;
}

.product-detail-content .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nx-primary);
    margin-bottom: 1.5rem;
}

.product-detail-content .description {
    color: var(--nx-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    background: var(--nx-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.feature-list h5 {
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1rem;
}

.feature-list .list-group-item {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    color: var(--nx-secondary);
}

.feature-list .list-group-item i {
    color: var(--nx-success);
    margin-right: 10px;
}

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============ Utilities ============ */
.bg-gradient-primary {
    background: var(--nx-gradient) !important;
}

.bg-gradient-dark {
    background: var(--nx-gradient-dark) !important;
}

.text-gradient {
    background: var(--nx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rounded-xl {
    border-radius: 20px !important;
}

.shadow-nx {
    box-shadow: var(--nx-shadow) !important;
}

.shadow-nx-lg {
    box-shadow: var(--nx-shadow-lg) !important;
}

/* ============ Loading Animation ============ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nx-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--nx-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
