e-katalog/resources/css/styles.css

927 lines
26 KiB
CSS

/* =========================================================
GLOBAL
========================================================= */
* {
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
color: #1a1a1a;
}
/* =========================================================
NAVBAR
========================================================= */
.navbar {
background-color: #ffffff;
border-bottom: 1px solid #e8e8e8;
padding: 12px 0;
position: sticky;
top: 0;
z-index: 1050;
box-shadow: 0 2px 12px rgba(0, 0, 0, .03); /* Shadow sedikit lebih halus */
}
.navbar-brand {
display: flex;
align-items: center;
gap: 12px; /* Jarak logo dan teks sedikit dilebarkan */
text-decoration: none;
}
.navbar-brand .brand-logo {
width: 46px;
height: 46px;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
}
.navbar-brand .brand-logo img {
width: 100%;
height: 100%;
object-fit: contain;
}
.navbar-brand .brand-text {
font-weight: 800; /* Ditebalkan seperti desain */
font-size: 20px;
line-height: 1.1; /* Dirapatkan antar barisnya */
color: #0f172a; /* Hitam pekat kebiruan */
}
.navbar-brand .brand-text span {
display: block;
font-weight: 800;
font-size: 20px;
color: #0f172a;
}
/* Nav Menu Links */
.nav-link {
font-size: 15px;
font-weight: 600; /* Font menu sedikit lebih tebal */
color: #1e293b !important; /* Warna abu-abu gelap */
padding: 8px 2px !important; /* Padding kanan-kiri dikecilkan agar garis bawah pas dengan teks */
margin: 0 12px; /* Jarak antar menu */
transition: color .2s;
border-bottom: 2px solid transparent; /* Persiapan untuk garis bawah */
}
.nav-link:hover {
color: #3ba1eb !important;
}
.nav-link.active {
color: #3ba1eb !important; /* Biru terang seperti desain */
border-bottom: 2px solid #3ba1eb;
}
/* Kolom Pencarian (Search) */
.search-form .input-group {
width: 220px; /* Sedikit dilebarkan */
}
.search-form .form-control {
background-color: #f1f5f9; /* Background abu-abu terang seperti desain */
border: none; /* Hilangkan garis pinggir */
border-radius: 6px 0 0 6px;
font-size: 13px;
padding: 8px 16px;
color: #334155;
box-shadow: none !important;
}
.search-form .form-control::placeholder {
color: #64748b;
}
.search-form .btn-search {
background: #3ba1eb; /* Biru terang */
color: #fff;
border: none;
border-radius: 0 6px 6px 0;
padding: 8px 16px;
transition: background .2s;
}
.search-form .btn-search:hover {
background: #2563eb;
}
/* Tombol Login Admin */
.btn-login {
background: #0f172a; /* Hitam gelap (Navy sangat tua) persis desain */
color: #fff !important;
border-radius: 8px; /* Sudut sedikit membulat */
padding: 8px 16px;
display: flex;
align-items: center;
gap: 10px; /* Jarak ikon dan teks */
border: none;
text-decoration: none;
transition: background .2s;
}
.btn-login:hover {
background: #1e293b;
}
.btn-login i {
font-size: 24px; /* Ukuran ikon diperbesar sedikit */
font-weight: normal;
}
.btn-login .login-text {
line-height: 1.2;
text-align: left;
font-size: 13px;
font-weight: 500;
}
/* Cart Icon */
.cart-icon {
position: relative;
font-size: 24px; /* Ikon keranjang sedikit lebih besar */
color: #0f172a;
text-decoration: none;
display: flex;
align-items: center;
}
.cart-icon .cart-badge {
position: absolute;
top: 0px;
right: 0px;
background: #ef4444; /* Merah terang */
color: #fff;
font-size: 11px;
font-weight: 700;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
}
/* =========================================================
HERO CAROUSEL
========================================================= */
/* 1. Berikan ruang di bawah keseluruhan slider */
.hero-carousel {
margin-bottom: 40px;
/* Jarak yang sudah disesuaikan agar dekat */
}
/* 2. Tarik indikator keluar, dekatkan ke gambar, dan geser ke KIRI */
.hero-carousel .carousel-indicators {
bottom: -25px;
/* Jarak dekat dengan gambar */
margin-bottom: 0;
justify-content: flex-start;
/* KUNCI: Menggeser semua dot ke kiri */
margin-left: 2%;
/* Memberi jarak aman dari ujung kiri layar (bisa disesuaikan) */
margin-right: 0;
/* Menghapus margin kanan bawaan Bootstrap */
}
/* 3. Atur Dimensi Dasar dan Warna Non-Aktif (abu-abu lingkaran) */
.hero-carousel .carousel-indicators [data-bs-target] {
height: 12px;
/* Tinggi yang sedikit lebih besar untuk bentuk pil */
width: 12px;
/* Lebar lingkaran dasar */
border-radius: 50%;
/* Menjadi lingkaran dasar */
/* Warna abu-abu sedang (sesuai image_3.png) */
background-color: #8c9ab3;
border: none;
/* Tanpa batas */
margin: 0 6px;
/* Jarak antar titik */
transition: all 0.3s ease;
/* Transisi halus */
}
/* 4. Atur Dimensi dan Warna Indikator Aktif (biru tua pil memanjang) */
.hero-carousel .carousel-indicators .active {
/* Warna biru tua (sesuai image_3.png dan tema navy image_2.png) */
background-color: #1d2f5a;
width: 48px;
/* Lebar pil memanjang */
border-radius: 12px;
/* Setengah tinggi pil untuk bentuk sempurna */
}
.hero-carousel .carousel-item {
height: 580px;
background: #111;
position: relative;
overflow: hidden;
}
.hero-carousel .carousel-item img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: .7;
}
/* Tambahan class untuk menengahkan teks secara vertikal & horizontal */
.carousel-caption-custom.caption-center {
top: 50%;
bottom: auto;
/* Membatalkan efek bottom: 60px dari class utamanya */
transform: translate(-50%, -50%);
}
/* Placeholder hero jika belum ada gambar */
.hero-placeholder {
width: 100%;
height: 420px;
background: linear-gradient(135deg, #0f1923 0%, #1e3a5f 50%, #0f2744 100%);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.hero-placeholder::before {
content: '';
position: absolute;
inset: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.carousel-caption-custom {
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
text-align: center;
color: #fff;
width: 100%;
}
.carousel-caption-custom h2 {
font-size: 36px;
font-weight: 700;
letter-spacing: 1px;
text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
margin-bottom: 4px;
}
.carousel-caption-custom p {
font-size: 20px;
font-weight: 300;
color: rgba(255, 255, 255, .85);
margin: 0;
}
/* Carousel indicators - dots */
.carousel-indicators [data-bs-target] {
width: 28px;
height: 6px;
border-radius: 3px;
background: rgba(255, 255, 255, .4);
border: none;
}
.carousel-indicators .active {
background: #2563eb;
width: 36px;
}
/* =========================================================
SECTION TITLES
========================================================= */
.section-title {
font-size: 22px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 20px;
}
.section-title-center {
font-size: 24px;
font-weight: 700;
color: #1a1a1a;
text-align: center;
margin-bottom: 24px;
}
/* =========================================================
KATEGORI PRODUK
========================================================= */
.kategori-section {
padding: 40px 0 30px;
background: #f8fafc;
}
.kategori-card {
background: #fff;
border: 1px solid #e8e8e8;
border-radius: 12px;
padding: 60px 16px 20px;
text-align: center;
position: relative;
width: 100%;
max-width: 300px;
height: 245px;
margin: 0 auto;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
transition: all .25s;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
.kategori-card:hover {
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.12);
transform: translateY(-3px);
border-color: #2563eb;
}
.kategori-card .badge-status {
position: absolute;
top: 15px;
right: 15px;
font-size: 12px;
font-weight: 700;
padding: 6px 14px;
border-radius: 20px;
letter-spacing: .5px;
}
.badge-new {
background: #22c55e;
color: #fff;
}
.badge-second {
background: #374151;
color: #fff;
}
.kategori-card .icon-wrap {
font-size: 48px;
margin-bottom: 15px;
height: 55px;
display: flex;
align-items: center;
justify-content: center;
}
.kategori-card h6 {
font-weight: 700;
font-size: 16px;
color: #1a1a1a;
margin-bottom: 6px;
}
.kategori-card p {
font-size: 12px;
color: #777;
margin: 0;
line-height: 1.5;
}
/* =========================================================
PRODUK TERBARU
========================================================= */
.produk-section {
padding: 36px 0;
background: #f8f9fa;
}
.product-card {
background: #fff;
border: 1px solid #e5e7eb;
/* Border sedikit lebih terang */
border-radius: 12px;
overflow: hidden;
transition: all .25s;
height: 100%;
display: flex;
flex-direction: column;
}
.product-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
/* Bayangan sedikit diperhalus */
transform: translateY(-3px);
}
/* KUNCI: Latar belakang abu-abu terang untuk gambar */
.product-img-wrap {
position: relative;
width: 100%;
padding-top: 100%;
/* Rasio 1:1 (persegi) cocok untuk produk pakaian/sepatu */
background: #f3f4f6;
/* Latar abu-abu persis desain */
overflow: hidden;
}
/* KUNCI: Menyesuaikan gambar agar tidak terpotong (contain) */
.product-img-wrap img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* --- THE FIX (PEMBESARAN GAMBAR) --- */
/* Ganti max-width: 90% menjadi width: 100% */
width: 100%;
/* Ganti max-height: 90% menjadi height: 100% */
height: 100%;
/* Tetap gunakan object-fit: contain agar gambar proporsional (tidak gepeng)
tapi sekarang dia akan mengisi penuh ruang 100% */
object-fit: contain;
transition: transform .3s;
}
/* Penyesuaian hover jika menggunakan teknik transform center */
.product-card:hover .product-img-wrap img {
transform: translate(-50%, -50%) scale(1.05);
}
/* Badge New/Second */
.product-badge {
position: absolute;
top: 12px;
/* Jarak dari atas kotak abu-abu */
left: 12px;
/* Jarak dari kiri kotak abu-abu */
font-size: 12px;
font-weight: 700;
padding: 4px 14px;
/* Sedikit dilebarkan ke samping agar proporsional */
/* PERBAIKAN: Ubah menjadi membulat penuh (bentuk pil) seperti di desain */
border-radius: 20px;
letter-spacing: .5px;
z-index: 2;
}
/* Badge Baru disesuaikan warnanya */
.badge-new {
background: #22c55e;
color: #fff;
}
/* Ruang untuk teks */
.product-body {
padding: 16px;
/* Sedikit lebih lega */
flex: 1;
display: flex;
flex-direction: column;
}
.product-name {
font-weight: 700;
font-size: 20px;
color: #111827;
/* Diselaraskan menjadi 8px */
margin-bottom: 8px;
line-height: 1.3;
}
.product-cat {
font-size: 14px;
color: #6b7280;
/* Diselaraskan menjadi 8px */
margin-bottom: 8px;
}
/* Harga dengan warna oranye spesifik */
.product-price {
font-size: 20px;
font-weight: 700;
color: #FF7A00;
/* Diselaraskan menjadi 8px agar jarak ke tombol sama konsistennya */
margin-bottom: 8px;
}
/* TOMBOL */
.product-actions {
display: flex;
gap: 8px;
align-items: stretch;
/* Memastikan kedua tombol sama tingginji */
margin-top: auto;
}
/* Tombol Keranjang Biru Terang */
.btn-keranjang {
background: #3ba1eb;
color: #fff;
border: none;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
text-decoration: none;
transition: background .2s;
/* UBAH INI: Menjadi 1 agar seimbang */
flex: 1;
}
.btn-keranjang:hover {
background: #2563eb;
/* Biru gelap saat hover */
color: #fff;
}
/* Tombol Detail Putih Berbingkai */
.btn-detail {
background: #fff;
border: 1px solid #e5e7eb;
color: #4b5563;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
text-decoration: none;
transition: all .2s;
/* TETAPKAN INI: 1 agar seimbang dengan tombol keranjang */
flex: 1;
}
.btn-detail:hover {
background: #f3f4f6;
color: #111827;
border-color: #d1d5db;
}
/* =========================================================
SHOES TREATMENT
========================================================= */
.treatment-section {
padding: 40px 0;
background: #fff;
}
.treatment-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.treatment-header a {
font-size: 13px;
color: #2563eb;
text-decoration: none;
font-weight: 500;
}
.treatment-header a:hover {
text-decoration: underline;
}
.treatment-card {
background: #fff;
border: 1px solid #e8e8e8;
border-radius: 14px;
padding: 28px 20px;
text-align: center;
transition: all .25s;
height: 100%;
}
.treatment-card:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
transform: translateY(-2px);
}
.treatment-icon {
width: 64px;
height: 64px;
background: #f97316;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
font-size: 26px;
color: #fff;
}
.treatment-card h6 {
font-weight: 700;
font-size: 14px;
color: #1a1a1a;
margin-bottom: 8px;
}
.treatment-card p {
font-size: 12px;
color: #777;
margin: 0;
line-height: 1.6;
}
/* =========================================================
CSS MODAL DAFTAR MENU (Sesuai Permintaan)
========================================================= */
/* 1. Overlay (Latar Belakang Gelap) */
.modal-menu-overlay {
display: none;
/* Sembunyi secara default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
/* Hitam transparan */
z-index: 9999;
/* Pastikan di atas segalanya */
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}
/* State Aktif (Saat Modal Muncul) */
.modal-menu-overlay.active {
display: flex;
opacity: 1;
}
/* 2. Kontainer Konten Modal */
.modal-menu-content {
background-color: transparent;
/* Gambar sudah punya background */
position: relative;
/* UKURAN PRESISI SESUAI PERMINTAAN */
width: 383px;
height: 575px;
border-radius: 12px;
/* Sedikit membulat agar elegan */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
overflow: visible;
/* Agar tombol X bisa melayang keluar sedikit */
/* Animasi muncul */
transform: scale(0.8);
transition: transform 0.3s ease;
}
/* Animasi konten saat aktif */
.modal-menu-overlay.active .modal-menu-content {
transform: scale(1);
}
/* 3. Tombol Close (X) */
.modal-menu-close {
position: absolute;
top: -15px;
/* Sedikit melayang ke atas */
right: -15px;
/* Sedikit melayang ke kanan */
width: 35px;
height: 35px;
background-color: #ef4444;
/* Merah cerah */
color: white;
border: 2px solid white;
/* Frame putih */
border-radius: 50%;
/* Bulat sempurna */
font-size: 20px;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: all 0.2s ease;
}
.modal-menu-close:hover {
background-color: #dc2626;
/* Merah lebih gelap saat hover */
transform: scale(1.1);
}
/* 4. Body Modal (Tempat Gambar) */
.modal-menu-body {
width: 100%;
height: 100%;
border-radius: 12px;
overflow: hidden;
/* Memastikan gambar mengikuti border-radius konten */
}
.modal-menu-body img {
width: 100%;
height: 100%;
object-fit: cover;
/* Memastikan gambar memenuhi frame tanpa penyet */
display: block;
}
/* RESPONSIVE: Agar pop-up tidak melebih layar HP */
@media (max-width: 420px) {
.modal-menu-content {
width: 90%;
/* Gunakan persentase di layar kecil */
height: auto;
/* Biarkan tinggi menyesuaikan proporsi */
aspect-ratio: 383 / 575;
/* Menjaga rasio gambar */
}
}
/* =========================================================
FOOTER
========================================================= */
.footer {
background: #0f172a;
color: #cbd5e1;
padding: 48px 0 24px;
}
.footer-logo .brand-logo-footer {
width: 80px;
height: 80px;
/* Hapus gradient biru agar logo gambar tampil bersih */
background: transparent;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
/* Jarak ke teks di bawahnya */
}
/* Pastikan gambar logo memenuhi ruang 80px dengan rapi */
.brand-logo-footer img {
width: 100%;
height: 100%;
object-fit: contain;
/* Menjaga logo tidak penyet */
}
/* Tambahan: Mengatur teks deskripsi footer agar rapi */
.footer-logo p {
font-size: 14px;
color: #9ca3af;
/* Warna abu-abu soft */
line-height: 1.6;
margin-bottom: 20px;
max-width: 300px;
/* Supaya teks tidak terlalu melebar ke kanan */
}
/* Tambahan: Gaya untuk ikon sosial media */
.footer-social {
display: flex;
gap: 15px;
}
.footer-social a {
color: #fff;
font-size: 20px;
transition: color 0.3s ease;
}
.footer-social a:hover {
color: #3b82f6;
/* Warna biru saat kursor di atas ikon */
}
.footer-logo p {
font-size: 13px;
color: #94a3b8;
line-height: 1.6;
margin-bottom: 16px;
max-width: 200px;
}
.footer-social a {
color: #94a3b8;
font-size: 20px;
margin-right: 12px;
text-decoration: none;
transition: color .2s;
}
.footer-social a:hover {
color: #fff;
}
.footer h6 {
color: #f1f5f9;
font-weight: 700;
font-size: 15px;
margin-bottom: 16px;
}
.footer-links {
list-style: none;
padding: 0;
margin: 0;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-links a {
color: #94a3b8;
text-decoration: none;
font-size: 13px;
transition: color .2s;
}
.footer-links a:hover {
color: #fff;
}
.footer-contact li {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 10px;
font-size: 13px;
color: #94a3b8;
}
.footer-contact li i {
color: #3b82f6;
font-size: 16px;
flex-shrink: 0;
margin-top: 1px;
}
.footer-divider {
border-top: 1px solid rgba(255, 255, 255, .08);
margin: 32px 0 20px;
}
.footer-copy {
text-align: center;
font-size: 13px;
color: #64748b;
}
/* =========================================================
RESPONSIVE TWEAKS
========================================================= */
@media (max-width: 768px) {
.hero-carousel .carousel-item,
.hero-placeholder {
height: 260px;
}
.carousel-caption-custom h2 {
font-size: 20px;
}
.section-title-center {
font-size: 20px;
}
.search-form .input-group {
width: 140px;
}
}