/* ===============================
   Calce Com Estilo - Custom CSS
   =============================== */

:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #f97316;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--dark-color);
}

.navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

.nav-link {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Enhanced Text Styles */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

/* Typography Animations */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-text {
    animation: slideInFromBottom 0.8s ease-out;
}

.animate-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Enhanced Typography Classes */
.text-shadow-light {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-medium {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.text-shadow-strong {
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

/* Modern Card Text Styles */
.card-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* Enhanced Badge Styles */
.badge {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: 12px;
    text-transform: none;
}

.badge-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Quote Styles */
.quote-text {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 400;
    position: relative;
    padding-left: 1.5rem;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2em;
    font-size: 2em;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1;
}

/* Modern Link Styles */
.modern-link {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.modern-link:hover::after {
    width: 100%;
}

.modern-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.min-vh-50 {
    min-height: 50vh;
}

/* Logo Styles */
.logo {
    transition: all 0.3s ease;
    max-height: 40px;
    width: auto;
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.footer-section .logo {
    filter: brightness(0) invert(1);
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.top-bar .social-links a {
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 50%;
}

.top-bar .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    padding: 5rem 0;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%, 100%;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: white;
    transform: scale(1.2);
}

/* Features Section */
.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color), 0.1), transparent);
    transition: all 0.8s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Products Section */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 0.9;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.product-card:hover .product-actions .btn {
    transform: translateY(0);
    opacity: 1;
}

.product-actions .btn:nth-child(1) {
    transition-delay: 0.1s;
}

.product-actions .btn:nth-child(2) {
    transition-delay: 0.2s;
}

.product-actions .btn:nth-child(3) {
    transition-delay: 0.3s;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

.product-info {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-price .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.8s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* Newsletter Section */
.newsletter-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 2rem;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #2d3436, #636e72) !important;
}

.footer-section h4,
.footer-section h5 {
    color: white !important;
}

.footer-section .social-links .btn {
    margin-bottom: 0.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float .btn {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Modals */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #f1f3f4;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid #f1f3f4;
    border-radius: 0 0 20px 20px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-slide .display-4 {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-slide .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Selection */
::selection {
    background: rgba(79, 70, 229, 0.3);
    color: #333;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Cycling Shoes Section */
.cycling-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-showcase {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-showcase:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.image-gallery {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    cursor: zoom-in;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnail-container {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.cycling-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.product-details h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.product-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.price-info {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success-color);
    margin: 0;
}

.original-price {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.size-selector {
    margin: 1.5rem 0;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.size-option:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.size-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.color-selector {
    margin: 1.5rem 0;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #64748b;
}

.color-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.color-black { background: #1e293b; }
.color-white { background: #ffffff; border: 2px solid #e2e8f0; }
.color-red { background: #ef4444; }
.color-blue { background: #3b82f6; }

.btn-add-cart {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    margin-left: 1rem;
}

/* Cycling Category Badge */
.category-intro {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 3rem 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-intro::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="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
}

.category-intro .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .image-gallery {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-container {
        gap: 0.5rem;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .btn-buy-now {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .btn-add-cart {
        width: 100%;
    }
}
