38503-vm/static/css/custom.css
2026-02-20 17:46:33 +00:00

331 lines
6.5 KiB
CSS
Executable File

:root {
--primary-orange: #F97316; /* Orange 500 */
--dark-orange: #EA580C; /* Orange 600 */
--primary-blue: #2563EB; /* Blue 600 */
--dark-blue: #1E40AF; /* Blue 800 */
--deep-blue: #1E3A8A; /* Blue 900 */
/* Compatibility Mapping */
--emerald-primary: var(--primary-orange);
--emerald-dark: var(--dark-orange);
--forest-deep: var(--deep-blue);
--amber-warm: #F59E0B;
--glass-bg: rgba(255, 255, 255, 0.9);
--soft-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}
body {
font-family: 'Inter', sans-serif;
background-color: #F0FDF4; /* Hijau Muda */
color: #1e293b;
}
h1, h2, h3, h4, .navbar-brand {
font-family: 'Poppins', sans-serif;
}
/* Orange Styles */
.text-orange, .text-emerald {
color: var(--primary-orange);
}
.bg-orange, .bg-emerald {
background-color: var(--primary-orange);
}
.btn-orange, .btn-emerald {
background-color: var(--primary-orange);
border-color: var(--primary-orange);
color: white;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-orange:hover, .btn-emerald:hover {
background-color: var(--dark-orange);
border-color: var(--dark-orange);
color: white;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}
.btn-outline-orange, .btn-outline-emerald {
color: var(--primary-orange);
border: 2px solid var(--primary-orange);
font-weight: 600;
transition: all 0.3s ease;
}
.btn-outline-orange:hover, .btn-outline-emerald:hover {
background-color: var(--primary-orange);
color: white;
transform: translateY(-2px);
}
/* Blue Styles */
.text-blue {
color: var(--primary-blue);
}
.bg-blue {
background-color: var(--primary-blue);
}
.btn-blue {
background-color: var(--primary-blue);
border-color: var(--primary-blue);
color: white;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-blue:hover {
background-color: var(--dark-blue);
border-color: var(--dark-blue);
color: white;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}
.navbar {
background: var(--glass-bg);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(30, 58, 138, 0.05);
padding: 1rem 0;
}
.navbar-brand {
font-size: 1.5rem;
color: var(--deep-blue);
}
.nav-link {
color: var(--deep-blue);
font-weight: 500;
}
.nav-link:hover {
color: var(--primary-orange);
}
/* Hero Section */
.hero-section {
padding: 100px 0;
background: linear-gradient(135deg, #DCFCE7 0%, #F0FDF4 100%);
position: relative;
overflow: hidden;
}
.hero-section::after {
content: "";
position: absolute;
top: -10%;
right: -5%;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
z-index: 0;
}
.hero-title {
font-size: 3.5rem;
font-weight: 800;
line-height: 1.2;
color: var(--deep-blue);
}
/* Cards */
.category-card {
background: white;
border: none;
border-radius: 20px;
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
box-shadow: var(--soft-shadow);
text-decoration: none;
display: block;
}
.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}
.category-icon {
width: 60px;
height: 60px;
background: #fff7ed;
color: var(--primary-orange);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
font-size: 1.5rem;
}
.product-card {
background: white;
border: none;
border-radius: 20px;
overflow: hidden;
transition: all 0.3s ease;
box-shadow: var(--soft-shadow);
height: 100%;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}
.product-img-wrapper {
height: 220px;
background: #f1f5f9;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
.product-img-wrapper img {
transition: transform 0.5s ease;
width: 100%;
height: 100%;
object-fit: cover;
}
.product-card:hover .product-img-wrapper img {
transform: scale(1.1);
}
.product-img-wrapper i {
font-size: 4rem;
color: #cbd5e1;
}
.product-price {
color: var(--primary-orange);
font-weight: 700;
font-size: 1.25rem;
}
.shop-badge {
background: #eff6ff;
color: var(--primary-blue);
padding: 4px 12px;
border-radius: 100px;
font-size: 0.75rem;
font-weight: 600;
}
/* WhatsApp Button */
.btn-whatsapp {
background-color: #25D366;
color: white;
font-weight: 600;
border-radius: 12px;
}
.btn-whatsapp:hover {
background-color: #128C7E;
color: white;
}
.transform-hover {
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-15px); }
100% { transform: translateY(0px); }
}
.transform-hover:hover {
animation-play-state: paused;
transform: scale(1.03) translateY(-5px);
box-shadow: 0 30px 60px -12px rgba(249, 115, 22, 0.3) !important;
}
.transition-all {
transition: all 0.3s ease;
}
/* Search Box */
.search-box {
border: 1px solid rgba(30, 58, 138, 0.1);
transition: all 0.3s ease;
}
.search-box:focus-within {
border-color: var(--primary-orange);
box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1) !important;
}
/* Categories Active State */
.category-card.active {
background: var(--deep-blue);
color: white !important;
}
.category-card.active .category-icon {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.category-card.active h6 {
color: white !important;
}
footer {
background-color: #F0FDF4;
border-top: 1px solid rgba(34, 197, 94, 0.1);
}
@media (max-width: 768px) {
.hero-title {
font-size: 2.2rem;
text-align: center;
}
.hero-section {
padding: 60px 0;
text-align: center;
}
.banner-wrapper {
height: 200px !important;
}
.category-card {
padding: 1.2rem;
}
.category-icon {
width: 50px;
height: 50px;
font-size: 1.2rem;
margin-bottom: 1rem;
}
}
/* Utilities */
.banner-wrapper {
height: 400px;
width: 100%;
position: relative;
overflow: hidden;
}
.banner-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.object-fit-cover {
object-fit: cover;
}