@import url("all.min.css");

/* @font-face { */
	/* font-family: 'ESMOD Reguler Font'; */
	/* font-display: auto; */
	/* src: url('../fonts/Esmod-Regular.ttf') format('truetype'); */
/* } */

/* h1, h2, h3, h4, h5, h6 { */
    /* color: #3A3D3D; */
	/* font-family: 'ESMOD Reguler Font'; */
/* } */

/********** Template CSS **********/
/* :root { */
    /* --primary: #CB382A; */
    /* --secondary: #FF3E41; */
    /* --light: #F8F2F0; */
    /* --dark: #060315; */
/* } */

* {
	margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
}

h1 {
    font-family: 'Archivo Black', sans-serif;
}

h2 {
    font-family: 'Archivo Black', sans-serif;
}

.link-clear,
.link-clear:link,
.link-clear:visited,
.link-clear:hover,
.link-clear:active {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.logo {
    width: 90px;
    height: 90px;
    background: #b07a63;
    border-radius: 50%;
	margin-left: 80px;
}

.logo img {
    width: 90px;
    height: 90px;
}

.menu {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.menu a {
    text-decoration: none;
    color: #333;
}

.menu a.active {
    border-bottom: 2px solid #b07a63;
    padding-bottom: 3px;
}

.right-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 24px;
	margin-right: 80px;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 100px;
    background: #a87660;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-left {
    max-width: 500px;
}

.hero small {
    letter-spacing: 2px;
    font-size: 12px;
    opacity: 0.8;
}

.hero h1 {
    font-size: 42px;
    margin: 15px 0;
    line-height: 1.2;
}

.hero p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 25px;
}

/* SEARCH */
.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    border: none;
    padding: 12px 15px;
    flex: 1;
    outline: none;
}

.search-box button {
    border: none;
    background: #333;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
}

/* BUTTONS */
.buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn-dark {
    background: #333;
    color: #fff;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

/* RIGHT SHAPE */
.hero-right {
    position: relative;
    width: 400px;
    height: 400px;
}

.diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(255,255,255,0.2);
}

.diamond:nth-child(1) { width: 300px; height: 300px; }
.diamond:nth-child(2) { width: 240px; height: 240px; }
.diamond:nth-child(3) { width: 180px; height: 180px; }
.diamond:nth-child(4) { width: 120px; height: 120px; }
.diamond:nth-child(5) { width: 60px; height: 60px; background: rgba(255,255,255,0.2); }

/* CATEGORY */
.categories {
    padding: 20px 100px;
    background: #f7f7f7;
    overflow-x: auto; /* aktifkan scroll horizontal */
	-ms-overflow-style: none;
    scrollbar-width: none;
	position: relative;
}

.categories::-webkit-scrollbar {
    display: none; /* hilangkan scrollbar */
}

.categories::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, #f7f7f7);
}

.cat-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* jangan turun ke bawah */
    white-space: nowrap; /* paksa tetap 1 baris */
}

.cat {
    padding: 8px 15px;
    border-radius: 20px;
    background: #eee;
    font-size: 13px;
    cursor: pointer;
    flex: 0 0 auto; /* supaya tidak mengecil */
}

.cat.active {
    background: #a87660;
    color: #fff;
}

/* MOBILE */
/* TOPBAR */
.mobile-topbar {
	display: none;
}

/* MENU BUTTON */
.mobile-menu-btn {
	font-size: 22px;
	cursor: pointer;
}

/* MOBILE DROPDOWN */
.mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #ddd;
	max-height: 0;
	overflow: hidden;
	transition: 0.4s;
}

/* ACTIVE */
.mobile-menu.active {
	max-height: 500px;
}

/* ITEM */
.mobile-item {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
	cursor: pointer;
}

/* SUBMENU */
.mobile-sub {
	max-height: 0;
	overflow: hidden;
	background: #f5f5f5;
	transition: 0.3s;
	margin: 0 15px;	/* hilangkan jarak saat tertutup */
	border: none;	/* tidak ada garis saat tertutup */
}

.mobile-sub a {
	text-decoration: none;
    color: inherit;
}

.mobile-sub div {
	padding: 12px 30px;
	font-size: 13px;
}

/* HOVER SAJA */
.mobile-sub div:hover {
	background: #e0e0e0;	/* abu kotak */
	cursor: pointer;
}

/* ACTIVE SUB */
.mobile-sub.active {
	max-height: 300px;
	margin: 8px 20px;			/* jarak kiri kanan + atas bawah */
	border: 1px solid #ddd;		/* border luar */
	border-radius: 10px;		/* biar agak rounded */
}

/* ITEM DENGAN SUBMENU */
.mobile-item.has-sub {
	position: relative;
	padding-right: 40px;	/* kasih ruang untuk panah */
}

/* PANAH DEFAULT (KANAN) */
.mobile-item.has-sub::after {
	content: "\f054"; /* chevron-right */
	font-family: "Font Awesome 6 Free";
	font-weight: 900; /* WAJIB */
	position: static;
	margin-left: 8px;
	font-size: 16px;
	transition: 0.3s;
}

/* SAAT AKTIF (JADI ▼) */
.mobile-item.has-sub.active::after {
	content: "\f078"; /* chevron-down */
	font-family: "Font Awesome 6 Free";
	font-size: 12px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
	.navbar {
		display: none;
	}
	
	.logo {
		margin-left: 10px;
	}
	
    .hero {
        flex-direction: column;
        text-align: center;
		padding: 80px 100px;
    }
	
	.hero h1 {
		font-size: 32px;
	}
	
    .hero-right {
        margin-top: 40px;
    }
	
	/* CATEGORY */
	.categories {
		padding: 20px 20px 20px 20px; /* kiri kanan diperkecil */
        padding-right: 40px; /* jarak ekstra kanan */
	}
	
	.cat:last-child {
        margin-right: 20px;
    }
	
	.cat-list::after {
		content: "";
		flex: 0 0 5px; /* jarak ujung kanan */
	}
	
	/* MOBILE */
	.mobile-topbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 20px;
		border-bottom: 1px solid #ddd;
		position: relative;
		z-index: 2;
	}
	
	.mobile-topbar a {
		text-decoration: none;
		color: inherit;
	}
}