/* ============================================ KCC ONLINE SHOP - MAIN STYLESHEET Professional E-commerce Template Version: 2.0.0 Author: KCC Development Team ============================================ */ /* ===== CSS Reset & Base Styles ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Brand Colors - KCC Identity */ --primary: #2563eb; /* KCC Blue */ --primary-dark: #1d4ed8; --primary-light: #3b82f6; --secondary: #f59e0b; /* KCC Orange */ --secondary-dark: #d97706; --accent: #10b981; /* KCC Green */ --accent-dark: #059669; /* Neutral Colors */ --dark: #1f2937; --dark-light: #374151; --light: #f9fafb; --light-dark: #e5e7eb; --white: #ffffff; --black: #000000; /* Status Colors */ --success: #10b981; --warning: #f59e0b; --error: #ef4444; --info: #3b82f6; /* Gradients */ --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); /* Shadows */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1); --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3); /* Border Radius */ --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px; /* Transitions */ --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1); /* Typography */ --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-secondary: 'Poppins', var(--font-primary); --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace; /* Layout */ --max-width: 1280px; --header-height: 80px; --sidebar-width: 280px; } /* Dark Mode Variables */ [data-theme="dark"] { --dark: #f9fafb; --dark-light: #e5e7eb; --light: #1f2937; --light-dark: #374151; --white: #111827; --black: #f9fafb; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4); } /* ===== Base Styles ===== */ html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); } body { font-family: var(--font-primary); line-height: 1.6; color: var(--dark); background-color: var(--light); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ===== Typography ===== */ h1, h2, h3, h4, h5, h6 { font-family: var(--font-secondary); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 2rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; } p { margin-bottom: 1rem; color: var(--dark-light); } a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); } a:hover { color: var(--primary-dark); } /* ===== Layout Components ===== */ .container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; } .container-fluid { width: 100%; padding: 0 1.5rem; } .section { padding: 5rem 0; } .section-sm { padding: 3rem 0; } .section-lg { padding: 8rem 0; } /* ===== Buttons ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: var(--font-secondary); font-weight: 600; font-size: 1rem; line-height: 1.5; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-normal); text-decoration: none; text-align: center; white-space: nowrap; } .btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-md); } .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--shadow-glow); color: var(--white); } .btn-secondary { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); } .btn-secondary:hover { background-color: var(--primary); color: var(--white); transform: translateY(-2px); } .btn-success { background: var(--gradient-accent); color: var(--white); box-shadow: var(--shadow-md); } .btn-success:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); } .btn-whatsapp { background-color: #25D366; color: white; font-weight: 600; } .btn-whatsapp:hover { background-color: #128C7E; color: white; transform: translateY(-2px); } .btn-lg { padding: 1rem 2rem; font-size: 1.125rem; } .btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; } /* ===== Navigation ===== */ .header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background-color: rgba(var(--white), 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); z-index: 1000; transition: all var(--transition-normal); } .header.scrolled { height: 70px; box-shadow: var(--shadow-md); } .navbar { display: flex; align-items: center; justify-content: space-between; height: 100%; } .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; } .logo-icon { width: 40px; height: 40px; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.25rem; } .logo-text { display: flex; flex-direction: column; line-height: 1.2; } .logo-title { font-family: var(--font-secondary); font-weight: 700; font-size: 1.5rem; color: var(--dark); } .logo-subtitle { font-size: 0.75rem; color: var(--dark-light); letter-spacing: 0.5px; } .nav-menu { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; } .nav-link { font-weight: 600; color: var(--dark); padding: 0.5rem 0; position: relative; text-decoration: none; } .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-primary); transition: width var(--transition-normal); } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .nav-link.active { color: var(--primary); } .nav-actions { display: flex; align-items: center; gap: 1rem; } .hamburger { display: none; flex-direction: column; gap: 4px; background: transparent; border: none; cursor: pointer; padding: 0.5rem; } .hamburger span { width: 24px; height: 2px; background-color: var(--dark); border-radius: 2px; transition: all var(--transition-normal); } /* ===== Hero Section ===== */ .hero { position: relative; padding: calc(var(--header-height) + 4rem) 0 6rem; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(245, 158, 11, 0.05) 50%, rgba(16, 185, 129, 0.05) 100% ); overflow: hidden; } .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%); z-index: -1; } .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; } .hero-subtitle { font-size: 1.25rem; color: var(--dark-light); margin-bottom: 2rem; line-height: 1.6; } .hero-stats { display: flex; gap: 3rem; margin-top: 3rem; } .stat-item { text-align: center; } .stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; } .stat-label { font-size: 0.875rem; color: var(--dark-light); margin-top: 0.5rem; } .hero-image { position: relative; } .hero-image img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); transform: perspective(1000px) rotateY(-10deg); transition: transform var(--transition-normal); } .hero-image:hover img { transform: perspective(1000px) rotateY(0deg); } /* ===== Featured Section ===== */ .section-header { text-align: center; margin-bottom: 4rem; } .section-title { font-size: 2.5rem; margin-bottom: 1rem; position: relative; display: inline-block; } .section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gradient-primary); border-radius: var(--radius-full); } .section-subtitle { font-size: 1.125rem; color: var(--dark-light); max-width: 600px; margin: 0 auto; } /* ===== Product Cards ===== */ .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-normal); position: relative; border: 1px solid var(--light-dark); } .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl), var(--shadow-glow); } .product-badge { position: absolute; top: 1rem; left: 1rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; color: white; z-index: 2; } .badge-new { background: var(--accent); } .badge-hot { background: var(--error); } .badge-sale { background: var(--secondary); } .badge-top { background: var(--primary); } .product-image { position: relative; height: 200px; overflow: hidden; } .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); } .product-card:hover .product-image img { transform: scale(1.05); } .product-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-normal); } .product-card:hover .product-overlay { opacity: 1; } .product-info { padding: 1.5rem; } .product-category { display: inline-block; font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; } .product-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; } .product-description { font-size: 0.875rem; color: var(--dark-light); margin-bottom: 1rem; line-height: 1.5; } .product-price { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } .price-current { font-size: 1.25rem; font-weight: 700; color: var(--dark); } .price-original { font-size: 1rem; color: var(--dark-light); text-decoration: line-through; } .price-discount { font-size: 0.875rem; color: var(--success); font-weight: 600; } .product-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; } .stars { color: var(--secondary); } .rating-count { font-size: 0.875rem; color: var(--dark-light); } /* ===== Deal Cards ===== */ .deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; } .deal-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); border: 2px solid var(--secondary); position: relative; overflow: hidden; } .deal-badge { position: absolute; top: 0; right: 0; background: var(--gradient-secondary); color: white; padding: 0.5rem 1.5rem; font-weight: 600; transform: translate(30%, -30%) rotate(45deg); transform-origin: center; } .deal-header { margin-bottom: 1.5rem; } .deal-title { font-size: 1.5rem; margin-bottom: 0.5rem; } .deal-description { color: var(--dark-light); margin-bottom: 1rem; } .deal-products { display: flex; gap: 1rem; margin-bottom: 1.5rem; } .deal-product { text-align: center; } .deal-product img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 0.5rem; } .deal-price { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; } .price-old { font-size: 1.125rem; color: var(--dark-light); text-decoration: line-through; } .price-new { font-size: 1.5rem; font-weight: 700; color: var(--primary); } .price-saving { background: var(--gradient-accent); color: white; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600; } /* ===== Testimonials ===== */ .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); position: relative; } .testimonial-content { font-style: italic; margin-bottom: 1.5rem; line-height: 1.6; } .testimonial-author { display: flex; align-items: center; gap: 1rem; } .author-avatar { width: 50px; height: 50px; border-radius: var(--radius-full); object-fit: cover; } .author-info h4 { margin-bottom: 0.25rem; font-size: 1rem; } .author-info p { margin-bottom: 0; font-size: 0.875rem; color: var(--dark-light); } /* ===== Newsletter ===== */ .newsletter { background: var(--gradient-dark); color: var(--white); border-radius: var(--radius-lg); padding: 4rem 2rem; text-align: center; } .newsletter h2 { color: var(--white); margin-bottom: 1rem; } .newsletter p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; } .newsletter-form { display: flex; max-width: 500px; margin: 0 auto; gap: 1rem; } .newsletter-form input { flex: 1; padding: 0.875rem 1rem; border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); color: var(--white); font-family: var(--font-primary); transition: all var(--transition-normal); } .newsletter-form input:focus { outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.15); } .newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); } /* ===== Footer ===== */ .footer { background: var(--dark); color: var(--white); padding: 4rem 0 2rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; } .footer-logo { margin-bottom: 1.5rem; } .footer-description { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; } .footer-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--white); } .footer-links { list-style: none; } .footer-links li { margin-bottom: 0.75rem; } .footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color var(--transition-fast); } .footer-links a:hover { color: var(--primary-light); } .social-links { display: flex; gap: 1rem; margin-top: 1rem; } .social-link { width: 40px; height: 40px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all var(--transition-normal); } .social-link:hover { background: var(--primary); transform: translateY(-3px); } .footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; } /* ===== Utility Classes ===== */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; } .p-1 { padding: 0.5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; } .p-5 { padding: 3rem; } .d-flex { display: flex; } .d-grid { display: grid; } .d-block { display: block; } .d-inline { display: inline; } .d-inline-block { display: inline-block; } .flex-column { flex-direction: column; } .flex-row { flex-direction: row; } .flex-wrap { flex-wrap: wrap; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } .align-center { align-items: center; } .align-start { align-items: flex-start; } .align-end { align-items: flex-end; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; } .gap-5 { gap: 3rem; } .w-100 { width: 100%; } .h-100 { height: 100%; } .rounded-sm { border-radius: var(--radius-sm); } .rounded-md { border-radius: var(--radius-md); } .rounded-lg { border-radius: var(--radius-lg); } .rounded-full { border-radius: var(--radius-full); } .shadow-sm { box-shadow: var(--shadow-sm); } .shadow-md { box-shadow: var(--shadow-md); } .shadow-lg { box-shadow: var(--shadow-lg); } .bg-primary { background: var(--gradient-primary); } .bg-secondary { background: var(--gradient-secondary); } .bg-accent { background: var(--gradient-accent); } .bg-dark { background: var(--gradient-dark); } .bg-light { background-color: var(--light); } .bg-white { background-color: var(--white); } .text-primary { color: var(--primary); } .text-secondary { color: var(--secondary); } .text-accent { color: var(--accent); } .text-dark { color: var(--dark); } .text-light { color: var(--dark-light); } .text-white { color: var(--white); } /* ===== Animations ===== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .animate-fade-in { animation: fadeIn 0.8s ease-out forwards; } .animate-slide-left { animation: slideInLeft 0.8s ease-out forwards; } .animate-slide-right { animation: slideInRight 0.8s ease-out forwards; } .animate-pulse { animation: pulse 2s infinite; } .animate-float { animation: float 3s ease-in-out infinite; } /* ===== Responsive Design ===== */ @media (max-width: 1024px) { html { font-size: 15px; } h1 { font-size: 3rem; } h2 { font-size: 2.25rem; } .hero-content { gap: 3rem; } } @media (max-width: 768px) { html { font-size: 14px; } h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } .section { padding: 3rem 0; } .section-lg { padding: 5rem 0; } .hero { padding: calc(var(--header-height) + 2rem) 0 4rem; } .hero-content { grid-template-columns: 1fr; text-align: center; } .hero-stats { justify-content: center; } .nav-menu { position: fixed; top: var(--header-height); left: -100%; width: 100%; height: calc(100vh - var(--header-height)); background: var(--white); flex-direction: column; align-items: center; justify-content: flex-start; padding: 2rem; transition: left var(--transition-normal); box-shadow: var(--shadow-lg); } .nav-menu.active { left: 0; } .hamburger { display: flex; } .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); } .hamburger.active span:nth-child(2) { opacity: 0; } .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); } .deals-grid { grid-template-columns: 1fr; } .newsletter-form { flex-direction: column; } } @media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } .hero-stats { flex-direction: column; gap: 1.5rem; } .footer-content { grid-template-columns: 1fr; } } /* ===== Accessibility ===== */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; } /* ===== Print Styles ===== */ @media print { .header, .footer, .btn, .whatsapp-float, .scroll-top { display: none !important; } body { color: black; background: white; } a { color: black; text-decoration: underline; } .container { max-width: 100%; padding: 0; } .section { padding: 1rem 0; page-break-inside: avoid; } }